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 --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-rsaref=PREFIX Specify location of RSAREF"
29 --with-oracle=PREFIX Specify location of Oracle (for server)"
31 --with-java=PREFIX Specify location of Java libs and headers"
33 --with-ldap=PREFIX Specify location of LDAP libs (for server)"
35 --with-afs=PREFIX Specify location of AFS libs (for server)"
37 --with-readline=PREFIX Specify location of GNU readline"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file=./config.cache
52 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host | --host | --hos | --ho)
215 -host=* | --host=* | --hos=* | --ho=*)
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
336 -site=* | --site=* | --sit=*)
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=patchlevel.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
552 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
553 if test -f $ac_dir/install-sh; then
555 ac_install_sh="$ac_aux_dir/install-sh -c"
557 elif test -f $ac_dir/install.sh; then
559 ac_install_sh="$ac_aux_dir/install.sh -c"
563 if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
566 ac_config_guess=$ac_aux_dir/config.guess
567 ac_config_sub=$ac_aux_dir/config.sub
568 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Make sure we can run config.sub.
572 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
573 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
576 echo $ac_n "checking host system type""... $ac_c" 1>&6
577 echo "configure:578: checking host system type" >&5
580 case "$host_alias" in
584 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
587 *) host_alias=$nonopt ;;
591 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
592 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
595 echo "$ac_t""$host" 1>&6
597 # SO_LDFLAGS setting below is a great big ick.
598 # But it beats sucking in libtool for one small part of the source tree.
621 # Extract the first word of "gcc", so it can be a program name with args.
622 set dummy gcc; ac_word=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
628 if test -n "$CC"; then
629 ac_cv_prog_CC="$CC" # Let the user override the test.
631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
633 for ac_dir in $ac_dummy; do
634 test -z "$ac_dir" && ac_dir=.
635 if test -f $ac_dir/$ac_word; then
644 if test -n "$CC"; then
645 echo "$ac_t""$CC" 1>&6
647 echo "$ac_t""no" 1>&6
650 if test -z "$CC"; then
651 # Extract the first word of "cc", so it can be a program name with args.
652 set dummy cc; ac_word=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
658 if test -n "$CC"; then
659 ac_cv_prog_CC="$CC" # Let the user override the test.
661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
664 for ac_dir in $ac_dummy; do
665 test -z "$ac_dir" && ac_dir=.
666 if test -f $ac_dir/$ac_word; then
667 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
676 if test $ac_prog_rejected = yes; then
677 # We found a bogon in the path, so make sure we never use it.
678 set dummy $ac_cv_prog_CC
680 if test $# -gt 0; then
681 # We chose a different compiler from the bogus one.
682 # However, it has the same basename, so the bogon will be chosen
683 # first if we set CC to just the basename; use the full file name.
685 set dummy "$ac_dir/$ac_word" "$@"
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
696 echo "$ac_t""no" 1>&6
699 if test -z "$CC"; then
702 # Extract the first word of "cl", so it can be a program name with args.
703 set dummy cl; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
714 for ac_dir in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir=.
716 if test -f $ac_dir/$ac_word; then
725 if test -n "$CC"; then
726 echo "$ac_t""$CC" 1>&6
728 echo "$ac_t""no" 1>&6
733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
737 echo "configure:738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
741 ac_cpp='$CPP $CPPFLAGS'
742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
744 cross_compiling=$ac_cv_prog_cc_cross
746 cat > conftest.$ac_ext << EOF
748 #line 749 "configure"
749 #include "confdefs.h"
753 if { (eval echo configure:754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
754 ac_cv_prog_cc_works=yes
755 # If we can't run a trivial program, we are probably using a cross compiler.
756 if (./conftest; exit) 2>/dev/null; then
757 ac_cv_prog_cc_cross=no
759 ac_cv_prog_cc_cross=yes
762 echo "configure: failed program was:" >&5
763 cat conftest.$ac_ext >&5
764 ac_cv_prog_cc_works=no
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp='$CPP $CPPFLAGS'
770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling=$ac_cv_prog_cc_cross
774 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
775 if test $ac_cv_prog_cc_works = no; then
776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
780 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
781 cross_compiling=$ac_cv_prog_cc_cross
783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
784 echo "configure:785: checking whether we are using GNU C" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 cat > conftest.c <<EOF
793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
802 if test $ac_cv_prog_gcc = yes; then
808 ac_test_CFLAGS="${CFLAGS+set}"
809 ac_save_CFLAGS="$CFLAGS"
811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 echo 'void f(){}' > conftest.c
817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
827 if test "$ac_test_CFLAGS" = set; then
828 CFLAGS="$ac_save_CFLAGS"
829 elif test $ac_cv_prog_cc_g = yes; then
830 if test "$GCC" = yes; then
836 if test "$GCC" = yes; then
843 # Find a good install program. We prefer a C program (faster),
844 # so one script is as good as another. But avoid the broken or
845 # incompatible versions:
846 # SysV /etc/install, /usr/sbin/install
847 # SunOS /usr/etc/install
850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
853 # ./install, which can be erroneously created by make from ./install.sh.
854 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
855 echo "configure:856: checking for a BSD compatible install" >&5
856 if test -z "$INSTALL"; then
857 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
861 for ac_dir in $PATH; do
862 # Account for people who put trailing slashes in PATH elements.
864 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
866 # OSF1 and SCO ODT 3.0 have their own names for install.
867 # Don't use installbsd from OSF since it installs stuff as root
869 for ac_prog in ginstall scoinst install; do
870 if test -f $ac_dir/$ac_prog; then
871 if test $ac_prog = install &&
872 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
873 # AIX install. It has an incompatible calling convention.
876 ac_cv_path_install="$ac_dir/$ac_prog -c"
887 if test "${ac_cv_path_install+set}" = set; then
888 INSTALL="$ac_cv_path_install"
890 # As a last resort, use the slow shell script. We don't cache a
891 # path for INSTALL within a source directory, because that will
892 # break other packages using the cache if that directory is
893 # removed, or if the path is relative.
894 INSTALL="$ac_install_sh"
897 echo "$ac_t""$INSTALL" 1>&6
899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
900 # It thinks the first close brace ends the variable substitution.
901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
907 # Extract the first word of "ranlib", so it can be a program name with args.
908 set dummy ranlib; ac_word=$2
909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
910 echo "configure:911: checking for $ac_word" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 if test -n "$RANLIB"; then
915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
919 for ac_dir in $ac_dummy; do
920 test -z "$ac_dir" && ac_dir=.
921 if test -f $ac_dir/$ac_word; then
922 ac_cv_prog_RANLIB="ranlib"
927 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
930 RANLIB="$ac_cv_prog_RANLIB"
931 if test -n "$RANLIB"; then
932 echo "$ac_t""$RANLIB" 1>&6
934 echo "$ac_t""no" 1>&6
937 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
938 echo "configure:939: checking whether ${MAKE-make} sets \${MAKE}" >&5
939 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
940 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 cat > conftestmake <<\EOF
945 @echo 'ac_maketemp="${MAKE}"'
947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
948 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
949 if test -n "$ac_maketemp"; then
950 eval ac_cv_prog_make_${ac_make}_set=yes
952 eval ac_cv_prog_make_${ac_make}_set=no
956 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
957 echo "$ac_t""yes" 1>&6
960 echo "$ac_t""no" 1>&6
961 SET_MAKE="MAKE=${MAKE-make}"
965 if test "$athena" = true; then
967 prefix=/afs/.athena.mit.edu/system/moira
968 bindir=$prefix/arch/$ATHENA_SYS/bin
973 *-I/usr/athena/include*) ;;
974 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
978 case $PRO_C_INCLUDES in
979 *INCLUDE=/usr/athena/include*) ;;
980 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
987 *-I/usr/athena/include/kerberosIV*) ;;
988 *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;;
992 case $PRO_C_INCLUDES in
993 *INCLUDE=/usr/athena/include/kerberosIV*) ;;
994 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;;
1000 *-L/usr/athena/lib*) ;;
1001 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
1006 # We currently just don't support changing this
1010 # Athena-local policy decisions
1011 echo $ac_n "checking for Athena""... $ac_c" 1>&6
1012 echo "configure:1013: checking for Athena" >&5
1013 # Check whether --enable-athena or --disable-athena was given.
1014 if test "${enable_athena+set}" = set; then
1015 enableval="$enable_athena"
1018 if test "$athena" = true; then
1025 echo "$ac_t""$enableval" 1>&6
1026 if test "$enableval" = yes; then
1028 cat >> confdefs.h <<\EOF
1035 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
1041 # Networking libraries
1042 echo "checking network libraries..." 1>&6
1043 echo "configure:1044: checking network libraries..." >&5
1044 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1045 echo "configure:1046: checking for gethostbyname" >&5
1046 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 /* System header to define __stub macros and hopefully few prototypes,
1053 which can conflict with char gethostbyname(); below. */
1055 /* Override any gcc2 internal prototype to avoid an error. */
1056 /* We use char because int might match the return type of a gcc2
1057 builtin and then its argument prototype would still apply. */
1058 char gethostbyname();
1062 /* The GNU C library defines this for functions which it implements
1063 to always fail with ENOSYS. Some functions are actually named
1064 something starting with __ and the normal name is an alias. */
1065 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1073 if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1075 eval "ac_cv_func_gethostbyname=yes"
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1080 eval "ac_cv_func_gethostbyname=no"
1085 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1086 echo "$ac_t""yes" 1>&6
1089 echo "$ac_t""no" 1>&6
1090 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1091 echo "configure:1092: checking for gethostbyname in -lnsl" >&5
1092 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 ac_save_LIBS="$LIBS"
1098 cat > conftest.$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1101 /* Override any gcc2 internal prototype to avoid an error. */
1102 /* We use char because int might match the return type of a gcc2
1103 builtin and then its argument prototype would still apply. */
1104 char gethostbyname();
1110 if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1112 eval "ac_cv_lib_$ac_lib_var=yes"
1114 echo "configure: failed program was:" >&5
1115 cat conftest.$ac_ext >&5
1117 eval "ac_cv_lib_$ac_lib_var=no"
1120 LIBS="$ac_save_LIBS"
1123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1124 echo "$ac_t""yes" 1>&6
1125 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1127 cat >> confdefs.h <<EOF
1128 #define $ac_tr_lib 1
1134 echo "$ac_t""no" 1>&6
1135 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1136 echo "configure:1137: checking for gethostbyname in -lresolv" >&5
1137 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 ac_save_LIBS="$LIBS"
1142 LIBS="-lresolv $LIBS"
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1146 /* Override any gcc2 internal prototype to avoid an error. */
1147 /* We use char because int might match the return type of a gcc2
1148 builtin and then its argument prototype would still apply. */
1149 char gethostbyname();
1155 if { (eval echo configure:1156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157 eval "ac_cv_lib_$ac_lib_var=yes"
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 eval "ac_cv_lib_$ac_lib_var=no"
1165 LIBS="$ac_save_LIBS"
1168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1169 echo "$ac_t""yes" 1>&6
1170 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1172 cat >> confdefs.h <<EOF
1173 #define $ac_tr_lib 1
1176 LIBS="-lresolv $LIBS"
1179 echo "$ac_t""no" 1>&6
1186 echo $ac_n "checking for socket""... $ac_c" 1>&6
1187 echo "configure:1188: checking for socket" >&5
1188 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1194 /* System header to define __stub macros and hopefully few prototypes,
1195 which can conflict with char socket(); below. */
1197 /* Override any gcc2 internal prototype to avoid an error. */
1198 /* We use char because int might match the return type of a gcc2
1199 builtin and then its argument prototype would still apply. */
1204 /* The GNU C library defines this for functions which it implements
1205 to always fail with ENOSYS. Some functions are actually named
1206 something starting with __ and the normal name is an alias. */
1207 #if defined (__stub_socket) || defined (__stub___socket)
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217 eval "ac_cv_func_socket=yes"
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1222 eval "ac_cv_func_socket=no"
1227 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1228 echo "$ac_t""yes" 1>&6
1231 echo "$ac_t""no" 1>&6
1232 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1233 echo "configure:1234: checking for socket in -lsocket" >&5
1234 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 ac_save_LIBS="$LIBS"
1239 LIBS="-lsocket $LIBS"
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1252 if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1254 eval "ac_cv_lib_$ac_lib_var=yes"
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 eval "ac_cv_lib_$ac_lib_var=no"
1262 LIBS="$ac_save_LIBS"
1265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1267 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1269 cat >> confdefs.h <<EOF
1270 #define $ac_tr_lib 1
1273 LIBS="-lsocket $LIBS"
1276 echo "$ac_t""no" 1>&6
1277 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1278 echo "configure:1279: checking for socket in -lsocket" >&5
1279 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_save_LIBS="$LIBS"
1284 LIBS="-lsocket -lnsl $LIBS"
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1288 /* Override any gcc2 internal prototype to avoid an error. */
1289 /* We use char because int might match the return type of a gcc2
1290 builtin and then its argument prototype would still apply. */
1297 if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299 eval "ac_cv_lib_$ac_lib_var=yes"
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1304 eval "ac_cv_lib_$ac_lib_var=no"
1307 LIBS="$ac_save_LIBS"
1310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1312 LIBS="-lsocket -lnsl $LIBS"
1314 echo "$ac_t""no" 1>&6
1323 # com_err (required, but can be built)
1324 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1325 echo "configure:1326: checking for com_err" >&5
1326 # Check whether --with-com_err or --without-com_err was given.
1327 if test "${with_com_err+set}" = set; then
1328 withval="$with_com_err"
1329 echo "$ac_t""$withval" 1>&6
1330 if test $withval = "no"; then
1331 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1333 if test $withval != "yes"; then
1337 *-I$withval/include*) ;;
1338 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1342 case $PRO_C_INCLUDES in
1343 *INCLUDE=$withval/include*) ;;
1344 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1350 *-L$withval/lib*) ;;
1351 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1355 COMPILE_ET=compile_et
1357 echo "$ac_t""util/et" 1>&6
1358 COM_ERR_SUBDIR=util/et;
1362 *-I`pwd`/util/et*) ;;
1363 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1367 case $PRO_C_INCLUDES in
1368 *INCLUDE=`pwd`/util/et*) ;;
1369 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1375 *-L`pwd`/util/et*) ;;
1376 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1379 COMPILE_ET=`pwd`/util/et/compile_et
1380 subdirs="$COM_ERR_SUBDIR"
1387 # Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
1388 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1389 echo "configure:1390: checking for Kerberos 4" >&5
1390 # Check whether --with-krb4 or --without-krb4 was given.
1391 if test "${with_krb4+set}" = set; then
1392 withval="$with_krb4"
1398 echo "$ac_t""$krb4" 1>&6
1399 if test $krb4 = "no"; then
1400 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1402 if test "$krb4" != yes; then
1406 *-I$krb4/include*) ;;
1407 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1411 case $PRO_C_INCLUDES in
1412 *INCLUDE=$krb4/include*) ;;
1413 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1417 if test -d "$krb4/include/kerberosIV"; then
1421 *-I$krb4/include/kerberosIV*) ;;
1422 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1426 case $PRO_C_INCLUDES in
1427 *INCLUDE=$krb4/include/kerberosIV*) ;;
1428 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1436 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1439 elif test -d /usr/include/kerberosIV; then
1443 *-I/usr/include/kerberosIV*) ;;
1444 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1448 case $PRO_C_INCLUDES in
1449 *INCLUDE=/usr/include/kerberosIV*) ;;
1450 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1455 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
1456 echo "configure:1457: checking for main in -lk5crypto" >&5
1457 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-%__p_%'`
1458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 ac_save_LIBS="$LIBS"
1462 LIBS="-lk5crypto $LIBS"
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1473 eval "ac_cv_lib_$ac_lib_var=yes"
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 eval "ac_cv_lib_$ac_lib_var=no"
1481 LIBS="$ac_save_LIBS"
1484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1489 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
1490 echo "configure:1491: checking for main in -lcrypto" >&5
1491 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
1492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 ac_save_LIBS="$LIBS"
1496 LIBS="-lcrypto $LIBS"
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1507 eval "ac_cv_lib_$ac_lib_var=yes"
1509 echo "configure: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1512 eval "ac_cv_lib_$ac_lib_var=no"
1515 LIBS="$ac_save_LIBS"
1518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1522 echo "$ac_t""no" 1>&6
1527 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1528 echo "configure:1529: checking for krb_rd_req in -lkrb4" >&5
1529 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 ac_save_LIBS="$LIBS"
1534 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err $LIBS"
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 /* Override any gcc2 internal prototype to avoid an error. */
1539 /* We use char because int might match the return type of a gcc2
1540 builtin and then its argument prototype would still apply. */
1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1549 eval "ac_cv_lib_$ac_lib_var=yes"
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 eval "ac_cv_lib_$ac_lib_var=no"
1557 LIBS="$ac_save_LIBS"
1560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1561 echo "$ac_t""yes" 1>&6
1562 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto}"
1564 echo "$ac_t""no" 1>&6
1565 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1566 echo "configure:1567: checking for krb_rd_req in -lkrb" >&5
1567 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 ac_save_LIBS="$LIBS"
1572 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1585 if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1587 eval "ac_cv_lib_$ac_lib_var=yes"
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1592 eval "ac_cv_lib_$ac_lib_var=no"
1595 LIBS="$ac_save_LIBS"
1598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 KRB4_LIBS="-lkrb -ldes"
1602 echo "$ac_t""no" 1>&6
1603 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1609 echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6
1610 echo "configure:1611: checking for Kerberos 5" >&5
1611 # Check whether --with-krb5 or --without-krb5 was given.
1612 if test "${with_krb5+set}" = set; then
1613 withval="$with_krb5"
1619 echo "$ac_t""$krb5" 1>&6
1620 if test "$krb5" != no; then
1622 if test "$krb5" != yes; then
1623 REG_SVR_INCLUDES=-I$krb5/include
1624 REG_SVR_LIBS=-L$krb5/lib
1626 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -l${crypto}"
1636 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1637 echo "configure:1638: checking for Hesiod" >&5
1638 # Check whether --with-hesiod or --without-hesiod was given.
1639 if test "${with_hesiod+set}" = set; then
1640 withval="$with_hesiod"
1646 echo "$ac_t""$hesiod" 1>&6
1647 if test "$hesiod" != no; then
1648 if test "$hesiod" != yes; then
1652 *-I$hesiod/include*) ;;
1653 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1657 case $PRO_C_INCLUDES in
1658 *INCLUDE=$hesiod/include*) ;;
1659 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1666 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1670 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1671 echo "configure:1672: checking for res_send" >&5
1672 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1678 /* System header to define __stub macros and hopefully few prototypes,
1679 which can conflict with char res_send(); below. */
1681 /* Override any gcc2 internal prototype to avoid an error. */
1682 /* We use char because int might match the return type of a gcc2
1683 builtin and then its argument prototype would still apply. */
1688 /* The GNU C library defines this for functions which it implements
1689 to always fail with ENOSYS. Some functions are actually named
1690 something starting with __ and the normal name is an alias. */
1691 #if defined (__stub_res_send) || defined (__stub___res_send)
1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701 eval "ac_cv_func_res_send=yes"
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 eval "ac_cv_func_res_send=no"
1711 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1715 echo "$ac_t""no" 1>&6
1716 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1717 echo "configure:1718: checking for res_send in -lresolv" >&5
1718 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 ac_save_LIBS="$LIBS"
1723 LIBS="-lresolv $LIBS"
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 /* Override any gcc2 internal prototype to avoid an error. */
1728 /* We use char because int might match the return type of a gcc2
1729 builtin and then its argument prototype would still apply. */
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738 eval "ac_cv_lib_$ac_lib_var=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 eval "ac_cv_lib_$ac_lib_var=no"
1746 LIBS="$ac_save_LIBS"
1749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1751 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1752 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1753 cat >> confdefs.h <<EOF
1754 #define $ac_tr_lib 1
1757 LIBS="-lresolv $LIBS"
1760 echo "$ac_t""no" 1>&6
1765 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1766 echo "configure:1767: checking for hes_resolve in -lhesiod" >&5
1767 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 ac_save_LIBS="$LIBS"
1772 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* Override any gcc2 internal prototype to avoid an error. */
1777 /* We use char because int might match the return type of a gcc2
1778 builtin and then its argument prototype would still apply. */
1785 if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 eval "ac_cv_lib_$ac_lib_var=yes"
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1792 eval "ac_cv_lib_$ac_lib_var=no"
1795 LIBS="$ac_save_LIBS"
1798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1802 echo "$ac_t""no" 1>&6
1803 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1807 cat >> confdefs.h <<\EOF
1808 #define HAVE_HESIOD 1
1813 *DEFINE=HAVE_HESIOD*) ;;
1814 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1821 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1822 echo "configure:1823: checking for Zephyr" >&5
1823 # Check whether --with-zephyr or --without-zephyr was given.
1824 if test "${with_zephyr+set}" = set; then
1825 withval="$with_zephyr"
1831 echo "$ac_t""$zephyr" 1>&6
1832 if test "$zephyr" != no; then
1833 if test "$zephyr" != yes; then
1837 *-I$zephyr/include*) ;;
1838 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1842 case $PRO_C_INCLUDES in
1843 *INCLUDE=$zephyr/include*) ;;
1844 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1851 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1855 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1856 echo "configure:1857: checking for ZInitialize in -lzephyr" >&5
1857 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 ac_save_LIBS="$LIBS"
1862 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 /* Override any gcc2 internal prototype to avoid an error. */
1867 /* We use char because int might match the return type of a gcc2
1868 builtin and then its argument prototype would still apply. */
1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1877 eval "ac_cv_lib_$ac_lib_var=yes"
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1882 eval "ac_cv_lib_$ac_lib_var=no"
1885 LIBS="$ac_save_LIBS"
1888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1892 echo "$ac_t""no" 1>&6
1893 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1897 cat >> confdefs.h <<\EOF
1898 #define HAVE_ZEPHYR 1
1903 *DEFINE=HAVE_ZEPHYR*) ;;
1904 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1910 # RSAREF support (default: build util/rsaref if present)
1911 echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
1912 echo "configure:1913: checking for RSAREF" >&5
1913 # Check whether --with-rsaref or --without-rsaref was given.
1914 if test "${with_rsaref+set}" = set; then
1915 withval="$with_rsaref"
1917 RSAREF_CPPFLAGS="-I$rsaref/include"
1918 RSAREF_LIBS="$rsaref/lib/rsaref.a"
1920 RSAREF_SUBDIRS=reg_svr
1921 if test -d $srcdir/util/rsaref; then
1922 rsaref=$srcdir/util/rsaref
1923 RSAREF_SUBDIRS="util/rsaref reg_svr"
1924 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1925 # autoconf can't deal with creating util/rsaref if util doesn't exist
1926 if test ! -d util; then
1929 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
1930 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
1931 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
1937 echo "$ac_t""$rsaref" 1>&6
1938 if test "$rsaref" != no; then
1940 cat >> confdefs.h <<\EOF
1941 #define HAVE_RSAREF 1
1946 *DEFINE=HAVE_RSAREF*) ;;
1947 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1957 # Oracle (default: yes, if $ORACLE_HOME is set)
1958 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1959 echo "configure:1960: checking for Oracle" >&5
1960 # Check whether --with-oracle or --without-oracle was given.
1961 if test "${with_oracle+set}" = set; then
1962 withval="$with_oracle"
1965 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1972 echo "$ac_t""$oracle" 1>&6
1973 if test "$oracle" != no; then
1974 echo $ac_n "checking Pro*C version""... $ac_c" 1>&6
1975 echo "configure:1976: checking Pro*C version" >&5
1976 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
1977 echo "$ac_t""$release" 1>&6
1980 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1983 SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
1986 SQL_LIBS="-L$oracle/lib -lclntsh `cat $oracle/lib/sysliblist` -R$oracle/lib -laio -lm -lthread"
1989 SVRSUBDIRS='$(SVRDIRS)'
1990 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile incremental/mailman/Makefile reg_svr/Makefile regtape/Makefile"
1991 PRO_C=$oracle/bin/proc
1992 PRO_C_OPTS=CODE=ANSI_C
1993 PRO_C_DEFS="DEFINE=_PROC_ $PRO_C_DEFS"
2002 # Java support, for webmoira
2003 echo $ac_n "checking for Java""... $ac_c" 1>&6
2004 echo "configure:2005: checking for Java" >&5
2005 # Check whether --with-java or --without-java was given.
2006 if test "${with_java+set}" = set; then
2007 withval="$with_java"
2010 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
2017 echo "$ac_t""$java" 1>&6
2018 if test "$java" != no; then
2019 if test "$java" != yes; then
2020 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
2023 cat >> confdefs.h <<\EOF
2029 *DEFINE=HAVE_JAVA*) ;;
2030 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
2035 WEBMOIRA_SUBDIRS="webmoira"
2036 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
2042 echo $ac_n "checking for LDAP""... $ac_c" 1>&6
2043 echo "configure:2044: checking for LDAP" >&5
2044 # Check whether --with-ldap or --without-ldap was given.
2045 if test "${with_ldap+set}" = set; then
2046 withval="$with_ldap"
2049 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
2056 echo "$ac_t""$ldap" 1>&6
2057 if test "$ldap" != no -a "$oracle" != no; then
2058 if test "$ldap" != yes; then
2059 LDAP_CPPFLAGS="-I$ldap/include"
2060 LDAP_LIBS="-L$ldap/lib"
2063 cat >> confdefs.h <<\EOF
2069 *DEFINE=HAVE_LDAP*) ;;
2070 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
2075 WINAD_SUBDIRS="winad"
2076 WINAD_OUTPUT_FILES="incremental/winad/Makefile"
2083 echo $ac_n "checking for AFS""... $ac_c" 1>&6
2084 echo "configure:2085: checking for AFS" >&5
2085 # Check whether --with-afs or --without-afs was given.
2086 if test "${with_afs+set}" = set; then
2093 echo "$ac_t""$afs" 1>&6
2094 if test "$afs" != no -a "$oracle" != no; then
2095 if test "$afs" != yes; then
2096 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
2097 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
2098 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
2101 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
2102 echo "configure:2103: checking for pioctl in -lsys" >&5
2103 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
2104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 ac_save_LIBS="$LIBS"
2108 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $LIBS"
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* Override any gcc2 internal prototype to avoid an error. */
2113 /* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2123 eval "ac_cv_lib_$ac_lib_var=yes"
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 eval "ac_cv_lib_$ac_lib_var=no"
2131 LIBS="$ac_save_LIBS"
2134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2135 echo "$ac_t""yes" 1>&6
2138 echo "$ac_t""no" 1>&6
2139 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2143 cat >> confdefs.h <<\EOF
2149 *DEFINE=HAVE_AFS*) ;;
2150 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2156 AFS_OUTPUT_FILES="incremental/afs/Makefile"
2157 if test -d $srcdir/afssync; then
2158 AFS_SYNCDIR="afssync"
2159 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
2170 echo "checking for GNU readline..." 1>&6
2171 echo "configure:2172: checking for GNU readline..." >&5
2172 # Check whether --with-readline or --without-readline was given.
2173 if test "${with_readline+set}" = set; then
2174 withval="$with_readline"
2175 readline="$withval"; echo "$ac_t""$withval" 1>&6
2177 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2178 echo "configure:2179: checking for readline in -lreadline" >&5
2179 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 ac_save_LIBS="$LIBS"
2184 LIBS="-lreadline -ltermcap $LIBS"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2199 eval "ac_cv_lib_$ac_lib_var=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 eval "ac_cv_lib_$ac_lib_var=no"
2207 LIBS="$ac_save_LIBS"
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2214 echo "$ac_t""no" 1>&6
2215 if test "$athena" = true; then
2216 unset ac_cv_lib_readline_readline
2217 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2218 echo "configure:2219: checking for readline in -lreadline" >&5
2219 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 ac_save_LIBS="$LIBS"
2224 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 eval "ac_cv_lib_$ac_lib_var=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 eval "ac_cv_lib_$ac_lib_var=no"
2247 LIBS="$ac_save_LIBS"
2250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2254 echo "$ac_t""no" 1>&6
2263 if test "$readline" != no; then
2264 if test "$readline" != yes; then
2265 READLINE_CPPFLAGS="-I$readline/include"
2266 READLINE_LIBS="-L$readline/lib"
2268 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
2269 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
2276 echo "checking for curses" 1>&6
2277 echo "configure:2278: checking for curses" >&5
2278 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2279 echo "configure:2280: checking for main in -lcurses" >&5
2280 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 ac_save_LIBS="$LIBS"
2285 LIBS="-lcurses $LIBS"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2294 if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2296 eval "ac_cv_lib_$ac_lib_var=yes"
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2301 eval "ac_cv_lib_$ac_lib_var=no"
2304 LIBS="$ac_save_LIBS"
2307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2311 echo "$ac_t""no" 1>&6
2312 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2313 echo "configure:2314: checking for main in -lncurses" >&5
2314 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 ac_save_LIBS="$LIBS"
2319 LIBS="-lncurses $LIBS"
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2330 eval "ac_cv_lib_$ac_lib_var=yes"
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 eval "ac_cv_lib_$ac_lib_var=no"
2338 LIBS="$ac_save_LIBS"
2341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2342 echo "$ac_t""yes" 1>&6
2345 echo "$ac_t""no" 1>&6
2350 if test -n "$curses"; then
2353 echo "checking if curses needs termcap" 1>&6
2354 echo "configure:2355: checking if curses needs termcap" >&5
2355 if test "$cross_compiling" = yes; then
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2362 main(int argc, char **argv)
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2371 CURSES_LIBS="-l$curses"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2376 LIBS="-l$curses -ltermcap"
2377 if test "$cross_compiling" = yes; then
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2384 main(int argc, char **argv)
2391 if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2393 CURSES_LIBS="-l$curses -ltermcap"
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2409 if test -n "$CURSES_LIBS"; then
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2417 WINDOW *w; getmaxx(w);
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 WINDOW *w; w->_maxx;
2435 if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2437 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2452 newterm(NULL, NULL, NULL);
2455 if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2457 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2464 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2465 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2467 echo "configure: warning: Couldn't find -lcurses" 1>&2
2474 for ac_func in getusershell strlcpy strlcat uname strvis
2476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_func" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 eval "ac_cv_func_$ac_func=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_func_$ac_func=no"
2517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h <<EOF
2521 #define $ac_tr_func 1
2525 echo "$ac_t""no" 1>&6
2530 echo $ac_n "checking for sigaction""... $ac_c" 1>&6
2531 echo "configure:2532: checking for sigaction" >&5
2532 if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 /* System header to define __stub macros and hopefully few prototypes,
2539 which can conflict with char sigaction(); below. */
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 /* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2548 /* The GNU C library defines this for functions which it implements
2549 to always fail with ENOSYS. Some functions are actually named
2550 something starting with __ and the normal name is an alias. */
2551 #if defined (__stub_sigaction) || defined (__stub___sigaction)
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2561 eval "ac_cv_func_sigaction=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_func_sigaction=no"
2571 if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 cat >> confdefs.h <<\EOF
2574 #define HAVE_POSIX_SIGNALS 1
2578 echo "$ac_t""no" 1>&6
2582 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2583 echo "configure:2584: checking how to run the C preprocessor" >&5
2584 # On Suns, sometimes $CPP names a directory.
2585 if test -n "$CPP" && test -d "$CPP"; then
2588 if test -z "$CPP"; then
2589 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 # This must be in double quotes, not single quotes, because CPP may get
2593 # substituted into the Makefile and "${CC-cc}" will confuse make.
2595 # On the NeXT, cc -E runs the code through the compiler's parser,
2596 # not just through cpp.
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 CPP="${CC-cc} -E -traditional-cpp"
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2621 { (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2623 if test -z "$ac_err"; then
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 CPP="${CC-cc} -nologo -E"
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2654 ac_cv_prog_CPP="$CPP"
2656 CPP="$ac_cv_prog_CPP"
2658 ac_cv_prog_CPP="$CPP"
2660 echo "$ac_t""$CPP" 1>&6
2662 for ac_hdr in unistd.h getopt.h
2664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_hdr" >&5
2667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2676 { (eval echo configure:2677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2678 if test -z "$ac_err"; then
2680 eval "ac_cv_header_$ac_safe=yes"
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2686 eval "ac_cv_header_$ac_safe=no"
2690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2691 echo "$ac_t""yes" 1>&6
2692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2693 cat >> confdefs.h <<EOF
2694 #define $ac_tr_hdr 1
2698 echo "$ac_t""no" 1>&6
2703 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
2705 echo "configure:2706: checking for netinet/in.h" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <netinet/in.h>
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 cat >> confdefs.h <<\EOF
2732 #define HAVE_NETINET_IN_H 1
2736 echo "$ac_t""no" 1>&6
2741 if test "$no_netinet_in" != "yes"; then
2742 echo $ac_n "checking for in_addr_t defined in netinet/in.h""... $ac_c" 1>&6
2743 echo "configure:2744: checking for in_addr_t defined in netinet/in.h" >&5
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 #include <netinet/in.h>
2749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2750 egrep "in_addr_t" >/dev/null 2>&1; then
2752 ac_cv_type_in_addr_t=yes
2755 ac_cv_type_in_addr_t=no
2759 echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
2762 if test "$ac_cv_type_in_addr_t" != "yes"; then
2763 cat >> confdefs.h <<\EOF
2764 #define in_addr_t uint32_t
2770 case $PRO_C_INCLUDES in
2771 *INCLUDE='$(srcdir)'*) ;;
2772 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2778 *-I'$(SRCTOP)/include'*) ;;
2779 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2783 case $PRO_C_INCLUDES in
2784 *INCLUDE='$(SRCTOP)/include'*) ;;
2785 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2792 *-I'$(SRCTOP)/lib'*) ;;
2793 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2797 case $PRO_C_INCLUDES in
2798 *INCLUDE='$(SRCTOP)/lib'*) ;;
2799 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2806 *-I'$(BUILDTOP)/lib'*) ;;
2807 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2811 case $PRO_C_INCLUDES in
2812 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2813 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2820 *-I'$(BUILDTOP)/db'*) ;;
2821 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2825 case $PRO_C_INCLUDES in
2826 *INCLUDE='$(BUILDTOP)/db'*) ;;
2827 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2835 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
2839 case $PRO_C_INCLUDES in
2840 *INCLUDE='$(srcdir)'*) ;;
2841 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2845 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2846 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2847 LIBS="-lmoira $KLIBS"
2850 MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
2854 cat > confcache <<\EOF
2855 # This file is a shell script that caches the results of configure
2856 # tests run on this system so they can be shared between configure
2857 # scripts and configure runs. It is not useful on other systems.
2858 # If it contains results you don't want to keep, you may remove or edit it.
2860 # By default, configure uses ./config.cache as the cache file,
2861 # creating it if it does not exist already. You can give configure
2862 # the --cache-file=FILE option to use a different cache file; that is
2863 # what configure does when it calls configure scripts in
2864 # subdirectories, so they share the cache.
2865 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2866 # config.status only pays attention to the cache file if you give it the
2867 # --recheck option to rerun configure.
2870 # The following way of writing the cache mishandles newlines in values,
2871 # but we know of no workaround that is simple, portable, and efficient.
2872 # So, don't put newlines in cache variables' values.
2873 # Ultrix sh set writes to stderr and can't be redirected directly,
2874 # and sets the high bit in the cache file unless we assign to the vars.
2876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2878 # `set' does not quote correctly, so add quotes (double-quote substitution
2879 # turns \\\\ into \\, and sed turns \\ into \).
2881 -e "s/'/'\\\\''/g" \
2882 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2885 # `set' quotes correctly as required by POSIX, so do not add quotes.
2886 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2889 if cmp -s $cache_file confcache; then
2892 if test -w $cache_file; then
2893 echo "updating cache $cache_file"
2894 cat confcache > $cache_file
2896 echo "not updating unwritable cache $cache_file"
2901 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2904 # Let make expand exec_prefix.
2905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2907 # Any assignment to VPATH causes Sun make to only execute
2908 # the first set of double-colon rules, so remove it if not needed.
2909 # If there is a colon in the path, we need to keep it.
2910 if test "x$srcdir" = x.; then
2911 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2914 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2916 # Transform confdefs.h into DEFS.
2917 # Protect against shell expansion while executing Makefile rules.
2918 # Protect against Makefile macro expansion.
2919 cat > conftest.defs <<\EOF
2920 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2921 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2926 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2930 # Without the "./", some shells look in PATH for config.status.
2931 : ${CONFIG_STATUS=./config.status}
2933 echo creating $CONFIG_STATUS
2934 rm -f $CONFIG_STATUS
2935 cat > $CONFIG_STATUS <<EOF
2937 # Generated automatically by configure.
2938 # Run this file to recreate the current configuration.
2939 # This directory was configured as follows,
2940 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2942 # $0 $ac_configure_args
2944 # Compiler output produced by configure, useful for debugging
2945 # configure, is in ./config.log if it exists.
2947 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2950 case "\$ac_option" in
2951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2952 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2953 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2954 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2955 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2957 -help | --help | --hel | --he | --h)
2958 echo "\$ac_cs_usage"; exit 0 ;;
2959 *) echo "\$ac_cs_usage"; exit 1 ;;
2963 ac_given_srcdir=$srcdir
2964 ac_given_INSTALL="$INSTALL"
2966 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2967 clients/lib/Makefile clients/addusr/Makefile \
2968 clients/blanche/Makefile clients/chfn/Makefile \
2969 clients/chpobox/Makefile clients/chsh/Makefile \
2970 clients/mailmaint/Makefile clients/mitch/Makefile \
2971 clients/moira/Makefile clients/mrcheck/Makefile \
2972 clients/mrtest/Makefile clients/stanley/Makefile \
2973 clients/stella/Makefile update/Makefile man/Makefile \
2974 $WEBMOIRA_OUTPUT_FILES $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES \
2975 $AFS_OUTPUT_FILES $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2977 cat >> $CONFIG_STATUS <<EOF
2979 # Protect against being on the right side of a sed subst in config.status.
2980 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2981 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2985 s%@CFLAGS@%$CFLAGS%g
2986 s%@CPPFLAGS@%$CPPFLAGS%g
2987 s%@CXXFLAGS@%$CXXFLAGS%g
2988 s%@FFLAGS@%$FFLAGS%g
2990 s%@LDFLAGS@%$LDFLAGS%g
2992 s%@exec_prefix@%$exec_prefix%g
2993 s%@prefix@%$prefix%g
2994 s%@program_transform_name@%$program_transform_name%g
2995 s%@bindir@%$bindir%g
2996 s%@sbindir@%$sbindir%g
2997 s%@libexecdir@%$libexecdir%g
2998 s%@datadir@%$datadir%g
2999 s%@sysconfdir@%$sysconfdir%g
3000 s%@sharedstatedir@%$sharedstatedir%g
3001 s%@localstatedir@%$localstatedir%g
3002 s%@libdir@%$libdir%g
3003 s%@includedir@%$includedir%g
3004 s%@oldincludedir@%$oldincludedir%g
3005 s%@infodir@%$infodir%g
3006 s%@mandir@%$mandir%g
3008 s%@host_alias@%$host_alias%g
3009 s%@host_cpu@%$host_cpu%g
3010 s%@host_vendor@%$host_vendor%g
3011 s%@host_os@%$host_os%g
3012 s%@SO_LDFLAGS@%$SO_LDFLAGS%g
3014 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3015 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3016 s%@INSTALL_DATA@%$INSTALL_DATA%g
3017 s%@RANLIB@%$RANLIB%g
3018 s%@SET_MAKE@%$SET_MAKE%g
3019 s%@mrbindir@%$mrbindir%g
3020 s%@subdirs@%$subdirs%g
3021 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
3022 s%@COMPILE_ET@%$COMPILE_ET%g
3023 s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g
3024 s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g
3025 s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g
3026 s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
3027 s%@RSAREF_LIBS@%$RSAREF_LIBS%g
3028 s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
3029 s%@RSAREF_LIBDEP@%$RSAREF_LIBDEP%g
3031 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
3032 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
3033 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
3034 s%@SQL_LIBS@%$SQL_LIBS%g
3035 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
3036 s%@JAVA_CPPFLAGS@%$JAVA_CPPFLAGS%g
3037 s%@WEBMOIRA_SUBDIRS@%$WEBMOIRA_SUBDIRS%g
3038 s%@LDAP_CPPFLAGS@%$LDAP_CPPFLAGS%g
3039 s%@LDAP_LIBS@%$LDAP_LIBS%g
3040 s%@WINAD_SUBDIRS@%$WINAD_SUBDIRS%g
3041 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
3042 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
3043 s%@AFS_LIBS@%$AFS_LIBS%g
3044 s%@AFS_DIR@%$AFS_DIR%g
3045 s%@AFS_SUBDIRS@%$AFS_SUBDIRS%g
3046 s%@AFS_SYNCDIR@%$AFS_SYNCDIR%g
3047 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
3048 s%@READLINE_LIBS@%$READLINE_LIBS%g
3049 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
3050 s%@CURSES_LIBS@%$CURSES_LIBS%g
3051 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
3054 s%@MR_LIBDEP@%$MR_LIBDEP%g
3059 cat >> $CONFIG_STATUS <<\EOF
3061 # Split the substitutions into bite-sized pieces for seds with
3062 # small command number limits, like on Digital OSF/1 and HP-UX.
3063 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3064 ac_file=1 # Number of current file.
3065 ac_beg=1 # First line for current file.
3066 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3069 while $ac_more_lines; do
3070 if test $ac_beg -gt 1; then
3071 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3073 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3075 if test ! -s conftest.s$ac_file; then
3077 rm -f conftest.s$ac_file
3079 if test -z "$ac_sed_cmds"; then
3080 ac_sed_cmds="sed -f conftest.s$ac_file"
3082 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3084 ac_file=`expr $ac_file + 1`
3086 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3089 if test -z "$ac_sed_cmds"; then
3094 cat >> $CONFIG_STATUS <<EOF
3096 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
3097 clients/lib/Makefile clients/addusr/Makefile \
3098 clients/blanche/Makefile clients/chfn/Makefile \
3099 clients/chpobox/Makefile clients/chsh/Makefile \
3100 clients/mailmaint/Makefile clients/mitch/Makefile \
3101 clients/moira/Makefile clients/mrcheck/Makefile \
3102 clients/mrtest/Makefile clients/stanley/Makefile \
3103 clients/stella/Makefile update/Makefile man/Makefile \
3104 $WEBMOIRA_OUTPUT_FILES $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES \
3105 $AFS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"}
3107 cat >> $CONFIG_STATUS <<\EOF
3108 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3111 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3112 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3113 *) ac_file_in="${ac_file}.in" ;;
3116 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3118 # Remove last slash and all that follows it. Not all systems have dirname.
3119 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3120 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3121 # The file is in a subdirectory.
3122 test ! -d "$ac_dir" && mkdir "$ac_dir"
3123 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3124 # A "../" for each directory in $ac_dir_suffix.
3125 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3127 ac_dir_suffix= ac_dots=
3130 case "$ac_given_srcdir" in
3132 if test -z "$ac_dots"; then top_srcdir=.
3133 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3134 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3136 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3137 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3140 case "$ac_given_INSTALL" in
3141 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3142 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3145 echo creating "$ac_file"
3147 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3149 *Makefile*) ac_comsub="1i\\
3150 # $configure_input" ;;
3154 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3156 s%@configure_input@%$configure_input%g
3157 s%@srcdir@%$srcdir%g
3158 s%@top_srcdir@%$top_srcdir%g
3159 s%@INSTALL@%$INSTALL%g
3160 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3165 cat >> $CONFIG_STATUS <<EOF
3168 cat >> $CONFIG_STATUS <<\EOF
3172 chmod +x $CONFIG_STATUS
3173 rm -fr confdefs* $ac_clean_files
3174 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3176 if test "$no_recursion" != yes; then
3178 # Remove --cache-file and --srcdir arguments so they do not pile up.
3179 ac_sub_configure_args=
3181 for ac_arg in $ac_configure_args; do
3182 if test -n "$ac_prev"; then
3187 -cache-file | --cache-file | --cache-fil | --cache-fi \
3188 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3189 ac_prev=cache_file ;;
3190 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3191 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3197 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3201 for ac_config_dir in $COM_ERR_SUBDIR; do
3203 # Do not complain, so a configure script can configure whichever
3204 # parts of a large source tree are present.
3205 if test ! -d $srcdir/$ac_config_dir; then
3209 echo configuring in $ac_config_dir
3214 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3216 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3224 # A "../" for each directory in /$ac_config_dir.
3225 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3228 .) # No --srcdir option. We are building in place.
3229 ac_sub_srcdir=$srcdir ;;
3230 /*) # Absolute path.
3231 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3233 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3236 # Check for guested configure; otherwise get Cygnus style configure.
3237 if test -f $ac_sub_srcdir/configure; then
3238 ac_sub_configure=$ac_sub_srcdir/configure
3239 elif test -f $ac_sub_srcdir/configure.in; then
3240 ac_sub_configure=$ac_configure
3242 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3246 # The recursion is here.
3247 if test -n "$ac_sub_configure"; then
3249 # Make the cache file name correct relative to the subdirectory.
3250 case "$cache_file" in
3251 /*) ac_sub_cache_file=$cache_file ;;
3253 ac_sub_cache_file="$ac_dots$cache_file" ;;
3255 case "$ac_given_INSTALL" in
3256 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3257 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3260 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3261 # The eval makes quoting arguments work.
3262 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3265 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }