3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-athena Enable Athena-specific policy decisions"
17 --with-com_err=PREFIX Specify location of com_err"
19 --with-krb4=PREFIX Specify location of krb4"
21 --with-krb5=PREFIX Specify location of krb5 (for reg_svr)"
23 --with-hesiod=PREFIX Specify location of Hesiod"
25 --with-zephyr=PREFIX Specify location of Zephyr"
27 --with-gdss=PREFIX Specify location of GDSS"
29 --with-rsaref=PREFIX Specify location of RSAREF"
31 --with-oracle=PREFIX Specify location of Oracle (for server)"
33 --with-afs=PREFIX Specify location of AFS libs (for server)"
35 --with-readline=PREFIX Specify location of GNU readline"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file=./config.cache
50 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.12"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=patchlevel.h
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='\c' ac_t=
552 # Extract the first word of "gcc", so it can be a program name with args.
553 set dummy gcc; ac_word=$2
554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
555 echo "configure:556: checking for $ac_word" >&5
556 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 if test -n "$CC"; then
560 ac_cv_prog_CC="$CC" # Let the user override the test.
562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
563 for ac_dir in $PATH; do
564 test -z "$ac_dir" && ac_dir=.
565 if test -f $ac_dir/$ac_word; then
574 if test -n "$CC"; then
575 echo "$ac_t""$CC" 1>&6
577 echo "$ac_t""no" 1>&6
580 if test -z "$CC"; then
581 # Extract the first word of "cc", so it can be a program name with args.
582 set dummy cc; ac_word=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
593 for ac_dir in $PATH; do
594 test -z "$ac_dir" && ac_dir=.
595 if test -f $ac_dir/$ac_word; then
596 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
605 if test $ac_prog_rejected = yes; then
606 # We found a bogon in the path, so make sure we never use it.
607 set dummy $ac_cv_prog_CC
609 if test $# -gt 0; then
610 # We chose a different compiler from the bogus one.
611 # However, it has the same basename, so the bogon will be chosen
612 # first if we set CC to just the basename; use the full file name.
614 set dummy "$ac_dir/$ac_word" "$@"
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
625 echo "$ac_t""no" 1>&6
628 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
631 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
632 echo "configure:633: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
636 ac_cpp='$CPP $CPPFLAGS'
637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
638 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
639 cross_compiling=$ac_cv_prog_cc_cross
641 cat > conftest.$ac_ext <<EOF
642 #line 643 "configure"
643 #include "confdefs.h"
646 if { (eval echo configure:647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
647 ac_cv_prog_cc_works=yes
648 # If we can't run a trivial program, we are probably using a cross compiler.
649 if (./conftest; exit) 2>/dev/null; then
650 ac_cv_prog_cc_cross=no
652 ac_cv_prog_cc_cross=yes
655 echo "configure: failed program was:" >&5
656 cat conftest.$ac_ext >&5
657 ac_cv_prog_cc_works=no
661 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
662 if test $ac_cv_prog_cc_works = no; then
663 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
665 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
666 echo "configure:667: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
667 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
668 cross_compiling=$ac_cv_prog_cc_cross
670 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
671 echo "configure:672: checking whether we are using GNU C" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 cat > conftest.c <<EOF
680 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
687 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
689 if test $ac_cv_prog_gcc = yes; then
691 ac_test_CFLAGS="${CFLAGS+set}"
692 ac_save_CFLAGS="$CFLAGS"
694 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${CC-cc} accepts -g" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 echo 'void f(){}' > conftest.c
700 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
709 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
710 if test "$ac_test_CFLAGS" = set; then
711 CFLAGS="$ac_save_CFLAGS"
712 elif test $ac_cv_prog_cc_g = yes; then
719 test "${CFLAGS+set}" = set || CFLAGS="-g"
723 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
724 if test -f $ac_dir/install-sh; then
726 ac_install_sh="$ac_aux_dir/install-sh -c"
728 elif test -f $ac_dir/install.sh; then
730 ac_install_sh="$ac_aux_dir/install.sh -c"
734 if test -z "$ac_aux_dir"; then
735 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
737 ac_config_guess=$ac_aux_dir/config.guess
738 ac_config_sub=$ac_aux_dir/config.sub
739 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
741 # Find a good install program. We prefer a C program (faster),
742 # so one script is as good as another. But avoid the broken or
743 # incompatible versions:
744 # SysV /etc/install, /usr/sbin/install
745 # SunOS /usr/etc/install
748 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
749 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
750 # ./install, which can be erroneously created by make from ./install.sh.
751 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
752 echo "configure:753: checking for a BSD compatible install" >&5
753 if test -z "$INSTALL"; then
754 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
758 for ac_dir in $PATH; do
759 # Account for people who put trailing slashes in PATH elements.
761 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
763 # OSF1 and SCO ODT 3.0 have their own names for install.
764 for ac_prog in ginstall installbsd scoinst install; do
765 if test -f $ac_dir/$ac_prog; then
766 if test $ac_prog = install &&
767 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
768 # AIX install. It has an incompatible calling convention.
769 # OSF/1 installbsd also uses dspmsg, but is usable.
772 ac_cv_path_install="$ac_dir/$ac_prog -c"
783 if test "${ac_cv_path_install+set}" = set; then
784 INSTALL="$ac_cv_path_install"
786 # As a last resort, use the slow shell script. We don't cache a
787 # path for INSTALL within a source directory, because that will
788 # break other packages using the cache if that directory is
789 # removed, or if the path is relative.
790 INSTALL="$ac_install_sh"
793 echo "$ac_t""$INSTALL" 1>&6
795 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
796 # It thinks the first close brace ends the variable substitution.
797 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801 # Extract the first word of "ranlib", so it can be a program name with args.
802 set dummy ranlib; ac_word=$2
803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
804 echo "configure:805: checking for $ac_word" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 if test -n "$RANLIB"; then
809 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
812 for ac_dir in $PATH; do
813 test -z "$ac_dir" && ac_dir=.
814 if test -f $ac_dir/$ac_word; then
815 ac_cv_prog_RANLIB="ranlib"
820 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
823 RANLIB="$ac_cv_prog_RANLIB"
824 if test -n "$RANLIB"; then
825 echo "$ac_t""$RANLIB" 1>&6
827 echo "$ac_t""no" 1>&6
830 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${MAKE-make} sets \${MAKE}" >&5
832 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
833 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 cat > conftestmake <<\EOF
838 @echo 'ac_maketemp="${MAKE}"'
840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
841 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
842 if test -n "$ac_maketemp"; then
843 eval ac_cv_prog_make_${ac_make}_set=yes
845 eval ac_cv_prog_make_${ac_make}_set=no
849 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
850 echo "$ac_t""yes" 1>&6
853 echo "$ac_t""no" 1>&6
854 SET_MAKE="MAKE=${MAKE-make}"
858 if test "$athena" = true; then
860 with_readline=/mit/gnu
862 prefix=/afs/athena.mit.edu/system/moira
863 bindir=$prefix/arch/$ATHENA_SYS/bin
867 # We currently just don't support changing this
871 # Athena-local policy decisions
872 echo $ac_n "checking for Athena""... $ac_c" 1>&6
873 echo "configure:874: checking for Athena" >&5
874 # Check whether --enable-athena or --disable-athena was given.
875 if test "${enable_athena+set}" = set; then
876 enableval="$enable_athena"
879 if test "$athena" = true; then
886 echo "$ac_t""$enableval" 1>&6
887 if test "$enableval" = yes; then
889 cat >> confdefs.h <<\EOF
896 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
902 # Networking libraries
903 echo "checking network libraries..." 1>&6
904 echo "configure:905: checking network libraries..." >&5
905 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
906 echo "configure:907: checking for gethostbyname" >&5
907 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 /* System header to define __stub macros and hopefully few prototypes,
914 which can conflict with char gethostbyname(); below. */
916 /* Override any gcc2 internal prototype to avoid an error. */
917 /* We use char because int might match the return type of a gcc2
918 builtin and then its argument prototype would still apply. */
919 char gethostbyname();
923 /* The GNU C library defines this for functions which it implements
924 to always fail with ENOSYS. Some functions are actually named
925 something starting with __ and the normal name is an alias. */
926 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
934 if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
936 eval "ac_cv_func_gethostbyname=yes"
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
941 eval "ac_cv_func_gethostbyname=no"
946 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
947 echo "$ac_t""yes" 1>&6
950 echo "$ac_t""no" 1>&6
951 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
952 echo "configure:953: checking for gethostbyname in -lnsl" >&5
953 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
959 cat > conftest.$ac_ext <<EOF
960 #line 961 "configure"
961 #include "confdefs.h"
962 /* Override any gcc2 internal prototype to avoid an error. */
963 /* We use char because int might match the return type of a gcc2
964 builtin and then its argument prototype would still apply. */
965 char gethostbyname();
971 if { (eval echo configure:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
973 eval "ac_cv_lib_$ac_lib_var=yes"
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
978 eval "ac_cv_lib_$ac_lib_var=no"
984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
985 echo "$ac_t""yes" 1>&6
986 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
988 cat >> confdefs.h <<EOF
995 echo "$ac_t""no" 1>&6
996 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
997 echo "configure:998: checking for gethostbyname in -lresolv" >&5
998 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 ac_save_LIBS="$LIBS"
1003 LIBS="-lresolv $LIBS"
1004 cat > conftest.$ac_ext <<EOF
1005 #line 1006 "configure"
1006 #include "confdefs.h"
1007 /* Override any gcc2 internal prototype to avoid an error. */
1008 /* We use char because int might match the return type of a gcc2
1009 builtin and then its argument prototype would still apply. */
1010 char gethostbyname();
1016 if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1018 eval "ac_cv_lib_$ac_lib_var=yes"
1020 echo "configure: failed program was:" >&5
1021 cat conftest.$ac_ext >&5
1023 eval "ac_cv_lib_$ac_lib_var=no"
1026 LIBS="$ac_save_LIBS"
1029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1030 echo "$ac_t""yes" 1>&6
1031 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1033 cat >> confdefs.h <<EOF
1034 #define $ac_tr_lib 1
1037 LIBS="-lresolv $LIBS"
1040 echo "$ac_t""no" 1>&6
1047 echo $ac_n "checking for socket""... $ac_c" 1>&6
1048 echo "configure:1049: checking for socket" >&5
1049 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 /* System header to define __stub macros and hopefully few prototypes,
1056 which can conflict with char socket(); below. */
1058 /* Override any gcc2 internal prototype to avoid an error. */
1059 /* We use char because int might match the return type of a gcc2
1060 builtin and then its argument prototype would still apply. */
1065 /* The GNU C library defines this for functions which it implements
1066 to always fail with ENOSYS. Some functions are actually named
1067 something starting with __ and the normal name is an alias. */
1068 #if defined (__stub_socket) || defined (__stub___socket)
1076 if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1078 eval "ac_cv_func_socket=yes"
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1083 eval "ac_cv_func_socket=no"
1088 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1089 echo "$ac_t""yes" 1>&6
1092 echo "$ac_t""no" 1>&6
1093 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1094 echo "configure:1095: checking for socket in -lsocket" >&5
1095 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 ac_save_LIBS="$LIBS"
1100 LIBS="-lsocket $LIBS"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1104 /* Override any gcc2 internal prototype to avoid an error. */
1105 /* We use char because int might match the return type of a gcc2
1106 builtin and then its argument prototype would still apply. */
1113 if { (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1115 eval "ac_cv_lib_$ac_lib_var=yes"
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1120 eval "ac_cv_lib_$ac_lib_var=no"
1123 LIBS="$ac_save_LIBS"
1126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1127 echo "$ac_t""yes" 1>&6
1128 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1130 cat >> confdefs.h <<EOF
1131 #define $ac_tr_lib 1
1134 LIBS="-lsocket $LIBS"
1137 echo "$ac_t""no" 1>&6
1138 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1139 echo "configure:1140: checking for socket in -lsocket" >&5
1140 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 ac_save_LIBS="$LIBS"
1145 LIBS="-lsocket -lnsl $LIBS"
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 /* Override any gcc2 internal prototype to avoid an error. */
1150 /* We use char because int might match the return type of a gcc2
1151 builtin and then its argument prototype would still apply. */
1158 if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1160 eval "ac_cv_lib_$ac_lib_var=yes"
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1165 eval "ac_cv_lib_$ac_lib_var=no"
1168 LIBS="$ac_save_LIBS"
1171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1172 echo "$ac_t""yes" 1>&6
1173 LIBS="-lsocket -lnsl $LIBS"
1175 echo "$ac_t""no" 1>&6
1184 # com_err (required, but can be built)
1185 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1186 echo "configure:1187: checking for com_err" >&5
1187 # Check whether --with-com_err or --without-com_err was given.
1188 if test "${with_com_err+set}" = set; then
1189 withval="$with_com_err"
1190 echo "$ac_t""$withval" 1>&6
1191 if test $withval = "no"; then
1192 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1194 if test $withval != "yes"; then
1198 *-I$withval/include*) ;;
1199 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1203 case $PRO_C_INCLUDES in
1204 *INCLUDE=$withval/include*) ;;
1205 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1211 *-L$withval/lib*) ;;
1212 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1216 COMPILE_ET=compile_et
1218 echo "$ac_t""util/et" 1>&6
1219 COM_ERR_SUBDIR=util/et;
1223 *-I`pwd`/util/et*) ;;
1224 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1228 case $PRO_C_INCLUDES in
1229 *INCLUDE=`pwd`/util/et*) ;;
1230 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1236 *-L`pwd`/util/et*) ;;
1237 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1240 COMPILE_ET=`pwd`/util/et/compile_et
1241 subdirs="$COM_ERR_SUBDIR"
1248 # Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
1249 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1250 echo "configure:1251: checking for Kerberos 4" >&5
1251 # Check whether --with-krb4 or --without-krb4 was given.
1252 if test "${with_krb4+set}" = set; then
1253 withval="$with_krb4"
1259 echo "$ac_t""$krb4" 1>&6
1260 if test $krb4 = "no"; then
1261 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1263 if test "$krb4" != yes; then
1267 *-I$krb4/include*) ;;
1268 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1272 case $PRO_C_INCLUDES in
1273 *INCLUDE=$krb4/include*) ;;
1274 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1278 if test -d "$krb4/include/kerberosIV"; then
1282 *-I$krb4/include/kerberosIV*) ;;
1283 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1287 case $PRO_C_INCLUDES in
1288 *INCLUDE=$krb4/include/kerberosIV*) ;;
1289 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1297 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1300 elif test -d /usr/include/kerberosIV; then
1304 *-I/usr/include/kerberosIV*) ;;
1305 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1309 case $PRO_C_INCLUDES in
1310 *INCLUDE=/usr/include/kerberosIV*) ;;
1311 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1316 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1317 echo "configure:1318: checking for krb_rd_req in -lkrb4" >&5
1318 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 ac_save_LIBS="$LIBS"
1323 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
1324 cat > conftest.$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1327 /* Override any gcc2 internal prototype to avoid an error. */
1328 /* We use char because int might match the return type of a gcc2
1329 builtin and then its argument prototype would still apply. */
1336 if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1338 eval "ac_cv_lib_$ac_lib_var=yes"
1340 echo "configure: failed program was:" >&5
1341 cat conftest.$ac_ext >&5
1343 eval "ac_cv_lib_$ac_lib_var=no"
1346 LIBS="$ac_save_LIBS"
1349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1350 echo "$ac_t""yes" 1>&6
1351 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"
1353 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1355 echo "configure:1356: checking for krb_rd_req in -lkrb" >&5
1356 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 ac_save_LIBS="$LIBS"
1361 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 /* Override any gcc2 internal prototype to avoid an error. */
1366 /* We use char because int might match the return type of a gcc2
1367 builtin and then its argument prototype would still apply. */
1374 if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1376 eval "ac_cv_lib_$ac_lib_var=yes"
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1381 eval "ac_cv_lib_$ac_lib_var=no"
1384 LIBS="$ac_save_LIBS"
1387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1388 echo "$ac_t""yes" 1>&6
1389 KRB4_LIBS="-lkrb -ldes"
1391 echo "$ac_t""no" 1>&6
1392 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1398 echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6
1399 echo "configure:1400: checking for Kerberos 5" >&5
1400 # Check whether --with-krb5 or --without-krb5 was given.
1401 if test "${with_krb5+set}" = set; then
1402 withval="$with_krb5"
1408 echo "$ac_t""$krb5" 1>&6
1409 if test "$krb5" != no; then
1411 if test "$krb5" != yes; then
1412 REG_SVR_INCLUDES=-I$krb5/include
1413 REG_SVR_LIBS=-L$krb5/lib
1415 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -lcrypto"
1424 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1425 echo "configure:1426: checking for Hesiod" >&5
1426 # Check whether --with-hesiod or --without-hesiod was given.
1427 if test "${with_hesiod+set}" = set; then
1428 withval="$with_hesiod"
1434 echo "$ac_t""$hesiod" 1>&6
1435 if test "$hesiod" != no; then
1436 if test "$hesiod" != yes; then
1440 *-I$hesiod/include*) ;;
1441 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1445 case $PRO_C_INCLUDES in
1446 *INCLUDE=$hesiod/include*) ;;
1447 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1454 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1458 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1459 echo "configure:1460: checking for res_send" >&5
1460 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* System header to define __stub macros and hopefully few prototypes,
1467 which can conflict with char res_send(); below. */
1469 /* Override any gcc2 internal prototype to avoid an error. */
1470 /* We use char because int might match the return type of a gcc2
1471 builtin and then its argument prototype would still apply. */
1476 /* The GNU C library defines this for functions which it implements
1477 to always fail with ENOSYS. Some functions are actually named
1478 something starting with __ and the normal name is an alias. */
1479 #if defined (__stub_res_send) || defined (__stub___res_send)
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1489 eval "ac_cv_func_res_send=yes"
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 eval "ac_cv_func_res_send=no"
1499 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1500 echo "$ac_t""yes" 1>&6
1503 echo "$ac_t""no" 1>&6
1504 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1505 echo "configure:1506: checking for res_send in -lresolv" >&5
1506 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 ac_save_LIBS="$LIBS"
1511 LIBS="-lresolv $LIBS"
1512 cat > conftest.$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1526 eval "ac_cv_lib_$ac_lib_var=yes"
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1531 eval "ac_cv_lib_$ac_lib_var=no"
1534 LIBS="$ac_save_LIBS"
1537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1538 echo "$ac_t""yes" 1>&6
1539 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1540 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1541 cat >> confdefs.h <<EOF
1542 #define $ac_tr_lib 1
1545 LIBS="-lresolv $LIBS"
1548 echo "$ac_t""no" 1>&6
1553 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1554 echo "configure:1555: checking for hes_resolve in -lhesiod" >&5
1555 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 ac_save_LIBS="$LIBS"
1560 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */
1573 if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1575 eval "ac_cv_lib_$ac_lib_var=yes"
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1580 eval "ac_cv_lib_$ac_lib_var=no"
1583 LIBS="$ac_save_LIBS"
1586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1590 echo "$ac_t""no" 1>&6
1591 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1595 cat >> confdefs.h <<\EOF
1596 #define HAVE_HESIOD 1
1601 *DEFINE=HAVE_HESIOD*) ;;
1602 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1609 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1610 echo "configure:1611: checking for Zephyr" >&5
1611 # Check whether --with-zephyr or --without-zephyr was given.
1612 if test "${with_zephyr+set}" = set; then
1613 withval="$with_zephyr"
1619 echo "$ac_t""$zephyr" 1>&6
1620 if test "$zephyr" != no; then
1621 if test "$zephyr" != yes; then
1625 *-I$zephyr/include*) ;;
1626 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1630 case $PRO_C_INCLUDES in
1631 *INCLUDE=$zephyr/include*) ;;
1632 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1639 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1643 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1644 echo "configure:1645: checking for ZInitialize in -lzephyr" >&5
1645 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 ac_save_LIBS="$LIBS"
1650 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 /* Override any gcc2 internal prototype to avoid an error. */
1655 /* We use char because int might match the return type of a gcc2
1656 builtin and then its argument prototype would still apply. */
1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1665 eval "ac_cv_lib_$ac_lib_var=yes"
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 eval "ac_cv_lib_$ac_lib_var=no"
1673 LIBS="$ac_save_LIBS"
1676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1677 echo "$ac_t""yes" 1>&6
1680 echo "$ac_t""no" 1>&6
1681 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1685 cat >> confdefs.h <<\EOF
1686 #define HAVE_ZEPHYR 1
1691 *DEFINE=HAVE_ZEPHYR*) ;;
1692 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1698 # GDSS support (default: build util/gdss if present)
1699 echo $ac_n "checking for GDSS""... $ac_c" 1>&6
1700 echo "configure:1701: checking for GDSS" >&5
1701 # Check whether --with-gdss or --without-gdss was given.
1702 if test "${with_gdss+set}" = set; then
1703 withval="$with_gdss"
1705 GDSS_CPPFLAGS="-I$gdss/include"
1706 GDSS_LIBS="-L$gdss/lib -lgdss"
1708 if test -d $srcdir/util/gdss; then
1709 gdss=$srcdir/util/gdss
1710 GDSS_SUBDIR=util/gdss
1711 GDSS_OUTPUT_FILES="util/gdss/Makefile util/gdss/lib/Makefile \
1712 util/gdss/lib/crypto/Makefile util/gdss/lib/crypto/bignum/Makefile \
1713 util/gdss/lib/crypto/algorithm/Makefile"
1714 # autoconf can't deal with creating util/gdss if util doesn't exist
1715 if test ! -d util; then
1718 GDSS_CPPFLAGS='-I$(SRCTOP)/util/gdss/include'
1719 GDSS_LIBS='-L$(BUILDTOP)/util/gdss/lib -lgdss'
1725 echo "$ac_t""$gdss" 1>&6
1726 if test "$gdss" != no; then
1727 GDSS_OBJS='$(GDSS_OBJS)'
1728 GDSS_CFILES='$(GDSS_CFILES)'
1729 GDSS_TARGET='$(GDSS_TARGET)'
1731 cat >> confdefs.h <<\EOF
1737 *DEFINE=HAVE_GDSS*) ;;
1738 *) PRO_C_DEFS=DEFINE=HAVE_GDSS\ $PRO_C_DEFS ;;
1750 # RSAREF support (default: build util/rsaref if present)
1751 echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
1752 echo "configure:1753: checking for RSAREF" >&5
1753 # Check whether --with-rsaref or --without-rsaref was given.
1754 if test "${with_rsaref+set}" = set; then
1755 withval="$with_rsaref"
1757 RSAREF_CPPFLAGS="-I$rsaref/include"
1758 RSAREF_LIBS="$rsaref/lib/rsaref.a"
1760 RSAREF_SUBDIRS=reg_svr
1761 if test -d $srcdir/util/rsaref; then
1762 rsaref=$srcdir/util/rsaref
1763 RSAREF_SUBDIRS="util/rsaref reg_svr"
1764 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1765 # autoconf can't deal with creating util/rsaref if util doesn't exist
1766 if test ! -d util; then
1769 RSAREF_CPPFLAGS="-I$(SRCTOP)/util/rsaref"
1770 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
1776 echo "$ac_t""$rsaref" 1>&6
1777 if test "$rsaref" != no; then
1779 cat >> confdefs.h <<\EOF
1780 #define HAVE_RSAREF 1
1785 *DEFINE=HAVE_RSAREF*) ;;
1786 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1795 # Oracle (default: yes, if $ORACLE_HOME is set)
1796 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1797 echo "configure:1798: checking for Oracle" >&5
1798 # Check whether --with-oracle or --without-oracle was given.
1799 if test "${with_oracle+set}" = set; then
1800 withval="$with_oracle"
1803 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1810 echo "$ac_t""$oracle" 1>&6
1811 if test "$oracle" != no; then
1812 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1813 SVRSUBDIRS='$(SVRDIRS)'
1814 SERVER_OUTPUT_FILES="db/Makefile server/Makefile afssync/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile reg_svr/Makefile regtape/Makefile"
1815 PRO_C=$oracle/bin/proc
1816 PRO_C_OPTS=CODE=ANSI_C
1826 echo $ac_n "checking for AFS""... $ac_c" 1>&6
1827 echo "configure:1828: checking for AFS" >&5
1828 # Check whether --with-afs or --without-afs was given.
1829 if test "${with_afs+set}" = set; then
1836 echo "$ac_t""$afs" 1>&6
1837 if test "$afs" != no -a "$oracle" != no; then
1838 if test "$afs" != yes; then
1839 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
1840 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
1841 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
1844 echo $ac_n "checking for insque""... $ac_c" 1>&6
1845 echo "configure:1846: checking for insque" >&5
1846 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char insque(); below. */
1855 /* Override any gcc2 internal prototype to avoid an error. */
1856 /* We use char because int might match the return type of a gcc2
1857 builtin and then its argument prototype would still apply. */
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined (__stub_insque) || defined (__stub___insque)
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1875 eval "ac_cv_func_insque=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1880 eval "ac_cv_func_insque=no"
1885 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1889 echo "$ac_t""no" 1>&6
1890 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
1891 echo "configure:1892: checking for insque in -lcompat" >&5
1892 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
1893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 ac_save_LIBS="$LIBS"
1897 LIBS="-lcompat $LIBS"
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 /* Override any gcc2 internal prototype to avoid an error. */
1902 /* We use char because int might match the return type of a gcc2
1903 builtin and then its argument prototype would still apply. */
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1912 eval "ac_cv_lib_$ac_lib_var=yes"
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 eval "ac_cv_lib_$ac_lib_var=no"
1920 LIBS="$ac_save_LIBS"
1923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 AFS_EXTRA_LIBS="-lcompat"
1927 echo "$ac_t""no" 1>&6
1928 { echo "configure: error: insque not found" 1>&2; exit 1; }
1933 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1934 echo "configure:1935: checking for sigvec" >&5
1935 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char sigvec(); below. */
1944 /* Override any gcc2 internal prototype to avoid an error. */
1945 /* We use char because int might match the return type of a gcc2
1946 builtin and then its argument prototype would still apply. */
1951 /* The GNU C library defines this for functions which it implements
1952 to always fail with ENOSYS. Some functions are actually named
1953 something starting with __ and the normal name is an alias. */
1954 #if defined (__stub_sigvec) || defined (__stub___sigvec)
1962 if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1964 eval "ac_cv_func_sigvec=yes"
1966 echo "configure: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1969 eval "ac_cv_func_sigvec=no"
1974 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1978 echo "$ac_t""no" 1>&6
1979 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
1980 echo "configure:1981: checking for sigvec in -lucb" >&5
1981 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
1982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 ac_save_LIBS="$LIBS"
1986 LIBS="-lucb -L/usr/ucblib $LIBS"
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* Override any gcc2 internal prototype to avoid an error. */
1991 /* We use char because int might match the return type of a gcc2
1992 builtin and then its argument prototype would still apply. */
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2001 eval "ac_cv_lib_$ac_lib_var=yes"
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2006 eval "ac_cv_lib_$ac_lib_var=no"
2009 LIBS="$ac_save_LIBS"
2012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
2016 echo "$ac_t""no" 1>&6
2022 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
2023 echo "configure:2024: checking for pioctl in -lsys" >&5
2024 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
2025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 ac_save_LIBS="$LIBS"
2029 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2042 if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2044 eval "ac_cv_lib_$ac_lib_var=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2049 eval "ac_cv_lib_$ac_lib_var=no"
2052 LIBS="$ac_save_LIBS"
2055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2059 echo "$ac_t""no" 1>&6
2060 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2064 cat >> confdefs.h <<\EOF
2070 *DEFINE=HAVE_AFS*) ;;
2071 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2083 echo "checking for GNU readline..." 1>&6
2084 echo "configure:2085: checking for GNU readline..." >&5
2085 # Check whether --with-readline or --without-readline was given.
2086 if test "${with_readline+set}" = set; then
2087 withval="$with_readline"
2090 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2091 echo "configure:2092: checking for readline in -lreadline" >&5
2092 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 ac_save_LIBS="$LIBS"
2097 LIBS="-lreadline -ltermcap $LIBS"
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2101 /* Override any gcc2 internal prototype to avoid an error. */
2102 /* We use char because int might match the return type of a gcc2
2103 builtin and then its argument prototype would still apply. */
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2112 eval "ac_cv_lib_$ac_lib_var=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 eval "ac_cv_lib_$ac_lib_var=no"
2120 LIBS="$ac_save_LIBS"
2123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2127 echo "$ac_t""no" 1>&6
2133 if test "$readline" != no; then
2134 if test "$readline" != yes; then
2135 READLINE_CPPFLAGS="-I$readline/include/readline -DHAVE_READLINE"
2136 READLINE_LIBS="-L$readline/lib -lreadline -ltermcap"
2144 echo "checking for curses" 1>&6
2145 echo "configure:2146: checking for curses" >&5
2146 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2147 echo "configure:2148: checking for main in -lcurses" >&5
2148 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 ac_save_LIBS="$LIBS"
2153 LIBS="-lcurses $LIBS"
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2164 eval "ac_cv_lib_$ac_lib_var=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_lib_$ac_lib_var=no"
2172 LIBS="$ac_save_LIBS"
2175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2179 echo "$ac_t""no" 1>&6
2180 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2181 echo "configure:2182: checking for main in -lncurses" >&5
2182 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS="$LIBS"
2187 LIBS="-lncurses $LIBS"
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2196 if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2198 eval "ac_cv_lib_$ac_lib_var=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 eval "ac_cv_lib_$ac_lib_var=no"
2206 LIBS="$ac_save_LIBS"
2209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2213 echo "$ac_t""no" 1>&6
2218 if test -n "$curses"; then
2221 echo "checking if curses needs termcap" 1>&6
2222 echo "configure:2223: checking if curses needs termcap" >&5
2223 if test "$cross_compiling" = yes; then
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2230 main(int argc, char **argv)
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2239 CURSES_LIBS="-l$curses"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 LIBS="-l$curses -ltermcap"
2245 if test "$cross_compiling" = yes; then
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2252 main(int argc, char **argv)
2259 if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2261 CURSES_LIBS="-l$curses -ltermcap"
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2277 if test -n "$CURSES_LIBS"; then
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2285 WINDOW *w; getmaxx(w);
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2300 WINDOW *w; w->_maxx;
2303 if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2316 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2317 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2319 echo "configure: warning: Couldn't find -lcurses" 1>&2
2326 for ac_func in getusershell
2328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_func" >&5
2330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 /* System header to define __stub macros and hopefully few prototypes,
2337 which can conflict with char $ac_func(); below. */
2339 /* Override any gcc2 internal prototype to avoid an error. */
2340 /* We use char because int might match the return type of a gcc2
2341 builtin and then its argument prototype would still apply. */
2346 /* The GNU C library defines this for functions which it implements
2347 to always fail with ENOSYS. Some functions are actually named
2348 something starting with __ and the normal name is an alias. */
2349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2359 eval "ac_cv_func_$ac_func=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 eval "ac_cv_func_$ac_func=no"
2369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2370 echo "$ac_t""yes" 1>&6
2371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2372 cat >> confdefs.h <<EOF
2373 #define $ac_tr_func 1
2377 echo "$ac_t""no" 1>&6
2382 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2383 echo "configure:2384: checking how to run the C preprocessor" >&5
2384 # On Suns, sometimes $CPP names a directory.
2385 if test -n "$CPP" && test -d "$CPP"; then
2388 if test -z "$CPP"; then
2389 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 # This must be in double quotes, not single quotes, because CPP may get
2393 # substituted into the Makefile and "${CC-cc}" will confuse make.
2395 # On the NeXT, cc -E runs the code through the compiler's parser,
2396 # not just through cpp.
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out`
2406 if test -z "$ac_err"; then
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2413 CPP="${CC-cc} -E -traditional-cpp"
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2421 { (eval echo configure:2422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2422 ac_err=`grep -v '^ *+' conftest.out`
2423 if test -z "$ac_err"; then
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2435 ac_cv_prog_CPP="$CPP"
2437 CPP="$ac_cv_prog_CPP"
2439 ac_cv_prog_CPP="$CPP"
2441 echo "$ac_t""$CPP" 1>&6
2443 ac_safe=`echo "crypt.h" | sed 'y%./+-%__p_%'`
2444 echo $ac_n "checking for crypt.h""... $ac_c" 1>&6
2445 echo "configure:2446: checking for crypt.h" >&5
2446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455 { (eval echo configure:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456 ac_err=`grep -v '^ *+' conftest.out`
2457 if test -z "$ac_err"; then
2459 eval "ac_cv_header_$ac_safe=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_header_$ac_safe=no"
2469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2470 echo "$ac_t""yes" 1>&6
2471 CRYPT_CPPFLAGS=-DHAVE_CRYPT_H
2473 echo "$ac_t""no" 1>&6
2476 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2477 echo "configure:2478: checking for crypt" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char crypt(); below. */
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_crypt) || defined (__stub___crypt)
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2507 eval "ac_cv_func_crypt=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_func_crypt=no"
2517 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2521 echo "$ac_t""no" 1>&6
2522 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2523 echo "configure:2524: checking for crypt in -lcrypt" >&5
2524 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 ac_save_LIBS="$LIBS"
2529 LIBS="-lcrypt $LIBS"
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 eval "ac_cv_lib_$ac_lib_var=no"
2552 LIBS="$ac_save_LIBS"
2555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2559 echo "$ac_t""no" 1>&6
2568 case $PRO_C_INCLUDES in
2569 *INCLUDE='$(srcdir)'*) ;;
2570 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2576 *-I'$(SRCTOP)/include'*) ;;
2577 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2581 case $PRO_C_INCLUDES in
2582 *INCLUDE='$(SRCTOP)/include'*) ;;
2583 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2590 *-I'$(SRCTOP)/lib'*) ;;
2591 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2595 case $PRO_C_INCLUDES in
2596 *INCLUDE='$(SRCTOP)/lib'*) ;;
2597 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2604 *-I'$(BUILDTOP)/lib'*) ;;
2605 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2609 case $PRO_C_INCLUDES in
2610 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2611 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2618 *-I'$(BUILDTOP)/db'*) ;;
2619 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2623 case $PRO_C_INCLUDES in
2624 *INCLUDE='$(BUILDTOP)/db'*) ;;
2625 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2633 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
2637 case $PRO_C_INCLUDES in
2638 *INCLUDE='$(srcdir)'*) ;;
2639 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2643 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2644 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2645 LIBS="-lmoira $KLIBS"
2649 cat > confcache <<\EOF
2650 # This file is a shell script that caches the results of configure
2651 # tests run on this system so they can be shared between configure
2652 # scripts and configure runs. It is not useful on other systems.
2653 # If it contains results you don't want to keep, you may remove or edit it.
2655 # By default, configure uses ./config.cache as the cache file,
2656 # creating it if it does not exist already. You can give configure
2657 # the --cache-file=FILE option to use a different cache file; that is
2658 # what configure does when it calls configure scripts in
2659 # subdirectories, so they share the cache.
2660 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2661 # config.status only pays attention to the cache file if you give it the
2662 # --recheck option to rerun configure.
2665 # The following way of writing the cache mishandles newlines in values,
2666 # but we know of no workaround that is simple, portable, and efficient.
2667 # So, don't put newlines in cache variables' values.
2668 # Ultrix sh set writes to stderr and can't be redirected directly,
2669 # and sets the high bit in the cache file unless we assign to the vars.
2671 case `(ac_space=' '; set) 2>&1` in
2673 # `set' does not quote correctly, so add quotes (double-quote substitution
2674 # turns \\\\ into \\, and sed turns \\ into \).
2676 -e "s/'/'\\\\''/g" \
2677 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2680 # `set' quotes correctly as required by POSIX, so do not add quotes.
2681 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2684 if cmp -s $cache_file confcache; then
2687 if test -w $cache_file; then
2688 echo "updating cache $cache_file"
2689 cat confcache > $cache_file
2691 echo "not updating unwritable cache $cache_file"
2696 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2699 # Let make expand exec_prefix.
2700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2702 # Any assignment to VPATH causes Sun make to only execute
2703 # the first set of double-colon rules, so remove it if not needed.
2704 # If there is a colon in the path, we need to keep it.
2705 if test "x$srcdir" = x.; then
2706 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2709 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2711 # Transform confdefs.h into DEFS.
2712 # Protect against shell expansion while executing Makefile rules.
2713 # Protect against Makefile macro expansion.
2714 cat > conftest.defs <<\EOF
2715 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2716 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2721 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2725 # Without the "./", some shells look in PATH for config.status.
2726 : ${CONFIG_STATUS=./config.status}
2728 echo creating $CONFIG_STATUS
2729 rm -f $CONFIG_STATUS
2730 cat > $CONFIG_STATUS <<EOF
2732 # Generated automatically by configure.
2733 # Run this file to recreate the current configuration.
2734 # This directory was configured as follows,
2735 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2737 # $0 $ac_configure_args
2739 # Compiler output produced by configure, useful for debugging
2740 # configure, is in ./config.log if it exists.
2742 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2745 case "\$ac_option" in
2746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2747 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2748 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2749 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2750 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2752 -help | --help | --hel | --he | --h)
2753 echo "\$ac_cs_usage"; exit 0 ;;
2754 *) echo "\$ac_cs_usage"; exit 1 ;;
2758 ac_given_srcdir=$srcdir
2759 ac_given_INSTALL="$INSTALL"
2761 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2762 clients/addusr/Makefile clients/blanche/Makefile \
2763 clients/mailmaint/Makefile clients/moira/Makefile \
2764 clients/mrcheck/Makefile clients/mrtest/Makefile \
2765 clients/passwd/Makefile clients/userreg/Makefile \
2766 update/Makefile man/Makefile \
2767 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2769 cat >> $CONFIG_STATUS <<EOF
2771 # Protect against being on the right side of a sed subst in config.status.
2772 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2773 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2776 s%@CFLAGS@%$CFLAGS%g
2777 s%@CPPFLAGS@%$CPPFLAGS%g
2778 s%@CXXFLAGS@%$CXXFLAGS%g
2780 s%@LDFLAGS@%$LDFLAGS%g
2782 s%@exec_prefix@%$exec_prefix%g
2783 s%@prefix@%$prefix%g
2784 s%@program_transform_name@%$program_transform_name%g
2785 s%@bindir@%$bindir%g
2786 s%@sbindir@%$sbindir%g
2787 s%@libexecdir@%$libexecdir%g
2788 s%@datadir@%$datadir%g
2789 s%@sysconfdir@%$sysconfdir%g
2790 s%@sharedstatedir@%$sharedstatedir%g
2791 s%@localstatedir@%$localstatedir%g
2792 s%@libdir@%$libdir%g
2793 s%@includedir@%$includedir%g
2794 s%@oldincludedir@%$oldincludedir%g
2795 s%@infodir@%$infodir%g
2796 s%@mandir@%$mandir%g
2798 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2799 s%@INSTALL_DATA@%$INSTALL_DATA%g
2800 s%@RANLIB@%$RANLIB%g
2801 s%@SET_MAKE@%$SET_MAKE%g
2802 s%@mrbindir@%$mrbindir%g
2803 s%@subdirs@%$subdirs%g
2804 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
2805 s%@COMPILE_ET@%$COMPILE_ET%g
2806 s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g
2807 s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g
2808 s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g
2809 s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g
2810 s%@GDSS_LIBS@%$GDSS_LIBS%g
2811 s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g
2812 s%@GDSS_OBJS@%$GDSS_OBJS%g
2813 s%@GDSS_CFILES@%$GDSS_CFILES%g
2814 s%@GDSS_TARGET@%$GDSS_TARGET%g
2815 s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
2816 s%@RSAREF_LIBS@%$RSAREF_LIBS%g
2817 s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
2819 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
2820 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
2821 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
2822 s%@SQL_LIBS@%$SQL_LIBS%g
2823 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
2824 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
2825 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
2826 s%@AFS_LIBS@%$AFS_LIBS%g
2827 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
2828 s%@AFS_DIR@%$AFS_DIR%g
2829 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
2830 s%@READLINE_LIBS@%$READLINE_LIBS%g
2831 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
2832 s%@CURSES_LIBS@%$CURSES_LIBS%g
2833 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
2835 s%@CRYPT_CPPFLAGS@%$CRYPT_CPPFLAGS%g
2836 s%@CRYPT_LIBS@%$CRYPT_LIBS%g
2842 cat >> $CONFIG_STATUS <<\EOF
2844 # Split the substitutions into bite-sized pieces for seds with
2845 # small command number limits, like on Digital OSF/1 and HP-UX.
2846 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2847 ac_file=1 # Number of current file.
2848 ac_beg=1 # First line for current file.
2849 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2852 while $ac_more_lines; do
2853 if test $ac_beg -gt 1; then
2854 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2856 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2858 if test ! -s conftest.s$ac_file; then
2860 rm -f conftest.s$ac_file
2862 if test -z "$ac_sed_cmds"; then
2863 ac_sed_cmds="sed -f conftest.s$ac_file"
2865 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2867 ac_file=`expr $ac_file + 1`
2869 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2872 if test -z "$ac_sed_cmds"; then
2877 cat >> $CONFIG_STATUS <<EOF
2879 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
2880 clients/addusr/Makefile clients/blanche/Makefile \
2881 clients/mailmaint/Makefile clients/moira/Makefile \
2882 clients/mrcheck/Makefile clients/mrtest/Makefile \
2883 clients/passwd/Makefile clients/userreg/Makefile \
2884 update/Makefile man/Makefile \
2885 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"}
2887 cat >> $CONFIG_STATUS <<\EOF
2888 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2891 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2892 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2893 *) ac_file_in="${ac_file}.in" ;;
2896 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2898 # Remove last slash and all that follows it. Not all systems have dirname.
2899 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2900 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2901 # The file is in a subdirectory.
2902 test ! -d "$ac_dir" && mkdir "$ac_dir"
2903 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2904 # A "../" for each directory in $ac_dir_suffix.
2905 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2907 ac_dir_suffix= ac_dots=
2910 case "$ac_given_srcdir" in
2912 if test -z "$ac_dots"; then top_srcdir=.
2913 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2914 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2916 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2917 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2920 case "$ac_given_INSTALL" in
2921 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2922 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2925 echo creating "$ac_file"
2927 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2929 *Makefile*) ac_comsub="1i\\
2930 # $configure_input" ;;
2934 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2936 s%@configure_input@%$configure_input%g
2937 s%@srcdir@%$srcdir%g
2938 s%@top_srcdir@%$top_srcdir%g
2939 s%@INSTALL@%$INSTALL%g
2940 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2945 cat >> $CONFIG_STATUS <<EOF
2948 cat >> $CONFIG_STATUS <<\EOF
2952 chmod +x $CONFIG_STATUS
2953 rm -fr confdefs* $ac_clean_files
2954 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2956 if test "$no_recursion" != yes; then
2958 # Remove --cache-file and --srcdir arguments so they do not pile up.
2959 ac_sub_configure_args=
2961 for ac_arg in $ac_configure_args; do
2962 if test -n "$ac_prev"; then
2967 -cache-file | --cache-file | --cache-fil | --cache-fi \
2968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2969 ac_prev=cache_file ;;
2970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2977 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2981 for ac_config_dir in $COM_ERR_SUBDIR; do
2983 # Do not complain, so a configure script can configure whichever
2984 # parts of a large source tree are present.
2985 if test ! -d $srcdir/$ac_config_dir; then
2989 echo configuring in $ac_config_dir
2994 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2996 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3004 # A "../" for each directory in /$ac_config_dir.
3005 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3008 .) # No --srcdir option. We are building in place.
3009 ac_sub_srcdir=$srcdir ;;
3010 /*) # Absolute path.
3011 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3013 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3016 # Check for guested configure; otherwise get Cygnus style configure.
3017 if test -f $ac_sub_srcdir/configure; then
3018 ac_sub_configure=$ac_sub_srcdir/configure
3019 elif test -f $ac_sub_srcdir/configure.in; then
3020 ac_sub_configure=$ac_configure
3022 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3026 # The recursion is here.
3027 if test -n "$ac_sub_configure"; then
3029 # Make the cache file name correct relative to the subdirectory.
3030 case "$cache_file" in
3031 /*) ac_sub_cache_file=$cache_file ;;
3033 ac_sub_cache_file="$ac_dots$cache_file" ;;
3035 case "$ac_given_INSTALL" in
3036 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3037 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3040 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3041 # The eval makes quoting arguments work.
3042 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3045 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }