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 --with-yc compile using YC: The Yaz Compiler"
17 --enable-threads enable threads if available"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=include/yaz-version.h
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
528 # Extract the first word of "gcc", so it can be a program name with args.
529 set dummy gcc; ac_word=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
535 if test -n "$CC"; then
536 ac_cv_prog_CC="$CC" # Let the user override the test.
538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
540 for ac_dir in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir=.
542 if test -f $ac_dir/$ac_word; then
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
554 echo "$ac_t""no" 1>&6
557 if test -z "$CC"; then
558 # Extract the first word of "cc", so it can be a program name with args.
559 set dummy cc; ac_word=$2
560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561 echo "configure:562: checking for $ac_word" >&5
562 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
565 if test -n "$CC"; then
566 ac_cv_prog_CC="$CC" # Let the user override the test.
568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
571 for ac_dir in $ac_dummy; do
572 test -z "$ac_dir" && ac_dir=.
573 if test -f $ac_dir/$ac_word; then
574 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
583 if test $ac_prog_rejected = yes; then
584 # We found a bogon in the path, so make sure we never use it.
585 set dummy $ac_cv_prog_CC
587 if test $# -gt 0; then
588 # We chose a different compiler from the bogus one.
589 # However, it has the same basename, so the bogon will be chosen
590 # first if we set CC to just the basename; use the full file name.
592 set dummy "$ac_dir/$ac_word" "$@"
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
609 # Extract the first word of "cl", so it can be a program name with args.
610 set dummy cl; ac_word=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 if test -n "$CC"; then
617 ac_cv_prog_CC="$CC" # Let the user override the test.
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
621 for ac_dir in $ac_dummy; do
622 test -z "$ac_dir" && ac_dir=.
623 if test -f $ac_dir/$ac_word; then
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
635 echo "$ac_t""no" 1>&6
640 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
644 echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648 ac_cpp='$CPP $CPPFLAGS'
649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651 cross_compiling=$ac_cv_prog_cc_cross
653 cat > conftest.$ac_ext << EOF
655 #line 656 "configure"
656 #include "confdefs.h"
660 if { (eval echo configure:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
661 ac_cv_prog_cc_works=yes
662 # If we can't run a trivial program, we are probably using a cross compiler.
663 if (./conftest; exit) 2>/dev/null; then
664 ac_cv_prog_cc_cross=no
666 ac_cv_prog_cc_cross=yes
669 echo "configure: failed program was:" >&5
670 cat conftest.$ac_ext >&5
671 ac_cv_prog_cc_works=no
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp='$CPP $CPPFLAGS'
677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling=$ac_cv_prog_cc_cross
681 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
682 if test $ac_cv_prog_cc_works = no; then
683 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
685 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
686 echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
687 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
688 cross_compiling=$ac_cv_prog_cc_cross
690 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
691 echo "configure:692: checking whether we are using GNU C" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 cat > conftest.c <<EOF
700 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
707 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
709 if test $ac_cv_prog_gcc = yes; then
715 ac_test_CFLAGS="${CFLAGS+set}"
716 ac_save_CFLAGS="$CFLAGS"
718 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
719 echo "configure:720: checking whether ${CC-cc} accepts -g" >&5
720 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
723 echo 'void f(){}' > conftest.c
724 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
733 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
734 if test "$ac_test_CFLAGS" = set; then
735 CFLAGS="$ac_save_CFLAGS"
736 elif test $ac_cv_prog_cc_g = yes; then
737 if test "$GCC" = yes; then
743 if test "$GCC" = yes; then
750 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
751 echo "configure:752: checking how to run the C preprocessor" >&5
752 # On Suns, sometimes $CPP names a directory.
753 if test -n "$CPP" && test -d "$CPP"; then
756 if test -z "$CPP"; then
757 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 # This must be in double quotes, not single quotes, because CPP may get
761 # substituted into the Makefile and "${CC-cc}" will confuse make.
763 # On the NeXT, cc -E runs the code through the compiler's parser,
764 # not just through cpp.
765 cat > conftest.$ac_ext <<EOF
766 #line 767 "configure"
767 #include "confdefs.h"
771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
772 { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
774 if test -z "$ac_err"; then
778 echo "configure: failed program was:" >&5
779 cat conftest.$ac_ext >&5
781 CPP="${CC-cc} -E -traditional-cpp"
782 cat > conftest.$ac_ext <<EOF
783 #line 784 "configure"
784 #include "confdefs.h"
788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
789 { (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
791 if test -z "$ac_err"; then
795 echo "configure: failed program was:" >&5
796 cat conftest.$ac_ext >&5
798 CPP="${CC-cc} -nologo -E"
799 cat > conftest.$ac_ext <<EOF
800 #line 801 "configure"
801 #include "confdefs.h"
805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
806 { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
808 if test -z "$ac_err"; then
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
822 ac_cv_prog_CPP="$CPP"
824 CPP="$ac_cv_prog_CPP"
826 ac_cv_prog_CPP="$CPP"
828 echo "$ac_t""$CPP" 1>&6
831 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
832 if test -f $ac_dir/install-sh; then
834 ac_install_sh="$ac_aux_dir/install-sh -c"
836 elif test -f $ac_dir/install.sh; then
838 ac_install_sh="$ac_aux_dir/install.sh -c"
842 if test -z "$ac_aux_dir"; then
843 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
845 ac_config_guess=$ac_aux_dir/config.guess
846 ac_config_sub=$ac_aux_dir/config.sub
847 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
849 # Find a good install program. We prefer a C program (faster),
850 # so one script is as good as another. But avoid the broken or
851 # incompatible versions:
852 # SysV /etc/install, /usr/sbin/install
853 # SunOS /usr/etc/install
856 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
857 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
858 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
859 # ./install, which can be erroneously created by make from ./install.sh.
860 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
861 echo "configure:862: checking for a BSD compatible install" >&5
862 if test -z "$INSTALL"; then
863 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
867 for ac_dir in $PATH; do
868 # Account for people who put trailing slashes in PATH elements.
870 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
872 # OSF1 and SCO ODT 3.0 have their own names for install.
873 # Don't use installbsd from OSF since it installs stuff as root
875 for ac_prog in ginstall scoinst install; do
876 if test -f $ac_dir/$ac_prog; then
877 if test $ac_prog = install &&
878 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
879 # AIX install. It has an incompatible calling convention.
882 ac_cv_path_install="$ac_dir/$ac_prog -c"
893 if test "${ac_cv_path_install+set}" = set; then
894 INSTALL="$ac_cv_path_install"
896 # As a last resort, use the slow shell script. We don't cache a
897 # path for INSTALL within a source directory, because that will
898 # break other packages using the cache if that directory is
899 # removed, or if the path is relative.
900 INSTALL="$ac_install_sh"
903 echo "$ac_t""$INSTALL" 1>&6
905 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
906 # It thinks the first close brace ends the variable substitution.
907 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
909 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
911 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
913 # Extract the first word of "ranlib", so it can be a program name with args.
914 set dummy ranlib; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 if test -n "$RANLIB"; then
921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
925 for ac_dir in $ac_dummy; do
926 test -z "$ac_dir" && ac_dir=.
927 if test -f $ac_dir/$ac_word; then
928 ac_cv_prog_RANLIB="ranlib"
933 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
936 RANLIB="$ac_cv_prog_RANLIB"
937 if test -n "$RANLIB"; then
938 echo "$ac_t""$RANLIB" 1>&6
940 echo "$ac_t""no" 1>&6
944 # Check whether --with-yc or --without-yc was given.
945 if test "${with_yc+set}" = set; then
953 if test "$YCDIR" = "yes"; then
959 echo $ac_n "checking for connect""... $ac_c" 1>&6
960 echo "configure:961: checking for connect" >&5
961 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 cat > conftest.$ac_ext <<EOF
965 #line 966 "configure"
966 #include "confdefs.h"
967 /* System header to define __stub macros and hopefully few prototypes,
968 which can conflict with char connect(); below. */
970 /* Override any gcc2 internal prototype to avoid an error. */
971 /* We use char because int might match the return type of a gcc2
972 builtin and then its argument prototype would still apply. */
977 /* The GNU C library defines this for functions which it implements
978 to always fail with ENOSYS. Some functions are actually named
979 something starting with __ and the normal name is an alias. */
980 #if defined (__stub_connect) || defined (__stub___connect)
988 if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
990 eval "ac_cv_func_connect=yes"
992 echo "configure: failed program was:" >&5
993 cat conftest.$ac_ext >&5
995 eval "ac_cv_func_connect=no"
1000 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1001 echo "$ac_t""yes" 1>&6
1004 echo "$ac_t""no" 1>&6
1007 if test "$ac_cv_func_connect" = "no"; then
1008 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1009 echo "configure:1010: checking for main in -lsocket" >&5
1010 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 ac_save_LIBS="$LIBS"
1015 LIBS="-lsocket $LIBS"
1016 cat > conftest.$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1024 if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1026 eval "ac_cv_lib_$ac_lib_var=yes"
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 eval "ac_cv_lib_$ac_lib_var=no"
1034 LIBS="$ac_save_LIBS"
1037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1038 echo "$ac_t""yes" 1>&6
1039 LIBS="$LIBS -lsocket"
1041 echo "$ac_t""no" 1>&6
1046 if test "$checkBoth" = "1"; then
1048 LIBS="$LIBS -lsocket -lnsl"
1049 echo $ac_n "checking for accept""... $ac_c" 1>&6
1050 echo "configure:1051: checking for accept" >&5
1051 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1057 /* System header to define __stub macros and hopefully few prototypes,
1058 which can conflict with char accept(); below. */
1060 /* Override any gcc2 internal prototype to avoid an error. */
1061 /* We use char because int might match the return type of a gcc2
1062 builtin and then its argument prototype would still apply. */
1067 /* The GNU C library defines this for functions which it implements
1068 to always fail with ENOSYS. Some functions are actually named
1069 something starting with __ and the normal name is an alias. */
1070 #if defined (__stub_accept) || defined (__stub___accept)
1078 if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1080 eval "ac_cv_func_accept=yes"
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1085 eval "ac_cv_func_accept=no"
1090 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1091 echo "$ac_t""yes" 1>&6
1094 echo "$ac_t""no" 1>&6
1099 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1100 echo "configure:1101: checking for gethostbyname" >&5
1101 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 cat > conftest.$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1107 /* System header to define __stub macros and hopefully few prototypes,
1108 which can conflict with char gethostbyname(); below. */
1110 /* Override any gcc2 internal prototype to avoid an error. */
1111 /* We use char because int might match the return type of a gcc2
1112 builtin and then its argument prototype would still apply. */
1113 char gethostbyname();
1117 /* The GNU C library defines this for functions which it implements
1118 to always fail with ENOSYS. Some functions are actually named
1119 something starting with __ and the normal name is an alias. */
1120 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130 eval "ac_cv_func_gethostbyname=yes"
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1135 eval "ac_cv_func_gethostbyname=no"
1140 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1144 echo "$ac_t""no" 1>&6
1145 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1146 echo "configure:1147: checking for main in -lnsl" >&5
1147 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 ac_save_LIBS="$LIBS"
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1161 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1163 eval "ac_cv_lib_$ac_lib_var=yes"
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1168 eval "ac_cv_lib_$ac_lib_var=no"
1171 LIBS="$ac_save_LIBS"
1174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1175 echo "$ac_t""yes" 1>&6
1178 echo "$ac_t""no" 1>&6
1183 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1184 echo "configure:1185: checking for readline in -lreadline" >&5
1185 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 ac_save_LIBS="$LIBS"
1190 LIBS="-lreadline $LIBS"
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1194 /* Override any gcc2 internal prototype to avoid an error. */
1195 /* We use char because int might match the return type of a gcc2
1196 builtin and then its argument prototype would still apply. */
1203 if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1205 eval "ac_cv_lib_$ac_lib_var=yes"
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 eval "ac_cv_lib_$ac_lib_var=no"
1213 LIBS="$ac_save_LIBS"
1216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1217 echo "$ac_t""yes" 1>&6
1218 LIBS="$LIBS -lreadline"
1220 echo "$ac_t""no" 1>&6
1223 echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
1224 echo "configure:1225: checking for add_history in -lhistory" >&5
1225 ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
1226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 ac_save_LIBS="$LIBS"
1230 LIBS="-lhistory $LIBS"
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1234 /* Override any gcc2 internal prototype to avoid an error. */
1235 /* We use char because int might match the return type of a gcc2
1236 builtin and then its argument prototype would still apply. */
1243 if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1245 eval "ac_cv_lib_$ac_lib_var=yes"
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1250 eval "ac_cv_lib_$ac_lib_var=no"
1253 LIBS="$ac_save_LIBS"
1256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1257 echo "$ac_t""yes" 1>&6
1258 LIBS="$LIBS -lhistory"
1260 echo "$ac_t""no" 1>&6
1263 if test "$ac_cv_lib_readline_readline" = "yes"; then
1264 for ac_hdr in readline/readline.h readline/history.h
1266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1268 echo "configure:1269: checking for $ac_hdr" >&5
1269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 cat > conftest.$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1282 eval "ac_cv_header_$ac_safe=yes"
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1288 eval "ac_cv_header_$ac_safe=no"
1292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1293 echo "$ac_t""yes" 1>&6
1294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1295 cat >> confdefs.h <<EOF
1296 #define $ac_tr_hdr 1
1300 echo "$ac_t""no" 1>&6
1305 echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
1306 echo "configure:1307: checking for working tcpd.h" >&5
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1314 int allow_severity = LOG_INFO;
1315 int deny_severity = LOG_WARNING;
1317 struct request_info request_info; int i;
1318 i = hosts_access(&request_info);
1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1331 if test "$tcpd_ok" = "0"; then
1332 echo "$ac_t""no" 1>&6
1335 echo "$ac_t""yes" 1>&6
1336 cat >> confdefs.h <<\EOF
1337 #define HAVE_TCPD_H 1
1341 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1342 echo "configure:1343: checking for ANSI C header files" >&5
1343 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1355 { (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1357 if test -z "$ac_err"; then
1359 ac_cv_header_stdc=yes
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 ac_cv_header_stdc=no
1369 if test $ac_cv_header_stdc = yes; then
1370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1377 egrep "memchr" >/dev/null 2>&1; then
1381 ac_cv_header_stdc=no
1387 if test $ac_cv_header_stdc = yes; then
1388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1395 egrep "free" >/dev/null 2>&1; then
1399 ac_cv_header_stdc=no
1405 if test $ac_cv_header_stdc = yes; then
1406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1407 if test "$cross_compiling" = yes; then
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1414 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1415 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1417 int main () { int i; for (i = 0; i < 256; i++)
1418 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1422 if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1429 ac_cv_header_stdc=no
1437 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1438 if test $ac_cv_header_stdc = yes; then
1439 cat >> confdefs.h <<\EOF
1440 #define STDC_HEADERS 1
1445 if test "$ac_cv_header_stdc" = "no"; then
1446 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1448 # Check whether --enable-threads or --disable-threads was given.
1449 if test "${enable_threads+set}" = set; then
1450 enableval="$enable_threads"
1451 threads_ok=$enableval
1456 if test "$threads_ok" = "yes"; then
1457 for ac_hdr in pthread.h threads.h
1459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1461 echo "configure:1462: checking for $ac_hdr" >&5
1462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1471 { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1473 if test -z "$ac_err"; then
1475 eval "ac_cv_header_$ac_safe=yes"
1478 echo "configure: failed program was:" >&5
1479 cat conftest.$ac_ext >&5
1481 eval "ac_cv_header_$ac_safe=no"
1485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1486 echo "$ac_t""yes" 1>&6
1487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1488 cat >> confdefs.h <<EOF
1489 #define $ac_tr_hdr 1
1493 echo "$ac_t""no" 1>&6
1497 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
1498 echo "configure:1499: checking for pthread_mutex_lock" >&5
1499 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 /* System header to define __stub macros and hopefully few prototypes,
1506 which can conflict with char pthread_mutex_lock(); below. */
1508 /* Override any gcc2 internal prototype to avoid an error. */
1509 /* We use char because int might match the return type of a gcc2
1510 builtin and then its argument prototype would still apply. */
1511 char pthread_mutex_lock();
1515 /* The GNU C library defines this for functions which it implements
1516 to always fail with ENOSYS. Some functions are actually named
1517 something starting with __ and the normal name is an alias. */
1518 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
1521 pthread_mutex_lock();
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1528 eval "ac_cv_func_pthread_mutex_lock=yes"
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 eval "ac_cv_func_pthread_mutex_lock=no"
1538 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
1539 echo "$ac_t""yes" 1>&6
1542 echo "$ac_t""no" 1>&6
1545 if test "$ac_cv_func_pthread_mutex_lock" = "no"; then
1546 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
1547 echo "configure:1548: checking for main in -lpthread" >&5
1548 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
1549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 ac_save_LIBS="$LIBS"
1553 LIBS="-lpthread $LIBS"
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1564 eval "ac_cv_lib_$ac_lib_var=yes"
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 eval "ac_cv_lib_$ac_lib_var=no"
1572 LIBS="$ac_save_LIBS"
1575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1576 echo "$ac_t""yes" 1>&6
1577 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1578 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1579 cat >> confdefs.h <<EOF
1580 #define $ac_tr_lib 1
1583 LIBS="-lpthread $LIBS"
1586 echo "$ac_t""no" 1>&6
1590 cat >> confdefs.h <<\EOF
1591 #define _REENTRANT 1
1596 cat > confcache <<\EOF
1597 # This file is a shell script that caches the results of configure
1598 # tests run on this system so they can be shared between configure
1599 # scripts and configure runs. It is not useful on other systems.
1600 # If it contains results you don't want to keep, you may remove or edit it.
1602 # By default, configure uses ./config.cache as the cache file,
1603 # creating it if it does not exist already. You can give configure
1604 # the --cache-file=FILE option to use a different cache file; that is
1605 # what configure does when it calls configure scripts in
1606 # subdirectories, so they share the cache.
1607 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1608 # config.status only pays attention to the cache file if you give it the
1609 # --recheck option to rerun configure.
1612 # The following way of writing the cache mishandles newlines in values,
1613 # but we know of no workaround that is simple, portable, and efficient.
1614 # So, don't put newlines in cache variables' values.
1615 # Ultrix sh set writes to stderr and can't be redirected directly,
1616 # and sets the high bit in the cache file unless we assign to the vars.
1618 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1620 # `set' does not quote correctly, so add quotes (double-quote substitution
1621 # turns \\\\ into \\, and sed turns \\ into \).
1623 -e "s/'/'\\\\''/g" \
1624 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1627 # `set' quotes correctly as required by POSIX, so do not add quotes.
1628 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1631 if cmp -s $cache_file confcache; then
1634 if test -w $cache_file; then
1635 echo "updating cache $cache_file"
1636 cat confcache > $cache_file
1638 echo "not updating unwritable cache $cache_file"
1643 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1646 # Let make expand exec_prefix.
1647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1649 # Any assignment to VPATH causes Sun make to only execute
1650 # the first set of double-colon rules, so remove it if not needed.
1651 # If there is a colon in the path, we need to keep it.
1652 if test "x$srcdir" = x.; then
1653 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1656 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1658 # Transform confdefs.h into DEFS.
1659 # Protect against shell expansion while executing Makefile rules.
1660 # Protect against Makefile macro expansion.
1661 cat > conftest.defs <<\EOF
1662 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1663 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1668 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1672 # Without the "./", some shells look in PATH for config.status.
1673 : ${CONFIG_STATUS=./config.status}
1675 echo creating $CONFIG_STATUS
1676 rm -f $CONFIG_STATUS
1677 cat > $CONFIG_STATUS <<EOF
1679 # Generated automatically by configure.
1680 # Run this file to recreate the current configuration.
1681 # This directory was configured as follows,
1682 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1684 # $0 $ac_configure_args
1686 # Compiler output produced by configure, useful for debugging
1687 # configure, is in ./config.log if it exists.
1689 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1692 case "\$ac_option" in
1693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1694 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1695 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1696 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1697 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1699 -help | --help | --hel | --he | --h)
1700 echo "\$ac_cs_usage"; exit 0 ;;
1701 *) echo "\$ac_cs_usage"; exit 1 ;;
1705 ac_given_srcdir=$srcdir
1706 ac_given_INSTALL="$INSTALL"
1708 trap 'rm -fr `echo "Makefile util/Makefile asn/Makefile odr/Makefile zutil/Makefile comstack/Makefile client/Makefile server/Makefile ztest/Makefile retrieval/Makefile ccl/Makefile lib/Makefile rfc1006/Makefile z39.50/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1710 cat >> $CONFIG_STATUS <<EOF
1712 # Protect against being on the right side of a sed subst in config.status.
1713 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1714 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1718 s%@CFLAGS@%$CFLAGS%g
1719 s%@CPPFLAGS@%$CPPFLAGS%g
1720 s%@CXXFLAGS@%$CXXFLAGS%g
1721 s%@FFLAGS@%$FFLAGS%g
1723 s%@LDFLAGS@%$LDFLAGS%g
1725 s%@exec_prefix@%$exec_prefix%g
1726 s%@prefix@%$prefix%g
1727 s%@program_transform_name@%$program_transform_name%g
1728 s%@bindir@%$bindir%g
1729 s%@sbindir@%$sbindir%g
1730 s%@libexecdir@%$libexecdir%g
1731 s%@datadir@%$datadir%g
1732 s%@sysconfdir@%$sysconfdir%g
1733 s%@sharedstatedir@%$sharedstatedir%g
1734 s%@localstatedir@%$localstatedir%g
1735 s%@libdir@%$libdir%g
1736 s%@includedir@%$includedir%g
1737 s%@oldincludedir@%$oldincludedir%g
1738 s%@infodir@%$infodir%g
1739 s%@mandir@%$mandir%g
1742 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1743 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1744 s%@INSTALL_DATA@%$INSTALL_DATA%g
1745 s%@RANLIB@%$RANLIB%g
1746 s%@ASNMODULE@%$ASNMODULE%g
1751 cat >> $CONFIG_STATUS <<\EOF
1753 # Split the substitutions into bite-sized pieces for seds with
1754 # small command number limits, like on Digital OSF/1 and HP-UX.
1755 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1756 ac_file=1 # Number of current file.
1757 ac_beg=1 # First line for current file.
1758 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1761 while $ac_more_lines; do
1762 if test $ac_beg -gt 1; then
1763 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1765 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1767 if test ! -s conftest.s$ac_file; then
1769 rm -f conftest.s$ac_file
1771 if test -z "$ac_sed_cmds"; then
1772 ac_sed_cmds="sed -f conftest.s$ac_file"
1774 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1776 ac_file=`expr $ac_file + 1`
1778 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1781 if test -z "$ac_sed_cmds"; then
1786 cat >> $CONFIG_STATUS <<EOF
1788 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile asn/Makefile odr/Makefile zutil/Makefile comstack/Makefile client/Makefile server/Makefile ztest/Makefile retrieval/Makefile ccl/Makefile lib/Makefile rfc1006/Makefile z39.50/Makefile"}
1790 cat >> $CONFIG_STATUS <<\EOF
1791 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1794 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1795 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1796 *) ac_file_in="${ac_file}.in" ;;
1799 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1801 # Remove last slash and all that follows it. Not all systems have dirname.
1802 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1803 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1804 # The file is in a subdirectory.
1805 test ! -d "$ac_dir" && mkdir "$ac_dir"
1806 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1807 # A "../" for each directory in $ac_dir_suffix.
1808 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1810 ac_dir_suffix= ac_dots=
1813 case "$ac_given_srcdir" in
1815 if test -z "$ac_dots"; then top_srcdir=.
1816 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1817 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1819 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1820 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1823 case "$ac_given_INSTALL" in
1824 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1825 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1828 echo creating "$ac_file"
1830 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1832 *Makefile*) ac_comsub="1i\\
1833 # $configure_input" ;;
1837 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1839 s%@configure_input@%$configure_input%g
1840 s%@srcdir@%$srcdir%g
1841 s%@top_srcdir@%$top_srcdir%g
1842 s%@INSTALL@%$INSTALL%g
1843 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1848 cat >> $CONFIG_STATUS <<EOF
1851 cat >> $CONFIG_STATUS <<\EOF
1855 chmod +x $CONFIG_STATUS
1856 rm -fr confdefs* $ac_clean_files
1857 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1