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