]>
Commit | Line | Data |
---|---|---|
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: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-athena Enable Athena-specific policy decisions" | |
16 | ac_help="$ac_help | |
17 | --with-com_err=PREFIX Specify location of com_err" | |
18 | ac_help="$ac_help | |
19 | --with-krb4=PREFIX Specify location of krb4" | |
20 | ac_help="$ac_help | |
21 | --with-hesiod=PREFIX Specify location of Hesiod" | |
22 | ac_help="$ac_help | |
23 | --with-zephyr=PREFIX Specify location of Zephyr" | |
24 | ac_help="$ac_help | |
25 | --with-gdss=PREFIX Specify location of GDSS" | |
26 | ac_help="$ac_help | |
27 | --with-oracle=PREFIX Specify location of Oracle (for server)" | |
28 | ac_help="$ac_help | |
29 | --with-afs=PREFIX Specify location of AFS libs (for server)" | |
30 | ac_help="$ac_help | |
31 | --with-readline=PREFIX Specify location of GNU readline" | |
32 | ||
33 | # Initialize some variables set by options. | |
34 | # The variables have the same names as the options, with | |
35 | # dashes changed to underlines. | |
36 | build=NONE | |
37 | cache_file=./config.cache | |
38 | exec_prefix=NONE | |
39 | host=NONE | |
40 | no_create= | |
41 | nonopt=NONE | |
42 | no_recursion= | |
43 | prefix=NONE | |
44 | program_prefix=NONE | |
45 | program_suffix=NONE | |
46 | program_transform_name=s,x,x, | |
47 | silent= | |
48 | site= | |
49 | srcdir= | |
50 | target=NONE | |
51 | verbose= | |
52 | x_includes=NONE | |
53 | x_libraries=NONE | |
54 | bindir='${exec_prefix}/bin' | |
55 | sbindir='${exec_prefix}/sbin' | |
56 | libexecdir='${exec_prefix}/libexec' | |
57 | datadir='${prefix}/share' | |
58 | sysconfdir='${prefix}/etc' | |
59 | sharedstatedir='${prefix}/com' | |
60 | localstatedir='${prefix}/var' | |
61 | libdir='${exec_prefix}/lib' | |
62 | includedir='${prefix}/include' | |
63 | oldincludedir='/usr/include' | |
64 | infodir='${prefix}/info' | |
65 | mandir='${prefix}/man' | |
66 | ||
67 | # Initialize some other variables. | |
68 | subdirs= | |
69 | MFLAGS= MAKEFLAGS= | |
70 | # Maximum number of lines to put in a shell here document. | |
71 | ac_max_here_lines=12 | |
72 | ||
73 | ac_prev= | |
74 | for ac_option | |
75 | do | |
76 | ||
77 | # If the previous option needs an argument, assign it. | |
78 | if test -n "$ac_prev"; then | |
79 | eval "$ac_prev=\$ac_option" | |
80 | ac_prev= | |
81 | continue | |
82 | fi | |
83 | ||
84 | case "$ac_option" in | |
85 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
86 | *) ac_optarg= ;; | |
87 | esac | |
88 | ||
89 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
90 | ||
91 | case "$ac_option" in | |
92 | ||
93 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
94 | ac_prev=bindir ;; | |
95 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
96 | bindir="$ac_optarg" ;; | |
97 | ||
98 | -build | --build | --buil | --bui | --bu) | |
99 | ac_prev=build ;; | |
100 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
101 | build="$ac_optarg" ;; | |
102 | ||
103 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
104 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
105 | ac_prev=cache_file ;; | |
106 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
107 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
108 | cache_file="$ac_optarg" ;; | |
109 | ||
110 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
111 | ac_prev=datadir ;; | |
112 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
113 | | --da=*) | |
114 | datadir="$ac_optarg" ;; | |
115 | ||
116 | -disable-* | --disable-*) | |
117 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
118 | # Reject names that are not valid shell variable names. | |
119 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
120 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
121 | fi | |
122 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
123 | eval "enable_${ac_feature}=no" ;; | |
124 | ||
125 | -enable-* | --enable-*) | |
126 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
127 | # Reject names that are not valid shell variable names. | |
128 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
129 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
130 | fi | |
131 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
132 | case "$ac_option" in | |
133 | *=*) ;; | |
134 | *) ac_optarg=yes ;; | |
135 | esac | |
136 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
137 | ||
138 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
139 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
140 | | --exec | --exe | --ex) | |
141 | ac_prev=exec_prefix ;; | |
142 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
143 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
144 | | --exec=* | --exe=* | --ex=*) | |
145 | exec_prefix="$ac_optarg" ;; | |
146 | ||
147 | -gas | --gas | --ga | --g) | |
148 | # Obsolete; use --with-gas. | |
149 | with_gas=yes ;; | |
150 | ||
151 | -help | --help | --hel | --he) | |
152 | # Omit some internal or obsolete options to make the list less imposing. | |
153 | # This message is too long to be a string in the A/UX 3.1 sh. | |
154 | cat << EOF | |
155 | Usage: configure [options] [host] | |
156 | Options: [defaults in brackets after descriptions] | |
157 | Configuration: | |
158 | --cache-file=FILE cache test results in FILE | |
159 | --help print this message | |
160 | --no-create do not create output files | |
161 | --quiet, --silent do not print \`checking...' messages | |
162 | --version print the version of autoconf that created configure | |
163 | Directory and file names: | |
164 | --prefix=PREFIX install architecture-independent files in PREFIX | |
165 | [$ac_default_prefix] | |
166 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
167 | [same as prefix] | |
168 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
169 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
170 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
171 | --datadir=DIR read-only architecture-independent data in DIR | |
172 | [PREFIX/share] | |
173 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
174 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
175 | [PREFIX/com] | |
176 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
177 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
178 | --includedir=DIR C header files in DIR [PREFIX/include] | |
179 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
180 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
181 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
182 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
183 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
184 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
185 | --program-transform-name=PROGRAM | |
186 | run sed PROGRAM on installed program names | |
187 | EOF | |
188 | cat << EOF | |
189 | Host type: | |
190 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
191 | --host=HOST configure for HOST [guessed] | |
192 | --target=TARGET configure for TARGET [TARGET=HOST] | |
193 | Features and packages: | |
194 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
195 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
196 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
197 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
198 | --x-includes=DIR X include files are in DIR | |
199 | --x-libraries=DIR X library files are in DIR | |
200 | EOF | |
201 | if test -n "$ac_help"; then | |
202 | echo "--enable and --with options recognized:$ac_help" | |
203 | fi | |
204 | exit 0 ;; | |
205 | ||
206 | -host | --host | --hos | --ho) | |
207 | ac_prev=host ;; | |
208 | -host=* | --host=* | --hos=* | --ho=*) | |
209 | host="$ac_optarg" ;; | |
210 | ||
211 | -includedir | --includedir | --includedi | --included | --include \ | |
212 | | --includ | --inclu | --incl | --inc) | |
213 | ac_prev=includedir ;; | |
214 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
215 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
216 | includedir="$ac_optarg" ;; | |
217 | ||
218 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
219 | ac_prev=infodir ;; | |
220 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
221 | infodir="$ac_optarg" ;; | |
222 | ||
223 | -libdir | --libdir | --libdi | --libd) | |
224 | ac_prev=libdir ;; | |
225 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
226 | libdir="$ac_optarg" ;; | |
227 | ||
228 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
229 | | --libexe | --libex | --libe) | |
230 | ac_prev=libexecdir ;; | |
231 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
232 | | --libexe=* | --libex=* | --libe=*) | |
233 | libexecdir="$ac_optarg" ;; | |
234 | ||
235 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
236 | | --localstate | --localstat | --localsta | --localst \ | |
237 | | --locals | --local | --loca | --loc | --lo) | |
238 | ac_prev=localstatedir ;; | |
239 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
240 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
241 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
242 | localstatedir="$ac_optarg" ;; | |
243 | ||
244 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
245 | ac_prev=mandir ;; | |
246 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
247 | mandir="$ac_optarg" ;; | |
248 | ||
249 | -nfp | --nfp | --nf) | |
250 | # Obsolete; use --without-fp. | |
251 | with_fp=no ;; | |
252 | ||
253 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
254 | | --no-cr | --no-c) | |
255 | no_create=yes ;; | |
256 | ||
257 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
258 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
259 | no_recursion=yes ;; | |
260 | ||
261 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
262 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
263 | | --oldin | --oldi | --old | --ol | --o) | |
264 | ac_prev=oldincludedir ;; | |
265 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
266 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
267 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
268 | oldincludedir="$ac_optarg" ;; | |
269 | ||
270 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
271 | ac_prev=prefix ;; | |
272 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
273 | prefix="$ac_optarg" ;; | |
274 | ||
275 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
276 | | --program-pre | --program-pr | --program-p) | |
277 | ac_prev=program_prefix ;; | |
278 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
279 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
280 | program_prefix="$ac_optarg" ;; | |
281 | ||
282 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
283 | | --program-suf | --program-su | --program-s) | |
284 | ac_prev=program_suffix ;; | |
285 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
286 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
287 | program_suffix="$ac_optarg" ;; | |
288 | ||
289 | -program-transform-name | --program-transform-name \ | |
290 | | --program-transform-nam | --program-transform-na \ | |
291 | | --program-transform-n | --program-transform- \ | |
292 | | --program-transform | --program-transfor \ | |
293 | | --program-transfo | --program-transf \ | |
294 | | --program-trans | --program-tran \ | |
295 | | --progr-tra | --program-tr | --program-t) | |
296 | ac_prev=program_transform_name ;; | |
297 | -program-transform-name=* | --program-transform-name=* \ | |
298 | | --program-transform-nam=* | --program-transform-na=* \ | |
299 | | --program-transform-n=* | --program-transform-=* \ | |
300 | | --program-transform=* | --program-transfor=* \ | |
301 | | --program-transfo=* | --program-transf=* \ | |
302 | | --program-trans=* | --program-tran=* \ | |
303 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
304 | program_transform_name="$ac_optarg" ;; | |
305 | ||
306 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
307 | | -silent | --silent | --silen | --sile | --sil) | |
308 | silent=yes ;; | |
309 | ||
310 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
311 | ac_prev=sbindir ;; | |
312 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
313 | | --sbi=* | --sb=*) | |
314 | sbindir="$ac_optarg" ;; | |
315 | ||
316 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
317 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
318 | | --sharedst | --shareds | --shared | --share | --shar \ | |
319 | | --sha | --sh) | |
320 | ac_prev=sharedstatedir ;; | |
321 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
322 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
323 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
324 | | --sha=* | --sh=*) | |
325 | sharedstatedir="$ac_optarg" ;; | |
326 | ||
327 | -site | --site | --sit) | |
328 | ac_prev=site ;; | |
329 | -site=* | --site=* | --sit=*) | |
330 | site="$ac_optarg" ;; | |
331 | ||
332 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
333 | ac_prev=srcdir ;; | |
334 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
335 | srcdir="$ac_optarg" ;; | |
336 | ||
337 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
338 | | --syscon | --sysco | --sysc | --sys | --sy) | |
339 | ac_prev=sysconfdir ;; | |
340 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
341 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
342 | sysconfdir="$ac_optarg" ;; | |
343 | ||
344 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
345 | ac_prev=target ;; | |
346 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
347 | target="$ac_optarg" ;; | |
348 | ||
349 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
350 | verbose=yes ;; | |
351 | ||
352 | -version | --version | --versio | --versi | --vers) | |
353 | echo "configure generated by autoconf version 2.12" | |
354 | exit 0 ;; | |
355 | ||
356 | -with-* | --with-*) | |
357 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
358 | # Reject names that are not valid shell variable names. | |
359 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
360 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
361 | fi | |
362 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
363 | case "$ac_option" in | |
364 | *=*) ;; | |
365 | *) ac_optarg=yes ;; | |
366 | esac | |
367 | eval "with_${ac_package}='$ac_optarg'" ;; | |
368 | ||
369 | -without-* | --without-*) | |
370 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
371 | # Reject names that are not valid shell variable names. | |
372 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
373 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
374 | fi | |
375 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
376 | eval "with_${ac_package}=no" ;; | |
377 | ||
378 | --x) | |
379 | # Obsolete; use --with-x. | |
380 | with_x=yes ;; | |
381 | ||
382 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
383 | | --x-incl | --x-inc | --x-in | --x-i) | |
384 | ac_prev=x_includes ;; | |
385 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
386 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
387 | x_includes="$ac_optarg" ;; | |
388 | ||
389 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
390 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
391 | ac_prev=x_libraries ;; | |
392 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
393 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
394 | x_libraries="$ac_optarg" ;; | |
395 | ||
396 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
397 | ;; | |
398 | ||
399 | *) | |
400 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
401 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
402 | fi | |
403 | if test "x$nonopt" != xNONE; then | |
404 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
405 | fi | |
406 | nonopt="$ac_option" | |
407 | ;; | |
408 | ||
409 | esac | |
410 | done | |
411 | ||
412 | if test -n "$ac_prev"; then | |
413 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
414 | fi | |
415 | ||
416 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
417 | ||
418 | # File descriptor usage: | |
419 | # 0 standard input | |
420 | # 1 file creation | |
421 | # 2 errors and warnings | |
422 | # 3 some systems may open it to /dev/tty | |
423 | # 4 used on the Kubota Titan | |
424 | # 6 checking for... messages and results | |
425 | # 5 compiler messages saved in config.log | |
426 | if test "$silent" = yes; then | |
427 | exec 6>/dev/null | |
428 | else | |
429 | exec 6>&1 | |
430 | fi | |
431 | exec 5>./config.log | |
432 | ||
433 | echo "\ | |
434 | This file contains any messages produced by compilers while | |
435 | running configure, to aid debugging if configure makes a mistake. | |
436 | " 1>&5 | |
437 | ||
438 | # Strip out --no-create and --no-recursion so they do not pile up. | |
439 | # Also quote any args containing shell metacharacters. | |
440 | ac_configure_args= | |
441 | for ac_arg | |
442 | do | |
443 | case "$ac_arg" in | |
444 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
445 | | --no-cr | --no-c) ;; | |
446 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
447 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
448 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
449 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
450 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
451 | esac | |
452 | done | |
453 | ||
454 | # NLS nuisances. | |
455 | # Only set these to C if already set. These must not be set unconditionally | |
456 | # because not all systems understand e.g. LANG=C (notably SCO). | |
457 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
458 | # Non-C LC_CTYPE values break the ctype check. | |
459 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
460 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
461 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
462 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
463 | ||
464 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
465 | rm -rf conftest* confdefs.h | |
466 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
467 | echo > confdefs.h | |
468 | ||
469 | # A filename unique to this package, relative to the directory that | |
470 | # configure is in, which we can look for to find out if srcdir is correct. | |
471 | ac_unique_file=patchlevel.h | |
472 | ||
473 | # Find the source files, if location was not specified. | |
474 | if test -z "$srcdir"; then | |
475 | ac_srcdir_defaulted=yes | |
476 | # Try the directory containing this script, then its parent. | |
477 | ac_prog=$0 | |
478 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
479 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
480 | srcdir=$ac_confdir | |
481 | if test ! -r $srcdir/$ac_unique_file; then | |
482 | srcdir=.. | |
483 | fi | |
484 | else | |
485 | ac_srcdir_defaulted=no | |
486 | fi | |
487 | if test ! -r $srcdir/$ac_unique_file; then | |
488 | if test "$ac_srcdir_defaulted" = yes; then | |
489 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
490 | else | |
491 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
492 | fi | |
493 | fi | |
494 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
495 | ||
496 | # Prefer explicitly selected file to automatically selected ones. | |
497 | if test -z "$CONFIG_SITE"; then | |
498 | if test "x$prefix" != xNONE; then | |
499 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
500 | else | |
501 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
502 | fi | |
503 | fi | |
504 | for ac_site_file in $CONFIG_SITE; do | |
505 | if test -r "$ac_site_file"; then | |
506 | echo "loading site script $ac_site_file" | |
507 | . "$ac_site_file" | |
508 | fi | |
509 | done | |
510 | ||
511 | if test -r "$cache_file"; then | |
512 | echo "loading cache $cache_file" | |
513 | . $cache_file | |
514 | else | |
515 | echo "creating cache $cache_file" | |
516 | > $cache_file | |
517 | fi | |
518 | ||
519 | ac_ext=c | |
520 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
521 | ac_cpp='$CPP $CPPFLAGS' | |
522 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
523 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
524 | cross_compiling=$ac_cv_prog_cc_cross | |
525 | ||
526 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
527 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
528 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
529 | ac_n= ac_c=' | |
530 | ' ac_t=' ' | |
531 | else | |
532 | ac_n=-n ac_c= ac_t= | |
533 | fi | |
534 | else | |
535 | ac_n= ac_c='\c' ac_t= | |
536 | fi | |
537 | ||
538 | ||
539 | ||
540 | ||
541 | ||
542 | ||
543 | ||
544 | ||
545 | ||
546 | ||
547 | ||
548 | # Extract the first word of "gcc", so it can be a program name with args. | |
549 | set dummy gcc; ac_word=$2 | |
550 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
551 | echo "configure:552: checking for $ac_word" >&5 | |
552 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
554 | else | |
555 | if test -n "$CC"; then | |
556 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
557 | else | |
558 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
559 | for ac_dir in $PATH; do | |
560 | test -z "$ac_dir" && ac_dir=. | |
561 | if test -f $ac_dir/$ac_word; then | |
562 | ac_cv_prog_CC="gcc" | |
563 | break | |
564 | fi | |
565 | done | |
566 | IFS="$ac_save_ifs" | |
567 | fi | |
568 | fi | |
569 | CC="$ac_cv_prog_CC" | |
570 | if test -n "$CC"; then | |
571 | echo "$ac_t""$CC" 1>&6 | |
572 | else | |
573 | echo "$ac_t""no" 1>&6 | |
574 | fi | |
575 | ||
576 | if test -z "$CC"; then | |
577 | # Extract the first word of "cc", so it can be a program name with args. | |
578 | set dummy cc; ac_word=$2 | |
579 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
580 | echo "configure:581: checking for $ac_word" >&5 | |
581 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
583 | else | |
584 | if test -n "$CC"; then | |
585 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
586 | else | |
587 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
588 | ac_prog_rejected=no | |
589 | for ac_dir in $PATH; do | |
590 | test -z "$ac_dir" && ac_dir=. | |
591 | if test -f $ac_dir/$ac_word; then | |
592 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
593 | ac_prog_rejected=yes | |
594 | continue | |
595 | fi | |
596 | ac_cv_prog_CC="cc" | |
597 | break | |
598 | fi | |
599 | done | |
600 | IFS="$ac_save_ifs" | |
601 | if test $ac_prog_rejected = yes; then | |
602 | # We found a bogon in the path, so make sure we never use it. | |
603 | set dummy $ac_cv_prog_CC | |
604 | shift | |
605 | if test $# -gt 0; then | |
606 | # We chose a different compiler from the bogus one. | |
607 | # However, it has the same basename, so the bogon will be chosen | |
608 | # first if we set CC to just the basename; use the full file name. | |
609 | shift | |
610 | set dummy "$ac_dir/$ac_word" "$@" | |
611 | shift | |
612 | ac_cv_prog_CC="$@" | |
613 | fi | |
614 | fi | |
615 | fi | |
616 | fi | |
617 | CC="$ac_cv_prog_CC" | |
618 | if test -n "$CC"; then | |
619 | echo "$ac_t""$CC" 1>&6 | |
620 | else | |
621 | echo "$ac_t""no" 1>&6 | |
622 | fi | |
623 | ||
624 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
625 | fi | |
626 | ||
627 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
628 | echo "configure:629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
629 | ||
630 | ac_ext=c | |
631 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
632 | ac_cpp='$CPP $CPPFLAGS' | |
633 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
634 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
635 | cross_compiling=$ac_cv_prog_cc_cross | |
636 | ||
637 | cat > conftest.$ac_ext <<EOF | |
638 | #line 639 "configure" | |
639 | #include "confdefs.h" | |
640 | main(){return(0);} | |
641 | EOF | |
642 | if { (eval echo configure:643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
643 | ac_cv_prog_cc_works=yes | |
644 | # If we can't run a trivial program, we are probably using a cross compiler. | |
645 | if (./conftest; exit) 2>/dev/null; then | |
646 | ac_cv_prog_cc_cross=no | |
647 | else | |
648 | ac_cv_prog_cc_cross=yes | |
649 | fi | |
650 | else | |
651 | echo "configure: failed program was:" >&5 | |
652 | cat conftest.$ac_ext >&5 | |
653 | ac_cv_prog_cc_works=no | |
654 | fi | |
655 | rm -fr conftest* | |
656 | ||
657 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
658 | if test $ac_cv_prog_cc_works = no; then | |
659 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
660 | fi | |
661 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
662 | echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
663 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
664 | cross_compiling=$ac_cv_prog_cc_cross | |
665 | ||
666 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
667 | echo "configure:668: checking whether we are using GNU C" >&5 | |
668 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
670 | else | |
671 | cat > conftest.c <<EOF | |
672 | #ifdef __GNUC__ | |
673 | yes; | |
674 | #endif | |
675 | EOF | |
676 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
677 | ac_cv_prog_gcc=yes | |
678 | else | |
679 | ac_cv_prog_gcc=no | |
680 | fi | |
681 | fi | |
682 | ||
683 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
684 | ||
685 | if test $ac_cv_prog_gcc = yes; then | |
686 | GCC=yes | |
687 | ac_test_CFLAGS="${CFLAGS+set}" | |
688 | ac_save_CFLAGS="$CFLAGS" | |
689 | CFLAGS= | |
690 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
691 | echo "configure:692: checking whether ${CC-cc} accepts -g" >&5 | |
692 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
694 | else | |
695 | echo 'void f(){}' > conftest.c | |
696 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
697 | ac_cv_prog_cc_g=yes | |
698 | else | |
699 | ac_cv_prog_cc_g=no | |
700 | fi | |
701 | rm -f conftest* | |
702 | ||
703 | fi | |
704 | ||
705 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
706 | if test "$ac_test_CFLAGS" = set; then | |
707 | CFLAGS="$ac_save_CFLAGS" | |
708 | elif test $ac_cv_prog_cc_g = yes; then | |
709 | CFLAGS="-g -O2" | |
710 | else | |
711 | CFLAGS="-O2" | |
712 | fi | |
713 | else | |
714 | GCC= | |
715 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
716 | fi | |
717 | ||
718 | ac_aux_dir= | |
719 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
720 | if test -f $ac_dir/install-sh; then | |
721 | ac_aux_dir=$ac_dir | |
722 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
723 | break | |
724 | elif test -f $ac_dir/install.sh; then | |
725 | ac_aux_dir=$ac_dir | |
726 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
727 | break | |
728 | fi | |
729 | done | |
730 | if test -z "$ac_aux_dir"; then | |
731 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
732 | fi | |
733 | ac_config_guess=$ac_aux_dir/config.guess | |
734 | ac_config_sub=$ac_aux_dir/config.sub | |
735 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
736 | ||
737 | # Find a good install program. We prefer a C program (faster), | |
738 | # so one script is as good as another. But avoid the broken or | |
739 | # incompatible versions: | |
740 | # SysV /etc/install, /usr/sbin/install | |
741 | # SunOS /usr/etc/install | |
742 | # IRIX /sbin/install | |
743 | # AIX /bin/install | |
744 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
745 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
746 | # ./install, which can be erroneously created by make from ./install.sh. | |
747 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
748 | echo "configure:749: checking for a BSD compatible install" >&5 | |
749 | if test -z "$INSTALL"; then | |
750 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
752 | else | |
753 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
754 | for ac_dir in $PATH; do | |
755 | # Account for people who put trailing slashes in PATH elements. | |
756 | case "$ac_dir/" in | |
757 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
758 | *) | |
759 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
760 | for ac_prog in ginstall installbsd scoinst install; do | |
761 | if test -f $ac_dir/$ac_prog; then | |
762 | if test $ac_prog = install && | |
763 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
764 | # AIX install. It has an incompatible calling convention. | |
765 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
766 | : | |
767 | else | |
768 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
769 | break 2 | |
770 | fi | |
771 | fi | |
772 | done | |
773 | ;; | |
774 | esac | |
775 | done | |
776 | IFS="$ac_save_IFS" | |
777 | ||
778 | fi | |
779 | if test "${ac_cv_path_install+set}" = set; then | |
780 | INSTALL="$ac_cv_path_install" | |
781 | else | |
782 | # As a last resort, use the slow shell script. We don't cache a | |
783 | # path for INSTALL within a source directory, because that will | |
784 | # break other packages using the cache if that directory is | |
785 | # removed, or if the path is relative. | |
786 | INSTALL="$ac_install_sh" | |
787 | fi | |
788 | fi | |
789 | echo "$ac_t""$INSTALL" 1>&6 | |
790 | ||
791 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
792 | # It thinks the first close brace ends the variable substitution. | |
793 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
794 | ||
795 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
796 | ||
797 | # Extract the first word of "ranlib", so it can be a program name with args. | |
798 | set dummy ranlib; ac_word=$2 | |
799 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
800 | echo "configure:801: checking for $ac_word" >&5 | |
801 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
803 | else | |
804 | if test -n "$RANLIB"; then | |
805 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
806 | else | |
807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
808 | for ac_dir in $PATH; do | |
809 | test -z "$ac_dir" && ac_dir=. | |
810 | if test -f $ac_dir/$ac_word; then | |
811 | ac_cv_prog_RANLIB="ranlib" | |
812 | break | |
813 | fi | |
814 | done | |
815 | IFS="$ac_save_ifs" | |
816 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
817 | fi | |
818 | fi | |
819 | RANLIB="$ac_cv_prog_RANLIB" | |
820 | if test -n "$RANLIB"; then | |
821 | echo "$ac_t""$RANLIB" 1>&6 | |
822 | else | |
823 | echo "$ac_t""no" 1>&6 | |
824 | fi | |
825 | ||
826 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
827 | echo "configure:828: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
828 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
829 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
831 | else | |
832 | cat > conftestmake <<\EOF | |
833 | all: | |
834 | @echo 'ac_maketemp="${MAKE}"' | |
835 | EOF | |
836 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
837 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
838 | if test -n "$ac_maketemp"; then | |
839 | eval ac_cv_prog_make_${ac_make}_set=yes | |
840 | else | |
841 | eval ac_cv_prog_make_${ac_make}_set=no | |
842 | fi | |
843 | rm -f conftestmake | |
844 | fi | |
845 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
846 | echo "$ac_t""yes" 1>&6 | |
847 | SET_MAKE= | |
848 | else | |
849 | echo "$ac_t""no" 1>&6 | |
850 | SET_MAKE="MAKE=${MAKE-make}" | |
851 | fi | |
852 | ||
853 | ||
854 | if test "$athena" = true; then | |
855 | enable_athena=yes | |
856 | with_readline=/mit/gnu | |
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 | |
861 | fi | |
862 | ||
863 | # We currently just don't support changing this | |
864 | mrbindir=/moira/bin | |
865 | ||
866 | ||
867 | # Athena-local policy decisions | |
868 | echo $ac_n "checking for Athena""... $ac_c" 1>&6 | |
25f58600 | 869 | echo "configure:870: checking for Athena" >&5 |
ea0caf4a | 870 | # Check whether --enable-athena or --disable-athena was given. |
871 | if test "${enable_athena+set}" = set; then | |
872 | enableval="$enable_athena" | |
873 | : | |
874 | else | |
875 | if test "$athena" = true; then | |
876 | enableval=yes | |
877 | else | |
878 | enableval=no | |
879 | fi | |
880 | fi | |
881 | ||
882 | echo "$ac_t""$enableval" 1>&6 | |
883 | if test "$enableval" = yes; then | |
884 | ||
885 | cat >> confdefs.h <<\EOF | |
886 | #define ATHENA 1 | |
887 | EOF | |
888 | ||
889 | ||
890 | case $PRO_C_DEFS in | |
891 | *DEFINE=ATHENA*) ;; | |
892 | *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;; | |
893 | esac | |
894 | ||
895 | ||
896 | fi | |
897 | ||
898 | # Networking libraries | |
899 | echo "checking network libraries..." 1>&6 | |
25f58600 | 900 | echo "configure:901: checking network libraries..." >&5 |
ea0caf4a | 901 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
25f58600 | 902 | echo "configure:903: checking for gethostbyname" >&5 |
ea0caf4a | 903 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
905 | else | |
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. */ | |
915 | char gethostbyname(); | |
916 | ||
917 | int 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) | |
923 | choke me | |
924 | #else | |
925 | gethostbyname(); | |
926 | #endif | |
927 | ||
928 | ; return 0; } | |
929 | EOF | |
25f58600 | 930 | if { (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" | |
933 | else | |
934 | echo "configure: failed program was:" >&5 | |
935 | cat conftest.$ac_ext >&5 | |
936 | rm -rf conftest* | |
937 | eval "ac_cv_func_gethostbyname=no" | |
938 | fi | |
939 | rm -f conftest* | |
940 | fi | |
941 | ||
942 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
943 | echo "$ac_t""yes" 1>&6 | |
944 | : | |
945 | else | |
946 | echo "$ac_t""no" 1>&6 | |
947 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
25f58600 | 948 | echo "configure:949: checking for gethostbyname in -lnsl" >&5 |
ea0caf4a | 949 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
950 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
952 | else | |
953 | ac_save_LIBS="$LIBS" | |
954 | LIBS="-lnsl $LIBS" | |
955 | cat > 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. */ | |
961 | char gethostbyname(); | |
962 | ||
963 | int main() { | |
964 | gethostbyname() | |
965 | ; return 0; } | |
966 | EOF | |
25f58600 | 967 | if { (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" | |
970 | else | |
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" | |
975 | fi | |
976 | rm -f conftest* | |
977 | LIBS="$ac_save_LIBS" | |
978 | ||
979 | fi | |
980 | if 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 | |
986 | EOF | |
987 | ||
988 | LIBS="-lnsl $LIBS" | |
989 | ||
990 | else | |
991 | echo "$ac_t""no" 1>&6 | |
992 | echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 | |
25f58600 | 993 | echo "configure:994: checking for gethostbyname in -lresolv" >&5 |
ea0caf4a | 994 | ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` |
995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
997 | else | |
998 | ac_save_LIBS="$LIBS" | |
999 | LIBS="-lresolv $LIBS" | |
1000 | cat > 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. */ | |
1006 | char gethostbyname(); | |
1007 | ||
1008 | int main() { | |
1009 | gethostbyname() | |
1010 | ; return 0; } | |
1011 | EOF | |
25f58600 | 1012 | if { (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" | |
1015 | else | |
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" | |
1020 | fi | |
1021 | rm -f conftest* | |
1022 | LIBS="$ac_save_LIBS" | |
1023 | ||
1024 | fi | |
1025 | if 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 | |
1031 | EOF | |
1032 | ||
1033 | LIBS="-lresolv $LIBS" | |
1034 | ||
1035 | else | |
1036 | echo "$ac_t""no" 1>&6 | |
1037 | fi | |
1038 | ||
1039 | fi | |
1040 | ||
1041 | fi | |
1042 | ||
1043 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
25f58600 | 1044 | echo "configure:1045: checking for socket" >&5 |
ea0caf4a | 1045 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
1046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1047 | else | |
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. */ | |
1057 | char socket(); | |
1058 | ||
1059 | int 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) | |
1065 | choke me | |
1066 | #else | |
1067 | socket(); | |
1068 | #endif | |
1069 | ||
1070 | ; return 0; } | |
1071 | EOF | |
25f58600 | 1072 | if { (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" | |
1075 | else | |
1076 | echo "configure: failed program was:" >&5 | |
1077 | cat conftest.$ac_ext >&5 | |
1078 | rm -rf conftest* | |
1079 | eval "ac_cv_func_socket=no" | |
1080 | fi | |
1081 | rm -f conftest* | |
1082 | fi | |
1083 | ||
1084 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
1085 | echo "$ac_t""yes" 1>&6 | |
1086 | : | |
1087 | else | |
1088 | echo "$ac_t""no" 1>&6 | |
1089 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
25f58600 | 1090 | echo "configure:1091: checking for socket in -lsocket" >&5 |
ea0caf4a | 1091 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1094 | else | |
1095 | ac_save_LIBS="$LIBS" | |
1096 | LIBS="-lsocket $LIBS" | |
1097 | cat > 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. */ | |
1103 | char socket(); | |
1104 | ||
1105 | int main() { | |
1106 | socket() | |
1107 | ; return 0; } | |
1108 | EOF | |
25f58600 | 1109 | if { (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" | |
1112 | else | |
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" | |
1117 | fi | |
1118 | rm -f conftest* | |
1119 | LIBS="$ac_save_LIBS" | |
1120 | ||
1121 | fi | |
1122 | if 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 | |
1128 | EOF | |
1129 | ||
1130 | LIBS="-lsocket $LIBS" | |
1131 | ||
1132 | else | |
1133 | echo "$ac_t""no" 1>&6 | |
1134 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
25f58600 | 1135 | echo "configure:1136: checking for socket in -lsocket" >&5 |
ea0caf4a | 1136 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1137 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1139 | else | |
1140 | ac_save_LIBS="$LIBS" | |
1141 | LIBS="-lsocket -lnsl $LIBS" | |
1142 | cat > 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. */ | |
1148 | char socket(); | |
1149 | ||
1150 | int main() { | |
1151 | socket() | |
1152 | ; return 0; } | |
1153 | EOF | |
25f58600 | 1154 | if { (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" | |
1157 | else | |
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" | |
1162 | fi | |
1163 | rm -f conftest* | |
1164 | LIBS="$ac_save_LIBS" | |
1165 | ||
1166 | fi | |
1167 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1168 | echo "$ac_t""yes" 1>&6 | |
1169 | LIBS="-lsocket -lnsl $LIBS" | |
1170 | else | |
1171 | echo "$ac_t""no" 1>&6 | |
1172 | : | |
1173 | fi | |
1174 | ||
1175 | fi | |
1176 | ||
1177 | fi | |
1178 | ||
1179 | ||
1180 | # com_err (required, but can be built) | |
1181 | echo $ac_n "checking for com_err""... $ac_c" 1>&6 | |
25f58600 | 1182 | echo "configure:1183: checking for com_err" >&5 |
ea0caf4a | 1183 | # Check whether --with-com_err or --without-com_err was given. |
1184 | if 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 | |
1213 | else | |
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 | ||
1239 | fi | |
1240 | ||
1241 | ||
1242 | ||
1243 | ||
1244 | # Kerberos (required) | |
1245 | echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6 | |
25f58600 | 1246 | echo "configure:1247: checking for Kerberos 4" >&5 |
ea0caf4a | 1247 | # Check whether --with-krb4 or --without-krb4 was given. |
1248 | if test "${with_krb4+set}" = set; then | |
1249 | withval="$with_krb4" | |
1250 | krb4="$withval" | |
1251 | else | |
1252 | krb4=no | |
1253 | fi | |
1254 | ||
1255 | echo "$ac_t""$krb4" 1>&6 | |
1256 | if test $krb4 = "no"; then | |
1257 | { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; } | |
1258 | fi | |
1259 | if 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 | ||
1296 | elif 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 | ||
1311 | fi | |
1312 | echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6 | |
25f58600 | 1313 | echo "configure:1314: checking for krb_rd_req in -lkrb4" >&5 |
ea0caf4a | 1314 | ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'` |
1315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1317 | else | |
1318 | ac_save_LIBS="$LIBS" | |
1319 | LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto $LIBS" | |
1320 | cat > 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. */ | |
1326 | char krb_rd_req(); | |
1327 | ||
1328 | int main() { | |
1329 | krb_rd_req() | |
1330 | ; return 0; } | |
1331 | EOF | |
25f58600 | 1332 | if { (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" | |
1335 | else | |
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" | |
1340 | fi | |
1341 | rm -f conftest* | |
1342 | LIBS="$ac_save_LIBS" | |
1343 | ||
1344 | fi | |
1345 | if 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" | |
1348 | else | |
1349 | echo "$ac_t""no" 1>&6 | |
1350 | echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6 | |
25f58600 | 1351 | echo "configure:1352: checking for krb_rd_req in -lkrb" >&5 |
ea0caf4a | 1352 | ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'` |
1353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1355 | else | |
1356 | ac_save_LIBS="$LIBS" | |
1357 | LIBS="-lkrb $LIBPATH -ldes $LIBS" | |
1358 | cat > 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. */ | |
1364 | char krb_rd_req(); | |
1365 | ||
1366 | int main() { | |
1367 | krb_rd_req() | |
1368 | ; return 0; } | |
1369 | EOF | |
25f58600 | 1370 | if { (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" | |
1373 | else | |
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" | |
1378 | fi | |
1379 | rm -f conftest* | |
1380 | LIBS="$ac_save_LIBS" | |
1381 | ||
1382 | fi | |
1383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1384 | echo "$ac_t""yes" 1>&6 | |
1385 | KRB4_LIBS="-lkrb -ldes" | |
1386 | else | |
1387 | echo "$ac_t""no" 1>&6 | |
1388 | { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; } | |
1389 | fi | |
1390 | ||
1391 | fi | |
1392 | ||
1393 | ||
1394 | # Hesiod support | |
1395 | echo $ac_n "checking for Hesiod""... $ac_c" 1>&6 | |
25f58600 | 1396 | echo "configure:1397: checking for Hesiod" >&5 |
ea0caf4a | 1397 | # Check whether --with-hesiod or --without-hesiod was given. |
1398 | if test "${with_hesiod+set}" = set; then | |
1399 | withval="$with_hesiod" | |
1400 | hesiod="$withval" | |
1401 | else | |
1402 | hesiod=no | |
1403 | fi | |
1404 | ||
1405 | echo "$ac_t""$hesiod" 1>&6 | |
1406 | if 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 | 1430 | echo "configure:1431: checking for res_send" >&5 |
ea0caf4a | 1431 | if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then |
1432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1433 | else | |
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. */ | |
1443 | char res_send(); | |
1444 | ||
1445 | int 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) | |
1451 | choke me | |
1452 | #else | |
1453 | res_send(); | |
1454 | #endif | |
1455 | ||
1456 | ; return 0; } | |
1457 | EOF | |
25f58600 | 1458 | if { (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" | |
1461 | else | |
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" | |
1466 | fi | |
1467 | rm -f conftest* | |
1468 | fi | |
1469 | ||
1470 | if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then | |
1471 | echo "$ac_t""yes" 1>&6 | |
1472 | : | |
1473 | else | |
1474 | echo "$ac_t""no" 1>&6 | |
1475 | echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 | |
25f58600 | 1476 | echo "configure:1477: checking for res_send in -lresolv" >&5 |
ea0caf4a | 1477 | ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` |
1478 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1480 | else | |
1481 | ac_save_LIBS="$LIBS" | |
1482 | LIBS="-lresolv $LIBS" | |
1483 | cat > 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. */ | |
1489 | char res_send(); | |
1490 | ||
1491 | int main() { | |
1492 | res_send() | |
1493 | ; return 0; } | |
1494 | EOF | |
25f58600 | 1495 | if { (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" | |
1498 | else | |
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" | |
1503 | fi | |
1504 | rm -f conftest* | |
1505 | LIBS="$ac_save_LIBS" | |
1506 | ||
1507 | fi | |
1508 | if 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 | |
1514 | EOF | |
1515 | ||
1516 | LIBS="-lresolv $LIBS" | |
1517 | ||
1518 | else | |
1519 | echo "$ac_t""no" 1>&6 | |
1520 | fi | |
1521 | ||
1522 | fi | |
1523 | ||
1524 | echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6 | |
25f58600 | 1525 | echo "configure:1526: checking for hes_resolve in -lhesiod" >&5 |
ea0caf4a | 1526 | ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'` |
1527 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1529 | else | |
1530 | ac_save_LIBS="$LIBS" | |
1531 | LIBS="-lhesiod $LIBPATH $LIBS $LIBS" | |
1532 | cat > 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. */ | |
1538 | char hes_resolve(); | |
1539 | ||
1540 | int main() { | |
1541 | hes_resolve() | |
1542 | ; return 0; } | |
1543 | EOF | |
25f58600 | 1544 | if { (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" | |
1547 | else | |
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" | |
1552 | fi | |
1553 | rm -f conftest* | |
1554 | LIBS="$ac_save_LIBS" | |
1555 | ||
1556 | fi | |
1557 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1558 | echo "$ac_t""yes" 1>&6 | |
1559 | : | |
1560 | else | |
1561 | echo "$ac_t""no" 1>&6 | |
1562 | { echo "configure: error: Hesiod library not found" 1>&2; exit 1; } | |
1563 | fi | |
1564 | ||
1565 | ||
1566 | cat >> confdefs.h <<\EOF | |
1567 | #define HAVE_HESIOD 1 | |
1568 | EOF | |
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 | ||
1577 | fi | |
1578 | ||
1579 | # Zephyr support | |
1580 | echo $ac_n "checking for Zephyr""... $ac_c" 1>&6 | |
25f58600 | 1581 | echo "configure:1582: checking for Zephyr" >&5 |
ea0caf4a | 1582 | # Check whether --with-zephyr or --without-zephyr was given. |
1583 | if test "${with_zephyr+set}" = set; then | |
1584 | withval="$with_zephyr" | |
1585 | zephyr="$withval" | |
1586 | else | |
1587 | zephyr=no | |
1588 | fi | |
1589 | ||
1590 | echo "$ac_t""$zephyr" 1>&6 | |
1591 | if 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 | 1615 | echo "configure:1616: checking for ZInitialize in -lzephyr" >&5 |
ea0caf4a | 1616 | ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'` |
1617 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1619 | else | |
1620 | ac_save_LIBS="$LIBS" | |
1621 | LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS" | |
1622 | cat > 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. */ | |
1628 | char ZInitialize(); | |
1629 | ||
1630 | int main() { | |
1631 | ZInitialize() | |
1632 | ; return 0; } | |
1633 | EOF | |
25f58600 | 1634 | if { (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" | |
1637 | else | |
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" | |
1642 | fi | |
1643 | rm -f conftest* | |
1644 | LIBS="$ac_save_LIBS" | |
1645 | ||
1646 | fi | |
1647 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1648 | echo "$ac_t""yes" 1>&6 | |
1649 | : | |
1650 | else | |
1651 | echo "$ac_t""no" 1>&6 | |
1652 | { echo "configure: error: Zephyr library not found" 1>&2; exit 1; } | |
1653 | fi | |
1654 | ||
1655 | ||
1656 | cat >> confdefs.h <<\EOF | |
1657 | #define HAVE_ZEPHYR 1 | |
1658 | EOF | |
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 | ||
1667 | fi | |
1668 | ||
1669 | # GDSS support (default: build util/gdss if present) | |
1670 | echo $ac_n "checking for GDSS""... $ac_c" 1>&6 | |
25f58600 | 1671 | echo "configure:1672: checking for GDSS" >&5 |
ea0caf4a | 1672 | # Check whether --with-gdss or --without-gdss was given. |
1673 | if 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" | |
1678 | else | |
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 | |
1694 | fi | |
1695 | ||
1696 | echo "$ac_t""$gdss" 1>&6 | |
1697 | if 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 | |
1704 | EOF | |
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 | ||
1713 | fi | |
1714 | ||
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ||
bbdb0564 | 1721 | # Oracle (default: yes, if $ORACLE_HOME is set) |
ea0caf4a | 1722 | echo $ac_n "checking for Oracle""... $ac_c" 1>&6 |
25f58600 | 1723 | echo "configure:1724: checking for Oracle" >&5 |
ea0caf4a | 1724 | # Check whether --with-oracle or --without-oracle was given. |
1725 | if test "${with_oracle+set}" = set; then | |
1726 | withval="$with_oracle" | |
1727 | oracle="$withval" | |
1728 | else | |
bbdb0564 | 1729 | if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then |
1730 | oracle=$ORACLE_HOME | |
ea0caf4a | 1731 | else |
1732 | oracle=no | |
1733 | fi | |
1734 | fi | |
1735 | ||
1736 | echo "$ac_t""$oracle" 1>&6 | |
1737 | if 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 | |
1743 | fi | |
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | # AFS support | |
1752 | echo $ac_n "checking for AFS""... $ac_c" 1>&6 | |
25f58600 | 1753 | echo "configure:1754: checking for AFS" >&5 |
ea0caf4a | 1754 | # Check whether --with-afs or --without-afs was given. |
1755 | if test "${with_afs+set}" = set; then | |
1756 | withval="$with_afs" | |
1757 | afs="$withval" | |
1758 | else | |
1759 | afs=no | |
1760 | fi | |
1761 | ||
1762 | echo "$ac_t""$afs" 1>&6 | |
1763 | if 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 | 1771 | echo "configure:1772: checking for insque" >&5 |
ea0caf4a | 1772 | if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then |
1773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1774 | else | |
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. */ | |
1784 | char insque(); | |
1785 | ||
1786 | int 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) | |
1792 | choke me | |
1793 | #else | |
1794 | insque(); | |
1795 | #endif | |
1796 | ||
1797 | ; return 0; } | |
1798 | EOF | |
25f58600 | 1799 | if { (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" | |
1802 | else | |
1803 | echo "configure: failed program was:" >&5 | |
1804 | cat conftest.$ac_ext >&5 | |
1805 | rm -rf conftest* | |
1806 | eval "ac_cv_func_insque=no" | |
1807 | fi | |
1808 | rm -f conftest* | |
1809 | fi | |
1810 | ||
1811 | if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then | |
1812 | echo "$ac_t""yes" 1>&6 | |
1813 | : | |
1814 | else | |
1815 | echo "$ac_t""no" 1>&6 | |
1816 | echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6 | |
25f58600 | 1817 | echo "configure:1818: checking for insque in -lcompat" >&5 |
ea0caf4a | 1818 | ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'` |
1819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1821 | else | |
1822 | ac_save_LIBS="$LIBS" | |
1823 | LIBS="-lcompat $LIBS" | |
1824 | cat > 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. */ | |
1830 | char insque(); | |
1831 | ||
1832 | int main() { | |
1833 | insque() | |
1834 | ; return 0; } | |
1835 | EOF | |
25f58600 | 1836 | if { (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" | |
1839 | else | |
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" | |
1844 | fi | |
1845 | rm -f conftest* | |
1846 | LIBS="$ac_save_LIBS" | |
1847 | ||
1848 | fi | |
1849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1850 | echo "$ac_t""yes" 1>&6 | |
1851 | AFS_EXTRA_LIBS="-lcompat" | |
1852 | else | |
1853 | echo "$ac_t""no" 1>&6 | |
1854 | { echo "configure: error: insque not found" 1>&2; exit 1; } | |
1855 | fi | |
1856 | ||
1857 | fi | |
1858 | ||
1859 | echo $ac_n "checking for sigvec""... $ac_c" 1>&6 | |
25f58600 | 1860 | echo "configure:1861: checking for sigvec" >&5 |
ea0caf4a | 1861 | if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then |
1862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1863 | else | |
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. */ | |
1873 | char sigvec(); | |
1874 | ||
1875 | int 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) | |
1881 | choke me | |
1882 | #else | |
1883 | sigvec(); | |
1884 | #endif | |
1885 | ||
1886 | ; return 0; } | |
1887 | EOF | |
25f58600 | 1888 | if { (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" | |
1891 | else | |
1892 | echo "configure: failed program was:" >&5 | |
1893 | cat conftest.$ac_ext >&5 | |
1894 | rm -rf conftest* | |
1895 | eval "ac_cv_func_sigvec=no" | |
1896 | fi | |
1897 | rm -f conftest* | |
1898 | fi | |
1899 | ||
1900 | if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then | |
1901 | echo "$ac_t""yes" 1>&6 | |
1902 | : | |
1903 | else | |
1904 | echo "$ac_t""no" 1>&6 | |
1905 | echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6 | |
25f58600 | 1906 | echo "configure:1907: checking for sigvec in -lucb" >&5 |
ea0caf4a | 1907 | ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'` |
1908 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1910 | else | |
1911 | ac_save_LIBS="$LIBS" | |
1912 | LIBS="-lucb -L/usr/ucblib $LIBS" | |
1913 | cat > 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. */ | |
1919 | char sigvec(); | |
1920 | ||
1921 | int main() { | |
1922 | sigvec() | |
1923 | ; return 0; } | |
1924 | EOF | |
25f58600 | 1925 | if { (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" | |
1928 | else | |
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" | |
1933 | fi | |
1934 | rm -f conftest* | |
1935 | LIBS="$ac_save_LIBS" | |
1936 | ||
1937 | fi | |
1938 | if 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" | |
1941 | else | |
1942 | echo "$ac_t""no" 1>&6 | |
1943 | : | |
1944 | fi | |
1945 | ||
1946 | fi | |
1947 | ||
1948 | echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6 | |
25f58600 | 1949 | echo "configure:1950: checking for pioctl in -lsys" >&5 |
ea0caf4a | 1950 | ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'` |
1951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1953 | else | |
1954 | ac_save_LIBS="$LIBS" | |
1955 | LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS" | |
1956 | cat > 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. */ | |
1962 | char pioctl(); | |
1963 | ||
1964 | int main() { | |
1965 | pioctl() | |
1966 | ; return 0; } | |
1967 | EOF | |
25f58600 | 1968 | if { (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" | |
1971 | else | |
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" | |
1976 | fi | |
1977 | rm -f conftest* | |
1978 | LIBS="$ac_save_LIBS" | |
1979 | ||
1980 | fi | |
1981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1982 | echo "$ac_t""yes" 1>&6 | |
1983 | : | |
1984 | else | |
1985 | echo "$ac_t""no" 1>&6 | |
1986 | { echo "configure: error: AFS libraries not found" 1>&2; exit 1; } | |
1987 | fi | |
1988 | ||
1989 | ||
1990 | cat >> confdefs.h <<\EOF | |
1991 | #define HAVE_AFS 1 | |
1992 | EOF | |
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 | ||
2001 | fi | |
2002 | ||
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | # GNU readline | |
2009 | echo "checking for GNU readline..." 1>&6 | |
25f58600 | 2010 | echo "configure:2011: checking for GNU readline..." >&5 |
ea0caf4a | 2011 | # Check whether --with-readline or --without-readline was given. |
2012 | if test "${with_readline+set}" = set; then | |
2013 | withval="$with_readline" | |
2014 | readline="$withval" | |
2015 | else | |
2016 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 | |
25f58600 | 2017 | echo "configure:2018: checking for readline in -lreadline" >&5 |
ea0caf4a | 2018 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` |
2019 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2021 | else | |
2022 | ac_save_LIBS="$LIBS" | |
2023 | LIBS="-lreadline -ltermcap $LIBS" | |
2024 | cat > 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. */ | |
2030 | char readline(); | |
2031 | ||
2032 | int main() { | |
2033 | readline() | |
2034 | ; return 0; } | |
2035 | EOF | |
25f58600 | 2036 | if { (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" | |
2039 | else | |
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" | |
2044 | fi | |
2045 | rm -f conftest* | |
2046 | LIBS="$ac_save_LIBS" | |
2047 | ||
2048 | fi | |
2049 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2050 | echo "$ac_t""yes" 1>&6 | |
2051 | readline=yes | |
2052 | else | |
2053 | echo "$ac_t""no" 1>&6 | |
2054 | : | |
2055 | fi | |
2056 | ||
2057 | fi | |
2058 | ||
2059 | if 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 | |
2064 | fi | |
2065 | ||
2066 | ||
2067 | ||
2068 | # Curses | |
2069 | curses=curses | |
2070 | echo "checking for curses" 1>&6 | |
25f58600 | 2071 | echo "configure:2072: checking for curses" >&5 |
ea0caf4a | 2072 | echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6 |
25f58600 | 2073 | echo "configure:2074: checking for main in -lcurses" >&5 |
ea0caf4a | 2074 | ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'` |
2075 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2077 | else | |
2078 | ac_save_LIBS="$LIBS" | |
2079 | LIBS="-lcurses $LIBS" | |
2080 | cat > conftest.$ac_ext <<EOF | |
25f58600 | 2081 | #line 2082 "configure" |
ea0caf4a | 2082 | #include "confdefs.h" |
2083 | ||
2084 | int main() { | |
2085 | main() | |
2086 | ; return 0; } | |
2087 | EOF | |
25f58600 | 2088 | if { (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" | |
2091 | else | |
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" | |
2096 | fi | |
2097 | rm -f conftest* | |
2098 | LIBS="$ac_save_LIBS" | |
2099 | ||
2100 | fi | |
2101 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2102 | echo "$ac_t""yes" 1>&6 | |
2103 | : | |
2104 | else | |
2105 | echo "$ac_t""no" 1>&6 | |
2106 | echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6 | |
25f58600 | 2107 | echo "configure:2108: checking for main in -lncurses" >&5 |
ea0caf4a | 2108 | ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'` |
2109 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2111 | else | |
2112 | ac_save_LIBS="$LIBS" | |
2113 | LIBS="-lncurses $LIBS" | |
2114 | cat > conftest.$ac_ext <<EOF | |
25f58600 | 2115 | #line 2116 "configure" |
ea0caf4a | 2116 | #include "confdefs.h" |
2117 | ||
2118 | int main() { | |
2119 | main() | |
2120 | ; return 0; } | |
2121 | EOF | |
25f58600 | 2122 | if { (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" | |
2125 | else | |
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" | |
2130 | fi | |
2131 | rm -f conftest* | |
2132 | LIBS="$ac_save_LIBS" | |
2133 | ||
2134 | fi | |
2135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2136 | echo "$ac_t""yes" 1>&6 | |
2137 | curses=ncurses | |
2138 | else | |
2139 | echo "$ac_t""no" 1>&6 | |
2140 | fi | |
2141 | ||
2142 | fi | |
2143 | ||
2144 | if test -n "$curses"; then | |
2145 | OLDLIBS=$LIBS | |
2146 | LIBS=-l$curses | |
2147 | echo "checking if curses needs termcap" 1>&6 | |
25f58600 | 2148 | echo "configure:2149: checking if curses needs termcap" >&5 |
ea0caf4a | 2149 | if test "$cross_compiling" = yes; then |
2150 | : | |
2151 | else | |
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 | } | |
2162 | EOF | |
25f58600 | 2163 | if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
ea0caf4a | 2164 | then |
2165 | CURSES_LIBS="-l$curses" | |
2166 | else | |
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 | : | |
2173 | else | |
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 | } | |
2184 | EOF | |
25f58600 | 2185 | if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
ea0caf4a | 2186 | then |
2187 | CURSES_LIBS="-l$curses -ltermcap" | |
2188 | else | |
2189 | echo "configure: failed program was:" >&5 | |
2190 | cat conftest.$ac_ext >&5 | |
2191 | rm -fr conftest* | |
2192 | : | |
2193 | fi | |
2194 | rm -fr conftest* | |
2195 | fi | |
2196 | ||
2197 | fi | |
2198 | rm -fr conftest* | |
2199 | fi | |
2200 | ||
2201 | LIBS=$OLDLIBS | |
2202 | fi | |
2203 | if 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> | |
2210 | int main() { | |
2211 | WINDOW *w; getmaxx(w); | |
2212 | ; return 0; } | |
2213 | EOF | |
25f58600 | 2214 | if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ea0caf4a | 2215 | rm -rf conftest* |
2216 | : | |
2217 | else | |
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> | |
2225 | int main() { | |
2226 | WINDOW *w; w->_maxx; | |
2227 | ; return 0; } | |
2228 | EOF | |
25f58600 | 2229 | if { (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'" | |
2232 | else | |
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'" | |
2237 | fi | |
2238 | rm -f conftest* | |
2239 | fi | |
2240 | rm -f conftest* | |
2241 | LIBS=$OLDLIBS | |
2242 | CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS" | |
2243 | CURSES_SUBDIRS='$(CURSES_SUBDIRS)' | |
2244 | else | |
2245 | echo "configure: warning: Couldn't find -lcurses" 1>&2 | |
2246 | fi | |
2247 | ||
2248 | ||
2249 | ||
2250 | ||
2251 | ||
2252 | for ac_func in getusershell | |
2253 | do | |
2254 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
25f58600 | 2255 | echo "configure:2256: checking for $ac_func" >&5 |
ea0caf4a | 2256 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2258 | else | |
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. */ | |
2268 | char $ac_func(); | |
2269 | ||
2270 | int 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) | |
2276 | choke me | |
2277 | #else | |
2278 | $ac_func(); | |
2279 | #endif | |
2280 | ||
2281 | ; return 0; } | |
2282 | EOF | |
25f58600 | 2283 | if { (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" | |
2286 | else | |
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" | |
2291 | fi | |
2292 | rm -f conftest* | |
2293 | fi | |
2294 | ||
2295 | if 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 | |
2300 | EOF | |
2301 | ||
2302 | else | |
2303 | echo "$ac_t""no" 1>&6 | |
2304 | fi | |
2305 | done | |
2306 | ||
2307 | ||
2308 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
25f58600 | 2309 | echo "configure:2310: checking how to run the C preprocessor" >&5 |
ea0caf4a | 2310 | # On Suns, sometimes $CPP names a directory. |
2311 | if test -n "$CPP" && test -d "$CPP"; then | |
2312 | CPP= | |
2313 | fi | |
2314 | if test -z "$CPP"; then | |
2315 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2317 | else | |
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> | |
2327 | Syntax Error | |
2328 | EOF | |
2329 | ac_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 | 2331 | ac_err=`grep -v '^ *+' conftest.out` |
2332 | if test -z "$ac_err"; then | |
2333 | : | |
2334 | else | |
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> | |
2344 | Syntax Error | |
2345 | EOF | |
2346 | ac_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 | 2348 | ac_err=`grep -v '^ *+' conftest.out` |
2349 | if test -z "$ac_err"; then | |
2350 | : | |
2351 | else | |
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 | |
2357 | fi | |
2358 | rm -f conftest* | |
2359 | fi | |
2360 | rm -f conftest* | |
2361 | ac_cv_prog_CPP="$CPP" | |
2362 | fi | |
2363 | CPP="$ac_cv_prog_CPP" | |
2364 | else | |
2365 | ac_cv_prog_CPP="$CPP" | |
2366 | fi | |
2367 | echo "$ac_t""$CPP" 1>&6 | |
2368 | ||
2369 | ac_safe=`echo "crypt.h" | sed 'y%./+-%__p_%'` | |
2370 | echo $ac_n "checking for crypt.h""... $ac_c" 1>&6 | |
25f58600 | 2371 | echo "configure:2372: checking for crypt.h" >&5 |
ea0caf4a | 2372 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2374 | else | |
2375 | cat > conftest.$ac_ext <<EOF | |
25f58600 | 2376 | #line 2377 "configure" |
ea0caf4a | 2377 | #include "confdefs.h" |
2378 | #include <crypt.h> | |
2379 | EOF | |
2380 | ac_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 | 2382 | ac_err=`grep -v '^ *+' conftest.out` |
2383 | if test -z "$ac_err"; then | |
2384 | rm -rf conftest* | |
2385 | eval "ac_cv_header_$ac_safe=yes" | |
2386 | else | |
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" | |
2392 | fi | |
2393 | rm -f conftest* | |
2394 | fi | |
2395 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2396 | echo "$ac_t""yes" 1>&6 | |
2397 | CRYPT_CPPFLAGS=-DHAVE_CRYPT_H | |
2398 | else | |
2399 | echo "$ac_t""no" 1>&6 | |
2400 | fi | |
2401 | ||
2402 | echo $ac_n "checking for crypt""... $ac_c" 1>&6 | |
25f58600 | 2403 | echo "configure:2404: checking for crypt" >&5 |
ea0caf4a | 2404 | if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then |
2405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2406 | else | |
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. */ | |
2416 | char crypt(); | |
2417 | ||
2418 | int 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) | |
2424 | choke me | |
2425 | #else | |
2426 | crypt(); | |
2427 | #endif | |
2428 | ||
2429 | ; return 0; } | |
2430 | EOF | |
25f58600 | 2431 | if { (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" | |
2434 | else | |
2435 | echo "configure: failed program was:" >&5 | |
2436 | cat conftest.$ac_ext >&5 | |
2437 | rm -rf conftest* | |
2438 | eval "ac_cv_func_crypt=no" | |
2439 | fi | |
2440 | rm -f conftest* | |
2441 | fi | |
2442 | ||
2443 | if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then | |
2444 | echo "$ac_t""yes" 1>&6 | |
2445 | : | |
2446 | else | |
2447 | echo "$ac_t""no" 1>&6 | |
2448 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 | |
25f58600 | 2449 | echo "configure:2450: checking for crypt in -lcrypt" >&5 |
ea0caf4a | 2450 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
2451 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2453 | else | |
2454 | ac_save_LIBS="$LIBS" | |
2455 | LIBS="-lcrypt $LIBS" | |
2456 | cat > 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. */ | |
2462 | char crypt(); | |
2463 | ||
2464 | int main() { | |
2465 | crypt() | |
2466 | ; return 0; } | |
2467 | EOF | |
25f58600 | 2468 | if { (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" | |
2471 | else | |
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" | |
2476 | fi | |
2477 | rm -f conftest* | |
2478 | LIBS="$ac_save_LIBS" | |
2479 | ||
2480 | fi | |
2481 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2482 | echo "$ac_t""yes" 1>&6 | |
2483 | CRYPT_LIBS=-lcrypt | |
2484 | else | |
2485 | echo "$ac_t""no" 1>&6 | |
2486 | fi | |
2487 | ||
2488 | fi | |
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 | 2569 | LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH" |
2570 | KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS" | |
2571 | LIBS="-lmoira $KLIBS" | |
2572 | ||
2573 | ||
2574 | trap '' 1 2 15 | |
2575 | cat > 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 | # | |
2590 | EOF | |
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 | |
2610 | if cmp -s $cache_file confcache; then | |
2611 | : | |
2612 | else | |
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 | |
2619 | fi | |
2620 | rm -f confcache | |
2621 | ||
2622 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2623 | ||
2624 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2625 | # Let make expand exec_prefix. | |
2626 | test "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. | |
2631 | if test "x$srcdir" = x.; then | |
2632 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2633 | fi | |
2634 | ||
2635 | trap '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. | |
2640 | cat > conftest.defs <<\EOF | |
2641 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
2642 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
2643 | s%\[%\\&%g | |
2644 | s%\]%\\&%g | |
2645 | s%\$%$$%g | |
2646 | EOF | |
2647 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
2648 | rm -f conftest.defs | |
2649 | ||
2650 | ||
2651 | # Without the "./", some shells look in PATH for config.status. | |
2652 | : ${CONFIG_STATUS=./config.status} | |
2653 | ||
2654 | echo creating $CONFIG_STATUS | |
2655 | rm -f $CONFIG_STATUS | |
2656 | cat > $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 | ||
2668 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2669 | for ac_option | |
2670 | do | |
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 | |
2682 | done | |
2683 | ||
2684 | ac_given_srcdir=$srcdir | |
2685 | ac_given_INSTALL="$INSTALL" | |
2686 | ||
2687 | trap '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 | |
2694 | EOF | |
2695 | cat >> $CONFIG_STATUS <<EOF | |
2696 | ||
2697 | # Protect against being on the right side of a sed subst in config.status. | |
2698 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2699 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2700 | $ac_vpsub | |
2701 | $extrasub | |
2702 | s%@CFLAGS@%$CFLAGS%g | |
2703 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2704 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2705 | s%@DEFS@%$DEFS%g | |
2706 | s%@LDFLAGS@%$LDFLAGS%g | |
2707 | s%@LIBS@%$LIBS%g | |
2708 | s%@exec_prefix@%$exec_prefix%g | |
2709 | s%@prefix@%$prefix%g | |
2710 | s%@program_transform_name@%$program_transform_name%g | |
2711 | s%@bindir@%$bindir%g | |
2712 | s%@sbindir@%$sbindir%g | |
2713 | s%@libexecdir@%$libexecdir%g | |
2714 | s%@datadir@%$datadir%g | |
2715 | s%@sysconfdir@%$sysconfdir%g | |
2716 | s%@sharedstatedir@%$sharedstatedir%g | |
2717 | s%@localstatedir@%$localstatedir%g | |
2718 | s%@libdir@%$libdir%g | |
2719 | s%@includedir@%$includedir%g | |
2720 | s%@oldincludedir@%$oldincludedir%g | |
2721 | s%@infodir@%$infodir%g | |
2722 | s%@mandir@%$mandir%g | |
2723 | s%@CC@%$CC%g | |
2724 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2725 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2726 | s%@RANLIB@%$RANLIB%g | |
2727 | s%@SET_MAKE@%$SET_MAKE%g | |
2728 | s%@mrbindir@%$mrbindir%g | |
2729 | s%@subdirs@%$subdirs%g | |
2730 | s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g | |
2731 | s%@COMPILE_ET@%$COMPILE_ET%g | |
2732 | s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g | |
2733 | s%@GDSS_LIBS@%$GDSS_LIBS%g | |
2734 | s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g | |
2735 | s%@GDSS_OBJS@%$GDSS_OBJS%g | |
2736 | s%@GDSS_CFILES@%$GDSS_CFILES%g | |
2737 | s%@GDSS_TARGET@%$GDSS_TARGET%g | |
2738 | s%@PRO_C@%$PRO_C%g | |
2739 | s%@PRO_C_DEFS@%$PRO_C_DEFS%g | |
2740 | s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g | |
2741 | s%@PRO_C_OPTS@%$PRO_C_OPTS%g | |
2742 | s%@SQL_LIBS@%$SQL_LIBS%g | |
2743 | s%@SVRSUBDIRS@%$SVRSUBDIRS%g | |
2744 | s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g | |
2745 | s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g | |
2746 | s%@AFS_LIBS@%$AFS_LIBS%g | |
2747 | s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g | |
2748 | s%@AFS_DIR@%$AFS_DIR%g | |
2749 | s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g | |
2750 | s%@READLINE_LIBS@%$READLINE_LIBS%g | |
2751 | s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g | |
2752 | s%@CURSES_LIBS@%$CURSES_LIBS%g | |
2753 | s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g | |
2754 | s%@CPP@%$CPP%g | |
2755 | s%@CRYPT_CPPFLAGS@%$CRYPT_CPPFLAGS%g | |
2756 | s%@CRYPT_LIBS@%$CRYPT_LIBS%g | |
2757 | s%@KLIBS@%$KLIBS%g | |
2758 | ||
2759 | CEOF | |
2760 | EOF | |
2761 | ||
2762 | cat >> $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. | |
2766 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2767 | ac_file=1 # Number of current file. | |
2768 | ac_beg=1 # First line for current file. | |
2769 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2770 | ac_more_lines=: | |
2771 | ac_sed_cmds="" | |
2772 | while $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 | |
2791 | done | |
2792 | if test -z "$ac_sed_cmds"; then | |
2793 | ac_sed_cmds=cat | |
2794 | fi | |
2795 | EOF | |
2796 | ||
2797 | cat >> $CONFIG_STATUS <<EOF | |
2798 | ||
2799 | CONFIG_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"} | |
2806 | EOF | |
2807 | cat >> $CONFIG_STATUS <<\EOF | |
2808 | for 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 | |
2856 | s%@configure_input@%$configure_input%g | |
2857 | s%@srcdir@%$srcdir%g | |
2858 | s%@top_srcdir@%$top_srcdir%g | |
2859 | s%@INSTALL@%$INSTALL%g | |
2860 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2861 | fi; done | |
2862 | rm -f conftest.s* | |
2863 | ||
2864 | EOF | |
2865 | cat >> $CONFIG_STATUS <<EOF | |
2866 | ||
2867 | EOF | |
2868 | cat >> $CONFIG_STATUS <<\EOF | |
2869 | ||
2870 | exit 0 | |
2871 | EOF | |
2872 | chmod +x $CONFIG_STATUS | |
2873 | rm -fr confdefs* $ac_clean_files | |
2874 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2875 | ||
2876 | if 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 | |
2971 | fi | |
2972 |