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