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