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