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