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