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