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