]> andersk Git - moira.git/blob - configure
redo the readline stuff again to make the 8.3 /usr/athena install work
[moira.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-athena         Enable Athena-specific policy decisions"
16 ac_help="$ac_help
17   --with-com_err=PREFIX   Specify location of com_err"
18 ac_help="$ac_help
19   --with-krb4=PREFIX      Specify location of krb4"
20 ac_help="$ac_help
21   --with-krb5=PREFIX      Specify location of krb5 (for reg_svr)"
22 ac_help="$ac_help
23   --with-hesiod=PREFIX    Specify location of Hesiod"
24 ac_help="$ac_help
25   --with-zephyr=PREFIX    Specify location of Zephyr"
26 ac_help="$ac_help
27   --with-gdss=PREFIX      Specify location of GDSS"
28 ac_help="$ac_help
29   --with-rsaref=PREFIX      Specify location of RSAREF"
30 ac_help="$ac_help
31   --with-oracle=PREFIX    Specify location of Oracle (for server)"
32 ac_help="$ac_help
33   --with-afs=PREFIX       Specify location of AFS libs (for server)"
34 ac_help="$ac_help
35   --with-readline=PREFIX  Specify location of GNU readline"
36
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
70
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
77
78 ac_prev=
79 for ac_option
80 do
81
82   # If the previous option needs an argument, assign it.
83   if test -n "$ac_prev"; then
84     eval "$ac_prev=\$ac_option"
85     ac_prev=
86     continue
87   fi
88
89   case "$ac_option" in
90   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91   *) ac_optarg= ;;
92   esac
93
94   # Accept the important Cygnus configure options, so we can diagnose typos.
95
96   case "$ac_option" in
97
98   -bindir | --bindir | --bindi | --bind | --bin | --bi)
99     ac_prev=bindir ;;
100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101     bindir="$ac_optarg" ;;
102
103   -build | --build | --buil | --bui | --bu)
104     ac_prev=build ;;
105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106     build="$ac_optarg" ;;
107
108   -cache-file | --cache-file | --cache-fil | --cache-fi \
109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110     ac_prev=cache_file ;;
111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113     cache_file="$ac_optarg" ;;
114
115   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116     ac_prev=datadir ;;
117   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118   | --da=*)
119     datadir="$ac_optarg" ;;
120
121   -disable-* | --disable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     eval "enable_${ac_feature}=no" ;;
129
130   -enable-* | --enable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     case "$ac_option" in
138       *=*) ;;
139       *) ac_optarg=yes ;;
140     esac
141     eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145   | --exec | --exe | --ex)
146     ac_prev=exec_prefix ;;
147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149   | --exec=* | --exe=* | --ex=*)
150     exec_prefix="$ac_optarg" ;;
151
152   -gas | --gas | --ga | --g)
153     # Obsolete; use --with-gas.
154     with_gas=yes ;;
155
156   -help | --help | --hel | --he)
157     # Omit some internal or obsolete options to make the list less imposing.
158     # This message is too long to be a string in the A/UX 3.1 sh.
159     cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163   --cache-file=FILE       cache test results in FILE
164   --help                  print this message
165   --no-create             do not create output files
166   --quiet, --silent       do not print \`checking...' messages
167   --version               print the version of autoconf that created configure
168 Directory and file names:
169   --prefix=PREFIX         install architecture-independent files in PREFIX
170                           [$ac_default_prefix]
171   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
172                           [same as prefix]
173   --bindir=DIR            user executables in DIR [EPREFIX/bin]
174   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
175   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
176   --datadir=DIR           read-only architecture-independent data in DIR
177                           [PREFIX/share]
178   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
179   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
180                           [PREFIX/com]
181   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
182   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
183   --includedir=DIR        C header files in DIR [PREFIX/include]
184   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
185   --infodir=DIR           info documentation in DIR [PREFIX/info]
186   --mandir=DIR            man documentation in DIR [PREFIX/man]
187   --srcdir=DIR            find the sources in DIR [configure dir or ..]
188   --program-prefix=PREFIX prepend PREFIX to installed program names
189   --program-suffix=SUFFIX append SUFFIX to installed program names
190   --program-transform-name=PROGRAM
191                           run sed PROGRAM on installed program names
192 EOF
193     cat << EOF
194 Host type:
195   --build=BUILD           configure for building on BUILD [BUILD=HOST]
196   --host=HOST             configure for HOST [guessed]
197   --target=TARGET         configure for TARGET [TARGET=HOST]
198 Features and packages:
199   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
200   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
201   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
202   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
203   --x-includes=DIR        X include files are in DIR
204   --x-libraries=DIR       X library files are in DIR
205 EOF
206     if test -n "$ac_help"; then
207       echo "--enable and --with options recognized:$ac_help"
208     fi
209     exit 0 ;;
210
211   -host | --host | --hos | --ho)
212     ac_prev=host ;;
213   -host=* | --host=* | --hos=* | --ho=*)
214     host="$ac_optarg" ;;
215
216   -includedir | --includedir | --includedi | --included | --include \
217   | --includ | --inclu | --incl | --inc)
218     ac_prev=includedir ;;
219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220   | --includ=* | --inclu=* | --incl=* | --inc=*)
221     includedir="$ac_optarg" ;;
222
223   -infodir | --infodir | --infodi | --infod | --info | --inf)
224     ac_prev=infodir ;;
225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226     infodir="$ac_optarg" ;;
227
228   -libdir | --libdir | --libdi | --libd)
229     ac_prev=libdir ;;
230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
231     libdir="$ac_optarg" ;;
232
233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234   | --libexe | --libex | --libe)
235     ac_prev=libexecdir ;;
236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237   | --libexe=* | --libex=* | --libe=*)
238     libexecdir="$ac_optarg" ;;
239
240   -localstatedir | --localstatedir | --localstatedi | --localstated \
241   | --localstate | --localstat | --localsta | --localst \
242   | --locals | --local | --loca | --loc | --lo)
243     ac_prev=localstatedir ;;
244   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247     localstatedir="$ac_optarg" ;;
248
249   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250     ac_prev=mandir ;;
251   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252     mandir="$ac_optarg" ;;
253
254   -nfp | --nfp | --nf)
255     # Obsolete; use --without-fp.
256     with_fp=no ;;
257
258   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259   | --no-cr | --no-c)
260     no_create=yes ;;
261
262   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264     no_recursion=yes ;;
265
266   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268   | --oldin | --oldi | --old | --ol | --o)
269     ac_prev=oldincludedir ;;
270   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273     oldincludedir="$ac_optarg" ;;
274
275   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276     ac_prev=prefix ;;
277   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278     prefix="$ac_optarg" ;;
279
280   -program-prefix | --program-prefix | --program-prefi | --program-pref \
281   | --program-pre | --program-pr | --program-p)
282     ac_prev=program_prefix ;;
283   -program-prefix=* | --program-prefix=* | --program-prefi=* \
284   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285     program_prefix="$ac_optarg" ;;
286
287   -program-suffix | --program-suffix | --program-suffi | --program-suff \
288   | --program-suf | --program-su | --program-s)
289     ac_prev=program_suffix ;;
290   -program-suffix=* | --program-suffix=* | --program-suffi=* \
291   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292     program_suffix="$ac_optarg" ;;
293
294   -program-transform-name | --program-transform-name \
295   | --program-transform-nam | --program-transform-na \
296   | --program-transform-n | --program-transform- \
297   | --program-transform | --program-transfor \
298   | --program-transfo | --program-transf \
299   | --program-trans | --program-tran \
300   | --progr-tra | --program-tr | --program-t)
301     ac_prev=program_transform_name ;;
302   -program-transform-name=* | --program-transform-name=* \
303   | --program-transform-nam=* | --program-transform-na=* \
304   | --program-transform-n=* | --program-transform-=* \
305   | --program-transform=* | --program-transfor=* \
306   | --program-transfo=* | --program-transf=* \
307   | --program-trans=* | --program-tran=* \
308   | --progr-tra=* | --program-tr=* | --program-t=*)
309     program_transform_name="$ac_optarg" ;;
310
311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312   | -silent | --silent | --silen | --sile | --sil)
313     silent=yes ;;
314
315   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316     ac_prev=sbindir ;;
317   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318   | --sbi=* | --sb=*)
319     sbindir="$ac_optarg" ;;
320
321   -sharedstatedir | --sharedstatedir | --sharedstatedi \
322   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323   | --sharedst | --shareds | --shared | --share | --shar \
324   | --sha | --sh)
325     ac_prev=sharedstatedir ;;
326   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329   | --sha=* | --sh=*)
330     sharedstatedir="$ac_optarg" ;;
331
332   -site | --site | --sit)
333     ac_prev=site ;;
334   -site=* | --site=* | --sit=*)
335     site="$ac_optarg" ;;
336
337   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338     ac_prev=srcdir ;;
339   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340     srcdir="$ac_optarg" ;;
341
342   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343   | --syscon | --sysco | --sysc | --sys | --sy)
344     ac_prev=sysconfdir ;;
345   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347     sysconfdir="$ac_optarg" ;;
348
349   -target | --target | --targe | --targ | --tar | --ta | --t)
350     ac_prev=target ;;
351   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352     target="$ac_optarg" ;;
353
354   -v | -verbose | --verbose | --verbos | --verbo | --verb)
355     verbose=yes ;;
356
357   -version | --version | --versio | --versi | --vers)
358     echo "configure generated by autoconf version 2.13"
359     exit 0 ;;
360
361   -with-* | --with-*)
362     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     case "$ac_option" in
369       *=*) ;;
370       *) ac_optarg=yes ;;
371     esac
372     eval "with_${ac_package}='$ac_optarg'" ;;
373
374   -without-* | --without-*)
375     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376     # Reject names that are not valid shell variable names.
377     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379     fi
380     ac_package=`echo $ac_package| sed 's/-/_/g'`
381     eval "with_${ac_package}=no" ;;
382
383   --x)
384     # Obsolete; use --with-x.
385     with_x=yes ;;
386
387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388   | --x-incl | --x-inc | --x-in | --x-i)
389     ac_prev=x_includes ;;
390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392     x_includes="$ac_optarg" ;;
393
394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396     ac_prev=x_libraries ;;
397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399     x_libraries="$ac_optarg" ;;
400
401   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402     ;;
403
404   *)
405     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406       echo "configure: warning: $ac_option: invalid host type" 1>&2
407     fi
408     if test "x$nonopt" != xNONE; then
409       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410     fi
411     nonopt="$ac_option"
412     ;;
413
414   esac
415 done
416
417 if test -n "$ac_prev"; then
418   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 fi
420
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432   exec 6>/dev/null
433 else
434   exec 6>&1
435 fi
436 exec 5>./config.log
437
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
442
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
447 do
448   case "$ac_arg" in
449   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450   | --no-cr | --no-c) ;;
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456   esac
457 done
458
459 # NLS nuisances.
460 # Only set these to C if already set.  These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
468
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 echo > confdefs.h
473
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=patchlevel.h
477
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480   ac_srcdir_defaulted=yes
481   # Try the directory containing this script, then its parent.
482   ac_prog=$0
483   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485   srcdir=$ac_confdir
486   if test ! -r $srcdir/$ac_unique_file; then
487     srcdir=..
488   fi
489 else
490   ac_srcdir_defaulted=no
491 fi
492 if test ! -r $srcdir/$ac_unique_file; then
493   if test "$ac_srcdir_defaulted" = yes; then
494     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495   else
496     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497   fi
498 fi
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503   if test "x$prefix" != xNONE; then
504     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505   else
506     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507   fi
508 fi
509 for ac_site_file in $CONFIG_SITE; do
510   if test -r "$ac_site_file"; then
511     echo "loading site script $ac_site_file"
512     . "$ac_site_file"
513   fi
514 done
515
516 if test -r "$cache_file"; then
517   echo "loading cache $cache_file"
518   . $cache_file
519 else
520   echo "creating cache $cache_file"
521   > $cache_file
522 fi
523
524 ac_ext=c
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
530
531 ac_exeext=
532 ac_objext=o
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536     ac_n= ac_c='
537 ' ac_t='        '
538   else
539     ac_n=-n ac_c= ac_t=
540   fi
541 else
542   ac_n= ac_c='\c' ac_t=
543 fi
544
545
546
547
548
549
550
551  
552
553
554
555 # Extract the first word of "gcc", so it can be a program name with args.
556 set dummy gcc; ac_word=$2
557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
558 echo "configure:559: checking for $ac_word" >&5
559 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
560   echo $ac_n "(cached) $ac_c" 1>&6
561 else
562   if test -n "$CC"; then
563   ac_cv_prog_CC="$CC" # Let the user override the test.
564 else
565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
566   ac_dummy="$PATH"
567   for ac_dir in $ac_dummy; do
568     test -z "$ac_dir" && ac_dir=.
569     if test -f $ac_dir/$ac_word; then
570       ac_cv_prog_CC="gcc"
571       break
572     fi
573   done
574   IFS="$ac_save_ifs"
575 fi
576 fi
577 CC="$ac_cv_prog_CC"
578 if test -n "$CC"; then
579   echo "$ac_t""$CC" 1>&6
580 else
581   echo "$ac_t""no" 1>&6
582 fi
583
584 if test -z "$CC"; then
585   # Extract the first word of "cc", so it can be a program name with args.
586 set dummy cc; ac_word=$2
587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
588 echo "configure:589: checking for $ac_word" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
590   echo $ac_n "(cached) $ac_c" 1>&6
591 else
592   if test -n "$CC"; then
593   ac_cv_prog_CC="$CC" # Let the user override the test.
594 else
595   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
596   ac_prog_rejected=no
597   ac_dummy="$PATH"
598   for ac_dir in $ac_dummy; do
599     test -z "$ac_dir" && ac_dir=.
600     if test -f $ac_dir/$ac_word; then
601       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
602         ac_prog_rejected=yes
603         continue
604       fi
605       ac_cv_prog_CC="cc"
606       break
607     fi
608   done
609   IFS="$ac_save_ifs"
610 if test $ac_prog_rejected = yes; then
611   # We found a bogon in the path, so make sure we never use it.
612   set dummy $ac_cv_prog_CC
613   shift
614   if test $# -gt 0; then
615     # We chose a different compiler from the bogus one.
616     # However, it has the same basename, so the bogon will be chosen
617     # first if we set CC to just the basename; use the full file name.
618     shift
619     set dummy "$ac_dir/$ac_word" "$@"
620     shift
621     ac_cv_prog_CC="$@"
622   fi
623 fi
624 fi
625 fi
626 CC="$ac_cv_prog_CC"
627 if test -n "$CC"; then
628   echo "$ac_t""$CC" 1>&6
629 else
630   echo "$ac_t""no" 1>&6
631 fi
632
633   if test -z "$CC"; then
634     case "`uname -s`" in
635     *win32* | *WIN32*)
636       # Extract the first word of "cl", so it can be a program name with args.
637 set dummy cl; ac_word=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:640: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641   echo $ac_n "(cached) $ac_c" 1>&6
642 else
643   if test -n "$CC"; then
644   ac_cv_prog_CC="$CC" # Let the user override the test.
645 else
646   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
647   ac_dummy="$PATH"
648   for ac_dir in $ac_dummy; do
649     test -z "$ac_dir" && ac_dir=.
650     if test -f $ac_dir/$ac_word; then
651       ac_cv_prog_CC="cl"
652       break
653     fi
654   done
655   IFS="$ac_save_ifs"
656 fi
657 fi
658 CC="$ac_cv_prog_CC"
659 if test -n "$CC"; then
660   echo "$ac_t""$CC" 1>&6
661 else
662   echo "$ac_t""no" 1>&6
663 fi
664  ;;
665     esac
666   fi
667   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
668 fi
669
670 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
671 echo "configure:672: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
672
673 ac_ext=c
674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
675 ac_cpp='$CPP $CPPFLAGS'
676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
678 cross_compiling=$ac_cv_prog_cc_cross
679
680 cat > conftest.$ac_ext << EOF
681
682 #line 683 "configure"
683 #include "confdefs.h"
684
685 main(){return(0);}
686 EOF
687 if { (eval echo configure:688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
688   ac_cv_prog_cc_works=yes
689   # If we can't run a trivial program, we are probably using a cross compiler.
690   if (./conftest; exit) 2>/dev/null; then
691     ac_cv_prog_cc_cross=no
692   else
693     ac_cv_prog_cc_cross=yes
694   fi
695 else
696   echo "configure: failed program was:" >&5
697   cat conftest.$ac_ext >&5
698   ac_cv_prog_cc_works=no
699 fi
700 rm -fr conftest*
701 ac_ext=c
702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
703 ac_cpp='$CPP $CPPFLAGS'
704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
706 cross_compiling=$ac_cv_prog_cc_cross
707
708 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
709 if test $ac_cv_prog_cc_works = no; then
710   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
711 fi
712 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
713 echo "configure:714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
714 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
715 cross_compiling=$ac_cv_prog_cc_cross
716
717 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
718 echo "configure:719: checking whether we are using GNU C" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
720   echo $ac_n "(cached) $ac_c" 1>&6
721 else
722   cat > conftest.c <<EOF
723 #ifdef __GNUC__
724   yes;
725 #endif
726 EOF
727 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
728   ac_cv_prog_gcc=yes
729 else
730   ac_cv_prog_gcc=no
731 fi
732 fi
733
734 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
735
736 if test $ac_cv_prog_gcc = yes; then
737   GCC=yes
738 else
739   GCC=
740 fi
741
742 ac_test_CFLAGS="${CFLAGS+set}"
743 ac_save_CFLAGS="$CFLAGS"
744 CFLAGS=
745 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
746 echo "configure:747: checking whether ${CC-cc} accepts -g" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
748   echo $ac_n "(cached) $ac_c" 1>&6
749 else
750   echo 'void f(){}' > conftest.c
751 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
752   ac_cv_prog_cc_g=yes
753 else
754   ac_cv_prog_cc_g=no
755 fi
756 rm -f conftest*
757
758 fi
759
760 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
761 if test "$ac_test_CFLAGS" = set; then
762   CFLAGS="$ac_save_CFLAGS"
763 elif test $ac_cv_prog_cc_g = yes; then
764   if test "$GCC" = yes; then
765     CFLAGS="-g -O2"
766   else
767     CFLAGS="-g"
768   fi
769 else
770   if test "$GCC" = yes; then
771     CFLAGS="-O2"
772   else
773     CFLAGS=
774   fi
775 fi
776
777 ac_aux_dir=
778 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
779   if test -f $ac_dir/install-sh; then
780     ac_aux_dir=$ac_dir
781     ac_install_sh="$ac_aux_dir/install-sh -c"
782     break
783   elif test -f $ac_dir/install.sh; then
784     ac_aux_dir=$ac_dir
785     ac_install_sh="$ac_aux_dir/install.sh -c"
786     break
787   fi
788 done
789 if test -z "$ac_aux_dir"; then
790   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
791 fi
792 ac_config_guess=$ac_aux_dir/config.guess
793 ac_config_sub=$ac_aux_dir/config.sub
794 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
795
796 # Find a good install program.  We prefer a C program (faster),
797 # so one script is as good as another.  But avoid the broken or
798 # incompatible versions:
799 # SysV /etc/install, /usr/sbin/install
800 # SunOS /usr/etc/install
801 # IRIX /sbin/install
802 # AIX /bin/install
803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
806 # ./install, which can be erroneously created by make from ./install.sh.
807 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
808 echo "configure:809: checking for a BSD compatible install" >&5
809 if test -z "$INSTALL"; then
810 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
811   echo $ac_n "(cached) $ac_c" 1>&6
812 else
813     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
814   for ac_dir in $PATH; do
815     # Account for people who put trailing slashes in PATH elements.
816     case "$ac_dir/" in
817     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
818     *)
819       # OSF1 and SCO ODT 3.0 have their own names for install.
820       # Don't use installbsd from OSF since it installs stuff as root
821       # by default.
822       for ac_prog in ginstall scoinst install; do
823         if test -f $ac_dir/$ac_prog; then
824           if test $ac_prog = install &&
825             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
826             # AIX install.  It has an incompatible calling convention.
827             :
828           else
829             ac_cv_path_install="$ac_dir/$ac_prog -c"
830             break 2
831           fi
832         fi
833       done
834       ;;
835     esac
836   done
837   IFS="$ac_save_IFS"
838
839 fi
840   if test "${ac_cv_path_install+set}" = set; then
841     INSTALL="$ac_cv_path_install"
842   else
843     # As a last resort, use the slow shell script.  We don't cache a
844     # path for INSTALL within a source directory, because that will
845     # break other packages using the cache if that directory is
846     # removed, or if the path is relative.
847     INSTALL="$ac_install_sh"
848   fi
849 fi
850 echo "$ac_t""$INSTALL" 1>&6
851
852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
853 # It thinks the first close brace ends the variable substitution.
854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
855
856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
857
858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
859
860 # Extract the first word of "ranlib", so it can be a program name with args.
861 set dummy ranlib; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
865   echo $ac_n "(cached) $ac_c" 1>&6
866 else
867   if test -n "$RANLIB"; then
868   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
869 else
870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
871   ac_dummy="$PATH"
872   for ac_dir in $ac_dummy; do
873     test -z "$ac_dir" && ac_dir=.
874     if test -f $ac_dir/$ac_word; then
875       ac_cv_prog_RANLIB="ranlib"
876       break
877     fi
878   done
879   IFS="$ac_save_ifs"
880   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
881 fi
882 fi
883 RANLIB="$ac_cv_prog_RANLIB"
884 if test -n "$RANLIB"; then
885   echo "$ac_t""$RANLIB" 1>&6
886 else
887   echo "$ac_t""no" 1>&6
888 fi
889
890 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
891 echo "configure:892: checking whether ${MAKE-make} sets \${MAKE}" >&5
892 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
893 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
894   echo $ac_n "(cached) $ac_c" 1>&6
895 else
896   cat > conftestmake <<\EOF
897 all:
898         @echo 'ac_maketemp="${MAKE}"'
899 EOF
900 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
901 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
902 if test -n "$ac_maketemp"; then
903   eval ac_cv_prog_make_${ac_make}_set=yes
904 else
905   eval ac_cv_prog_make_${ac_make}_set=no
906 fi
907 rm -f conftestmake
908 fi
909 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
910   echo "$ac_t""yes" 1>&6
911   SET_MAKE=
912 else
913   echo "$ac_t""no" 1>&6
914   SET_MAKE="MAKE=${MAKE-make}"
915 fi
916
917
918 if test "$athena" = true; then
919     enable_athena=yes
920     prefix=/afs/athena.mit.edu/system/moira
921     bindir=$prefix/arch/$ATHENA_SYS/bin
922     sbindir=$bindir
923     
924     
925     case $CPPFLAGS in
926         *-I/usr/athena/include*) ;;
927         *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
928     esac
929
930     
931     case $PRO_C_INCLUDES in
932         *INCLUDE=/usr/athena/include*) ;;
933         *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
934     esac
935
936
937     
938     
939     case $CPPFLAGS in
940         *-I/usr/athena/include/kerberosIV*) ;;
941         *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;;
942     esac
943
944     
945     case $PRO_C_INCLUDES in
946         *INCLUDE=/usr/athena/include/kerberosIV*) ;;
947         *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;;
948     esac
949
950
951     
952     case $LIBPATH in
953         *-L/usr/athena/lib*) ;;
954         *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
955     esac
956
957 fi
958
959 # We currently just don't support changing this
960 mrbindir=/moira/bin
961
962
963 # Athena-local policy decisions
964 echo $ac_n "checking for Athena""... $ac_c" 1>&6
965 echo "configure:966: checking for Athena" >&5
966 # Check whether --enable-athena or --disable-athena was given.
967 if test "${enable_athena+set}" = set; then
968   enableval="$enable_athena"
969   :
970 else
971   if test "$athena" = true; then
972            enableval=yes
973        else
974            enableval=no
975        fi
976 fi
977
978 echo "$ac_t""$enableval" 1>&6
979 if test "$enableval" = yes; then
980     
981     cat >> confdefs.h <<\EOF
982 #define ATHENA 1
983 EOF
984
985     
986     case $PRO_C_DEFS in
987         *DEFINE=ATHENA*) ;;
988         *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
989     esac
990
991
992 fi
993
994 # Networking libraries
995 echo "checking network libraries..." 1>&6
996 echo "configure:997: checking network libraries..." >&5
997 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
998 echo "configure:999: checking for gethostbyname" >&5
999 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1000   echo $ac_n "(cached) $ac_c" 1>&6
1001 else
1002   cat > conftest.$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1005 /* System header to define __stub macros and hopefully few prototypes,
1006     which can conflict with char gethostbyname(); below.  */
1007 #include <assert.h>
1008 /* Override any gcc2 internal prototype to avoid an error.  */
1009 /* We use char because int might match the return type of a gcc2
1010     builtin and then its argument prototype would still apply.  */
1011 char gethostbyname();
1012
1013 int main() {
1014
1015 /* The GNU C library defines this for functions which it implements
1016     to always fail with ENOSYS.  Some functions are actually named
1017     something starting with __ and the normal name is an alias.  */
1018 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1019 choke me
1020 #else
1021 gethostbyname();
1022 #endif
1023
1024 ; return 0; }
1025 EOF
1026 if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1027   rm -rf conftest*
1028   eval "ac_cv_func_gethostbyname=yes"
1029 else
1030   echo "configure: failed program was:" >&5
1031   cat conftest.$ac_ext >&5
1032   rm -rf conftest*
1033   eval "ac_cv_func_gethostbyname=no"
1034 fi
1035 rm -f conftest*
1036 fi
1037
1038 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1039   echo "$ac_t""yes" 1>&6
1040   :
1041 else
1042   echo "$ac_t""no" 1>&6
1043 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1044 echo "configure:1045: checking for gethostbyname in -lnsl" >&5
1045 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1047   echo $ac_n "(cached) $ac_c" 1>&6
1048 else
1049   ac_save_LIBS="$LIBS"
1050 LIBS="-lnsl  $LIBS"
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1054 /* Override any gcc2 internal prototype to avoid an error.  */
1055 /* We use char because int might match the return type of a gcc2
1056     builtin and then its argument prototype would still apply.  */
1057 char gethostbyname();
1058
1059 int main() {
1060 gethostbyname()
1061 ; return 0; }
1062 EOF
1063 if { (eval echo configure:1064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1064   rm -rf conftest*
1065   eval "ac_cv_lib_$ac_lib_var=yes"
1066 else
1067   echo "configure: failed program was:" >&5
1068   cat conftest.$ac_ext >&5
1069   rm -rf conftest*
1070   eval "ac_cv_lib_$ac_lib_var=no"
1071 fi
1072 rm -f conftest*
1073 LIBS="$ac_save_LIBS"
1074
1075 fi
1076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1077   echo "$ac_t""yes" 1>&6
1078     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1079     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1080   cat >> confdefs.h <<EOF
1081 #define $ac_tr_lib 1
1082 EOF
1083
1084   LIBS="-lnsl $LIBS"
1085
1086 else
1087   echo "$ac_t""no" 1>&6
1088 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1089 echo "configure:1090: checking for gethostbyname in -lresolv" >&5
1090 ac_lib_var=`echo resolv'_'gethostbyname | 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
1093 else
1094   ac_save_LIBS="$LIBS"
1095 LIBS="-lresolv  $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.  */
1102 char gethostbyname();
1103
1104 int main() {
1105 gethostbyname()
1106 ; return 0; }
1107 EOF
1108 if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1109   rm -rf conftest*
1110   eval "ac_cv_lib_$ac_lib_var=yes"
1111 else
1112   echo "configure: failed program was:" >&5
1113   cat conftest.$ac_ext >&5
1114   rm -rf conftest*
1115   eval "ac_cv_lib_$ac_lib_var=no"
1116 fi
1117 rm -f conftest*
1118 LIBS="$ac_save_LIBS"
1119
1120 fi
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 resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1124     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1125   cat >> confdefs.h <<EOF
1126 #define $ac_tr_lib 1
1127 EOF
1128
1129   LIBS="-lresolv $LIBS"
1130
1131 else
1132   echo "$ac_t""no" 1>&6
1133 fi
1134
1135 fi
1136
1137 fi
1138
1139 echo $ac_n "checking for socket""... $ac_c" 1>&6
1140 echo "configure:1141: checking for socket" >&5
1141 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1142   echo $ac_n "(cached) $ac_c" 1>&6
1143 else
1144   cat > conftest.$ac_ext <<EOF
1145 #line 1146 "configure"
1146 #include "confdefs.h"
1147 /* System header to define __stub macros and hopefully few prototypes,
1148     which can conflict with char socket(); below.  */
1149 #include <assert.h>
1150 /* Override any gcc2 internal prototype to avoid an error.  */
1151 /* We use char because int might match the return type of a gcc2
1152     builtin and then its argument prototype would still apply.  */
1153 char socket();
1154
1155 int main() {
1156
1157 /* The GNU C library defines this for functions which it implements
1158     to always fail with ENOSYS.  Some functions are actually named
1159     something starting with __ and the normal name is an alias.  */
1160 #if defined (__stub_socket) || defined (__stub___socket)
1161 choke me
1162 #else
1163 socket();
1164 #endif
1165
1166 ; return 0; }
1167 EOF
1168 if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1169   rm -rf conftest*
1170   eval "ac_cv_func_socket=yes"
1171 else
1172   echo "configure: failed program was:" >&5
1173   cat conftest.$ac_ext >&5
1174   rm -rf conftest*
1175   eval "ac_cv_func_socket=no"
1176 fi
1177 rm -f conftest*
1178 fi
1179
1180 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1181   echo "$ac_t""yes" 1>&6
1182   :
1183 else
1184   echo "$ac_t""no" 1>&6
1185 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1186 echo "configure:1187: checking for socket in -lsocket" >&5
1187 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1189   echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191   ac_save_LIBS="$LIBS"
1192 LIBS="-lsocket  $LIBS"
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 /* Override any gcc2 internal prototype to avoid an error.  */
1197 /* We use char because int might match the return type of a gcc2
1198     builtin and then its argument prototype would still apply.  */
1199 char socket();
1200
1201 int main() {
1202 socket()
1203 ; return 0; }
1204 EOF
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=yes"
1208 else
1209   echo "configure: failed program was:" >&5
1210   cat conftest.$ac_ext >&5
1211   rm -rf conftest*
1212   eval "ac_cv_lib_$ac_lib_var=no"
1213 fi
1214 rm -f conftest*
1215 LIBS="$ac_save_LIBS"
1216
1217 fi
1218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1219   echo "$ac_t""yes" 1>&6
1220     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1221     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1222   cat >> confdefs.h <<EOF
1223 #define $ac_tr_lib 1
1224 EOF
1225
1226   LIBS="-lsocket $LIBS"
1227
1228 else
1229   echo "$ac_t""no" 1>&6
1230 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1231 echo "configure:1232: checking for socket in -lsocket" >&5
1232 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1234   echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236   ac_save_LIBS="$LIBS"
1237 LIBS="-lsocket -lnsl $LIBS"
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241 /* Override any gcc2 internal prototype to avoid an error.  */
1242 /* We use char because int might match the return type of a gcc2
1243     builtin and then its argument prototype would still apply.  */
1244 char socket();
1245
1246 int main() {
1247 socket()
1248 ; return 0; }
1249 EOF
1250 if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1251   rm -rf conftest*
1252   eval "ac_cv_lib_$ac_lib_var=yes"
1253 else
1254   echo "configure: failed program was:" >&5
1255   cat conftest.$ac_ext >&5
1256   rm -rf conftest*
1257   eval "ac_cv_lib_$ac_lib_var=no"
1258 fi
1259 rm -f conftest*
1260 LIBS="$ac_save_LIBS"
1261
1262 fi
1263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1264   echo "$ac_t""yes" 1>&6
1265   LIBS="-lsocket -lnsl $LIBS"
1266 else
1267   echo "$ac_t""no" 1>&6
1268 :
1269 fi
1270
1271 fi
1272
1273 fi
1274
1275
1276 # com_err (required, but can be built)
1277 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1278 echo "configure:1279: checking for com_err" >&5
1279 # Check whether --with-com_err or --without-com_err was given.
1280 if test "${with_com_err+set}" = set; then
1281   withval="$with_com_err"
1282   echo "$ac_t""$withval" 1>&6
1283      if test $withval = "no"; then
1284          { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1285      fi
1286      if test $withval != "yes"; then
1287          
1288     
1289     case $CPPFLAGS in
1290         *-I$withval/include*) ;;
1291         *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1292     esac
1293
1294     
1295     case $PRO_C_INCLUDES in
1296         *INCLUDE=$withval/include*) ;;
1297         *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1298     esac
1299
1300
1301          
1302     case $LIBPATH in
1303         *-L$withval/lib*) ;;
1304         *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1305     esac
1306
1307      fi
1308      COMPILE_ET=compile_et
1309 else
1310   echo "$ac_t""util/et" 1>&6
1311      COM_ERR_SUBDIR=util/et;
1312      
1313     
1314     case $CPPFLAGS in
1315         *-I`pwd`/util/et*) ;;
1316         *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1317     esac
1318
1319     
1320     case $PRO_C_INCLUDES in
1321         *INCLUDE=`pwd`/util/et*) ;;
1322         *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1323     esac
1324
1325
1326      
1327     case $LIBPATH in
1328         *-L`pwd`/util/et*) ;;
1329         *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1330     esac
1331
1332      COMPILE_ET=`pwd`/util/et/compile_et
1333      subdirs="$COM_ERR_SUBDIR"
1334
1335 fi
1336
1337
1338
1339
1340 # Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
1341 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1342 echo "configure:1343: checking for Kerberos 4" >&5
1343 # Check whether --with-krb4 or --without-krb4 was given.
1344 if test "${with_krb4+set}" = set; then
1345   withval="$with_krb4"
1346   krb4="$withval"
1347 else
1348   krb4=no
1349 fi
1350
1351 echo "$ac_t""$krb4" 1>&6
1352 if test $krb4 = "no"; then
1353     { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1354 fi
1355 if test "$krb4" != yes; then
1356     
1357     
1358     case $CPPFLAGS in
1359         *-I$krb4/include*) ;;
1360         *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1361     esac
1362
1363     
1364     case $PRO_C_INCLUDES in
1365         *INCLUDE=$krb4/include*) ;;
1366         *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1367     esac
1368
1369
1370     if test -d "$krb4/include/kerberosIV"; then
1371         
1372     
1373     case $CPPFLAGS in
1374         *-I$krb4/include/kerberosIV*) ;;
1375         *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1376     esac
1377
1378     
1379     case $PRO_C_INCLUDES in
1380         *INCLUDE=$krb4/include/kerberosIV*) ;;
1381         *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1382     esac
1383
1384
1385     fi
1386     
1387     case $LIBPATH in
1388         *-L$krb4/lib*) ;;
1389         *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1390     esac
1391
1392 elif test -d /usr/include/kerberosIV; then
1393     
1394     
1395     case $CPPFLAGS in
1396         *-I/usr/include/kerberosIV*) ;;
1397         *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1398     esac
1399
1400     
1401     case $PRO_C_INCLUDES in
1402         *INCLUDE=/usr/include/kerberosIV*) ;;
1403         *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1404     esac
1405
1406
1407 fi
1408 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1409 echo "configure:1410: checking for krb_rd_req in -lkrb4" >&5
1410 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1412   echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414   ac_save_LIBS="$LIBS"
1415 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* Override any gcc2 internal prototype to avoid an error.  */
1420 /* We use char because int might match the return type of a gcc2
1421     builtin and then its argument prototype would still apply.  */
1422 char krb_rd_req();
1423
1424 int main() {
1425 krb_rd_req()
1426 ; return 0; }
1427 EOF
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1429   rm -rf conftest*
1430   eval "ac_cv_lib_$ac_lib_var=yes"
1431 else
1432   echo "configure: failed program was:" >&5
1433   cat conftest.$ac_ext >&5
1434   rm -rf conftest*
1435   eval "ac_cv_lib_$ac_lib_var=no"
1436 fi
1437 rm -f conftest*
1438 LIBS="$ac_save_LIBS"
1439
1440 fi
1441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1442   echo "$ac_t""yes" 1>&6
1443   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"
1444 else
1445   echo "$ac_t""no" 1>&6
1446 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1447 echo "configure:1448: checking for krb_rd_req in -lkrb" >&5
1448 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1450   echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452   ac_save_LIBS="$LIBS"
1453 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1457 /* Override any gcc2 internal prototype to avoid an error.  */
1458 /* We use char because int might match the return type of a gcc2
1459     builtin and then its argument prototype would still apply.  */
1460 char krb_rd_req();
1461
1462 int main() {
1463 krb_rd_req()
1464 ; return 0; }
1465 EOF
1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467   rm -rf conftest*
1468   eval "ac_cv_lib_$ac_lib_var=yes"
1469 else
1470   echo "configure: failed program was:" >&5
1471   cat conftest.$ac_ext >&5
1472   rm -rf conftest*
1473   eval "ac_cv_lib_$ac_lib_var=no"
1474 fi
1475 rm -f conftest*
1476 LIBS="$ac_save_LIBS"
1477
1478 fi
1479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1480   echo "$ac_t""yes" 1>&6
1481   KRB4_LIBS="-lkrb -ldes"
1482 else
1483   echo "$ac_t""no" 1>&6
1484 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1485 fi
1486
1487 fi
1488
1489
1490 echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6
1491 echo "configure:1492: checking for Kerberos 5" >&5
1492 # Check whether --with-krb5 or --without-krb5 was given.
1493 if test "${with_krb5+set}" = set; then
1494   withval="$with_krb5"
1495   krb5="$withval"
1496 else
1497   krb5=no
1498 fi
1499
1500 echo "$ac_t""$krb5" 1>&6
1501 if test "$krb5" != no; then
1502     REG_SVR_DEFS=-DKRB5
1503     if test "$krb5" != yes; then
1504         REG_SVR_INCLUDES=-I$krb5/include
1505         REG_SVR_LIBS=-L$krb5/lib
1506     fi
1507     REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -lcrypto"
1508 else
1509     REG_SVR_DEFS=-DKRB4
1510     REG_SVR_LIBS=-lkadm
1511 fi
1512
1513
1514
1515
1516 # Hesiod support
1517 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1518 echo "configure:1519: checking for Hesiod" >&5
1519 # Check whether --with-hesiod or --without-hesiod was given.
1520 if test "${with_hesiod+set}" = set; then
1521   withval="$with_hesiod"
1522   hesiod="$withval"
1523 else
1524   hesiod=no
1525 fi
1526
1527 echo "$ac_t""$hesiod" 1>&6
1528 if test "$hesiod" != no; then
1529     if test "$hesiod" != yes; then
1530         
1531     
1532     case $CPPFLAGS in
1533         *-I$hesiod/include*) ;;
1534         *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1535     esac
1536
1537     
1538     case $PRO_C_INCLUDES in
1539         *INCLUDE=$hesiod/include*) ;;
1540         *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1541     esac
1542
1543
1544         
1545     case $LIBPATH in
1546         *-L$hesiod/lib*) ;;
1547         *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1548     esac
1549
1550     fi
1551     echo $ac_n "checking for res_send""... $ac_c" 1>&6
1552 echo "configure:1553: checking for res_send" >&5
1553 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* System header to define __stub macros and hopefully few prototypes,
1560     which can conflict with char res_send(); below.  */
1561 #include <assert.h>
1562 /* Override any gcc2 internal prototype to avoid an error.  */
1563 /* We use char because int might match the return type of a gcc2
1564     builtin and then its argument prototype would still apply.  */
1565 char res_send();
1566
1567 int main() {
1568
1569 /* The GNU C library defines this for functions which it implements
1570     to always fail with ENOSYS.  Some functions are actually named
1571     something starting with __ and the normal name is an alias.  */
1572 #if defined (__stub_res_send) || defined (__stub___res_send)
1573 choke me
1574 #else
1575 res_send();
1576 #endif
1577
1578 ; return 0; }
1579 EOF
1580 if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581   rm -rf conftest*
1582   eval "ac_cv_func_res_send=yes"
1583 else
1584   echo "configure: failed program was:" >&5
1585   cat conftest.$ac_ext >&5
1586   rm -rf conftest*
1587   eval "ac_cv_func_res_send=no"
1588 fi
1589 rm -f conftest*
1590 fi
1591
1592 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1593   echo "$ac_t""yes" 1>&6
1594   :
1595 else
1596   echo "$ac_t""no" 1>&6
1597 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1598 echo "configure:1599: checking for res_send in -lresolv" >&5
1599 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1601   echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603   ac_save_LIBS="$LIBS"
1604 LIBS="-lresolv  $LIBS"
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608 /* Override any gcc2 internal prototype to avoid an error.  */
1609 /* We use char because int might match the return type of a gcc2
1610     builtin and then its argument prototype would still apply.  */
1611 char res_send();
1612
1613 int main() {
1614 res_send()
1615 ; return 0; }
1616 EOF
1617 if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1618   rm -rf conftest*
1619   eval "ac_cv_lib_$ac_lib_var=yes"
1620 else
1621   echo "configure: failed program was:" >&5
1622   cat conftest.$ac_ext >&5
1623   rm -rf conftest*
1624   eval "ac_cv_lib_$ac_lib_var=no"
1625 fi
1626 rm -f conftest*
1627 LIBS="$ac_save_LIBS"
1628
1629 fi
1630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1631   echo "$ac_t""yes" 1>&6
1632     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1633     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1634   cat >> confdefs.h <<EOF
1635 #define $ac_tr_lib 1
1636 EOF
1637
1638   LIBS="-lresolv $LIBS"
1639
1640 else
1641   echo "$ac_t""no" 1>&6
1642 fi
1643
1644 fi
1645
1646     echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1647 echo "configure:1648: checking for hes_resolve in -lhesiod" >&5
1648 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1650   echo $ac_n "(cached) $ac_c" 1>&6
1651 else
1652   ac_save_LIBS="$LIBS"
1653 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 /* Override any gcc2 internal prototype to avoid an error.  */
1658 /* We use char because int might match the return type of a gcc2
1659     builtin and then its argument prototype would still apply.  */
1660 char hes_resolve();
1661
1662 int main() {
1663 hes_resolve()
1664 ; return 0; }
1665 EOF
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1667   rm -rf conftest*
1668   eval "ac_cv_lib_$ac_lib_var=yes"
1669 else
1670   echo "configure: failed program was:" >&5
1671   cat conftest.$ac_ext >&5
1672   rm -rf conftest*
1673   eval "ac_cv_lib_$ac_lib_var=no"
1674 fi
1675 rm -f conftest*
1676 LIBS="$ac_save_LIBS"
1677
1678 fi
1679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1680   echo "$ac_t""yes" 1>&6
1681   :
1682 else
1683   echo "$ac_t""no" 1>&6
1684 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1685 fi
1686
1687     
1688     cat >> confdefs.h <<\EOF
1689 #define HAVE_HESIOD 1
1690 EOF
1691
1692     
1693     case $PRO_C_DEFS in
1694         *DEFINE=HAVE_HESIOD*) ;;
1695         *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1696     esac
1697
1698
1699 fi
1700
1701 # Zephyr support
1702 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1703 echo "configure:1704: checking for Zephyr" >&5
1704 # Check whether --with-zephyr or --without-zephyr was given.
1705 if test "${with_zephyr+set}" = set; then
1706   withval="$with_zephyr"
1707   zephyr="$withval"
1708 else
1709   zephyr=no
1710 fi
1711
1712 echo "$ac_t""$zephyr" 1>&6
1713 if test "$zephyr" != no; then
1714     if test "$zephyr" != yes; then
1715         
1716     
1717     case $CPPFLAGS in
1718         *-I$zephyr/include*) ;;
1719         *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1720     esac
1721
1722     
1723     case $PRO_C_INCLUDES in
1724         *INCLUDE=$zephyr/include*) ;;
1725         *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1726     esac
1727
1728
1729         
1730     case $LIBPATH in
1731         *-L$zephyr/lib*) ;;
1732         *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1733     esac
1734
1735     fi
1736     echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1737 echo "configure:1738: checking for ZInitialize in -lzephyr" >&5
1738 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1740   echo $ac_n "(cached) $ac_c" 1>&6
1741 else
1742   ac_save_LIBS="$LIBS"
1743 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* Override any gcc2 internal prototype to avoid an error.  */
1748 /* We use char because int might match the return type of a gcc2
1749     builtin and then its argument prototype would still apply.  */
1750 char ZInitialize();
1751
1752 int main() {
1753 ZInitialize()
1754 ; return 0; }
1755 EOF
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1757   rm -rf conftest*
1758   eval "ac_cv_lib_$ac_lib_var=yes"
1759 else
1760   echo "configure: failed program was:" >&5
1761   cat conftest.$ac_ext >&5
1762   rm -rf conftest*
1763   eval "ac_cv_lib_$ac_lib_var=no"
1764 fi
1765 rm -f conftest*
1766 LIBS="$ac_save_LIBS"
1767
1768 fi
1769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1770   echo "$ac_t""yes" 1>&6
1771   :
1772 else
1773   echo "$ac_t""no" 1>&6
1774 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1775 fi
1776
1777     
1778     cat >> confdefs.h <<\EOF
1779 #define HAVE_ZEPHYR 1
1780 EOF
1781
1782     
1783     case $PRO_C_DEFS in
1784         *DEFINE=HAVE_ZEPHYR*) ;;
1785         *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1786     esac
1787
1788
1789 fi
1790
1791 # GDSS support (default: build util/gdss if present)
1792 echo $ac_n "checking for GDSS""... $ac_c" 1>&6
1793 echo "configure:1794: checking for GDSS" >&5
1794 if test "$cross_compiling" = yes; then
1795   with_gdss=no
1796 else
1797   cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800  int main() { return sizeof(long)!=4; } 
1801 EOF
1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1803 then
1804   :
1805 else
1806   echo "configure: failed program was:" >&5
1807   cat conftest.$ac_ext >&5
1808   rm -fr conftest*
1809   with_gdss=no
1810 fi
1811 rm -fr conftest*
1812 fi
1813
1814 # Check whether --with-gdss or --without-gdss was given.
1815 if test "${with_gdss+set}" = set; then
1816   withval="$with_gdss"
1817   gdss="$withval"
1818      if test "$gdss" != no; then
1819        
1820     
1821     case $CPPFLAGS in
1822         *-I"$gdss/include"*) ;;
1823         *) CPPFLAGS=-I"$gdss/include"\ $CPPFLAGS ;;
1824     esac
1825
1826     
1827     case $PRO_C_INCLUDES in
1828         *INCLUDE="$gdss/include"*) ;;
1829         *) PRO_C_INCLUDES=INCLUDE="$gdss/include"\ $PRO_C_INCLUDES ;;
1830     esac
1831
1832
1833        GDSS_LIBS="-L$gdss/lib -lgdss"
1834      fi
1835 else
1836   if test -d $srcdir/util/gdss; then
1837          gdss=$srcdir/util/gdss
1838          GDSS_SUBDIR=util/gdss
1839          GDSS_OUTPUT_FILES="util/gdss/Makefile util/gdss/lib/Makefile \
1840              util/gdss/lib/crypto/Makefile util/gdss/lib/crypto/bignum/Makefile \
1841              util/gdss/lib/crypto/algorithm/Makefile"
1842          # autoconf can't deal with creating util/gdss if util doesn't exist
1843          if test ! -d util; then
1844              mkdir util
1845          fi
1846          
1847     
1848     case $CPPFLAGS in
1849         *-I'$(SRCTOP)/util/gdss/include'*) ;;
1850         *) CPPFLAGS=-I'$(SRCTOP)/util/gdss/include'\ $CPPFLAGS ;;
1851     esac
1852
1853     
1854     case $PRO_C_INCLUDES in
1855         *INCLUDE='$(SRCTOP)/util/gdss/include'*) ;;
1856         *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/util/gdss/include'\ $PRO_C_INCLUDES ;;
1857     esac
1858
1859
1860          GDSS_LIBS='-L$(BUILDTOP)/util/gdss/lib -lgdss'
1861          GDSS_LIBDEP='$(BUILDTOP)/util/gdss/lib/libgdss.a'
1862      else
1863          gdss=no
1864      fi
1865 fi
1866
1867 echo "$ac_t""$gdss" 1>&6
1868 if test "$gdss" != no; then
1869     GDSS_OBJS='$(GDSS_OBJS)'
1870     GDSS_CFILES='$(GDSS_CFILES)'
1871     GDSS_TARGET='$(GDSS_TARGET)'
1872     
1873     cat >> confdefs.h <<\EOF
1874 #define HAVE_GDSS 1
1875 EOF
1876
1877     
1878     case $PRO_C_DEFS in
1879         *DEFINE=HAVE_GDSS*) ;;
1880         *) PRO_C_DEFS=DEFINE=HAVE_GDSS\ $PRO_C_DEFS ;;
1881     esac
1882
1883
1884 fi
1885
1886
1887
1888
1889
1890
1891
1892
1893 # RSAREF support (default: build util/rsaref if present)
1894 echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
1895 echo "configure:1896: checking for RSAREF" >&5
1896 # Check whether --with-rsaref or --without-rsaref was given.
1897 if test "${with_rsaref+set}" = set; then
1898   withval="$with_rsaref"
1899   rsaref="$withval"
1900      RSAREF_CPPFLAGS="-I$rsaref/include"
1901      RSAREF_LIBS="$rsaref/lib/rsaref.a"
1902 else
1903   RSAREF_SUBDIRS=reg_svr
1904     if test -d $srcdir/util/rsaref; then
1905          rsaref=$srcdir/util/rsaref
1906          RSAREF_SUBDIRS="util/rsaref reg_svr"
1907          RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1908          # autoconf can't deal with creating util/rsaref if util doesn't exist
1909          if test ! -d util; then
1910              mkdir util
1911          fi
1912          RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
1913          RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
1914          RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
1915      else
1916          rsaref=no
1917      fi
1918 fi
1919
1920 echo "$ac_t""$rsaref" 1>&6
1921 if test "$rsaref" != no; then
1922     
1923     cat >> confdefs.h <<\EOF
1924 #define HAVE_RSAREF 1
1925 EOF
1926
1927     
1928     case $PRO_C_DEFS in
1929         *DEFINE=HAVE_RSAREF*) ;;
1930         *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1931     esac
1932
1933
1934 fi
1935
1936
1937
1938
1939
1940 # Oracle (default: yes, if $ORACLE_HOME is set)
1941 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1942 echo "configure:1943: checking for Oracle" >&5
1943 # Check whether --with-oracle or --without-oracle was given.
1944 if test "${with_oracle+set}" = set; then
1945   withval="$with_oracle"
1946   oracle="$withval"
1947 else
1948   if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1949          oracle=$ORACLE_HOME
1950      else
1951          oracle=no
1952      fi
1953 fi
1954
1955 echo "$ac_t""$oracle" 1>&6
1956 if test "$oracle" != no; then
1957     echo $ac_n "checking Pro*C version""... $ac_c" 1>&6
1958 echo "configure:1959: checking Pro*C version" >&5
1959     ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
1960     echo "$ac_t""$release" 1>&6
1961     case $release in
1962         2.0.6.0.0)
1963             SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1964             ;;
1965         *)
1966             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"
1967             ;;
1968     esac
1969     SVRSUBDIRS='$(SVRDIRS)'
1970     SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile reg_svr/Makefile regtape/Makefile"
1971     PRO_C=$oracle/bin/proc
1972     PRO_C_OPTS=CODE=ANSI_C
1973     PRO_C_DEFS="DEFINE=_PROC_ $PRO_C_DEFS"
1974 fi
1975
1976
1977
1978
1979
1980
1981
1982 # AFS support
1983 echo $ac_n "checking for AFS""... $ac_c" 1>&6
1984 echo "configure:1985: checking for AFS" >&5
1985 # Check whether --with-afs or --without-afs was given.
1986 if test "${with_afs+set}" = set; then
1987   withval="$with_afs"
1988   afs="$withval"
1989 else
1990   afs=no
1991 fi
1992
1993 echo "$ac_t""$afs" 1>&6
1994 if test "$afs" != no -a "$oracle" != no; then
1995     if test "$afs" != yes; then
1996         AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
1997         AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
1998         AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
1999         AFS_DIR=$afs
2000     fi
2001     echo $ac_n "checking for insque""... $ac_c" 1>&6
2002 echo "configure:2003: checking for insque" >&5
2003 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
2004   echo $ac_n "(cached) $ac_c" 1>&6
2005 else
2006   cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 /* System header to define __stub macros and hopefully few prototypes,
2010     which can conflict with char insque(); below.  */
2011 #include <assert.h>
2012 /* Override any gcc2 internal prototype to avoid an error.  */
2013 /* We use char because int might match the return type of a gcc2
2014     builtin and then its argument prototype would still apply.  */
2015 char insque();
2016
2017 int main() {
2018
2019 /* The GNU C library defines this for functions which it implements
2020     to always fail with ENOSYS.  Some functions are actually named
2021     something starting with __ and the normal name is an alias.  */
2022 #if defined (__stub_insque) || defined (__stub___insque)
2023 choke me
2024 #else
2025 insque();
2026 #endif
2027
2028 ; return 0; }
2029 EOF
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2031   rm -rf conftest*
2032   eval "ac_cv_func_insque=yes"
2033 else
2034   echo "configure: failed program was:" >&5
2035   cat conftest.$ac_ext >&5
2036   rm -rf conftest*
2037   eval "ac_cv_func_insque=no"
2038 fi
2039 rm -f conftest*
2040 fi
2041
2042 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
2043   echo "$ac_t""yes" 1>&6
2044   :
2045 else
2046   echo "$ac_t""no" 1>&6
2047 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
2048 echo "configure:2049: checking for insque in -lcompat" >&5
2049 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051   echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053   ac_save_LIBS="$LIBS"
2054 LIBS="-lcompat  $LIBS"
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* Override any gcc2 internal prototype to avoid an error.  */
2059 /* We use char because int might match the return type of a gcc2
2060     builtin and then its argument prototype would still apply.  */
2061 char insque();
2062
2063 int main() {
2064 insque()
2065 ; return 0; }
2066 EOF
2067 if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068   rm -rf conftest*
2069   eval "ac_cv_lib_$ac_lib_var=yes"
2070 else
2071   echo "configure: failed program was:" >&5
2072   cat conftest.$ac_ext >&5
2073   rm -rf conftest*
2074   eval "ac_cv_lib_$ac_lib_var=no"
2075 fi
2076 rm -f conftest*
2077 LIBS="$ac_save_LIBS"
2078
2079 fi
2080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081   echo "$ac_t""yes" 1>&6
2082   AFS_EXTRA_LIBS="-lcompat"
2083 else
2084   echo "$ac_t""no" 1>&6
2085 { echo "configure: error: insque not found" 1>&2; exit 1; }
2086 fi
2087
2088 fi
2089
2090     echo $ac_n "checking for sigvec""... $ac_c" 1>&6
2091 echo "configure:2092: checking for sigvec" >&5
2092 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
2093   echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095   cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 /* System header to define __stub macros and hopefully few prototypes,
2099     which can conflict with char sigvec(); below.  */
2100 #include <assert.h>
2101 /* Override any gcc2 internal prototype to avoid an error.  */
2102 /* We use char because int might match the return type of a gcc2
2103     builtin and then its argument prototype would still apply.  */
2104 char sigvec();
2105
2106 int main() {
2107
2108 /* The GNU C library defines this for functions which it implements
2109     to always fail with ENOSYS.  Some functions are actually named
2110     something starting with __ and the normal name is an alias.  */
2111 #if defined (__stub_sigvec) || defined (__stub___sigvec)
2112 choke me
2113 #else
2114 sigvec();
2115 #endif
2116
2117 ; return 0; }
2118 EOF
2119 if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120   rm -rf conftest*
2121   eval "ac_cv_func_sigvec=yes"
2122 else
2123   echo "configure: failed program was:" >&5
2124   cat conftest.$ac_ext >&5
2125   rm -rf conftest*
2126   eval "ac_cv_func_sigvec=no"
2127 fi
2128 rm -f conftest*
2129 fi
2130
2131 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
2132   echo "$ac_t""yes" 1>&6
2133   :
2134 else
2135   echo "$ac_t""no" 1>&6
2136 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
2137 echo "configure:2138: checking for sigvec in -lucb" >&5
2138 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
2139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2140   echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142   ac_save_LIBS="$LIBS"
2143 LIBS="-lucb -L/usr/ucblib $LIBS"
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 /* Override any gcc2 internal prototype to avoid an error.  */
2148 /* We use char because int might match the return type of a gcc2
2149     builtin and then its argument prototype would still apply.  */
2150 char sigvec();
2151
2152 int main() {
2153 sigvec()
2154 ; return 0; }
2155 EOF
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2157   rm -rf conftest*
2158   eval "ac_cv_lib_$ac_lib_var=yes"
2159 else
2160   echo "configure: failed program was:" >&5
2161   cat conftest.$ac_ext >&5
2162   rm -rf conftest*
2163   eval "ac_cv_lib_$ac_lib_var=no"
2164 fi
2165 rm -f conftest*
2166 LIBS="$ac_save_LIBS"
2167
2168 fi
2169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2170   echo "$ac_t""yes" 1>&6
2171   AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
2172 else
2173   echo "$ac_t""no" 1>&6
2174 :
2175 fi
2176
2177 fi
2178
2179     echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
2180 echo "configure:2181: checking for pioctl in -lsys" >&5
2181 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183   echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185   ac_save_LIBS="$LIBS"
2186 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error.  */
2191 /* We use char because int might match the return type of a gcc2
2192     builtin and then its argument prototype would still apply.  */
2193 char pioctl();
2194
2195 int main() {
2196 pioctl()
2197 ; return 0; }
2198 EOF
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200   rm -rf conftest*
2201   eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203   echo "configure: failed program was:" >&5
2204   cat conftest.$ac_ext >&5
2205   rm -rf conftest*
2206   eval "ac_cv_lib_$ac_lib_var=no"
2207 fi
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2210
2211 fi
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213   echo "$ac_t""yes" 1>&6
2214   :
2215 else
2216   echo "$ac_t""no" 1>&6
2217 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2218 fi
2219
2220     
2221     cat >> confdefs.h <<\EOF
2222 #define HAVE_AFS 1
2223 EOF
2224
2225     
2226     case $PRO_C_DEFS in
2227         *DEFINE=HAVE_AFS*) ;;
2228         *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2229     esac
2230
2231
2232
2233     AFS_SUBDIRS="incremental"
2234     AFS_OUTPUT_FILES="incremental/Makefile"
2235     if test -d $srcdir/afssync; then
2236         AFS_SUBDIRS="$AFS_SUBDIRS afssync"
2237         AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
2238     fi
2239 fi
2240
2241
2242
2243
2244
2245
2246
2247 # GNU readline
2248 echo "checking for GNU readline..." 1>&6
2249 echo "configure:2250: checking for GNU readline..." >&5
2250 # Check whether --with-readline or --without-readline was given.
2251 if test "${with_readline+set}" = set; then
2252   withval="$with_readline"
2253   readline="$withval"; echo "$ac_t""$withval" 1>&6
2254 else
2255   echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2256 echo "configure:2257: checking for readline in -lreadline" >&5
2257 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2259   echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261   ac_save_LIBS="$LIBS"
2262 LIBS="-lreadline -ltermcap $LIBS"
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* Override any gcc2 internal prototype to avoid an error.  */
2267 /* We use char because int might match the return type of a gcc2
2268     builtin and then its argument prototype would still apply.  */
2269 char readline();
2270
2271 int main() {
2272 readline()
2273 ; return 0; }
2274 EOF
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2276   rm -rf conftest*
2277   eval "ac_cv_lib_$ac_lib_var=yes"
2278 else
2279   echo "configure: failed program was:" >&5
2280   cat conftest.$ac_ext >&5
2281   rm -rf conftest*
2282   eval "ac_cv_lib_$ac_lib_var=no"
2283 fi
2284 rm -f conftest*
2285 LIBS="$ac_save_LIBS"
2286
2287 fi
2288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289   echo "$ac_t""yes" 1>&6
2290   readline=yes
2291 else
2292   echo "$ac_t""no" 1>&6
2293 if test "$athena" = true; then
2294              unset ac_cv_lib_readline_readline
2295              echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2296 echo "configure:2297: checking for readline in -lreadline" >&5
2297 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2299   echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301   ac_save_LIBS="$LIBS"
2302 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 /* Override any gcc2 internal prototype to avoid an error.  */
2307 /* We use char because int might match the return type of a gcc2
2308     builtin and then its argument prototype would still apply.  */
2309 char readline();
2310
2311 int main() {
2312 readline()
2313 ; return 0; }
2314 EOF
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316   rm -rf conftest*
2317   eval "ac_cv_lib_$ac_lib_var=yes"
2318 else
2319   echo "configure: failed program was:" >&5
2320   cat conftest.$ac_ext >&5
2321   rm -rf conftest*
2322   eval "ac_cv_lib_$ac_lib_var=no"
2323 fi
2324 rm -f conftest*
2325 LIBS="$ac_save_LIBS"
2326
2327 fi
2328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2329   echo "$ac_t""yes" 1>&6
2330   readline=/mit/gnu
2331 else
2332   echo "$ac_t""no" 1>&6
2333 :
2334 fi
2335
2336          fi
2337 fi
2338
2339 fi
2340
2341 if test "$readline" != no; then
2342     if test "$readline" != yes; then
2343         READLINE_CPPFLAGS="-I$readline/include"
2344         READLINE_LIBS="-L$readline/lib"
2345     fi
2346     READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
2347     READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
2348 fi
2349
2350
2351
2352 # Curses
2353 curses=curses
2354 echo "checking for curses" 1>&6
2355 echo "configure:2356: checking for curses" >&5
2356 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2357 echo "configure:2358: checking for main in -lcurses" >&5
2358 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2360   echo $ac_n "(cached) $ac_c" 1>&6
2361 else
2362   ac_save_LIBS="$LIBS"
2363 LIBS="-lcurses  $LIBS"
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367
2368 int main() {
2369 main()
2370 ; return 0; }
2371 EOF
2372 if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373   rm -rf conftest*
2374   eval "ac_cv_lib_$ac_lib_var=yes"
2375 else
2376   echo "configure: failed program was:" >&5
2377   cat conftest.$ac_ext >&5
2378   rm -rf conftest*
2379   eval "ac_cv_lib_$ac_lib_var=no"
2380 fi
2381 rm -f conftest*
2382 LIBS="$ac_save_LIBS"
2383
2384 fi
2385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2386   echo "$ac_t""yes" 1>&6
2387   :
2388 else
2389   echo "$ac_t""no" 1>&6
2390 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2391 echo "configure:2392: checking for main in -lncurses" >&5
2392 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394   echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396   ac_save_LIBS="$LIBS"
2397 LIBS="-lncurses  $LIBS"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401
2402 int main() {
2403 main()
2404 ; return 0; }
2405 EOF
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2407   rm -rf conftest*
2408   eval "ac_cv_lib_$ac_lib_var=yes"
2409 else
2410   echo "configure: failed program was:" >&5
2411   cat conftest.$ac_ext >&5
2412   rm -rf conftest*
2413   eval "ac_cv_lib_$ac_lib_var=no"
2414 fi
2415 rm -f conftest*
2416 LIBS="$ac_save_LIBS"
2417
2418 fi
2419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2420   echo "$ac_t""yes" 1>&6
2421   curses=ncurses
2422 else
2423   echo "$ac_t""no" 1>&6
2424 fi
2425
2426 fi
2427
2428 if test -n "$curses"; then
2429     OLDLIBS=$LIBS
2430     LIBS=-l$curses
2431     echo "checking if curses needs termcap" 1>&6
2432 echo "configure:2433: checking if curses needs termcap" >&5
2433                 if test "$cross_compiling" = yes; then
2434   :
2435 else
2436   cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 #include <curses.h>
2440                 main(int argc, char **argv)
2441                 {
2442                     initscr();
2443                     endwin();
2444                     return 0;
2445                 }
2446 EOF
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2448 then
2449   CURSES_LIBS="-l$curses"
2450 else
2451   echo "configure: failed program was:" >&5
2452   cat conftest.$ac_ext >&5
2453   rm -fr conftest*
2454   LIBS="-l$curses -ltermcap"
2455                 if test "$cross_compiling" = yes; then
2456   :
2457 else
2458   cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 #include <curses.h>
2462                             main(int argc, char **argv)
2463                             {
2464                                 initscr();
2465                                 endwin();
2466                                 return 0;
2467                             }
2468 EOF
2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2470 then
2471   CURSES_LIBS="-l$curses -ltermcap"
2472 else
2473   echo "configure: failed program was:" >&5
2474   cat conftest.$ac_ext >&5
2475   rm -fr conftest*
2476   :
2477 fi
2478 rm -fr conftest*
2479 fi
2480
2481 fi
2482 rm -fr conftest*
2483 fi
2484
2485     LIBS=$OLDLIBS
2486 fi
2487 if test -n "$CURSES_LIBS"; then
2488     OLDLIBS=$LIBS
2489     LIBS=$CURSES_LIBS
2490     cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #include <curses.h>
2494 int main() {
2495 WINDOW *w; getmaxx(w);
2496 ; return 0; }
2497 EOF
2498 if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499   rm -rf conftest*
2500   :
2501 else
2502   echo "configure: failed program was:" >&5
2503   cat conftest.$ac_ext >&5
2504   rm -rf conftest*
2505   cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <curses.h>
2509 int main() {
2510 WINDOW *w; w->_maxx;
2511 ; return 0; }
2512 EOF
2513 if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514   rm -rf conftest*
2515   CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2516 else
2517   echo "configure: failed program was:" >&5
2518   cat conftest.$ac_ext >&5
2519   rm -rf conftest*
2520   CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2521 fi
2522 rm -f conftest*
2523 fi
2524 rm -f conftest*
2525     cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 #include <curses.h>
2529 int main() {
2530 newterm(NULL, NULL, NULL);
2531 ; return 0; }
2532 EOF
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534   rm -rf conftest*
2535   CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
2536 else
2537   echo "configure: failed program was:" >&5
2538   cat conftest.$ac_ext >&5
2539 fi
2540 rm -f conftest*
2541     LIBS=$OLDLIBS
2542     CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2543     CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2544 else
2545     echo "configure: warning: Couldn't find -lcurses" 1>&2
2546 fi
2547
2548
2549
2550
2551
2552 for ac_func in getusershell
2553 do
2554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_func" >&5
2556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2557   echo $ac_n "(cached) $ac_c" 1>&6
2558 else
2559   cat > conftest.$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2562 /* System header to define __stub macros and hopefully few prototypes,
2563     which can conflict with char $ac_func(); below.  */
2564 #include <assert.h>
2565 /* Override any gcc2 internal prototype to avoid an error.  */
2566 /* We use char because int might match the return type of a gcc2
2567     builtin and then its argument prototype would still apply.  */
2568 char $ac_func();
2569
2570 int main() {
2571
2572 /* The GNU C library defines this for functions which it implements
2573     to always fail with ENOSYS.  Some functions are actually named
2574     something starting with __ and the normal name is an alias.  */
2575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2576 choke me
2577 #else
2578 $ac_func();
2579 #endif
2580
2581 ; return 0; }
2582 EOF
2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2584   rm -rf conftest*
2585   eval "ac_cv_func_$ac_func=yes"
2586 else
2587   echo "configure: failed program was:" >&5
2588   cat conftest.$ac_ext >&5
2589   rm -rf conftest*
2590   eval "ac_cv_func_$ac_func=no"
2591 fi
2592 rm -f conftest*
2593 fi
2594
2595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2596   echo "$ac_t""yes" 1>&6
2597     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2598   cat >> confdefs.h <<EOF
2599 #define $ac_tr_func 1
2600 EOF
2601  
2602 else
2603   echo "$ac_t""no" 1>&6
2604 fi
2605 done
2606
2607
2608
2609     case $PRO_C_INCLUDES in
2610         *INCLUDE='$(srcdir)'*) ;;
2611         *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2612     esac
2613
2614
2615     
2616     case $CPPFLAGS in
2617         *-I'$(SRCTOP)/include'*) ;;
2618         *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2619     esac
2620
2621     
2622     case $PRO_C_INCLUDES in
2623         *INCLUDE='$(SRCTOP)/include'*) ;;
2624         *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2625     esac
2626
2627
2628
2629     
2630     case $CPPFLAGS in
2631         *-I'$(SRCTOP)/lib'*) ;;
2632         *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2633     esac
2634
2635     
2636     case $PRO_C_INCLUDES in
2637         *INCLUDE='$(SRCTOP)/lib'*) ;;
2638         *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2639     esac
2640
2641
2642
2643     
2644     case $CPPFLAGS in
2645         *-I'$(BUILDTOP)/lib'*) ;;
2646         *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2647     esac
2648
2649     
2650     case $PRO_C_INCLUDES in
2651         *INCLUDE='$(BUILDTOP)/lib'*) ;;
2652         *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2653     esac
2654
2655
2656
2657     
2658     case $CPPFLAGS in
2659         *-I'$(BUILDTOP)/db'*) ;;
2660         *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2661     esac
2662
2663     
2664     case $PRO_C_INCLUDES in
2665         *INCLUDE='$(BUILDTOP)/db'*) ;;
2666         *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2667     esac
2668
2669
2670
2671     
2672     case $CPPFLAGS in
2673         *-I'$(srcdir)'*) ;;
2674         *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
2675     esac
2676
2677     
2678     case $PRO_C_INCLUDES in
2679         *INCLUDE='$(srcdir)'*) ;;
2680         *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2681     esac
2682
2683
2684 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2685 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2686 LIBS="-lmoira $KLIBS"
2687
2688
2689 MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
2690
2691
2692 trap '' 1 2 15
2693 cat > confcache <<\EOF
2694 # This file is a shell script that caches the results of configure
2695 # tests run on this system so they can be shared between configure
2696 # scripts and configure runs.  It is not useful on other systems.
2697 # If it contains results you don't want to keep, you may remove or edit it.
2698 #
2699 # By default, configure uses ./config.cache as the cache file,
2700 # creating it if it does not exist already.  You can give configure
2701 # the --cache-file=FILE option to use a different cache file; that is
2702 # what configure does when it calls configure scripts in
2703 # subdirectories, so they share the cache.
2704 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2705 # config.status only pays attention to the cache file if you give it the
2706 # --recheck option to rerun configure.
2707 #
2708 EOF
2709 # The following way of writing the cache mishandles newlines in values,
2710 # but we know of no workaround that is simple, portable, and efficient.
2711 # So, don't put newlines in cache variables' values.
2712 # Ultrix sh set writes to stderr and can't be redirected directly,
2713 # and sets the high bit in the cache file unless we assign to the vars.
2714 (set) 2>&1 |
2715   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2716   *ac_space=\ *)
2717     # `set' does not quote correctly, so add quotes (double-quote substitution
2718     # turns \\\\ into \\, and sed turns \\ into \).
2719     sed -n \
2720       -e "s/'/'\\\\''/g" \
2721       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2722     ;;
2723   *)
2724     # `set' quotes correctly as required by POSIX, so do not add quotes.
2725     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2726     ;;
2727   esac >> confcache
2728 if cmp -s $cache_file confcache; then
2729   :
2730 else
2731   if test -w $cache_file; then
2732     echo "updating cache $cache_file"
2733     cat confcache > $cache_file
2734   else
2735     echo "not updating unwritable cache $cache_file"
2736   fi
2737 fi
2738 rm -f confcache
2739
2740 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2741
2742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2743 # Let make expand exec_prefix.
2744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2745
2746 # Any assignment to VPATH causes Sun make to only execute
2747 # the first set of double-colon rules, so remove it if not needed.
2748 # If there is a colon in the path, we need to keep it.
2749 if test "x$srcdir" = x.; then
2750   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2751 fi
2752
2753 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2754
2755 # Transform confdefs.h into DEFS.
2756 # Protect against shell expansion while executing Makefile rules.
2757 # Protect against Makefile macro expansion.
2758 cat > conftest.defs <<\EOF
2759 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2760 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2761 s%\[%\\&%g
2762 s%\]%\\&%g
2763 s%\$%$$%g
2764 EOF
2765 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2766 rm -f conftest.defs
2767
2768
2769 # Without the "./", some shells look in PATH for config.status.
2770 : ${CONFIG_STATUS=./config.status}
2771
2772 echo creating $CONFIG_STATUS
2773 rm -f $CONFIG_STATUS
2774 cat > $CONFIG_STATUS <<EOF
2775 #! /bin/sh
2776 # Generated automatically by configure.
2777 # Run this file to recreate the current configuration.
2778 # This directory was configured as follows,
2779 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2780 #
2781 # $0 $ac_configure_args
2782 #
2783 # Compiler output produced by configure, useful for debugging
2784 # configure, is in ./config.log if it exists.
2785
2786 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2787 for ac_option
2788 do
2789   case "\$ac_option" in
2790   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2791     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2792     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2793   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2794     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2795     exit 0 ;;
2796   -help | --help | --hel | --he | --h)
2797     echo "\$ac_cs_usage"; exit 0 ;;
2798   *) echo "\$ac_cs_usage"; exit 1 ;;
2799   esac
2800 done
2801
2802 ac_given_srcdir=$srcdir
2803 ac_given_INSTALL="$INSTALL"
2804
2805 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2806           clients/lib/Makefile clients/addusr/Makefile \
2807           clients/blanche/Makefile clients/mailmaint/Makefile
2808           clients/moira/Makefile clients/mrcheck/Makefile
2809           clients/mrtest/Makefile clients/passwd/Makefile
2810           update/Makefile man/Makefile \
2811           $SERVER_OUTPUT_FILES $AFS_OUTPUT_FILES \
2812           $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2813 EOF
2814 cat >> $CONFIG_STATUS <<EOF
2815
2816 # Protect against being on the right side of a sed subst in config.status.
2817 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2818  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2819 $ac_vpsub
2820 $extrasub
2821 s%@SHELL@%$SHELL%g
2822 s%@CFLAGS@%$CFLAGS%g
2823 s%@CPPFLAGS@%$CPPFLAGS%g
2824 s%@CXXFLAGS@%$CXXFLAGS%g
2825 s%@FFLAGS@%$FFLAGS%g
2826 s%@DEFS@%$DEFS%g
2827 s%@LDFLAGS@%$LDFLAGS%g
2828 s%@LIBS@%$LIBS%g
2829 s%@exec_prefix@%$exec_prefix%g
2830 s%@prefix@%$prefix%g
2831 s%@program_transform_name@%$program_transform_name%g
2832 s%@bindir@%$bindir%g
2833 s%@sbindir@%$sbindir%g
2834 s%@libexecdir@%$libexecdir%g
2835 s%@datadir@%$datadir%g
2836 s%@sysconfdir@%$sysconfdir%g
2837 s%@sharedstatedir@%$sharedstatedir%g
2838 s%@localstatedir@%$localstatedir%g
2839 s%@libdir@%$libdir%g
2840 s%@includedir@%$includedir%g
2841 s%@oldincludedir@%$oldincludedir%g
2842 s%@infodir@%$infodir%g
2843 s%@mandir@%$mandir%g
2844 s%@CC@%$CC%g
2845 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2846 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2847 s%@INSTALL_DATA@%$INSTALL_DATA%g
2848 s%@RANLIB@%$RANLIB%g
2849 s%@SET_MAKE@%$SET_MAKE%g
2850 s%@mrbindir@%$mrbindir%g
2851 s%@subdirs@%$subdirs%g
2852 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
2853 s%@COMPILE_ET@%$COMPILE_ET%g
2854 s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g
2855 s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g
2856 s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g
2857 s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g
2858 s%@GDSS_LIBS@%$GDSS_LIBS%g
2859 s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g
2860 s%@GDSS_OBJS@%$GDSS_OBJS%g
2861 s%@GDSS_CFILES@%$GDSS_CFILES%g
2862 s%@GDSS_TARGET@%$GDSS_TARGET%g
2863 s%@GDSS_LIBDEP@%$GDSS_LIBDEP%g
2864 s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
2865 s%@RSAREF_LIBS@%$RSAREF_LIBS%g
2866 s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
2867 s%@RSAREF_LIBDEP@%$RSAREF_LIBDEP%g
2868 s%@PRO_C@%$PRO_C%g
2869 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
2870 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
2871 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
2872 s%@SQL_LIBS@%$SQL_LIBS%g
2873 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
2874 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
2875 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
2876 s%@AFS_LIBS@%$AFS_LIBS%g
2877 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
2878 s%@AFS_DIR@%$AFS_DIR%g
2879 s%@AFS_SUBDIRS@%$AFS_SUBDIRS%g
2880 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
2881 s%@READLINE_LIBS@%$READLINE_LIBS%g
2882 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
2883 s%@CURSES_LIBS@%$CURSES_LIBS%g
2884 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
2885 s%@KLIBS@%$KLIBS%g
2886 s%@MR_LIBDEP@%$MR_LIBDEP%g
2887
2888 CEOF
2889 EOF
2890
2891 cat >> $CONFIG_STATUS <<\EOF
2892
2893 # Split the substitutions into bite-sized pieces for seds with
2894 # small command number limits, like on Digital OSF/1 and HP-UX.
2895 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2896 ac_file=1 # Number of current file.
2897 ac_beg=1 # First line for current file.
2898 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2899 ac_more_lines=:
2900 ac_sed_cmds=""
2901 while $ac_more_lines; do
2902   if test $ac_beg -gt 1; then
2903     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2904   else
2905     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2906   fi
2907   if test ! -s conftest.s$ac_file; then
2908     ac_more_lines=false
2909     rm -f conftest.s$ac_file
2910   else
2911     if test -z "$ac_sed_cmds"; then
2912       ac_sed_cmds="sed -f conftest.s$ac_file"
2913     else
2914       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2915     fi
2916     ac_file=`expr $ac_file + 1`
2917     ac_beg=$ac_end
2918     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2919   fi
2920 done
2921 if test -z "$ac_sed_cmds"; then
2922   ac_sed_cmds=cat
2923 fi
2924 EOF
2925
2926 cat >> $CONFIG_STATUS <<EOF
2927
2928 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
2929           clients/lib/Makefile clients/addusr/Makefile \
2930           clients/blanche/Makefile clients/mailmaint/Makefile
2931           clients/moira/Makefile clients/mrcheck/Makefile
2932           clients/mrtest/Makefile clients/passwd/Makefile
2933           update/Makefile man/Makefile \
2934           $SERVER_OUTPUT_FILES $AFS_OUTPUT_FILES \
2935           $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"}
2936 EOF
2937 cat >> $CONFIG_STATUS <<\EOF
2938 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2939   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2940   case "$ac_file" in
2941   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2942        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2943   *) ac_file_in="${ac_file}.in" ;;
2944   esac
2945
2946   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2947
2948   # Remove last slash and all that follows it.  Not all systems have dirname.
2949   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2950   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2951     # The file is in a subdirectory.
2952     test ! -d "$ac_dir" && mkdir "$ac_dir"
2953     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2954     # A "../" for each directory in $ac_dir_suffix.
2955     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2956   else
2957     ac_dir_suffix= ac_dots=
2958   fi
2959
2960   case "$ac_given_srcdir" in
2961   .)  srcdir=.
2962       if test -z "$ac_dots"; then top_srcdir=.
2963       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2964   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2965   *) # Relative path.
2966     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2967     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2968   esac
2969
2970   case "$ac_given_INSTALL" in
2971   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2972   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2973   esac
2974
2975   echo creating "$ac_file"
2976   rm -f "$ac_file"
2977   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2978   case "$ac_file" in
2979   *Makefile*) ac_comsub="1i\\
2980 # $configure_input" ;;
2981   *) ac_comsub= ;;
2982   esac
2983
2984   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2985   sed -e "$ac_comsub
2986 s%@configure_input@%$configure_input%g
2987 s%@srcdir@%$srcdir%g
2988 s%@top_srcdir@%$top_srcdir%g
2989 s%@INSTALL@%$INSTALL%g
2990 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2991 fi; done
2992 rm -f conftest.s*
2993
2994 EOF
2995 cat >> $CONFIG_STATUS <<EOF
2996
2997 EOF
2998 cat >> $CONFIG_STATUS <<\EOF
2999
3000 exit 0
3001 EOF
3002 chmod +x $CONFIG_STATUS
3003 rm -fr confdefs* $ac_clean_files
3004 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3005
3006 if test "$no_recursion" != yes; then
3007
3008   # Remove --cache-file and --srcdir arguments so they do not pile up.
3009   ac_sub_configure_args=
3010   ac_prev=
3011   for ac_arg in $ac_configure_args; do
3012     if test -n "$ac_prev"; then
3013       ac_prev=
3014       continue
3015     fi
3016     case "$ac_arg" in
3017     -cache-file | --cache-file | --cache-fil | --cache-fi \
3018     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3019       ac_prev=cache_file ;;
3020     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3021     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3022       ;;
3023     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3024       ac_prev=srcdir ;;
3025     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3026       ;;
3027     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3028     esac
3029   done
3030
3031   for ac_config_dir in $COM_ERR_SUBDIR; do
3032
3033     # Do not complain, so a configure script can configure whichever
3034     # parts of a large source tree are present.
3035     if test ! -d $srcdir/$ac_config_dir; then
3036       continue
3037     fi
3038
3039     echo configuring in $ac_config_dir
3040
3041     case "$srcdir" in
3042     .) ;;
3043     *)
3044       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3045       else
3046         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3047       fi
3048       ;;
3049     esac
3050
3051     ac_popdir=`pwd`
3052     cd $ac_config_dir
3053
3054       # A "../" for each directory in /$ac_config_dir.
3055       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3056
3057     case "$srcdir" in
3058     .) # No --srcdir option.  We are building in place.
3059       ac_sub_srcdir=$srcdir ;;
3060     /*) # Absolute path.
3061       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3062     *) # Relative path.
3063       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3064     esac
3065
3066     # Check for guested configure; otherwise get Cygnus style configure.
3067     if test -f $ac_sub_srcdir/configure; then
3068       ac_sub_configure=$ac_sub_srcdir/configure
3069     elif test -f $ac_sub_srcdir/configure.in; then
3070       ac_sub_configure=$ac_configure
3071     else
3072       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3073       ac_sub_configure=
3074     fi
3075
3076     # The recursion is here.
3077     if test -n "$ac_sub_configure"; then
3078
3079       # Make the cache file name correct relative to the subdirectory.
3080       case "$cache_file" in
3081       /*) ac_sub_cache_file=$cache_file ;;
3082       *) # Relative path.
3083         ac_sub_cache_file="$ac_dots$cache_file" ;;
3084       esac
3085   case "$ac_given_INSTALL" in
3086         [/$]*) INSTALL="$ac_given_INSTALL" ;;
3087         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3088         esac
3089
3090       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3091       # The eval makes quoting arguments work.
3092       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3093       then :
3094       else
3095         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3096       fi
3097     fi
3098
3099     cd $ac_popdir
3100   done
3101 fi
3102
This page took 1.726666 seconds and 5 git commands to generate.