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