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-hesiod=PREFIX Specify location of Hesiod"
23 --with-zephyr=PREFIX Specify location of Zephyr"
25 --with-gdss=PREFIX Specify location of GDSS"
27 --with-oracle=PREFIX Specify location of Oracle (for server)"
29 --with-afs=PREFIX Specify location of AFS libs (for server)"
31 --with-readline=PREFIX Specify location of GNU readline"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.12"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=patchlevel.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
548 # Extract the first word of "gcc", so it can be a program name with args.
549 set dummy gcc; ac_word=$2
550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551 echo "configure:552: checking for $ac_word" >&5
552 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
555 if test -n "$CC"; then
556 ac_cv_prog_CC="$CC" # Let the user override the test.
558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
559 for ac_dir in $PATH; do
560 test -z "$ac_dir" && ac_dir=.
561 if test -f $ac_dir/$ac_word; then
570 if test -n "$CC"; then
571 echo "$ac_t""$CC" 1>&6
573 echo "$ac_t""no" 1>&6
576 if test -z "$CC"; then
577 # Extract the first word of "cc", so it can be a program name with args.
578 set dummy cc; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 echo "configure:581: checking for $ac_word" >&5
581 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 if test -n "$CC"; then
585 ac_cv_prog_CC="$CC" # Let the user override the test.
587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
589 for ac_dir in $PATH; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
592 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
601 if test $ac_prog_rejected = yes; then
602 # We found a bogon in the path, so make sure we never use it.
603 set dummy $ac_cv_prog_CC
605 if test $# -gt 0; then
606 # We chose a different compiler from the bogus one.
607 # However, it has the same basename, so the bogon will be chosen
608 # first if we set CC to just the basename; use the full file name.
610 set dummy "$ac_dir/$ac_word" "$@"
618 if test -n "$CC"; then
619 echo "$ac_t""$CC" 1>&6
621 echo "$ac_t""no" 1>&6
624 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
627 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
628 echo "configure:629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
632 ac_cpp='$CPP $CPPFLAGS'
633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
634 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
635 cross_compiling=$ac_cv_prog_cc_cross
637 cat > conftest.$ac_ext <<EOF
638 #line 639 "configure"
639 #include "confdefs.h"
642 if { (eval echo configure:643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
643 ac_cv_prog_cc_works=yes
644 # If we can't run a trivial program, we are probably using a cross compiler.
645 if (./conftest; exit) 2>/dev/null; then
646 ac_cv_prog_cc_cross=no
648 ac_cv_prog_cc_cross=yes
651 echo "configure: failed program was:" >&5
652 cat conftest.$ac_ext >&5
653 ac_cv_prog_cc_works=no
657 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
658 if test $ac_cv_prog_cc_works = no; then
659 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
662 echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
663 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
664 cross_compiling=$ac_cv_prog_cc_cross
666 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
667 echo "configure:668: checking whether we are using GNU C" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 cat > conftest.c <<EOF
676 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
683 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
685 if test $ac_cv_prog_gcc = yes; then
687 ac_test_CFLAGS="${CFLAGS+set}"
688 ac_save_CFLAGS="$CFLAGS"
690 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${CC-cc} accepts -g" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 echo 'void f(){}' > conftest.c
696 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
705 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
706 if test "$ac_test_CFLAGS" = set; then
707 CFLAGS="$ac_save_CFLAGS"
708 elif test $ac_cv_prog_cc_g = yes; then
715 test "${CFLAGS+set}" = set || CFLAGS="-g"
719 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
720 if test -f $ac_dir/install-sh; then
722 ac_install_sh="$ac_aux_dir/install-sh -c"
724 elif test -f $ac_dir/install.sh; then
726 ac_install_sh="$ac_aux_dir/install.sh -c"
730 if test -z "$ac_aux_dir"; then
731 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
733 ac_config_guess=$ac_aux_dir/config.guess
734 ac_config_sub=$ac_aux_dir/config.sub
735 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
737 # Find a good install program. We prefer a C program (faster),
738 # so one script is as good as another. But avoid the broken or
739 # incompatible versions:
740 # SysV /etc/install, /usr/sbin/install
741 # SunOS /usr/etc/install
744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
746 # ./install, which can be erroneously created by make from ./install.sh.
747 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
748 echo "configure:749: checking for a BSD compatible install" >&5
749 if test -z "$INSTALL"; then
750 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
754 for ac_dir in $PATH; do
755 # Account for people who put trailing slashes in PATH elements.
757 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
759 # OSF1 and SCO ODT 3.0 have their own names for install.
760 for ac_prog in ginstall installbsd scoinst install; do
761 if test -f $ac_dir/$ac_prog; then
762 if test $ac_prog = install &&
763 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
764 # AIX install. It has an incompatible calling convention.
765 # OSF/1 installbsd also uses dspmsg, but is usable.
768 ac_cv_path_install="$ac_dir/$ac_prog -c"
779 if test "${ac_cv_path_install+set}" = set; then
780 INSTALL="$ac_cv_path_install"
782 # As a last resort, use the slow shell script. We don't cache a
783 # path for INSTALL within a source directory, because that will
784 # break other packages using the cache if that directory is
785 # removed, or if the path is relative.
786 INSTALL="$ac_install_sh"
789 echo "$ac_t""$INSTALL" 1>&6
791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
792 # It thinks the first close brace ends the variable substitution.
793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
797 # Extract the first word of "ranlib", so it can be a program name with args.
798 set dummy ranlib; ac_word=$2
799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800 echo "configure:801: checking for $ac_word" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 if test -n "$RANLIB"; then
805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
808 for ac_dir in $PATH; do
809 test -z "$ac_dir" && ac_dir=.
810 if test -f $ac_dir/$ac_word; then
811 ac_cv_prog_RANLIB="ranlib"
816 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
819 RANLIB="$ac_cv_prog_RANLIB"
820 if test -n "$RANLIB"; then
821 echo "$ac_t""$RANLIB" 1>&6
823 echo "$ac_t""no" 1>&6
826 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
827 echo "configure:828: checking whether ${MAKE-make} sets \${MAKE}" >&5
828 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
829 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftestmake <<\EOF
834 @echo 'ac_maketemp="${MAKE}"'
836 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
837 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
838 if test -n "$ac_maketemp"; then
839 eval ac_cv_prog_make_${ac_make}_set=yes
841 eval ac_cv_prog_make_${ac_make}_set=no
845 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
846 echo "$ac_t""yes" 1>&6
849 echo "$ac_t""no" 1>&6
850 SET_MAKE="MAKE=${MAKE-make}"
854 if test "$athena" = true; then
856 with_readline=/mit/gnu
857 prefix=/afs/athena.mit.edu/system/moira
858 bindir=$prefix/arch/$ATHENA_SYS/bin
862 # We currently just don't support changing this
866 # Athena-local policy decisions
867 echo $ac_n "checking for Athena""... $ac_c" 1>&6
868 echo "configure:869: checking for Athena" >&5
869 # Check whether --enable-athena or --disable-athena was given.
870 if test "${enable_athena+set}" = set; then
871 enableval="$enable_athena"
874 if test "$athena" = true; then
881 echo "$ac_t""$enableval" 1>&6
882 if test "$enableval" = yes; then
884 cat >> confdefs.h <<\EOF
891 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
897 # Networking libraries
898 echo "checking network libraries..." 1>&6
899 echo "configure:900: checking network libraries..." >&5
900 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
901 echo "configure:902: checking for gethostbyname" >&5
902 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
908 /* System header to define __stub macros and hopefully few prototypes,
909 which can conflict with char gethostbyname(); below. */
911 /* Override any gcc2 internal prototype to avoid an error. */
912 /* We use char because int might match the return type of a gcc2
913 builtin and then its argument prototype would still apply. */
914 char gethostbyname();
918 /* The GNU C library defines this for functions which it implements
919 to always fail with ENOSYS. Some functions are actually named
920 something starting with __ and the normal name is an alias. */
921 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
929 if { (eval echo configure:930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
931 eval "ac_cv_func_gethostbyname=yes"
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
936 eval "ac_cv_func_gethostbyname=no"
941 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
942 echo "$ac_t""yes" 1>&6
945 echo "$ac_t""no" 1>&6
946 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
947 echo "configure:948: checking for gethostbyname in -lnsl" >&5
948 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
954 cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
957 /* Override any gcc2 internal prototype to avoid an error. */
958 /* We use char because int might match the return type of a gcc2
959 builtin and then its argument prototype would still apply. */
960 char gethostbyname();
966 if { (eval echo configure:967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
968 eval "ac_cv_lib_$ac_lib_var=yes"
970 echo "configure: failed program was:" >&5
971 cat conftest.$ac_ext >&5
973 eval "ac_cv_lib_$ac_lib_var=no"
979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
980 echo "$ac_t""yes" 1>&6
981 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
982 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
983 cat >> confdefs.h <<EOF
990 echo "$ac_t""no" 1>&6
991 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
992 echo "configure:993: checking for gethostbyname in -lresolv" >&5
993 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
998 LIBS="-lresolv $LIBS"
999 cat > conftest.$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1002 /* Override any gcc2 internal prototype to avoid an error. */
1003 /* We use char because int might match the return type of a gcc2
1004 builtin and then its argument prototype would still apply. */
1005 char gethostbyname();
1011 if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1013 eval "ac_cv_lib_$ac_lib_var=yes"
1015 echo "configure: failed program was:" >&5
1016 cat conftest.$ac_ext >&5
1018 eval "ac_cv_lib_$ac_lib_var=no"
1021 LIBS="$ac_save_LIBS"
1024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1026 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1028 cat >> confdefs.h <<EOF
1029 #define $ac_tr_lib 1
1032 LIBS="-lresolv $LIBS"
1035 echo "$ac_t""no" 1>&6
1042 echo $ac_n "checking for socket""... $ac_c" 1>&6
1043 echo "configure:1044: checking for socket" >&5
1044 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 /* System header to define __stub macros and hopefully few prototypes,
1051 which can conflict with char socket(); below. */
1053 /* Override any gcc2 internal prototype to avoid an error. */
1054 /* We use char because int might match the return type of a gcc2
1055 builtin and then its argument prototype would still apply. */
1060 /* The GNU C library defines this for functions which it implements
1061 to always fail with ENOSYS. Some functions are actually named
1062 something starting with __ and the normal name is an alias. */
1063 #if defined (__stub_socket) || defined (__stub___socket)
1071 if { (eval echo configure:1072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1073 eval "ac_cv_func_socket=yes"
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1078 eval "ac_cv_func_socket=no"
1083 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1084 echo "$ac_t""yes" 1>&6
1087 echo "$ac_t""no" 1>&6
1088 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1089 echo "configure:1090: checking for socket in -lsocket" >&5
1090 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 ac_save_LIBS="$LIBS"
1095 LIBS="-lsocket $LIBS"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 /* Override any gcc2 internal prototype to avoid an error. */
1100 /* We use char because int might match the return type of a gcc2
1101 builtin and then its argument prototype would still apply. */
1108 if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1110 eval "ac_cv_lib_$ac_lib_var=yes"
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1115 eval "ac_cv_lib_$ac_lib_var=no"
1118 LIBS="$ac_save_LIBS"
1121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1122 echo "$ac_t""yes" 1>&6
1123 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1124 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1125 cat >> confdefs.h <<EOF
1126 #define $ac_tr_lib 1
1129 LIBS="-lsocket $LIBS"
1132 echo "$ac_t""no" 1>&6
1133 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1134 echo "configure:1135: checking for socket in -lsocket" >&5
1135 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 ac_save_LIBS="$LIBS"
1140 LIBS="-lsocket -lnsl $LIBS"
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1144 /* Override any gcc2 internal prototype to avoid an error. */
1145 /* We use char because int might match the return type of a gcc2
1146 builtin and then its argument prototype would still apply. */
1153 if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1155 eval "ac_cv_lib_$ac_lib_var=yes"
1157 echo "configure: failed program was:" >&5
1158 cat conftest.$ac_ext >&5
1160 eval "ac_cv_lib_$ac_lib_var=no"
1163 LIBS="$ac_save_LIBS"
1166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1168 LIBS="-lsocket -lnsl $LIBS"
1170 echo "$ac_t""no" 1>&6
1179 # com_err (required, but can be built)
1180 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1181 echo "configure:1182: checking for com_err" >&5
1182 # Check whether --with-com_err or --without-com_err was given.
1183 if test "${with_com_err+set}" = set; then
1184 withval="$with_com_err"
1185 echo "$ac_t""$withval" 1>&6
1186 if test $withval = "no"; then
1187 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1189 if test $withval != "yes"; then
1193 *-I$withval/include*) ;;
1194 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1198 case $PRO_C_INCLUDES in
1199 *INCLUDE=$withval/include*) ;;
1200 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1206 *-L$withval/lib*) ;;
1207 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1211 COMPILE_ET=compile_et
1213 echo "$ac_t""util/et" 1>&6
1214 COM_ERR_SUBDIR=util/et;
1218 *-I`pwd`/util/et*) ;;
1219 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1223 case $PRO_C_INCLUDES in
1224 *INCLUDE=`pwd`/util/et*) ;;
1225 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1231 *-L`pwd`/util/et*) ;;
1232 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1235 COMPILE_ET=`pwd`/util/et/compile_et
1236 subdirs="$COM_ERR_SUBDIR"
1243 # Kerberos (required)
1244 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1245 echo "configure:1246: checking for Kerberos 4" >&5
1246 # Check whether --with-krb4 or --without-krb4 was given.
1247 if test "${with_krb4+set}" = set; then
1248 withval="$with_krb4"
1254 echo "$ac_t""$krb4" 1>&6
1255 if test $krb4 = "no"; then
1256 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1258 if test "$krb4" != yes; then
1262 *-I$krb4/include*) ;;
1263 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1267 case $PRO_C_INCLUDES in
1268 *INCLUDE=$krb4/include*) ;;
1269 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1273 if test -d "$krb4/include/kerberosIV"; then
1277 *-I$krb4/include/kerberosIV*) ;;
1278 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1282 case $PRO_C_INCLUDES in
1283 *INCLUDE=$krb4/include/kerberosIV*) ;;
1284 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1292 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1295 elif test -d /usr/include/kerberosIV; then
1299 *-I/usr/include/kerberosIV*) ;;
1300 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1304 case $PRO_C_INCLUDES in
1305 *INCLUDE=/usr/include/kerberosIV*) ;;
1306 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1311 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1312 echo "configure:1313: checking for krb_rd_req in -lkrb4" >&5
1313 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 ac_save_LIBS="$LIBS"
1318 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto $LIBS"
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* Override any gcc2 internal prototype to avoid an error. */
1323 /* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1333 eval "ac_cv_lib_$ac_lib_var=yes"
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1338 eval "ac_cv_lib_$ac_lib_var=no"
1341 LIBS="$ac_save_LIBS"
1344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1346 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"
1348 echo "$ac_t""no" 1>&6
1349 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1350 echo "configure:1351: checking for krb_rd_req in -lkrb" >&5
1351 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 ac_save_LIBS="$LIBS"
1356 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1371 eval "ac_cv_lib_$ac_lib_var=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 eval "ac_cv_lib_$ac_lib_var=no"
1379 LIBS="$ac_save_LIBS"
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 KRB4_LIBS="-lkrb -ldes"
1386 echo "$ac_t""no" 1>&6
1387 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1394 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1395 echo "configure:1396: checking for Hesiod" >&5
1396 # Check whether --with-hesiod or --without-hesiod was given.
1397 if test "${with_hesiod+set}" = set; then
1398 withval="$with_hesiod"
1404 echo "$ac_t""$hesiod" 1>&6
1405 if test "$hesiod" != no; then
1406 if test "$hesiod" != yes; then
1410 *-I$hesiod/include*) ;;
1411 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1415 case $PRO_C_INCLUDES in
1416 *INCLUDE=$hesiod/include*) ;;
1417 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1424 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1428 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1429 echo "configure:1430: checking for res_send" >&5
1430 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1436 /* System header to define __stub macros and hopefully few prototypes,
1437 which can conflict with char res_send(); below. */
1439 /* Override any gcc2 internal prototype to avoid an error. */
1440 /* We use char because int might match the return type of a gcc2
1441 builtin and then its argument prototype would still apply. */
1446 /* The GNU C library defines this for functions which it implements
1447 to always fail with ENOSYS. Some functions are actually named
1448 something starting with __ and the normal name is an alias. */
1449 #if defined (__stub_res_send) || defined (__stub___res_send)
1457 if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1459 eval "ac_cv_func_res_send=yes"
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1464 eval "ac_cv_func_res_send=no"
1469 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1470 echo "$ac_t""yes" 1>&6
1473 echo "$ac_t""no" 1>&6
1474 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1475 echo "configure:1476: checking for res_send in -lresolv" >&5
1476 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 ac_save_LIBS="$LIBS"
1481 LIBS="-lresolv $LIBS"
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 /* Override any gcc2 internal prototype to avoid an error. */
1486 /* We use char because int might match the return type of a gcc2
1487 builtin and then its argument prototype would still apply. */
1494 if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1496 eval "ac_cv_lib_$ac_lib_var=yes"
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1501 eval "ac_cv_lib_$ac_lib_var=no"
1504 LIBS="$ac_save_LIBS"
1507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1509 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1511 cat >> confdefs.h <<EOF
1512 #define $ac_tr_lib 1
1515 LIBS="-lresolv $LIBS"
1518 echo "$ac_t""no" 1>&6
1523 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1524 echo "configure:1525: checking for hes_resolve in -lhesiod" >&5
1525 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 ac_save_LIBS="$LIBS"
1530 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1534 /* Override any gcc2 internal prototype to avoid an error. */
1535 /* We use char because int might match the return type of a gcc2
1536 builtin and then its argument prototype would still apply. */
1543 if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1545 eval "ac_cv_lib_$ac_lib_var=yes"
1547 echo "configure: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1550 eval "ac_cv_lib_$ac_lib_var=no"
1553 LIBS="$ac_save_LIBS"
1556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1557 echo "$ac_t""yes" 1>&6
1560 echo "$ac_t""no" 1>&6
1561 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1565 cat >> confdefs.h <<\EOF
1566 #define HAVE_HESIOD 1
1571 *DEFINE=HAVE_HESIOD*) ;;
1572 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1579 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1580 echo "configure:1581: checking for Zephyr" >&5
1581 # Check whether --with-zephyr or --without-zephyr was given.
1582 if test "${with_zephyr+set}" = set; then
1583 withval="$with_zephyr"
1589 echo "$ac_t""$zephyr" 1>&6
1590 if test "$zephyr" != no; then
1591 if test "$zephyr" != yes; then
1595 *-I$zephyr/include*) ;;
1596 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1600 case $PRO_C_INCLUDES in
1601 *INCLUDE=$zephyr/include*) ;;
1602 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1609 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1613 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1614 echo "configure:1615: checking for ZInitialize in -lzephyr" >&5
1615 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 ac_save_LIBS="$LIBS"
1620 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 /* Override any gcc2 internal prototype to avoid an error. */
1625 /* We use char because int might match the return type of a gcc2
1626 builtin and then its argument prototype would still apply. */
1633 if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1635 eval "ac_cv_lib_$ac_lib_var=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1640 eval "ac_cv_lib_$ac_lib_var=no"
1643 LIBS="$ac_save_LIBS"
1646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1647 echo "$ac_t""yes" 1>&6
1650 echo "$ac_t""no" 1>&6
1651 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1655 cat >> confdefs.h <<\EOF
1656 #define HAVE_ZEPHYR 1
1661 *DEFINE=HAVE_ZEPHYR*) ;;
1662 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1668 # GDSS support (default: build util/gdss if present)
1669 echo $ac_n "checking for GDSS""... $ac_c" 1>&6
1670 echo "configure:1671: checking for GDSS" >&5
1671 # Check whether --with-gdss or --without-gdss was given.
1672 if test "${with_gdss+set}" = set; then
1673 withval="$with_gdss"
1675 GDSS_CPPFLAGS="-I$gdss/include"
1676 GDSS_LIBS="-L$gdss/lib -lgdss"
1678 if test -d $srcdir/util/gdss; then
1679 gdss=$srcdir/util/gdss
1680 GDSS_SUBDIR=util/gdss
1681 GDSS_OUTPUT_FILES="util/gdss/Makefile util/gdss/lib/Makefile \
1682 util/gdss/lib/crypto/Makefile util/gdss/lib/crypto/bignum/Makefile \
1683 util/gdss/lib/crypto/algorithm/Makefile"
1684 # autoconf can't deal with creating util/gdss if util doesn't exist
1685 if test ! -d util; then
1688 GDSS_CPPFLGAS="-I$gdss/include"
1689 GDSS_LIBS='-L$(BUILDTOP)/util/gdss/lib -lgdss'
1695 echo "$ac_t""$gdss" 1>&6
1696 if test "$gdss" != no; then
1697 GDSS_OBJS='$(GDSS_OBJS)'
1698 GDSS_CFILES='$(GDSS_CFILES)'
1699 GDSS_TARGET='$(GDSS_TARGET)'
1701 cat >> confdefs.h <<\EOF
1707 *DEFINE=HAVE_GDSS*) ;;
1708 *) PRO_C_DEFS=DEFINE=HAVE_GDSS\ $PRO_C_DEFS ;;
1720 # Oracle (default: yes, if /usr/oracle is present)
1721 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1722 echo "configure:1723: checking for Oracle" >&5
1723 # Check whether --with-oracle or --without-oracle was given.
1724 if test "${with_oracle+set}" = set; then
1725 withval="$with_oracle"
1728 if test -d /usr/oracle; then
1735 echo "$ac_t""$oracle" 1>&6
1736 if test "$oracle" != no; then
1737 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1738 SVRSUBDIRS='$(SVRDIRS)'
1739 SERVER_OUTPUT_FILES="db/Makefile server/Makefile afssync/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile reg_svr/Makefile regtape/Makefile"
1740 PRO_C=$oracle/bin/proc
1741 PRO_C_OPTS=CODE=ANSI_C
1751 echo $ac_n "checking for AFS""... $ac_c" 1>&6
1752 echo "configure:1753: checking for AFS" >&5
1753 # Check whether --with-afs or --without-afs was given.
1754 if test "${with_afs+set}" = set; then
1761 echo "$ac_t""$afs" 1>&6
1762 if test "$afs" != no -a "$oracle" != no; then
1763 if test "$afs" != yes; then
1764 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
1765 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
1766 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
1769 echo $ac_n "checking for insque""... $ac_c" 1>&6
1770 echo "configure:1771: checking for insque" >&5
1771 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char insque(); below. */
1780 /* Override any gcc2 internal prototype to avoid an error. */
1781 /* We use char because int might match the return type of a gcc2
1782 builtin and then its argument prototype would still apply. */
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined (__stub_insque) || defined (__stub___insque)
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1800 eval "ac_cv_func_insque=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 eval "ac_cv_func_insque=no"
1810 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1814 echo "$ac_t""no" 1>&6
1815 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
1816 echo "configure:1817: checking for insque in -lcompat" >&5
1817 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
1818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 ac_save_LIBS="$LIBS"
1822 LIBS="-lcompat $LIBS"
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 /* Override any gcc2 internal prototype to avoid an error. */
1827 /* We use char because int might match the return type of a gcc2
1828 builtin and then its argument prototype would still apply. */
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1837 eval "ac_cv_lib_$ac_lib_var=yes"
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 eval "ac_cv_lib_$ac_lib_var=no"
1845 LIBS="$ac_save_LIBS"
1848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 AFS_EXTRA_LIBS="-lcompat"
1852 echo "$ac_t""no" 1>&6
1853 { echo "configure: error: insque not found" 1>&2; exit 1; }
1858 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1859 echo "configure:1860: checking for sigvec" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 /* System header to define __stub macros and hopefully few prototypes,
1867 which can conflict with char sigvec(); below. */
1869 /* Override any gcc2 internal prototype to avoid an error. */
1870 /* We use char because int might match the return type of a gcc2
1871 builtin and then its argument prototype would still apply. */
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined (__stub_sigvec) || defined (__stub___sigvec)
1887 if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1889 eval "ac_cv_func_sigvec=yes"
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 eval "ac_cv_func_sigvec=no"
1899 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1903 echo "$ac_t""no" 1>&6
1904 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
1905 echo "configure:1906: checking for sigvec in -lucb" >&5
1906 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
1907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 ac_save_LIBS="$LIBS"
1911 LIBS="-lucb -L/usr/ucblib $LIBS"
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 /* Override any gcc2 internal prototype to avoid an error. */
1916 /* We use char because int might match the return type of a gcc2
1917 builtin and then its argument prototype would still apply. */
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1926 eval "ac_cv_lib_$ac_lib_var=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 eval "ac_cv_lib_$ac_lib_var=no"
1934 LIBS="$ac_save_LIBS"
1937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1938 echo "$ac_t""yes" 1>&6
1939 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
1941 echo "$ac_t""no" 1>&6
1947 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
1948 echo "configure:1949: checking for pioctl in -lsys" >&5
1949 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
1950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 ac_save_LIBS="$LIBS"
1954 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958 /* Override any gcc2 internal prototype to avoid an error. */
1959 /* We use char because int might match the return type of a gcc2
1960 builtin and then its argument prototype would still apply. */
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1969 eval "ac_cv_lib_$ac_lib_var=yes"
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 eval "ac_cv_lib_$ac_lib_var=no"
1977 LIBS="$ac_save_LIBS"
1980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1984 echo "$ac_t""no" 1>&6
1985 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
1989 cat >> confdefs.h <<\EOF
1995 *DEFINE=HAVE_AFS*) ;;
1996 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2008 echo "checking for GNU readline..." 1>&6
2009 echo "configure:2010: checking for GNU readline..." >&5
2010 # Check whether --with-readline or --without-readline was given.
2011 if test "${with_readline+set}" = set; then
2012 withval="$with_readline"
2015 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2016 echo "configure:2017: checking for readline in -lreadline" >&5
2017 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 ac_save_LIBS="$LIBS"
2022 LIBS="-lreadline -ltermcap $LIBS"
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 /* Override any gcc2 internal prototype to avoid an error. */
2027 /* We use char because int might match the return type of a gcc2
2028 builtin and then its argument prototype would still apply. */
2035 if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2037 eval "ac_cv_lib_$ac_lib_var=yes"
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2042 eval "ac_cv_lib_$ac_lib_var=no"
2045 LIBS="$ac_save_LIBS"
2048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2049 echo "$ac_t""yes" 1>&6
2052 echo "$ac_t""no" 1>&6
2058 if test "$readline" != no; then
2059 if test "$readline" != yes; then
2060 READLINE_CPPFLAGS="-I$readline/include/readline -DHAVE_READLINE"
2061 READLINE_LIBS="-L$readline/lib -lreadline -ltermcap"
2069 echo "checking for curses" 1>&6
2070 echo "configure:2071: checking for curses" >&5
2071 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2072 echo "configure:2073: checking for main in -lcurses" >&5
2073 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 ac_save_LIBS="$LIBS"
2078 LIBS="-lcurses $LIBS"
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2089 eval "ac_cv_lib_$ac_lib_var=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 eval "ac_cv_lib_$ac_lib_var=no"
2097 LIBS="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2104 echo "$ac_t""no" 1>&6
2105 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2106 echo "configure:2107: checking for main in -lncurses" >&5
2107 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 ac_save_LIBS="$LIBS"
2112 LIBS="-lncurses $LIBS"
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
2143 if test -n "$curses"; then
2146 echo "checking if curses needs termcap" 1>&6
2147 echo "configure:2148: checking if curses needs termcap" >&5
2148 if test "$cross_compiling" = yes; then
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2155 main(int argc, char **argv)
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2164 CURSES_LIBS="-l$curses"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 LIBS="-l$curses -ltermcap"
2170 if test "$cross_compiling" = yes; then
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2177 main(int argc, char **argv)
2184 if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2186 CURSES_LIBS="-l$curses -ltermcap"
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2202 if test -n "$CURSES_LIBS"; then
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2210 WINDOW *w; getmaxx(w);
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2225 WINDOW *w; w->_maxx;
2228 if { (eval echo configure:2229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2230 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2235 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2241 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2242 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2244 echo "configure: warning: Couldn't find -lcurses" 1>&2
2251 for ac_func in getusershell
2253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_func" >&5
2255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* System header to define __stub macros and hopefully few prototypes,
2262 which can conflict with char $ac_func(); below. */
2264 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2271 /* The GNU C library defines this for functions which it implements
2272 to always fail with ENOSYS. Some functions are actually named
2273 something starting with __ and the normal name is an alias. */
2274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2284 eval "ac_cv_func_$ac_func=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 eval "ac_cv_func_$ac_func=no"
2294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2297 cat >> confdefs.h <<EOF
2298 #define $ac_tr_func 1
2302 echo "$ac_t""no" 1>&6
2307 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2308 echo "configure:2309: checking how to run the C preprocessor" >&5
2309 # On Suns, sometimes $CPP names a directory.
2310 if test -n "$CPP" && test -d "$CPP"; then
2313 if test -z "$CPP"; then
2314 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 # This must be in double quotes, not single quotes, because CPP may get
2318 # substituted into the Makefile and "${CC-cc}" will confuse make.
2320 # On the NeXT, cc -E runs the code through the compiler's parser,
2321 # not just through cpp.
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err=`grep -v '^ *+' conftest.out`
2331 if test -z "$ac_err"; then
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 CPP="${CC-cc} -E -traditional-cpp"
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2346 { (eval echo configure:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2347 ac_err=`grep -v '^ *+' conftest.out`
2348 if test -z "$ac_err"; then
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2360 ac_cv_prog_CPP="$CPP"
2362 CPP="$ac_cv_prog_CPP"
2364 ac_cv_prog_CPP="$CPP"
2366 echo "$ac_t""$CPP" 1>&6
2368 ac_safe=`echo "crypt.h" | sed 'y%./+-%__p_%'`
2369 echo $ac_n "checking for crypt.h""... $ac_c" 1>&6
2370 echo "configure:2371: checking for crypt.h" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err=`grep -v '^ *+' conftest.out`
2382 if test -z "$ac_err"; then
2384 eval "ac_cv_header_$ac_safe=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2390 eval "ac_cv_header_$ac_safe=no"
2394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 CRYPT_CPPFLAGS=-DHAVE_CRYPT_H
2398 echo "$ac_t""no" 1>&6
2401 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2402 echo "configure:2403: checking for crypt" >&5
2403 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* System header to define __stub macros and hopefully few prototypes,
2410 which can conflict with char crypt(); below. */
2412 /* Override any gcc2 internal prototype to avoid an error. */
2413 /* We use char because int might match the return type of a gcc2
2414 builtin and then its argument prototype would still apply. */
2419 /* The GNU C library defines this for functions which it implements
2420 to always fail with ENOSYS. Some functions are actually named
2421 something starting with __ and the normal name is an alias. */
2422 #if defined (__stub_crypt) || defined (__stub___crypt)
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2432 eval "ac_cv_func_crypt=yes"
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2437 eval "ac_cv_func_crypt=no"
2442 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2443 echo "$ac_t""yes" 1>&6
2446 echo "$ac_t""no" 1>&6
2447 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2448 echo "configure:2449: checking for crypt in -lcrypt" >&5
2449 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 ac_save_LIBS="$LIBS"
2454 LIBS="-lcrypt $LIBS"
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* Override any gcc2 internal prototype to avoid an error. */
2459 /* We use char because int might match the return type of a gcc2
2460 builtin and then its argument prototype would still apply. */
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2469 eval "ac_cv_lib_$ac_lib_var=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 eval "ac_cv_lib_$ac_lib_var=no"
2477 LIBS="$ac_save_LIBS"
2480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2484 echo "$ac_t""no" 1>&6
2495 *-I'$(SRCTOP)/include'*) ;;
2496 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2500 case $PRO_C_INCLUDES in
2501 *INCLUDE='$(SRCTOP)/include'*) ;;
2502 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2509 *-I'$(BUILDTOP)/lib'*) ;;
2510 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2514 case $PRO_C_INCLUDES in
2515 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2516 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2523 *-I'$(BUILDTOP)/db'*) ;;
2524 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2528 case $PRO_C_INCLUDES in
2529 *INCLUDE='$(BUILDTOP)/db'*) ;;
2530 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2534 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2535 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2536 LIBS="-lmoira $KLIBS"
2540 cat > confcache <<\EOF
2541 # This file is a shell script that caches the results of configure
2542 # tests run on this system so they can be shared between configure
2543 # scripts and configure runs. It is not useful on other systems.
2544 # If it contains results you don't want to keep, you may remove or edit it.
2546 # By default, configure uses ./config.cache as the cache file,
2547 # creating it if it does not exist already. You can give configure
2548 # the --cache-file=FILE option to use a different cache file; that is
2549 # what configure does when it calls configure scripts in
2550 # subdirectories, so they share the cache.
2551 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2552 # config.status only pays attention to the cache file if you give it the
2553 # --recheck option to rerun configure.
2556 # The following way of writing the cache mishandles newlines in values,
2557 # but we know of no workaround that is simple, portable, and efficient.
2558 # So, don't put newlines in cache variables' values.
2559 # Ultrix sh set writes to stderr and can't be redirected directly,
2560 # and sets the high bit in the cache file unless we assign to the vars.
2562 case `(ac_space=' '; set) 2>&1` in
2564 # `set' does not quote correctly, so add quotes (double-quote substitution
2565 # turns \\\\ into \\, and sed turns \\ into \).
2567 -e "s/'/'\\\\''/g" \
2568 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2571 # `set' quotes correctly as required by POSIX, so do not add quotes.
2572 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2575 if cmp -s $cache_file confcache; then
2578 if test -w $cache_file; then
2579 echo "updating cache $cache_file"
2580 cat confcache > $cache_file
2582 echo "not updating unwritable cache $cache_file"
2587 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2590 # Let make expand exec_prefix.
2591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2593 # Any assignment to VPATH causes Sun make to only execute
2594 # the first set of double-colon rules, so remove it if not needed.
2595 # If there is a colon in the path, we need to keep it.
2596 if test "x$srcdir" = x.; then
2597 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2600 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2602 # Transform confdefs.h into DEFS.
2603 # Protect against shell expansion while executing Makefile rules.
2604 # Protect against Makefile macro expansion.
2605 cat > conftest.defs <<\EOF
2606 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2607 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2612 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2616 # Without the "./", some shells look in PATH for config.status.
2617 : ${CONFIG_STATUS=./config.status}
2619 echo creating $CONFIG_STATUS
2620 rm -f $CONFIG_STATUS
2621 cat > $CONFIG_STATUS <<EOF
2623 # Generated automatically by configure.
2624 # Run this file to recreate the current configuration.
2625 # This directory was configured as follows,
2626 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2628 # $0 $ac_configure_args
2630 # Compiler output produced by configure, useful for debugging
2631 # configure, is in ./config.log if it exists.
2633 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2636 case "\$ac_option" in
2637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2638 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2639 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2640 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2641 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2643 -help | --help | --hel | --he | --h)
2644 echo "\$ac_cs_usage"; exit 0 ;;
2645 *) echo "\$ac_cs_usage"; exit 1 ;;
2649 ac_given_srcdir=$srcdir
2650 ac_given_INSTALL="$INSTALL"
2652 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2653 clients/addusr/Makefile clients/blanche/Makefile \
2654 clients/mailmaint/Makefile clients/moira/Makefile \
2655 clients/mrcheck/Makefile clients/mrtest/Makefile \
2656 clients/passwd/Makefile clients/userreg/Makefile \
2657 update/Makefile man/Makefile \
2658 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2660 cat >> $CONFIG_STATUS <<EOF
2662 # Protect against being on the right side of a sed subst in config.status.
2663 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2664 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2667 s%@CFLAGS@%$CFLAGS%g
2668 s%@CPPFLAGS@%$CPPFLAGS%g
2669 s%@CXXFLAGS@%$CXXFLAGS%g
2671 s%@LDFLAGS@%$LDFLAGS%g
2673 s%@exec_prefix@%$exec_prefix%g
2674 s%@prefix@%$prefix%g
2675 s%@program_transform_name@%$program_transform_name%g
2676 s%@bindir@%$bindir%g
2677 s%@sbindir@%$sbindir%g
2678 s%@libexecdir@%$libexecdir%g
2679 s%@datadir@%$datadir%g
2680 s%@sysconfdir@%$sysconfdir%g
2681 s%@sharedstatedir@%$sharedstatedir%g
2682 s%@localstatedir@%$localstatedir%g
2683 s%@libdir@%$libdir%g
2684 s%@includedir@%$includedir%g
2685 s%@oldincludedir@%$oldincludedir%g
2686 s%@infodir@%$infodir%g
2687 s%@mandir@%$mandir%g
2689 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2690 s%@INSTALL_DATA@%$INSTALL_DATA%g
2691 s%@RANLIB@%$RANLIB%g
2692 s%@SET_MAKE@%$SET_MAKE%g
2693 s%@mrbindir@%$mrbindir%g
2694 s%@subdirs@%$subdirs%g
2695 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
2696 s%@COMPILE_ET@%$COMPILE_ET%g
2697 s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g
2698 s%@GDSS_LIBS@%$GDSS_LIBS%g
2699 s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g
2700 s%@GDSS_OBJS@%$GDSS_OBJS%g
2701 s%@GDSS_CFILES@%$GDSS_CFILES%g
2702 s%@GDSS_TARGET@%$GDSS_TARGET%g
2704 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
2705 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
2706 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
2707 s%@SQL_LIBS@%$SQL_LIBS%g
2708 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
2709 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
2710 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
2711 s%@AFS_LIBS@%$AFS_LIBS%g
2712 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
2713 s%@AFS_DIR@%$AFS_DIR%g
2714 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
2715 s%@READLINE_LIBS@%$READLINE_LIBS%g
2716 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
2717 s%@CURSES_LIBS@%$CURSES_LIBS%g
2718 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
2720 s%@CRYPT_CPPFLAGS@%$CRYPT_CPPFLAGS%g
2721 s%@CRYPT_LIBS@%$CRYPT_LIBS%g
2727 cat >> $CONFIG_STATUS <<\EOF
2729 # Split the substitutions into bite-sized pieces for seds with
2730 # small command number limits, like on Digital OSF/1 and HP-UX.
2731 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2732 ac_file=1 # Number of current file.
2733 ac_beg=1 # First line for current file.
2734 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2737 while $ac_more_lines; do
2738 if test $ac_beg -gt 1; then
2739 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2741 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2743 if test ! -s conftest.s$ac_file; then
2745 rm -f conftest.s$ac_file
2747 if test -z "$ac_sed_cmds"; then
2748 ac_sed_cmds="sed -f conftest.s$ac_file"
2750 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2752 ac_file=`expr $ac_file + 1`
2754 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2757 if test -z "$ac_sed_cmds"; then
2762 cat >> $CONFIG_STATUS <<EOF
2764 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
2765 clients/addusr/Makefile clients/blanche/Makefile \
2766 clients/mailmaint/Makefile clients/moira/Makefile \
2767 clients/mrcheck/Makefile clients/mrtest/Makefile \
2768 clients/passwd/Makefile clients/userreg/Makefile \
2769 update/Makefile man/Makefile \
2770 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES"}
2772 cat >> $CONFIG_STATUS <<\EOF
2773 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2774 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2776 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2777 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2778 *) ac_file_in="${ac_file}.in" ;;
2781 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2783 # Remove last slash and all that follows it. Not all systems have dirname.
2784 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2785 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2786 # The file is in a subdirectory.
2787 test ! -d "$ac_dir" && mkdir "$ac_dir"
2788 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2789 # A "../" for each directory in $ac_dir_suffix.
2790 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2792 ac_dir_suffix= ac_dots=
2795 case "$ac_given_srcdir" in
2797 if test -z "$ac_dots"; then top_srcdir=.
2798 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2799 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2801 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2802 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2805 case "$ac_given_INSTALL" in
2806 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2807 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2810 echo creating "$ac_file"
2812 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2814 *Makefile*) ac_comsub="1i\\
2815 # $configure_input" ;;
2819 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2821 s%@configure_input@%$configure_input%g
2822 s%@srcdir@%$srcdir%g
2823 s%@top_srcdir@%$top_srcdir%g
2824 s%@INSTALL@%$INSTALL%g
2825 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2830 cat >> $CONFIG_STATUS <<EOF
2833 cat >> $CONFIG_STATUS <<\EOF
2837 chmod +x $CONFIG_STATUS
2838 rm -fr confdefs* $ac_clean_files
2839 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2841 if test "$no_recursion" != yes; then
2843 # Remove --cache-file and --srcdir arguments so they do not pile up.
2844 ac_sub_configure_args=
2846 for ac_arg in $ac_configure_args; do
2847 if test -n "$ac_prev"; then
2852 -cache-file | --cache-file | --cache-fil | --cache-fi \
2853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2854 ac_prev=cache_file ;;
2855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2858 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2860 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2862 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2866 for ac_config_dir in $COM_ERR_SUBDIR; do
2868 # Do not complain, so a configure script can configure whichever
2869 # parts of a large source tree are present.
2870 if test ! -d $srcdir/$ac_config_dir; then
2874 echo configuring in $ac_config_dir
2879 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2881 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2889 # A "../" for each directory in /$ac_config_dir.
2890 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2893 .) # No --srcdir option. We are building in place.
2894 ac_sub_srcdir=$srcdir ;;
2895 /*) # Absolute path.
2896 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2898 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2901 # Check for guested configure; otherwise get Cygnus style configure.
2902 if test -f $ac_sub_srcdir/configure; then
2903 ac_sub_configure=$ac_sub_srcdir/configure
2904 elif test -f $ac_sub_srcdir/configure.in; then
2905 ac_sub_configure=$ac_configure
2907 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2911 # The recursion is here.
2912 if test -n "$ac_sub_configure"; then
2914 # Make the cache file name correct relative to the subdirectory.
2915 case "$cache_file" in
2916 /*) ac_sub_cache_file=$cache_file ;;
2918 ac_sub_cache_file="$ac_dots$cache_file" ;;
2920 case "$ac_given_INSTALL" in
2921 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2922 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2925 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2926 # The eval makes quoting arguments work.
2927 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2930 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }