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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-comp use old encoders, i.e. disable the YAZ ASN.1 Compiler"
17 --enable-tcpd enable TCP wrapper for server if available"
19 --disable-threads disable threads"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
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'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
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; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
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; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
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.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
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
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
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" ;;
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" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
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" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
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; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
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" ;;
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" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
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
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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/yaz/yaz-version.h
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.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
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; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
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
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
526 ac_n= ac_c='\c' ac_t=
531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
532 if test -f $ac_dir/install-sh; then
534 ac_install_sh="$ac_aux_dir/install-sh -c"
536 elif test -f $ac_dir/install.sh; then
538 ac_install_sh="$ac_aux_dir/install.sh -c"
542 if test -z "$ac_aux_dir"; then
543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
545 ac_config_guess=$ac_aux_dir/config.guess
546 ac_config_sub=$ac_aux_dir/config.sub
547 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # Find a good install program. We prefer a C program (faster),
550 # so one script is as good as another. But avoid the broken or
551 # incompatible versions:
552 # SysV /etc/install, /usr/sbin/install
553 # SunOS /usr/etc/install
556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559 # ./install, which can be erroneously created by make from ./install.sh.
560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561 echo "configure:562: checking for a BSD compatible install" >&5
562 if test -z "$INSTALL"; then
563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
567 for ac_dir in $PATH; do
568 # Account for people who put trailing slashes in PATH elements.
570 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
572 # OSF1 and SCO ODT 3.0 have their own names for install.
573 # Don't use installbsd from OSF since it installs stuff as root
575 for ac_prog in ginstall scoinst install; do
576 if test -f $ac_dir/$ac_prog; then
577 if test $ac_prog = install &&
578 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
579 # AIX install. It has an incompatible calling convention.
582 ac_cv_path_install="$ac_dir/$ac_prog -c"
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL="$ac_cv_path_install"
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL="$ac_install_sh"
603 echo "$ac_t""$INSTALL" 1>&6
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
613 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
614 echo "configure:615: checking whether build environment is sane" >&5
617 echo timestamp > conftestfile
618 # Do `set' in a subshell so we don't clobber the current shell's
619 # arguments. Must try -L first in case configure is actually a
620 # symlink; some systems play weird games with the mod time of symlinks
621 # (eg FreeBSD returns the mod time of the symlink's containing
624 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
625 if test "$*" = "X"; then
627 set X `ls -t $srcdir/configure conftestfile`
629 if test "$*" != "X $srcdir/configure conftestfile" \
630 && test "$*" != "X conftestfile $srcdir/configure"; then
632 # If neither matched, then we have a broken ls. This can happen
633 # if, for instance, CONFIG_SHELL is bash and it inherits a
634 # broken ls alias from the environment. This has actually
635 # happened. Such a system could not be considered "sane".
636 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
637 alias in your environment" 1>&2; exit 1; }
640 test "$2" = conftestfile
646 { echo "configure: error: newly created file is older than distributed files!
647 Check your system clock" 1>&2; exit 1; }
650 echo "$ac_t""yes" 1>&6
651 if test "$program_transform_name" = s,x,x,; then
652 program_transform_name=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED > conftestsed
656 s,\\,\\\\,g; s,\$,$$,g
658 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE &&
662 program_transform_name="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE &&
665 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
670 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
671 echo "configure:672: checking whether ${MAKE-make} sets \${MAKE}" >&5
672 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
673 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 cat > conftestmake <<\EOF
678 @echo 'ac_maketemp="${MAKE}"'
680 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
681 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
682 if test -n "$ac_maketemp"; then
683 eval ac_cv_prog_make_${ac_make}_set=yes
685 eval ac_cv_prog_make_${ac_make}_set=no
689 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
690 echo "$ac_t""yes" 1>&6
693 echo "$ac_t""no" 1>&6
694 SET_MAKE="MAKE=${MAKE-make}"
702 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
703 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
705 cat >> confdefs.h <<EOF
706 #define PACKAGE "$PACKAGE"
709 cat >> confdefs.h <<EOF
710 #define VERSION "$VERSION"
715 missing_dir=`cd $ac_aux_dir && pwd`
716 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
717 echo "configure:718: checking for working aclocal" >&5
718 # Run test in a subshell; some versions of sh will print an error if
719 # an executable is not found, even if stderr is redirected.
720 # Redirect stdin to placate older versions of autoconf. Sigh.
721 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
723 echo "$ac_t""found" 1>&6
725 ACLOCAL="$missing_dir/missing aclocal"
726 echo "$ac_t""missing" 1>&6
729 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
730 echo "configure:731: checking for working autoconf" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
736 echo "$ac_t""found" 1>&6
738 AUTOCONF="$missing_dir/missing autoconf"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working automake""... $ac_c" 1>&6
743 echo "configure:744: checking for working automake" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (automake --version) < /dev/null > /dev/null 2>&1; then
749 echo "$ac_t""found" 1>&6
751 AUTOMAKE="$missing_dir/missing automake"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
756 echo "configure:757: checking for working autoheader" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
761 AUTOHEADER=autoheader
762 echo "$ac_t""found" 1>&6
764 AUTOHEADER="$missing_dir/missing autoheader"
765 echo "$ac_t""missing" 1>&6
768 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
769 echo "configure:770: checking for working makeinfo" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
775 echo "$ac_t""found" 1>&6
777 MAKEINFO="$missing_dir/missing makeinfo"
778 echo "$ac_t""missing" 1>&6
782 # Extract the first word of "gcc", so it can be a program name with args.
783 set dummy gcc; ac_word=$2
784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
785 echo "configure:786: checking for $ac_word" >&5
786 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 if test -n "$CC"; then
790 ac_cv_prog_CC="$CC" # Let the user override the test.
792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
794 for ac_dir in $ac_dummy; do
795 test -z "$ac_dir" && ac_dir=.
796 if test -f $ac_dir/$ac_word; then
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
812 # Extract the first word of "cc", so it can be a program name with args.
813 set dummy cc; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word; then
828 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
837 if test $ac_prog_rejected = yes; then
838 # We found a bogon in the path, so make sure we never use it.
839 set dummy $ac_cv_prog_CC
841 if test $# -gt 0; then
842 # We chose a different compiler from the bogus one.
843 # However, it has the same basename, so the bogon will be chosen
844 # first if we set CC to just the basename; use the full file name.
846 set dummy "$ac_dir/$ac_word" "$@"
854 if test -n "$CC"; then
855 echo "$ac_t""$CC" 1>&6
857 echo "$ac_t""no" 1>&6
860 if test -z "$CC"; then
863 # Extract the first word of "cl", so it can be a program name with args.
864 set dummy cl; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$CC"; then
871 ac_cv_prog_CC="$CC" # Let the user override the test.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CPP $CPPFLAGS'
903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cc_cross
907 cat > conftest.$ac_ext << EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
915 ac_cv_prog_cc_works=yes
916 # If we can't run a trivial program, we are probably using a cross compiler.
917 if (./conftest; exit) 2>/dev/null; then
918 ac_cv_prog_cc_cross=no
920 ac_cv_prog_cc_cross=yes
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 ac_cv_prog_cc_works=no
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
936 if test $ac_cv_prog_cc_works = no; then
937 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
941 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
942 cross_compiling=$ac_cv_prog_cc_cross
944 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
945 echo "configure:946: checking whether we are using GNU C" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 cat > conftest.c <<EOF
954 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
961 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
963 if test $ac_cv_prog_gcc = yes; then
969 ac_test_CFLAGS="${CFLAGS+set}"
970 ac_save_CFLAGS="$CFLAGS"
972 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
973 echo "configure:974: checking whether ${CC-cc} accepts -g" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 echo 'void f(){}' > conftest.c
978 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
987 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
988 if test "$ac_test_CFLAGS" = set; then
989 CFLAGS="$ac_save_CFLAGS"
990 elif test $ac_cv_prog_cc_g = yes; then
991 if test "$GCC" = yes; then
997 if test "$GCC" = yes; then
1004 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1005 echo "configure:1006: checking how to run the C preprocessor" >&5
1006 # On Suns, sometimes $CPP names a directory.
1007 if test -n "$CPP" && test -d "$CPP"; then
1010 if test -z "$CPP"; then
1011 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 # This must be in double quotes, not single quotes, because CPP may get
1015 # substituted into the Makefile and "${CC-cc}" will confuse make.
1017 # On the NeXT, cc -E runs the code through the compiler's parser,
1018 # not just through cpp.
1019 cat > conftest.$ac_ext <<EOF
1020 #line 1021 "configure"
1021 #include "confdefs.h"
1025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1026 { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1028 if test -z "$ac_err"; then
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1035 CPP="${CC-cc} -E -traditional-cpp"
1036 cat > conftest.$ac_ext <<EOF
1037 #line 1038 "configure"
1038 #include "confdefs.h"
1042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1043 { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045 if test -z "$ac_err"; then
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1052 CPP="${CC-cc} -nologo -E"
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1060 { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1062 if test -z "$ac_err"; then
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1076 ac_cv_prog_CPP="$CPP"
1078 CPP="$ac_cv_prog_CPP"
1080 ac_cv_prog_CPP="$CPP"
1082 echo "$ac_t""$CPP" 1>&6
1084 # Find a good install program. We prefer a C program (faster),
1085 # so one script is as good as another. But avoid the broken or
1086 # incompatible versions:
1087 # SysV /etc/install, /usr/sbin/install
1088 # SunOS /usr/etc/install
1089 # IRIX /sbin/install
1091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1094 # ./install, which can be erroneously created by make from ./install.sh.
1095 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1096 echo "configure:1097: checking for a BSD compatible install" >&5
1097 if test -z "$INSTALL"; then
1098 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1102 for ac_dir in $PATH; do
1103 # Account for people who put trailing slashes in PATH elements.
1105 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1107 # OSF1 and SCO ODT 3.0 have their own names for install.
1108 # Don't use installbsd from OSF since it installs stuff as root
1110 for ac_prog in ginstall scoinst install; do
1111 if test -f $ac_dir/$ac_prog; then
1112 if test $ac_prog = install &&
1113 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1114 # AIX install. It has an incompatible calling convention.
1117 ac_cv_path_install="$ac_dir/$ac_prog -c"
1128 if test "${ac_cv_path_install+set}" = set; then
1129 INSTALL="$ac_cv_path_install"
1131 # As a last resort, use the slow shell script. We don't cache a
1132 # path for INSTALL within a source directory, because that will
1133 # break other packages using the cache if that directory is
1134 # removed, or if the path is relative.
1135 INSTALL="$ac_install_sh"
1138 echo "$ac_t""$INSTALL" 1>&6
1140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1141 # It thinks the first close brace ends the variable substitution.
1142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1148 # Extract the first word of "ranlib", so it can be a program name with args.
1149 set dummy ranlib; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$RANLIB"; then
1156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_prog_RANLIB="ranlib"
1168 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1171 RANLIB="$ac_cv_prog_RANLIB"
1172 if test -n "$RANLIB"; then
1173 echo "$ac_t""$RANLIB" 1>&6
1175 echo "$ac_t""no" 1>&6
1181 # Check whether --enable-comp or --disable-comp was given.
1182 if test "${enable_comp+set}" = set; then
1183 enableval="$enable_comp"
1189 if test "$enable_comp" = "yes"; then
1192 ILLLIB=../ill/libill.a
1193 ASN_MAKEFILES="z39.50/Makefile ill/Makefile"
1194 cp -f include/yaz/z-proto.h include/yaz/proto.h
1199 ASN_MAKEFILES="asn/Makefile"
1200 cp -f include/yaz/prt-proto.h include/yaz/proto.h
1203 echo $ac_n "checking for connect""... $ac_c" 1>&6
1204 echo "configure:1205: checking for connect" >&5
1205 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 /* System header to define __stub macros and hopefully few prototypes,
1212 which can conflict with char connect(); below. */
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1221 /* The GNU C library defines this for functions which it implements
1222 to always fail with ENOSYS. Some functions are actually named
1223 something starting with __ and the normal name is an alias. */
1224 #if defined (__stub_connect) || defined (__stub___connect)
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1234 eval "ac_cv_func_connect=yes"
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1239 eval "ac_cv_func_connect=no"
1244 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1245 echo "$ac_t""yes" 1>&6
1248 echo "$ac_t""no" 1>&6
1251 if test "$ac_cv_func_connect" = "no"; then
1252 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1253 echo "configure:1254: checking for main in -lsocket" >&5
1254 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 ac_save_LIBS="$LIBS"
1259 LIBS="-lsocket $LIBS"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1268 if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1270 eval "ac_cv_lib_$ac_lib_var=yes"
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1275 eval "ac_cv_lib_$ac_lib_var=no"
1278 LIBS="$ac_save_LIBS"
1281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 LIBS="$LIBS -lsocket"
1285 echo "$ac_t""no" 1>&6
1290 if test "$checkBoth" = "1"; then
1292 LIBS="$LIBS -lsocket -lnsl"
1293 echo $ac_n "checking for accept""... $ac_c" 1>&6
1294 echo "configure:1295: checking for accept" >&5
1295 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 /* System header to define __stub macros and hopefully few prototypes,
1302 which can conflict with char accept(); below. */
1304 /* Override any gcc2 internal prototype to avoid an error. */
1305 /* We use char because int might match the return type of a gcc2
1306 builtin and then its argument prototype would still apply. */
1311 /* The GNU C library defines this for functions which it implements
1312 to always fail with ENOSYS. Some functions are actually named
1313 something starting with __ and the normal name is an alias. */
1314 #if defined (__stub_accept) || defined (__stub___accept)
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324 eval "ac_cv_func_accept=yes"
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 eval "ac_cv_func_accept=no"
1334 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1338 echo "$ac_t""no" 1>&6
1343 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1344 echo "configure:1345: checking for gethostbyname" >&5
1345 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 cat > conftest.$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1351 /* System header to define __stub macros and hopefully few prototypes,
1352 which can conflict with char gethostbyname(); below. */
1354 /* Override any gcc2 internal prototype to avoid an error. */
1355 /* We use char because int might match the return type of a gcc2
1356 builtin and then its argument prototype would still apply. */
1357 char gethostbyname();
1361 /* The GNU C library defines this for functions which it implements
1362 to always fail with ENOSYS. Some functions are actually named
1363 something starting with __ and the normal name is an alias. */
1364 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1372 if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374 eval "ac_cv_func_gethostbyname=yes"
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1379 eval "ac_cv_func_gethostbyname=no"
1384 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1388 echo "$ac_t""no" 1>&6
1389 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1390 echo "configure:1391: checking for main in -lnsl" >&5
1391 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 ac_save_LIBS="$LIBS"
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1405 if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1407 eval "ac_cv_lib_$ac_lib_var=yes"
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1412 eval "ac_cv_lib_$ac_lib_var=no"
1415 LIBS="$ac_save_LIBS"
1418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1419 echo "$ac_t""yes" 1>&6
1422 echo "$ac_t""no" 1>&6
1427 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1428 echo "configure:1429: checking for readline in -lreadline" >&5
1429 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_save_LIBS="$LIBS"
1434 LIBS="-lreadline $LIBS"
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 /* Override any gcc2 internal prototype to avoid an error. */
1439 /* We use char because int might match the return type of a gcc2
1440 builtin and then its argument prototype would still apply. */
1447 if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1449 eval "ac_cv_lib_$ac_lib_var=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 eval "ac_cv_lib_$ac_lib_var=no"
1457 LIBS="$ac_save_LIBS"
1460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1462 LIBS="$LIBS -lreadline"
1464 echo "$ac_t""no" 1>&6
1467 if test "$ac_cv_lib_readline_readline" = "no"; then
1468 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1469 echo "configure:1470: checking for readline in -lreadline" >&5
1470 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 ac_save_LIBS="$LIBS"
1475 LIBS="-lreadline $LIBS"
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 /* Override any gcc2 internal prototype to avoid an error. */
1480 /* We use char because int might match the return type of a gcc2
1481 builtin and then its argument prototype would still apply. */
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1490 eval "ac_cv_lib_$ac_lib_var=yes"
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1495 eval "ac_cv_lib_$ac_lib_var=no"
1498 LIBS="$ac_save_LIBS"
1501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1502 echo "$ac_t""yes" 1>&6
1503 LIBS="$LIBS -lreadline -ltermcap"
1505 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
1510 echo "configure:1511: checking for add_history in -lhistory" >&5
1511 ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 ac_save_LIBS="$LIBS"
1516 LIBS="-lhistory $LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error. */
1521 /* We use char because int might match the return type of a gcc2
1522 builtin and then its argument prototype would still apply. */
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531 eval "ac_cv_lib_$ac_lib_var=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 eval "ac_cv_lib_$ac_lib_var=no"
1539 LIBS="$ac_save_LIBS"
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543 echo "$ac_t""yes" 1>&6
1544 LIBS="$LIBS -lhistory"
1546 echo "$ac_t""no" 1>&6
1549 if test "$ac_cv_lib_readline_readline" = "yes"; then
1550 for ac_hdr in readline/readline.h readline/history.h
1552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1554 echo "configure:1555: checking for $ac_hdr" >&5
1555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1564 { (eval echo configure:1565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1566 if test -z "$ac_err"; then
1568 eval "ac_cv_header_$ac_safe=yes"
1571 echo "configure: failed program was:" >&5
1572 cat conftest.$ac_ext >&5
1574 eval "ac_cv_header_$ac_safe=no"
1578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1579 echo "$ac_t""yes" 1>&6
1580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1581 cat >> confdefs.h <<EOF
1582 #define $ac_tr_hdr 1
1586 echo "$ac_t""no" 1>&6
1591 for ac_func in vsnprintf
1593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_func" >&5
1595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 /* System header to define __stub macros and hopefully few prototypes,
1602 which can conflict with char $ac_func(); below. */
1604 /* Override any gcc2 internal prototype to avoid an error. */
1605 /* We use char because int might match the return type of a gcc2
1606 builtin and then its argument prototype would still apply. */
1611 /* The GNU C library defines this for functions which it implements
1612 to always fail with ENOSYS. Some functions are actually named
1613 something starting with __ and the normal name is an alias. */
1614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1624 eval "ac_cv_func_$ac_func=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1629 eval "ac_cv_func_$ac_func=no"
1634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1637 cat >> confdefs.h <<EOF
1638 #define $ac_tr_func 1
1642 echo "$ac_t""no" 1>&6
1646 # Check whether --enable-tcpd or --disable-tcpd was given.
1647 if test "${enable_tcpd+set}" = set; then
1648 enableval="$enable_tcpd"
1652 if test "$enable_tcpd" = "yes"; then
1653 echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
1654 echo "configure:1655: checking for working tcpd.h" >&5
1656 LIBS="$LIBS -lwrap -lnsl"
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1662 int allow_severity = LOG_INFO;
1663 int deny_severity = LOG_WARNING;
1665 struct request_info request_info; int i;
1666 i = hosts_access(&request_info);
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1679 if test "$tcpd_ok" = "0"; then
1680 echo "$ac_t""no" 1>&6
1683 echo "$ac_t""yes" 1>&6
1684 cat >> confdefs.h <<\EOF
1685 #define HAVE_TCPD_H 1
1690 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1691 echo "configure:1692: checking for ANSI C header files" >&5
1692 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1708 ac_cv_header_stdc=yes
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 ac_cv_header_stdc=no
1718 if test $ac_cv_header_stdc = yes; then
1719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1726 egrep "memchr" >/dev/null 2>&1; then
1730 ac_cv_header_stdc=no
1736 if test $ac_cv_header_stdc = yes; then
1737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1744 egrep "free" >/dev/null 2>&1; then
1748 ac_cv_header_stdc=no
1754 if test $ac_cv_header_stdc = yes; then
1755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1756 if test "$cross_compiling" = yes; then
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1763 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1764 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1766 int main () { int i; for (i = 0; i < 256; i++)
1767 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 ac_cv_header_stdc=no
1786 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1787 if test $ac_cv_header_stdc = yes; then
1788 cat >> confdefs.h <<\EOF
1789 #define STDC_HEADERS 1
1794 if test "$ac_cv_header_stdc" = "no"; then
1795 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1797 # Check whether --enable-threads or --disable-threads was given.
1798 if test "${enable_threads+set}" = set; then
1799 enableval="$enable_threads"
1800 enable_threads=$enableval
1805 if test "$enable_threads" = "yes"; then
1806 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
1807 echo "configure:1808: checking for main in -lpthread" >&5
1808 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
1809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 ac_save_LIBS="$LIBS"
1813 LIBS="-lpthread $LIBS"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 eval "ac_cv_lib_$ac_lib_var=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 eval "ac_cv_lib_$ac_lib_var=no"
1832 LIBS="$ac_save_LIBS"
1835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1837 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1839 cat >> confdefs.h <<EOF
1840 #define $ac_tr_lib 1
1843 LIBS="-lpthread $LIBS"
1846 echo "$ac_t""no" 1>&6
1849 echo $ac_n "checking for working POSIX Threads""... $ac_c" 1>&6
1850 echo "configure:1851: checking for working POSIX Threads" >&5
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1854 #include <pthread.h>
1855 int func(void *p) { return 0; }
1859 pthread_t pthread_id;
1860 int r = pthread_create (&pthread_id, 0, func, 0);
1863 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1873 if test "$thread_ok" = "yes"; then
1874 echo "$ac_t""yes" 1>&6
1875 cat >> confdefs.h <<\EOF
1876 #define HAVE_PTHREAD_H 1
1879 cat >> confdefs.h <<\EOF
1880 #define _REENTRANT 1
1884 echo "$ac_t""no" 1>&6
1887 SUBDIRS_VAR="util odr $ASNMODULE $ILLMODULE zutil comstack ccl tab retrieval server include lib client ztest"
1890 cat > confcache <<\EOF
1891 # This file is a shell script that caches the results of configure
1892 # tests run on this system so they can be shared between configure
1893 # scripts and configure runs. It is not useful on other systems.
1894 # If it contains results you don't want to keep, you may remove or edit it.
1896 # By default, configure uses ./config.cache as the cache file,
1897 # creating it if it does not exist already. You can give configure
1898 # the --cache-file=FILE option to use a different cache file; that is
1899 # what configure does when it calls configure scripts in
1900 # subdirectories, so they share the cache.
1901 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1902 # config.status only pays attention to the cache file if you give it the
1903 # --recheck option to rerun configure.
1906 # The following way of writing the cache mishandles newlines in values,
1907 # but we know of no workaround that is simple, portable, and efficient.
1908 # So, don't put newlines in cache variables' values.
1909 # Ultrix sh set writes to stderr and can't be redirected directly,
1910 # and sets the high bit in the cache file unless we assign to the vars.
1912 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1914 # `set' does not quote correctly, so add quotes (double-quote substitution
1915 # turns \\\\ into \\, and sed turns \\ into \).
1917 -e "s/'/'\\\\''/g" \
1918 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1921 # `set' quotes correctly as required by POSIX, so do not add quotes.
1922 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1925 if cmp -s $cache_file confcache; then
1928 if test -w $cache_file; then
1929 echo "updating cache $cache_file"
1930 cat confcache > $cache_file
1932 echo "not updating unwritable cache $cache_file"
1937 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1940 # Let make expand exec_prefix.
1941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1943 # Any assignment to VPATH causes Sun make to only execute
1944 # the first set of double-colon rules, so remove it if not needed.
1945 # If there is a colon in the path, we need to keep it.
1946 if test "x$srcdir" = x.; then
1947 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1950 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1952 # Transform confdefs.h into DEFS.
1953 # Protect against shell expansion while executing Makefile rules.
1954 # Protect against Makefile macro expansion.
1955 cat > conftest.defs <<\EOF
1956 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1957 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1962 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1966 # Without the "./", some shells look in PATH for config.status.
1967 : ${CONFIG_STATUS=./config.status}
1969 echo creating $CONFIG_STATUS
1970 rm -f $CONFIG_STATUS
1971 cat > $CONFIG_STATUS <<EOF
1973 # Generated automatically by configure.
1974 # Run this file to recreate the current configuration.
1975 # This directory was configured as follows,
1976 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1978 # $0 $ac_configure_args
1980 # Compiler output produced by configure, useful for debugging
1981 # configure, is in ./config.log if it exists.
1983 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1986 case "\$ac_option" in
1987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1988 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1989 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1990 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1991 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1993 -help | --help | --hel | --he | --h)
1994 echo "\$ac_cs_usage"; exit 0 ;;
1995 *) echo "\$ac_cs_usage"; exit 1 ;;
1999 ac_given_srcdir=$srcdir
2000 ac_given_INSTALL="$INSTALL"
2002 trap 'rm -fr `echo "Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile ill/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile retrieval/Makefile server/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile ztest/Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2004 cat >> $CONFIG_STATUS <<EOF
2006 # Protect against being on the right side of a sed subst in config.status.
2007 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2008 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2012 s%@CFLAGS@%$CFLAGS%g
2013 s%@CPPFLAGS@%$CPPFLAGS%g
2014 s%@CXXFLAGS@%$CXXFLAGS%g
2015 s%@FFLAGS@%$FFLAGS%g
2017 s%@LDFLAGS@%$LDFLAGS%g
2019 s%@exec_prefix@%$exec_prefix%g
2020 s%@prefix@%$prefix%g
2021 s%@program_transform_name@%$program_transform_name%g
2022 s%@bindir@%$bindir%g
2023 s%@sbindir@%$sbindir%g
2024 s%@libexecdir@%$libexecdir%g
2025 s%@datadir@%$datadir%g
2026 s%@sysconfdir@%$sysconfdir%g
2027 s%@sharedstatedir@%$sharedstatedir%g
2028 s%@localstatedir@%$localstatedir%g
2029 s%@libdir@%$libdir%g
2030 s%@includedir@%$includedir%g
2031 s%@oldincludedir@%$oldincludedir%g
2032 s%@infodir@%$infodir%g
2033 s%@mandir@%$mandir%g
2034 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2035 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2036 s%@INSTALL_DATA@%$INSTALL_DATA%g
2037 s%@PACKAGE@%$PACKAGE%g
2038 s%@VERSION@%$VERSION%g
2039 s%@ACLOCAL@%$ACLOCAL%g
2040 s%@AUTOCONF@%$AUTOCONF%g
2041 s%@AUTOMAKE@%$AUTOMAKE%g
2042 s%@AUTOHEADER@%$AUTOHEADER%g
2043 s%@MAKEINFO@%$MAKEINFO%g
2044 s%@SET_MAKE@%$SET_MAKE%g
2047 s%@RANLIB@%$RANLIB%g
2048 s%@ASNMODULE@%$ASNMODULE%g
2049 s%@ILLMODULE@%$ILLMODULE%g
2050 s%@ILLLIB@%$ILLLIB%g
2051 s%@SUBDIRS_VAR@%$SUBDIRS_VAR%g
2056 cat >> $CONFIG_STATUS <<\EOF
2058 # Split the substitutions into bite-sized pieces for seds with
2059 # small command number limits, like on Digital OSF/1 and HP-UX.
2060 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2061 ac_file=1 # Number of current file.
2062 ac_beg=1 # First line for current file.
2063 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2066 while $ac_more_lines; do
2067 if test $ac_beg -gt 1; then
2068 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2070 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2072 if test ! -s conftest.s$ac_file; then
2074 rm -f conftest.s$ac_file
2076 if test -z "$ac_sed_cmds"; then
2077 ac_sed_cmds="sed -f conftest.s$ac_file"
2079 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2081 ac_file=`expr $ac_file + 1`
2083 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2086 if test -z "$ac_sed_cmds"; then
2091 cat >> $CONFIG_STATUS <<EOF
2093 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile ill/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile retrieval/Makefile server/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile ztest/Makefile doc/Makefile"}
2095 cat >> $CONFIG_STATUS <<\EOF
2096 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2099 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2100 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2101 *) ac_file_in="${ac_file}.in" ;;
2104 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2106 # Remove last slash and all that follows it. Not all systems have dirname.
2107 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2109 # The file is in a subdirectory.
2110 test ! -d "$ac_dir" && mkdir "$ac_dir"
2111 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2112 # A "../" for each directory in $ac_dir_suffix.
2113 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2115 ac_dir_suffix= ac_dots=
2118 case "$ac_given_srcdir" in
2120 if test -z "$ac_dots"; then top_srcdir=.
2121 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2122 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2124 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2125 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2128 case "$ac_given_INSTALL" in
2129 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2130 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2133 echo creating "$ac_file"
2135 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2137 *Makefile*) ac_comsub="1i\\
2138 # $configure_input" ;;
2142 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2144 s%@configure_input@%$configure_input%g
2145 s%@srcdir@%$srcdir%g
2146 s%@top_srcdir@%$top_srcdir%g
2147 s%@INSTALL@%$INSTALL%g
2148 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2153 cat >> $CONFIG_STATUS <<EOF
2156 cat >> $CONFIG_STATUS <<\EOF
2160 chmod +x $CONFIG_STATUS
2161 rm -fr confdefs* $ac_clean_files
2162 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1