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