1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.12 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --with-com_err=PREFIX Specify location of com_err" |
---|
16 | ac_help="$ac_help |
---|
17 | --with-krb4=PREFIX Specify location of Kerberos 4" |
---|
18 | ac_help="$ac_help |
---|
19 | --with-afs=PREFIX Specify location of AFS libraries" |
---|
20 | |
---|
21 | # Initialize some variables set by options. |
---|
22 | # The variables have the same names as the options, with |
---|
23 | # dashes changed to underlines. |
---|
24 | build=NONE |
---|
25 | cache_file=./config.cache |
---|
26 | exec_prefix=NONE |
---|
27 | host=NONE |
---|
28 | no_create= |
---|
29 | nonopt=NONE |
---|
30 | no_recursion= |
---|
31 | prefix=NONE |
---|
32 | program_prefix=NONE |
---|
33 | program_suffix=NONE |
---|
34 | program_transform_name=s,x,x, |
---|
35 | silent= |
---|
36 | site= |
---|
37 | srcdir= |
---|
38 | target=NONE |
---|
39 | verbose= |
---|
40 | x_includes=NONE |
---|
41 | x_libraries=NONE |
---|
42 | bindir='${exec_prefix}/bin' |
---|
43 | sbindir='${exec_prefix}/sbin' |
---|
44 | libexecdir='${exec_prefix}/libexec' |
---|
45 | datadir='${prefix}/share' |
---|
46 | sysconfdir='${prefix}/etc' |
---|
47 | sharedstatedir='${prefix}/com' |
---|
48 | localstatedir='${prefix}/var' |
---|
49 | libdir='${exec_prefix}/lib' |
---|
50 | includedir='${prefix}/include' |
---|
51 | oldincludedir='/usr/include' |
---|
52 | infodir='${prefix}/info' |
---|
53 | mandir='${prefix}/man' |
---|
54 | |
---|
55 | # Initialize some other variables. |
---|
56 | subdirs= |
---|
57 | MFLAGS= MAKEFLAGS= |
---|
58 | # Maximum number of lines to put in a shell here document. |
---|
59 | ac_max_here_lines=12 |
---|
60 | |
---|
61 | ac_prev= |
---|
62 | for ac_option |
---|
63 | do |
---|
64 | |
---|
65 | # If the previous option needs an argument, assign it. |
---|
66 | if test -n "$ac_prev"; then |
---|
67 | eval "$ac_prev=\$ac_option" |
---|
68 | ac_prev= |
---|
69 | continue |
---|
70 | fi |
---|
71 | |
---|
72 | case "$ac_option" in |
---|
73 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
74 | *) ac_optarg= ;; |
---|
75 | esac |
---|
76 | |
---|
77 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
78 | |
---|
79 | case "$ac_option" in |
---|
80 | |
---|
81 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
82 | ac_prev=bindir ;; |
---|
83 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
84 | bindir="$ac_optarg" ;; |
---|
85 | |
---|
86 | -build | --build | --buil | --bui | --bu) |
---|
87 | ac_prev=build ;; |
---|
88 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
89 | build="$ac_optarg" ;; |
---|
90 | |
---|
91 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
92 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
93 | ac_prev=cache_file ;; |
---|
94 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
95 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
96 | cache_file="$ac_optarg" ;; |
---|
97 | |
---|
98 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
99 | ac_prev=datadir ;; |
---|
100 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
101 | | --da=*) |
---|
102 | datadir="$ac_optarg" ;; |
---|
103 | |
---|
104 | -disable-* | --disable-*) |
---|
105 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
106 | # Reject names that are not valid shell variable names. |
---|
107 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
108 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
109 | fi |
---|
110 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
111 | eval "enable_${ac_feature}=no" ;; |
---|
112 | |
---|
113 | -enable-* | --enable-*) |
---|
114 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
115 | # Reject names that are not valid shell variable names. |
---|
116 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
117 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
118 | fi |
---|
119 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
120 | case "$ac_option" in |
---|
121 | *=*) ;; |
---|
122 | *) ac_optarg=yes ;; |
---|
123 | esac |
---|
124 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
125 | |
---|
126 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
127 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
128 | | --exec | --exe | --ex) |
---|
129 | ac_prev=exec_prefix ;; |
---|
130 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
131 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
132 | | --exec=* | --exe=* | --ex=*) |
---|
133 | exec_prefix="$ac_optarg" ;; |
---|
134 | |
---|
135 | -gas | --gas | --ga | --g) |
---|
136 | # Obsolete; use --with-gas. |
---|
137 | with_gas=yes ;; |
---|
138 | |
---|
139 | -help | --help | --hel | --he) |
---|
140 | # Omit some internal or obsolete options to make the list less imposing. |
---|
141 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
142 | cat << EOF |
---|
143 | Usage: configure [options] [host] |
---|
144 | Options: [defaults in brackets after descriptions] |
---|
145 | Configuration: |
---|
146 | --cache-file=FILE cache test results in FILE |
---|
147 | --help print this message |
---|
148 | --no-create do not create output files |
---|
149 | --quiet, --silent do not print \`checking...' messages |
---|
150 | --version print the version of autoconf that created configure |
---|
151 | Directory and file names: |
---|
152 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
153 | [$ac_default_prefix] |
---|
154 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
155 | [same as prefix] |
---|
156 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
157 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
158 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
159 | --datadir=DIR read-only architecture-independent data in DIR |
---|
160 | [PREFIX/share] |
---|
161 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
162 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
163 | [PREFIX/com] |
---|
164 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
165 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
166 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
167 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
168 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
169 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
170 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
171 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
172 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
173 | --program-transform-name=PROGRAM |
---|
174 | run sed PROGRAM on installed program names |
---|
175 | EOF |
---|
176 | cat << EOF |
---|
177 | Host type: |
---|
178 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
179 | --host=HOST configure for HOST [guessed] |
---|
180 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
181 | Features and packages: |
---|
182 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
183 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
184 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
185 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
186 | --x-includes=DIR X include files are in DIR |
---|
187 | --x-libraries=DIR X library files are in DIR |
---|
188 | EOF |
---|
189 | if test -n "$ac_help"; then |
---|
190 | echo "--enable and --with options recognized:$ac_help" |
---|
191 | fi |
---|
192 | exit 0 ;; |
---|
193 | |
---|
194 | -host | --host | --hos | --ho) |
---|
195 | ac_prev=host ;; |
---|
196 | -host=* | --host=* | --hos=* | --ho=*) |
---|
197 | host="$ac_optarg" ;; |
---|
198 | |
---|
199 | -includedir | --includedir | --includedi | --included | --include \ |
---|
200 | | --includ | --inclu | --incl | --inc) |
---|
201 | ac_prev=includedir ;; |
---|
202 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
203 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
204 | includedir="$ac_optarg" ;; |
---|
205 | |
---|
206 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
207 | ac_prev=infodir ;; |
---|
208 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
209 | infodir="$ac_optarg" ;; |
---|
210 | |
---|
211 | -libdir | --libdir | --libdi | --libd) |
---|
212 | ac_prev=libdir ;; |
---|
213 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
214 | libdir="$ac_optarg" ;; |
---|
215 | |
---|
216 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
217 | | --libexe | --libex | --libe) |
---|
218 | ac_prev=libexecdir ;; |
---|
219 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
220 | | --libexe=* | --libex=* | --libe=*) |
---|
221 | libexecdir="$ac_optarg" ;; |
---|
222 | |
---|
223 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
224 | | --localstate | --localstat | --localsta | --localst \ |
---|
225 | | --locals | --local | --loca | --loc | --lo) |
---|
226 | ac_prev=localstatedir ;; |
---|
227 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
228 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
229 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
230 | localstatedir="$ac_optarg" ;; |
---|
231 | |
---|
232 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
233 | ac_prev=mandir ;; |
---|
234 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
235 | mandir="$ac_optarg" ;; |
---|
236 | |
---|
237 | -nfp | --nfp | --nf) |
---|
238 | # Obsolete; use --without-fp. |
---|
239 | with_fp=no ;; |
---|
240 | |
---|
241 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
242 | | --no-cr | --no-c) |
---|
243 | no_create=yes ;; |
---|
244 | |
---|
245 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
246 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
247 | no_recursion=yes ;; |
---|
248 | |
---|
249 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
250 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
251 | | --oldin | --oldi | --old | --ol | --o) |
---|
252 | ac_prev=oldincludedir ;; |
---|
253 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
254 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
255 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
256 | oldincludedir="$ac_optarg" ;; |
---|
257 | |
---|
258 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
259 | ac_prev=prefix ;; |
---|
260 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
261 | prefix="$ac_optarg" ;; |
---|
262 | |
---|
263 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
264 | | --program-pre | --program-pr | --program-p) |
---|
265 | ac_prev=program_prefix ;; |
---|
266 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
267 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
268 | program_prefix="$ac_optarg" ;; |
---|
269 | |
---|
270 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
271 | | --program-suf | --program-su | --program-s) |
---|
272 | ac_prev=program_suffix ;; |
---|
273 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
274 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
275 | program_suffix="$ac_optarg" ;; |
---|
276 | |
---|
277 | -program-transform-name | --program-transform-name \ |
---|
278 | | --program-transform-nam | --program-transform-na \ |
---|
279 | | --program-transform-n | --program-transform- \ |
---|
280 | | --program-transform | --program-transfor \ |
---|
281 | | --program-transfo | --program-transf \ |
---|
282 | | --program-trans | --program-tran \ |
---|
283 | | --progr-tra | --program-tr | --program-t) |
---|
284 | ac_prev=program_transform_name ;; |
---|
285 | -program-transform-name=* | --program-transform-name=* \ |
---|
286 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
287 | | --program-transform-n=* | --program-transform-=* \ |
---|
288 | | --program-transform=* | --program-transfor=* \ |
---|
289 | | --program-transfo=* | --program-transf=* \ |
---|
290 | | --program-trans=* | --program-tran=* \ |
---|
291 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
292 | program_transform_name="$ac_optarg" ;; |
---|
293 | |
---|
294 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
295 | | -silent | --silent | --silen | --sile | --sil) |
---|
296 | silent=yes ;; |
---|
297 | |
---|
298 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
299 | ac_prev=sbindir ;; |
---|
300 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
301 | | --sbi=* | --sb=*) |
---|
302 | sbindir="$ac_optarg" ;; |
---|
303 | |
---|
304 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
305 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
306 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
307 | | --sha | --sh) |
---|
308 | ac_prev=sharedstatedir ;; |
---|
309 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
310 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
311 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
312 | | --sha=* | --sh=*) |
---|
313 | sharedstatedir="$ac_optarg" ;; |
---|
314 | |
---|
315 | -site | --site | --sit) |
---|
316 | ac_prev=site ;; |
---|
317 | -site=* | --site=* | --sit=*) |
---|
318 | site="$ac_optarg" ;; |
---|
319 | |
---|
320 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
321 | ac_prev=srcdir ;; |
---|
322 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
323 | srcdir="$ac_optarg" ;; |
---|
324 | |
---|
325 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
326 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
327 | ac_prev=sysconfdir ;; |
---|
328 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
329 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
330 | sysconfdir="$ac_optarg" ;; |
---|
331 | |
---|
332 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
333 | ac_prev=target ;; |
---|
334 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
335 | target="$ac_optarg" ;; |
---|
336 | |
---|
337 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
338 | verbose=yes ;; |
---|
339 | |
---|
340 | -version | --version | --versio | --versi | --vers) |
---|
341 | echo "configure generated by autoconf version 2.12" |
---|
342 | exit 0 ;; |
---|
343 | |
---|
344 | -with-* | --with-*) |
---|
345 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
346 | # Reject names that are not valid shell variable names. |
---|
347 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
348 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
349 | fi |
---|
350 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
351 | case "$ac_option" in |
---|
352 | *=*) ;; |
---|
353 | *) ac_optarg=yes ;; |
---|
354 | esac |
---|
355 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
356 | |
---|
357 | -without-* | --without-*) |
---|
358 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
359 | # Reject names that are not valid shell variable names. |
---|
360 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
361 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
362 | fi |
---|
363 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
364 | eval "with_${ac_package}=no" ;; |
---|
365 | |
---|
366 | --x) |
---|
367 | # Obsolete; use --with-x. |
---|
368 | with_x=yes ;; |
---|
369 | |
---|
370 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
371 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
372 | ac_prev=x_includes ;; |
---|
373 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
374 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
375 | x_includes="$ac_optarg" ;; |
---|
376 | |
---|
377 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
378 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
379 | ac_prev=x_libraries ;; |
---|
380 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
381 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
382 | x_libraries="$ac_optarg" ;; |
---|
383 | |
---|
384 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
385 | ;; |
---|
386 | |
---|
387 | *) |
---|
388 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
389 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
390 | fi |
---|
391 | if test "x$nonopt" != xNONE; then |
---|
392 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
393 | fi |
---|
394 | nonopt="$ac_option" |
---|
395 | ;; |
---|
396 | |
---|
397 | esac |
---|
398 | done |
---|
399 | |
---|
400 | if test -n "$ac_prev"; then |
---|
401 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
402 | fi |
---|
403 | |
---|
404 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
405 | |
---|
406 | # File descriptor usage: |
---|
407 | # 0 standard input |
---|
408 | # 1 file creation |
---|
409 | # 2 errors and warnings |
---|
410 | # 3 some systems may open it to /dev/tty |
---|
411 | # 4 used on the Kubota Titan |
---|
412 | # 6 checking for... messages and results |
---|
413 | # 5 compiler messages saved in config.log |
---|
414 | if test "$silent" = yes; then |
---|
415 | exec 6>/dev/null |
---|
416 | else |
---|
417 | exec 6>&1 |
---|
418 | fi |
---|
419 | exec 5>./config.log |
---|
420 | |
---|
421 | echo "\ |
---|
422 | This file contains any messages produced by compilers while |
---|
423 | running configure, to aid debugging if configure makes a mistake. |
---|
424 | " 1>&5 |
---|
425 | |
---|
426 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
427 | # Also quote any args containing shell metacharacters. |
---|
428 | ac_configure_args= |
---|
429 | for ac_arg |
---|
430 | do |
---|
431 | case "$ac_arg" in |
---|
432 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
433 | | --no-cr | --no-c) ;; |
---|
434 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
435 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
436 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
437 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
438 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
439 | esac |
---|
440 | done |
---|
441 | |
---|
442 | # NLS nuisances. |
---|
443 | # Only set these to C if already set. These must not be set unconditionally |
---|
444 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
445 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
446 | # Non-C LC_CTYPE values break the ctype check. |
---|
447 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
448 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
449 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
450 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
451 | |
---|
452 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
453 | rm -rf conftest* confdefs.h |
---|
454 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
455 | echo > confdefs.h |
---|
456 | |
---|
457 | # A filename unique to this package, relative to the directory that |
---|
458 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
459 | ac_unique_file=aklog.c |
---|
460 | |
---|
461 | # Find the source files, if location was not specified. |
---|
462 | if test -z "$srcdir"; then |
---|
463 | ac_srcdir_defaulted=yes |
---|
464 | # Try the directory containing this script, then its parent. |
---|
465 | ac_prog=$0 |
---|
466 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
467 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
468 | srcdir=$ac_confdir |
---|
469 | if test ! -r $srcdir/$ac_unique_file; then |
---|
470 | srcdir=.. |
---|
471 | fi |
---|
472 | else |
---|
473 | ac_srcdir_defaulted=no |
---|
474 | fi |
---|
475 | if test ! -r $srcdir/$ac_unique_file; then |
---|
476 | if test "$ac_srcdir_defaulted" = yes; then |
---|
477 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
478 | else |
---|
479 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
480 | fi |
---|
481 | fi |
---|
482 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
483 | |
---|
484 | # Prefer explicitly selected file to automatically selected ones. |
---|
485 | if test -z "$CONFIG_SITE"; then |
---|
486 | if test "x$prefix" != xNONE; then |
---|
487 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
488 | else |
---|
489 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
490 | fi |
---|
491 | fi |
---|
492 | for ac_site_file in $CONFIG_SITE; do |
---|
493 | if test -r "$ac_site_file"; then |
---|
494 | echo "loading site script $ac_site_file" |
---|
495 | . "$ac_site_file" |
---|
496 | fi |
---|
497 | done |
---|
498 | |
---|
499 | if test -r "$cache_file"; then |
---|
500 | echo "loading cache $cache_file" |
---|
501 | . $cache_file |
---|
502 | else |
---|
503 | echo "creating cache $cache_file" |
---|
504 | > $cache_file |
---|
505 | fi |
---|
506 | |
---|
507 | ac_ext=c |
---|
508 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
509 | ac_cpp='$CPP $CPPFLAGS' |
---|
510 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
511 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
512 | cross_compiling=$ac_cv_prog_cc_cross |
---|
513 | |
---|
514 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
515 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
516 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
517 | ac_n= ac_c=' |
---|
518 | ' ac_t=' ' |
---|
519 | else |
---|
520 | ac_n=-n ac_c= ac_t= |
---|
521 | fi |
---|
522 | else |
---|
523 | ac_n= ac_c='\c' ac_t= |
---|
524 | fi |
---|
525 | |
---|
526 | |
---|
527 | |
---|
528 | test -z "$lbindir" && lbindir='${bindir}' |
---|
529 | |
---|
530 | |
---|
531 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
532 | set dummy gcc; ac_word=$2 |
---|
533 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
534 | echo "configure:535: checking for $ac_word" >&5 |
---|
535 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
536 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
537 | else |
---|
538 | if test -n "$CC"; then |
---|
539 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
540 | else |
---|
541 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
542 | for ac_dir in $PATH; do |
---|
543 | test -z "$ac_dir" && ac_dir=. |
---|
544 | if test -f $ac_dir/$ac_word; then |
---|
545 | ac_cv_prog_CC="gcc" |
---|
546 | break |
---|
547 | fi |
---|
548 | done |
---|
549 | IFS="$ac_save_ifs" |
---|
550 | fi |
---|
551 | fi |
---|
552 | CC="$ac_cv_prog_CC" |
---|
553 | if test -n "$CC"; then |
---|
554 | echo "$ac_t""$CC" 1>&6 |
---|
555 | else |
---|
556 | echo "$ac_t""no" 1>&6 |
---|
557 | fi |
---|
558 | |
---|
559 | if test -z "$CC"; then |
---|
560 | # Extract the first word of "cc", so it can be a program name with args. |
---|
561 | set dummy cc; ac_word=$2 |
---|
562 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
563 | echo "configure:564: checking for $ac_word" >&5 |
---|
564 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
565 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
566 | else |
---|
567 | if test -n "$CC"; then |
---|
568 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
569 | else |
---|
570 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
571 | ac_prog_rejected=no |
---|
572 | for ac_dir in $PATH; do |
---|
573 | test -z "$ac_dir" && ac_dir=. |
---|
574 | if test -f $ac_dir/$ac_word; then |
---|
575 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
576 | ac_prog_rejected=yes |
---|
577 | continue |
---|
578 | fi |
---|
579 | ac_cv_prog_CC="cc" |
---|
580 | break |
---|
581 | fi |
---|
582 | done |
---|
583 | IFS="$ac_save_ifs" |
---|
584 | if test $ac_prog_rejected = yes; then |
---|
585 | # We found a bogon in the path, so make sure we never use it. |
---|
586 | set dummy $ac_cv_prog_CC |
---|
587 | shift |
---|
588 | if test $# -gt 0; then |
---|
589 | # We chose a different compiler from the bogus one. |
---|
590 | # However, it has the same basename, so the bogon will be chosen |
---|
591 | # first if we set CC to just the basename; use the full file name. |
---|
592 | shift |
---|
593 | set dummy "$ac_dir/$ac_word" "$@" |
---|
594 | shift |
---|
595 | ac_cv_prog_CC="$@" |
---|
596 | fi |
---|
597 | fi |
---|
598 | fi |
---|
599 | fi |
---|
600 | CC="$ac_cv_prog_CC" |
---|
601 | if test -n "$CC"; then |
---|
602 | echo "$ac_t""$CC" 1>&6 |
---|
603 | else |
---|
604 | echo "$ac_t""no" 1>&6 |
---|
605 | fi |
---|
606 | |
---|
607 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
608 | fi |
---|
609 | |
---|
610 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
611 | echo "configure:612: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
612 | |
---|
613 | ac_ext=c |
---|
614 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
615 | ac_cpp='$CPP $CPPFLAGS' |
---|
616 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
617 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
618 | cross_compiling=$ac_cv_prog_cc_cross |
---|
619 | |
---|
620 | cat > conftest.$ac_ext <<EOF |
---|
621 | #line 622 "configure" |
---|
622 | #include "confdefs.h" |
---|
623 | main(){return(0);} |
---|
624 | EOF |
---|
625 | if { (eval echo configure:626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
626 | ac_cv_prog_cc_works=yes |
---|
627 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
628 | if (./conftest; exit) 2>/dev/null; then |
---|
629 | ac_cv_prog_cc_cross=no |
---|
630 | else |
---|
631 | ac_cv_prog_cc_cross=yes |
---|
632 | fi |
---|
633 | else |
---|
634 | echo "configure: failed program was:" >&5 |
---|
635 | cat conftest.$ac_ext >&5 |
---|
636 | ac_cv_prog_cc_works=no |
---|
637 | fi |
---|
638 | rm -fr conftest* |
---|
639 | |
---|
640 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
641 | if test $ac_cv_prog_cc_works = no; then |
---|
642 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
643 | fi |
---|
644 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
645 | echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
646 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
647 | cross_compiling=$ac_cv_prog_cc_cross |
---|
648 | |
---|
649 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
650 | echo "configure:651: checking whether we are using GNU C" >&5 |
---|
651 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
652 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
653 | else |
---|
654 | cat > conftest.c <<EOF |
---|
655 | #ifdef __GNUC__ |
---|
656 | yes; |
---|
657 | #endif |
---|
658 | EOF |
---|
659 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
660 | ac_cv_prog_gcc=yes |
---|
661 | else |
---|
662 | ac_cv_prog_gcc=no |
---|
663 | fi |
---|
664 | fi |
---|
665 | |
---|
666 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
667 | |
---|
668 | if test $ac_cv_prog_gcc = yes; then |
---|
669 | GCC=yes |
---|
670 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
671 | ac_save_CFLAGS="$CFLAGS" |
---|
672 | CFLAGS= |
---|
673 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
674 | echo "configure:675: checking whether ${CC-cc} accepts -g" >&5 |
---|
675 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
676 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
677 | else |
---|
678 | echo 'void f(){}' > conftest.c |
---|
679 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
680 | ac_cv_prog_cc_g=yes |
---|
681 | else |
---|
682 | ac_cv_prog_cc_g=no |
---|
683 | fi |
---|
684 | rm -f conftest* |
---|
685 | |
---|
686 | fi |
---|
687 | |
---|
688 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
689 | if test "$ac_test_CFLAGS" = set; then |
---|
690 | CFLAGS="$ac_save_CFLAGS" |
---|
691 | elif test $ac_cv_prog_cc_g = yes; then |
---|
692 | CFLAGS="-g -O2" |
---|
693 | else |
---|
694 | CFLAGS="-O2" |
---|
695 | fi |
---|
696 | else |
---|
697 | GCC= |
---|
698 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
699 | fi |
---|
700 | |
---|
701 | ac_aux_dir= |
---|
702 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
703 | if test -f $ac_dir/install-sh; then |
---|
704 | ac_aux_dir=$ac_dir |
---|
705 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
706 | break |
---|
707 | elif test -f $ac_dir/install.sh; then |
---|
708 | ac_aux_dir=$ac_dir |
---|
709 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
710 | break |
---|
711 | fi |
---|
712 | done |
---|
713 | if test -z "$ac_aux_dir"; then |
---|
714 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
715 | fi |
---|
716 | ac_config_guess=$ac_aux_dir/config.guess |
---|
717 | ac_config_sub=$ac_aux_dir/config.sub |
---|
718 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
719 | |
---|
720 | # Find a good install program. We prefer a C program (faster), |
---|
721 | # so one script is as good as another. But avoid the broken or |
---|
722 | # incompatible versions: |
---|
723 | # SysV /etc/install, /usr/sbin/install |
---|
724 | # SunOS /usr/etc/install |
---|
725 | # IRIX /sbin/install |
---|
726 | # AIX /bin/install |
---|
727 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
728 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
729 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
730 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
731 | echo "configure:732: checking for a BSD compatible install" >&5 |
---|
732 | if test -z "$INSTALL"; then |
---|
733 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
734 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
735 | else |
---|
736 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
---|
737 | for ac_dir in $PATH; do |
---|
738 | # Account for people who put trailing slashes in PATH elements. |
---|
739 | case "$ac_dir/" in |
---|
740 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
741 | *) |
---|
742 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
743 | for ac_prog in ginstall installbsd scoinst install; do |
---|
744 | if test -f $ac_dir/$ac_prog; then |
---|
745 | if test $ac_prog = install && |
---|
746 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
747 | # AIX install. It has an incompatible calling convention. |
---|
748 | # OSF/1 installbsd also uses dspmsg, but is usable. |
---|
749 | : |
---|
750 | else |
---|
751 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
752 | break 2 |
---|
753 | fi |
---|
754 | fi |
---|
755 | done |
---|
756 | ;; |
---|
757 | esac |
---|
758 | done |
---|
759 | IFS="$ac_save_IFS" |
---|
760 | |
---|
761 | fi |
---|
762 | if test "${ac_cv_path_install+set}" = set; then |
---|
763 | INSTALL="$ac_cv_path_install" |
---|
764 | else |
---|
765 | # As a last resort, use the slow shell script. We don't cache a |
---|
766 | # path for INSTALL within a source directory, because that will |
---|
767 | # break other packages using the cache if that directory is |
---|
768 | # removed, or if the path is relative. |
---|
769 | INSTALL="$ac_install_sh" |
---|
770 | fi |
---|
771 | fi |
---|
772 | echo "$ac_t""$INSTALL" 1>&6 |
---|
773 | |
---|
774 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
775 | # It thinks the first close brace ends the variable substitution. |
---|
776 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
777 | |
---|
778 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
779 | |
---|
780 | |
---|
781 | # Check whether --with-com_err or --without-com_err was given. |
---|
782 | if test "${with_com_err+set}" = set; then |
---|
783 | withval="$with_com_err" |
---|
784 | com_err="$withval" |
---|
785 | else |
---|
786 | com_err=yes |
---|
787 | fi |
---|
788 | |
---|
789 | if test "$com_err" != no; then |
---|
790 | if test "$com_err" != yes; then |
---|
791 | CPPFLAGS="$CPPFLAGS -I$com_err/include" |
---|
792 | LDFLAGS="$LDFLAGS -L$com_err/lib" |
---|
793 | fi |
---|
794 | echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
---|
795 | echo "configure:796: checking for com_err in -lcom_err" >&5 |
---|
796 | ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
---|
797 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
798 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
799 | else |
---|
800 | ac_save_LIBS="$LIBS" |
---|
801 | LIBS="-lcom_err $LIBS" |
---|
802 | cat > conftest.$ac_ext <<EOF |
---|
803 | #line 804 "configure" |
---|
804 | #include "confdefs.h" |
---|
805 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
806 | /* We use char because int might match the return type of a gcc2 |
---|
807 | builtin and then its argument prototype would still apply. */ |
---|
808 | char com_err(); |
---|
809 | |
---|
810 | int main() { |
---|
811 | com_err() |
---|
812 | ; return 0; } |
---|
813 | EOF |
---|
814 | if { (eval echo configure:815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
815 | rm -rf conftest* |
---|
816 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
817 | else |
---|
818 | echo "configure: failed program was:" >&5 |
---|
819 | cat conftest.$ac_ext >&5 |
---|
820 | rm -rf conftest* |
---|
821 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
822 | fi |
---|
823 | rm -f conftest* |
---|
824 | LIBS="$ac_save_LIBS" |
---|
825 | |
---|
826 | fi |
---|
827 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
828 | echo "$ac_t""yes" 1>&6 |
---|
829 | : |
---|
830 | else |
---|
831 | echo "$ac_t""no" 1>&6 |
---|
832 | { echo "configure: error: com_err library not found" 1>&2; exit 1; } |
---|
833 | fi |
---|
834 | |
---|
835 | else |
---|
836 | { echo "configure: error: This package requires com_err." 1>&2; exit 1; } |
---|
837 | fi |
---|
838 | # Check whether --with-krb4 or --without-krb4 was given. |
---|
839 | if test "${with_krb4+set}" = set; then |
---|
840 | withval="$with_krb4" |
---|
841 | krb4="$withval" |
---|
842 | else |
---|
843 | krb4=yes |
---|
844 | fi |
---|
845 | |
---|
846 | if test "$afs" != no; then |
---|
847 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
848 | echo "configure:849: checking for gethostbyname" >&5 |
---|
849 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
850 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
851 | else |
---|
852 | cat > conftest.$ac_ext <<EOF |
---|
853 | #line 854 "configure" |
---|
854 | #include "confdefs.h" |
---|
855 | /* System header to define __stub macros and hopefully few prototypes, |
---|
856 | which can conflict with char gethostbyname(); below. */ |
---|
857 | #include <assert.h> |
---|
858 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
859 | /* We use char because int might match the return type of a gcc2 |
---|
860 | builtin and then its argument prototype would still apply. */ |
---|
861 | char gethostbyname(); |
---|
862 | |
---|
863 | int main() { |
---|
864 | |
---|
865 | /* The GNU C library defines this for functions which it implements |
---|
866 | to always fail with ENOSYS. Some functions are actually named |
---|
867 | something starting with __ and the normal name is an alias. */ |
---|
868 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
869 | choke me |
---|
870 | #else |
---|
871 | gethostbyname(); |
---|
872 | #endif |
---|
873 | |
---|
874 | ; return 0; } |
---|
875 | EOF |
---|
876 | if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
877 | rm -rf conftest* |
---|
878 | eval "ac_cv_func_gethostbyname=yes" |
---|
879 | else |
---|
880 | echo "configure: failed program was:" >&5 |
---|
881 | cat conftest.$ac_ext >&5 |
---|
882 | rm -rf conftest* |
---|
883 | eval "ac_cv_func_gethostbyname=no" |
---|
884 | fi |
---|
885 | rm -f conftest* |
---|
886 | fi |
---|
887 | |
---|
888 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
889 | echo "$ac_t""yes" 1>&6 |
---|
890 | : |
---|
891 | else |
---|
892 | echo "$ac_t""no" 1>&6 |
---|
893 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
894 | echo "configure:895: checking for gethostbyname in -lnsl" >&5 |
---|
895 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
896 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
897 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
898 | else |
---|
899 | ac_save_LIBS="$LIBS" |
---|
900 | LIBS="-lnsl $LIBS" |
---|
901 | cat > conftest.$ac_ext <<EOF |
---|
902 | #line 903 "configure" |
---|
903 | #include "confdefs.h" |
---|
904 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
905 | /* We use char because int might match the return type of a gcc2 |
---|
906 | builtin and then its argument prototype would still apply. */ |
---|
907 | char gethostbyname(); |
---|
908 | |
---|
909 | int main() { |
---|
910 | gethostbyname() |
---|
911 | ; return 0; } |
---|
912 | EOF |
---|
913 | if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
914 | rm -rf conftest* |
---|
915 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
916 | else |
---|
917 | echo "configure: failed program was:" >&5 |
---|
918 | cat conftest.$ac_ext >&5 |
---|
919 | rm -rf conftest* |
---|
920 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
921 | fi |
---|
922 | rm -f conftest* |
---|
923 | LIBS="$ac_save_LIBS" |
---|
924 | |
---|
925 | fi |
---|
926 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
927 | echo "$ac_t""yes" 1>&6 |
---|
928 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
929 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
930 | cat >> confdefs.h <<EOF |
---|
931 | #define $ac_tr_lib 1 |
---|
932 | EOF |
---|
933 | |
---|
934 | LIBS="-lnsl $LIBS" |
---|
935 | |
---|
936 | else |
---|
937 | echo "$ac_t""no" 1>&6 |
---|
938 | fi |
---|
939 | |
---|
940 | fi |
---|
941 | |
---|
942 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
---|
943 | echo "configure:944: checking for socket" >&5 |
---|
944 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
---|
945 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
946 | else |
---|
947 | cat > conftest.$ac_ext <<EOF |
---|
948 | #line 949 "configure" |
---|
949 | #include "confdefs.h" |
---|
950 | /* System header to define __stub macros and hopefully few prototypes, |
---|
951 | which can conflict with char socket(); below. */ |
---|
952 | #include <assert.h> |
---|
953 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
954 | /* We use char because int might match the return type of a gcc2 |
---|
955 | builtin and then its argument prototype would still apply. */ |
---|
956 | char socket(); |
---|
957 | |
---|
958 | int main() { |
---|
959 | |
---|
960 | /* The GNU C library defines this for functions which it implements |
---|
961 | to always fail with ENOSYS. Some functions are actually named |
---|
962 | something starting with __ and the normal name is an alias. */ |
---|
963 | #if defined (__stub_socket) || defined (__stub___socket) |
---|
964 | choke me |
---|
965 | #else |
---|
966 | socket(); |
---|
967 | #endif |
---|
968 | |
---|
969 | ; return 0; } |
---|
970 | EOF |
---|
971 | if { (eval echo configure:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
972 | rm -rf conftest* |
---|
973 | eval "ac_cv_func_socket=yes" |
---|
974 | else |
---|
975 | echo "configure: failed program was:" >&5 |
---|
976 | cat conftest.$ac_ext >&5 |
---|
977 | rm -rf conftest* |
---|
978 | eval "ac_cv_func_socket=no" |
---|
979 | fi |
---|
980 | rm -f conftest* |
---|
981 | fi |
---|
982 | |
---|
983 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
---|
984 | echo "$ac_t""yes" 1>&6 |
---|
985 | : |
---|
986 | else |
---|
987 | echo "$ac_t""no" 1>&6 |
---|
988 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
---|
989 | echo "configure:990: checking for socket in -lsocket" >&5 |
---|
990 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
---|
991 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
992 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
993 | else |
---|
994 | ac_save_LIBS="$LIBS" |
---|
995 | LIBS="-lsocket $LIBS" |
---|
996 | cat > conftest.$ac_ext <<EOF |
---|
997 | #line 998 "configure" |
---|
998 | #include "confdefs.h" |
---|
999 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1000 | /* We use char because int might match the return type of a gcc2 |
---|
1001 | builtin and then its argument prototype would still apply. */ |
---|
1002 | char socket(); |
---|
1003 | |
---|
1004 | int main() { |
---|
1005 | socket() |
---|
1006 | ; return 0; } |
---|
1007 | EOF |
---|
1008 | if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1009 | rm -rf conftest* |
---|
1010 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1011 | else |
---|
1012 | echo "configure: failed program was:" >&5 |
---|
1013 | cat conftest.$ac_ext >&5 |
---|
1014 | rm -rf conftest* |
---|
1015 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1016 | fi |
---|
1017 | rm -f conftest* |
---|
1018 | LIBS="$ac_save_LIBS" |
---|
1019 | |
---|
1020 | fi |
---|
1021 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1022 | echo "$ac_t""yes" 1>&6 |
---|
1023 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
1024 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1025 | cat >> confdefs.h <<EOF |
---|
1026 | #define $ac_tr_lib 1 |
---|
1027 | EOF |
---|
1028 | |
---|
1029 | LIBS="-lsocket $LIBS" |
---|
1030 | |
---|
1031 | else |
---|
1032 | echo "$ac_t""no" 1>&6 |
---|
1033 | fi |
---|
1034 | |
---|
1035 | fi |
---|
1036 | |
---|
1037 | echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6 |
---|
1038 | echo "configure:1039: checking for compile in -lgen" >&5 |
---|
1039 | ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'` |
---|
1040 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1041 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1042 | else |
---|
1043 | ac_save_LIBS="$LIBS" |
---|
1044 | LIBS="-lgen $LIBS" |
---|
1045 | cat > conftest.$ac_ext <<EOF |
---|
1046 | #line 1047 "configure" |
---|
1047 | #include "confdefs.h" |
---|
1048 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1049 | /* We use char because int might match the return type of a gcc2 |
---|
1050 | builtin and then its argument prototype would still apply. */ |
---|
1051 | char compile(); |
---|
1052 | |
---|
1053 | int main() { |
---|
1054 | compile() |
---|
1055 | ; return 0; } |
---|
1056 | EOF |
---|
1057 | if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1058 | rm -rf conftest* |
---|
1059 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1060 | else |
---|
1061 | echo "configure: failed program was:" >&5 |
---|
1062 | cat conftest.$ac_ext >&5 |
---|
1063 | rm -rf conftest* |
---|
1064 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1065 | fi |
---|
1066 | rm -f conftest* |
---|
1067 | LIBS="$ac_save_LIBS" |
---|
1068 | |
---|
1069 | fi |
---|
1070 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1071 | echo "$ac_t""yes" 1>&6 |
---|
1072 | ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1073 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1074 | cat >> confdefs.h <<EOF |
---|
1075 | #define $ac_tr_lib 1 |
---|
1076 | EOF |
---|
1077 | |
---|
1078 | LIBS="-lgen $LIBS" |
---|
1079 | |
---|
1080 | else |
---|
1081 | echo "$ac_t""no" 1>&6 |
---|
1082 | fi |
---|
1083 | |
---|
1084 | if test "$krb4" != yes; then |
---|
1085 | CPPFLAGS="$CPPFLAGS -I$krb4/include" |
---|
1086 | if test -d "$krb4/include/kerberosIV"; then |
---|
1087 | CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV" |
---|
1088 | fi |
---|
1089 | LDFLAGS="$LDFLAGS -L$krb4/lib" |
---|
1090 | elif test -d /usr/include/kerberosIV; then |
---|
1091 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" |
---|
1092 | fi |
---|
1093 | echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6 |
---|
1094 | echo "configure:1095: checking for krb_rd_req in -lkrb4" >&5 |
---|
1095 | ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'` |
---|
1096 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1097 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1098 | else |
---|
1099 | ac_save_LIBS="$LIBS" |
---|
1100 | LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS" |
---|
1101 | cat > conftest.$ac_ext <<EOF |
---|
1102 | #line 1103 "configure" |
---|
1103 | #include "confdefs.h" |
---|
1104 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1105 | /* We use char because int might match the return type of a gcc2 |
---|
1106 | builtin and then its argument prototype would still apply. */ |
---|
1107 | char krb_rd_req(); |
---|
1108 | |
---|
1109 | int main() { |
---|
1110 | krb_rd_req() |
---|
1111 | ; return 0; } |
---|
1112 | EOF |
---|
1113 | if { (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1114 | rm -rf conftest* |
---|
1115 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1116 | else |
---|
1117 | echo "configure: failed program was:" >&5 |
---|
1118 | cat conftest.$ac_ext >&5 |
---|
1119 | rm -rf conftest* |
---|
1120 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1121 | fi |
---|
1122 | rm -f conftest* |
---|
1123 | LIBS="$ac_save_LIBS" |
---|
1124 | |
---|
1125 | fi |
---|
1126 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1127 | echo "$ac_t""yes" 1>&6 |
---|
1128 | KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err" |
---|
1129 | else |
---|
1130 | echo "$ac_t""no" 1>&6 |
---|
1131 | echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6 |
---|
1132 | echo "configure:1133: checking for krb_rd_req in -lkrb" >&5 |
---|
1133 | ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'` |
---|
1134 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1135 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1136 | else |
---|
1137 | ac_save_LIBS="$LIBS" |
---|
1138 | LIBS="-lkrb -ldes $LIBS" |
---|
1139 | cat > conftest.$ac_ext <<EOF |
---|
1140 | #line 1141 "configure" |
---|
1141 | #include "confdefs.h" |
---|
1142 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1143 | /* We use char because int might match the return type of a gcc2 |
---|
1144 | builtin and then its argument prototype would still apply. */ |
---|
1145 | char krb_rd_req(); |
---|
1146 | |
---|
1147 | int main() { |
---|
1148 | krb_rd_req() |
---|
1149 | ; return 0; } |
---|
1150 | EOF |
---|
1151 | if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1152 | rm -rf conftest* |
---|
1153 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1154 | else |
---|
1155 | echo "configure: failed program was:" >&5 |
---|
1156 | cat conftest.$ac_ext >&5 |
---|
1157 | rm -rf conftest* |
---|
1158 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1159 | fi |
---|
1160 | rm -f conftest* |
---|
1161 | LIBS="$ac_save_LIBS" |
---|
1162 | |
---|
1163 | fi |
---|
1164 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1165 | echo "$ac_t""yes" 1>&6 |
---|
1166 | KRB4_LIBS="-lkrb -ldes" |
---|
1167 | else |
---|
1168 | echo "$ac_t""no" 1>&6 |
---|
1169 | { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; } |
---|
1170 | fi |
---|
1171 | |
---|
1172 | fi |
---|
1173 | |
---|
1174 | |
---|
1175 | else |
---|
1176 | { echo "configure: error: This package requires Kerberos 4." 1>&2; exit 1; } |
---|
1177 | fi |
---|
1178 | # Check whether --with-afs or --without-afs was given. |
---|
1179 | if test "${with_afs+set}" = set; then |
---|
1180 | withval="$with_afs" |
---|
1181 | afs="$withval" |
---|
1182 | else |
---|
1183 | afs=/usr/afsws |
---|
1184 | fi |
---|
1185 | |
---|
1186 | if test "$afs" != no; then |
---|
1187 | echo $ac_n "checking for insque""... $ac_c" 1>&6 |
---|
1188 | echo "configure:1189: checking for insque" >&5 |
---|
1189 | if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then |
---|
1190 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1191 | else |
---|
1192 | cat > conftest.$ac_ext <<EOF |
---|
1193 | #line 1194 "configure" |
---|
1194 | #include "confdefs.h" |
---|
1195 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1196 | which can conflict with char insque(); below. */ |
---|
1197 | #include <assert.h> |
---|
1198 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1199 | /* We use char because int might match the return type of a gcc2 |
---|
1200 | builtin and then its argument prototype would still apply. */ |
---|
1201 | char insque(); |
---|
1202 | |
---|
1203 | int main() { |
---|
1204 | |
---|
1205 | /* The GNU C library defines this for functions which it implements |
---|
1206 | to always fail with ENOSYS. Some functions are actually named |
---|
1207 | something starting with __ and the normal name is an alias. */ |
---|
1208 | #if defined (__stub_insque) || defined (__stub___insque) |
---|
1209 | choke me |
---|
1210 | #else |
---|
1211 | insque(); |
---|
1212 | #endif |
---|
1213 | |
---|
1214 | ; return 0; } |
---|
1215 | EOF |
---|
1216 | if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1217 | rm -rf conftest* |
---|
1218 | eval "ac_cv_func_insque=yes" |
---|
1219 | else |
---|
1220 | echo "configure: failed program was:" >&5 |
---|
1221 | cat conftest.$ac_ext >&5 |
---|
1222 | rm -rf conftest* |
---|
1223 | eval "ac_cv_func_insque=no" |
---|
1224 | fi |
---|
1225 | rm -f conftest* |
---|
1226 | fi |
---|
1227 | |
---|
1228 | if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then |
---|
1229 | echo "$ac_t""yes" 1>&6 |
---|
1230 | : |
---|
1231 | else |
---|
1232 | echo "$ac_t""no" 1>&6 |
---|
1233 | echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6 |
---|
1234 | echo "configure:1235: checking for insque in -lcompat" >&5 |
---|
1235 | ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'` |
---|
1236 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1237 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1238 | else |
---|
1239 | ac_save_LIBS="$LIBS" |
---|
1240 | LIBS="-lcompat $LIBS" |
---|
1241 | cat > conftest.$ac_ext <<EOF |
---|
1242 | #line 1243 "configure" |
---|
1243 | #include "confdefs.h" |
---|
1244 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1245 | /* We use char because int might match the return type of a gcc2 |
---|
1246 | builtin and then its argument prototype would still apply. */ |
---|
1247 | char insque(); |
---|
1248 | |
---|
1249 | int main() { |
---|
1250 | insque() |
---|
1251 | ; return 0; } |
---|
1252 | EOF |
---|
1253 | if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1254 | rm -rf conftest* |
---|
1255 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1256 | else |
---|
1257 | echo "configure: failed program was:" >&5 |
---|
1258 | cat conftest.$ac_ext >&5 |
---|
1259 | rm -rf conftest* |
---|
1260 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1261 | fi |
---|
1262 | rm -f conftest* |
---|
1263 | LIBS="$ac_save_LIBS" |
---|
1264 | |
---|
1265 | fi |
---|
1266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1267 | echo "$ac_t""yes" 1>&6 |
---|
1268 | ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
1269 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1270 | cat >> confdefs.h <<EOF |
---|
1271 | #define $ac_tr_lib 1 |
---|
1272 | EOF |
---|
1273 | |
---|
1274 | LIBS="-lcompat $LIBS" |
---|
1275 | |
---|
1276 | else |
---|
1277 | echo "$ac_t""no" 1>&6 |
---|
1278 | fi |
---|
1279 | |
---|
1280 | fi |
---|
1281 | |
---|
1282 | echo $ac_n "checking for sigvec""... $ac_c" 1>&6 |
---|
1283 | echo "configure:1284: checking for sigvec" >&5 |
---|
1284 | if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then |
---|
1285 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1286 | else |
---|
1287 | cat > conftest.$ac_ext <<EOF |
---|
1288 | #line 1289 "configure" |
---|
1289 | #include "confdefs.h" |
---|
1290 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1291 | which can conflict with char sigvec(); below. */ |
---|
1292 | #include <assert.h> |
---|
1293 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1294 | /* We use char because int might match the return type of a gcc2 |
---|
1295 | builtin and then its argument prototype would still apply. */ |
---|
1296 | char sigvec(); |
---|
1297 | |
---|
1298 | int main() { |
---|
1299 | |
---|
1300 | /* The GNU C library defines this for functions which it implements |
---|
1301 | to always fail with ENOSYS. Some functions are actually named |
---|
1302 | something starting with __ and the normal name is an alias. */ |
---|
1303 | #if defined (__stub_sigvec) || defined (__stub___sigvec) |
---|
1304 | choke me |
---|
1305 | #else |
---|
1306 | sigvec(); |
---|
1307 | #endif |
---|
1308 | |
---|
1309 | ; return 0; } |
---|
1310 | EOF |
---|
1311 | if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1312 | rm -rf conftest* |
---|
1313 | eval "ac_cv_func_sigvec=yes" |
---|
1314 | else |
---|
1315 | echo "configure: failed program was:" >&5 |
---|
1316 | cat conftest.$ac_ext >&5 |
---|
1317 | rm -rf conftest* |
---|
1318 | eval "ac_cv_func_sigvec=no" |
---|
1319 | fi |
---|
1320 | rm -f conftest* |
---|
1321 | fi |
---|
1322 | |
---|
1323 | if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then |
---|
1324 | echo "$ac_t""yes" 1>&6 |
---|
1325 | : |
---|
1326 | else |
---|
1327 | echo "$ac_t""no" 1>&6 |
---|
1328 | echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6 |
---|
1329 | echo "configure:1330: checking for sigvec in -lucb" >&5 |
---|
1330 | ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'` |
---|
1331 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1332 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1333 | else |
---|
1334 | ac_save_LIBS="$LIBS" |
---|
1335 | LIBS="-lucb $LIBS" |
---|
1336 | cat > conftest.$ac_ext <<EOF |
---|
1337 | #line 1338 "configure" |
---|
1338 | #include "confdefs.h" |
---|
1339 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1340 | /* We use char because int might match the return type of a gcc2 |
---|
1341 | builtin and then its argument prototype would still apply. */ |
---|
1342 | char sigvec(); |
---|
1343 | |
---|
1344 | int main() { |
---|
1345 | sigvec() |
---|
1346 | ; return 0; } |
---|
1347 | EOF |
---|
1348 | if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1349 | rm -rf conftest* |
---|
1350 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1351 | else |
---|
1352 | echo "configure: failed program was:" >&5 |
---|
1353 | cat conftest.$ac_ext >&5 |
---|
1354 | rm -rf conftest* |
---|
1355 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1356 | fi |
---|
1357 | rm -f conftest* |
---|
1358 | LIBS="$ac_save_LIBS" |
---|
1359 | |
---|
1360 | fi |
---|
1361 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1362 | echo "$ac_t""yes" 1>&6 |
---|
1363 | LIBS="$LIBS -lc -lucb" |
---|
1364 | else |
---|
1365 | echo "$ac_t""no" 1>&6 |
---|
1366 | fi |
---|
1367 | |
---|
1368 | fi |
---|
1369 | |
---|
1370 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
1371 | echo "configure:1372: checking for gethostbyname" >&5 |
---|
1372 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
1373 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1374 | else |
---|
1375 | cat > conftest.$ac_ext <<EOF |
---|
1376 | #line 1377 "configure" |
---|
1377 | #include "confdefs.h" |
---|
1378 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1379 | which can conflict with char gethostbyname(); below. */ |
---|
1380 | #include <assert.h> |
---|
1381 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1382 | /* We use char because int might match the return type of a gcc2 |
---|
1383 | builtin and then its argument prototype would still apply. */ |
---|
1384 | char gethostbyname(); |
---|
1385 | |
---|
1386 | int main() { |
---|
1387 | |
---|
1388 | /* The GNU C library defines this for functions which it implements |
---|
1389 | to always fail with ENOSYS. Some functions are actually named |
---|
1390 | something starting with __ and the normal name is an alias. */ |
---|
1391 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
1392 | choke me |
---|
1393 | #else |
---|
1394 | gethostbyname(); |
---|
1395 | #endif |
---|
1396 | |
---|
1397 | ; return 0; } |
---|
1398 | EOF |
---|
1399 | if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1400 | rm -rf conftest* |
---|
1401 | eval "ac_cv_func_gethostbyname=yes" |
---|
1402 | else |
---|
1403 | echo "configure: failed program was:" >&5 |
---|
1404 | cat conftest.$ac_ext >&5 |
---|
1405 | rm -rf conftest* |
---|
1406 | eval "ac_cv_func_gethostbyname=no" |
---|
1407 | fi |
---|
1408 | rm -f conftest* |
---|
1409 | fi |
---|
1410 | |
---|
1411 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
1412 | echo "$ac_t""yes" 1>&6 |
---|
1413 | : |
---|
1414 | else |
---|
1415 | echo "$ac_t""no" 1>&6 |
---|
1416 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
1417 | echo "configure:1418: checking for gethostbyname in -lnsl" >&5 |
---|
1418 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
1419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1420 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1421 | else |
---|
1422 | ac_save_LIBS="$LIBS" |
---|
1423 | LIBS="-lnsl $LIBS" |
---|
1424 | cat > conftest.$ac_ext <<EOF |
---|
1425 | #line 1426 "configure" |
---|
1426 | #include "confdefs.h" |
---|
1427 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1428 | /* We use char because int might match the return type of a gcc2 |
---|
1429 | builtin and then its argument prototype would still apply. */ |
---|
1430 | char gethostbyname(); |
---|
1431 | |
---|
1432 | int main() { |
---|
1433 | gethostbyname() |
---|
1434 | ; return 0; } |
---|
1435 | EOF |
---|
1436 | if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1437 | rm -rf conftest* |
---|
1438 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1439 | else |
---|
1440 | echo "configure: failed program was:" >&5 |
---|
1441 | cat conftest.$ac_ext >&5 |
---|
1442 | rm -rf conftest* |
---|
1443 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1444 | fi |
---|
1445 | rm -f conftest* |
---|
1446 | LIBS="$ac_save_LIBS" |
---|
1447 | |
---|
1448 | fi |
---|
1449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1450 | echo "$ac_t""yes" 1>&6 |
---|
1451 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
1452 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1453 | cat >> confdefs.h <<EOF |
---|
1454 | #define $ac_tr_lib 1 |
---|
1455 | EOF |
---|
1456 | |
---|
1457 | LIBS="-lnsl $LIBS" |
---|
1458 | |
---|
1459 | else |
---|
1460 | echo "$ac_t""no" 1>&6 |
---|
1461 | fi |
---|
1462 | |
---|
1463 | fi |
---|
1464 | |
---|
1465 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
---|
1466 | echo "configure:1467: checking for socket" >&5 |
---|
1467 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
---|
1468 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1469 | else |
---|
1470 | cat > conftest.$ac_ext <<EOF |
---|
1471 | #line 1472 "configure" |
---|
1472 | #include "confdefs.h" |
---|
1473 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1474 | which can conflict with char socket(); below. */ |
---|
1475 | #include <assert.h> |
---|
1476 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1477 | /* We use char because int might match the return type of a gcc2 |
---|
1478 | builtin and then its argument prototype would still apply. */ |
---|
1479 | char socket(); |
---|
1480 | |
---|
1481 | int main() { |
---|
1482 | |
---|
1483 | /* The GNU C library defines this for functions which it implements |
---|
1484 | to always fail with ENOSYS. Some functions are actually named |
---|
1485 | something starting with __ and the normal name is an alias. */ |
---|
1486 | #if defined (__stub_socket) || defined (__stub___socket) |
---|
1487 | choke me |
---|
1488 | #else |
---|
1489 | socket(); |
---|
1490 | #endif |
---|
1491 | |
---|
1492 | ; return 0; } |
---|
1493 | EOF |
---|
1494 | if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1495 | rm -rf conftest* |
---|
1496 | eval "ac_cv_func_socket=yes" |
---|
1497 | else |
---|
1498 | echo "configure: failed program was:" >&5 |
---|
1499 | cat conftest.$ac_ext >&5 |
---|
1500 | rm -rf conftest* |
---|
1501 | eval "ac_cv_func_socket=no" |
---|
1502 | fi |
---|
1503 | rm -f conftest* |
---|
1504 | fi |
---|
1505 | |
---|
1506 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
---|
1507 | echo "$ac_t""yes" 1>&6 |
---|
1508 | : |
---|
1509 | else |
---|
1510 | echo "$ac_t""no" 1>&6 |
---|
1511 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
---|
1512 | echo "configure:1513: checking for socket in -lsocket" >&5 |
---|
1513 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
---|
1514 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1515 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1516 | else |
---|
1517 | ac_save_LIBS="$LIBS" |
---|
1518 | LIBS="-lsocket $LIBS" |
---|
1519 | cat > conftest.$ac_ext <<EOF |
---|
1520 | #line 1521 "configure" |
---|
1521 | #include "confdefs.h" |
---|
1522 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1523 | /* We use char because int might match the return type of a gcc2 |
---|
1524 | builtin and then its argument prototype would still apply. */ |
---|
1525 | char socket(); |
---|
1526 | |
---|
1527 | int main() { |
---|
1528 | socket() |
---|
1529 | ; return 0; } |
---|
1530 | EOF |
---|
1531 | if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1532 | rm -rf conftest* |
---|
1533 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1534 | else |
---|
1535 | echo "configure: failed program was:" >&5 |
---|
1536 | cat conftest.$ac_ext >&5 |
---|
1537 | rm -rf conftest* |
---|
1538 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1539 | fi |
---|
1540 | rm -f conftest* |
---|
1541 | LIBS="$ac_save_LIBS" |
---|
1542 | |
---|
1543 | fi |
---|
1544 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1545 | echo "$ac_t""yes" 1>&6 |
---|
1546 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
1547 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1548 | cat >> confdefs.h <<EOF |
---|
1549 | #define $ac_tr_lib 1 |
---|
1550 | EOF |
---|
1551 | |
---|
1552 | LIBS="-lsocket $LIBS" |
---|
1553 | |
---|
1554 | else |
---|
1555 | echo "$ac_t""no" 1>&6 |
---|
1556 | fi |
---|
1557 | |
---|
1558 | fi |
---|
1559 | |
---|
1560 | if test "$afs" != yes; then |
---|
1561 | CPPFLAGS="$CPPFLAGS -I$afs/include" |
---|
1562 | LDFLAGS="$LDFLAGS -L$afs/lib -L$afs/lib/afs" |
---|
1563 | fi |
---|
1564 | echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6 |
---|
1565 | echo "configure:1566: checking for pioctl in -lsys" >&5 |
---|
1566 | ac_lib_var=`echo sys'_'pioctl | 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="-lsys -lrx -llwp -lsys $LIBS" |
---|
1572 | cat > conftest.$ac_ext <<EOF |
---|
1573 | #line 1574 "configure" |
---|
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 pioctl(); |
---|
1579 | |
---|
1580 | int main() { |
---|
1581 | pioctl() |
---|
1582 | ; return 0; } |
---|
1583 | EOF |
---|
1584 | if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
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 | : |
---|
1600 | else |
---|
1601 | echo "$ac_t""no" 1>&6 |
---|
1602 | { echo "configure: error: AFS libraries not found" 1>&2; exit 1; } |
---|
1603 | fi |
---|
1604 | |
---|
1605 | AFS_DIR=$afs |
---|
1606 | |
---|
1607 | else |
---|
1608 | { echo "configure: error: This package requires AFS libraries." 1>&2; exit 1; } |
---|
1609 | fi |
---|
1610 | |
---|
1611 | trap '' 1 2 15 |
---|
1612 | cat > confcache <<\EOF |
---|
1613 | # This file is a shell script that caches the results of configure |
---|
1614 | # tests run on this system so they can be shared between configure |
---|
1615 | # scripts and configure runs. It is not useful on other systems. |
---|
1616 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1617 | # |
---|
1618 | # By default, configure uses ./config.cache as the cache file, |
---|
1619 | # creating it if it does not exist already. You can give configure |
---|
1620 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1621 | # what configure does when it calls configure scripts in |
---|
1622 | # subdirectories, so they share the cache. |
---|
1623 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1624 | # config.status only pays attention to the cache file if you give it the |
---|
1625 | # --recheck option to rerun configure. |
---|
1626 | # |
---|
1627 | EOF |
---|
1628 | # The following way of writing the cache mishandles newlines in values, |
---|
1629 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1630 | # So, don't put newlines in cache variables' values. |
---|
1631 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1632 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1633 | (set) 2>&1 | |
---|
1634 | case `(ac_space=' '; set) 2>&1` in |
---|
1635 | *ac_space=\ *) |
---|
1636 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1637 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1638 | sed -n \ |
---|
1639 | -e "s/'/'\\\\''/g" \ |
---|
1640 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1641 | ;; |
---|
1642 | *) |
---|
1643 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1644 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1645 | ;; |
---|
1646 | esac >> confcache |
---|
1647 | if cmp -s $cache_file confcache; then |
---|
1648 | : |
---|
1649 | else |
---|
1650 | if test -w $cache_file; then |
---|
1651 | echo "updating cache $cache_file" |
---|
1652 | cat confcache > $cache_file |
---|
1653 | else |
---|
1654 | echo "not updating unwritable cache $cache_file" |
---|
1655 | fi |
---|
1656 | fi |
---|
1657 | rm -f confcache |
---|
1658 | |
---|
1659 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1660 | |
---|
1661 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1662 | # Let make expand exec_prefix. |
---|
1663 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1664 | |
---|
1665 | # Any assignment to VPATH causes Sun make to only execute |
---|
1666 | # the first set of double-colon rules, so remove it if not needed. |
---|
1667 | # If there is a colon in the path, we need to keep it. |
---|
1668 | if test "x$srcdir" = x.; then |
---|
1669 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1670 | fi |
---|
1671 | |
---|
1672 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1673 | |
---|
1674 | # Transform confdefs.h into DEFS. |
---|
1675 | # Protect against shell expansion while executing Makefile rules. |
---|
1676 | # Protect against Makefile macro expansion. |
---|
1677 | cat > conftest.defs <<\EOF |
---|
1678 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
1679 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
1680 | s%\[%\\&%g |
---|
1681 | s%\]%\\&%g |
---|
1682 | s%\$%$$%g |
---|
1683 | EOF |
---|
1684 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
1685 | rm -f conftest.defs |
---|
1686 | |
---|
1687 | |
---|
1688 | # Without the "./", some shells look in PATH for config.status. |
---|
1689 | : ${CONFIG_STATUS=./config.status} |
---|
1690 | |
---|
1691 | echo creating $CONFIG_STATUS |
---|
1692 | rm -f $CONFIG_STATUS |
---|
1693 | cat > $CONFIG_STATUS <<EOF |
---|
1694 | #! /bin/sh |
---|
1695 | # Generated automatically by configure. |
---|
1696 | # Run this file to recreate the current configuration. |
---|
1697 | # This directory was configured as follows, |
---|
1698 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1699 | # |
---|
1700 | # $0 $ac_configure_args |
---|
1701 | # |
---|
1702 | # Compiler output produced by configure, useful for debugging |
---|
1703 | # configure, is in ./config.log if it exists. |
---|
1704 | |
---|
1705 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1706 | for ac_option |
---|
1707 | do |
---|
1708 | case "\$ac_option" in |
---|
1709 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1710 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1711 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1712 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1713 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
---|
1714 | exit 0 ;; |
---|
1715 | -help | --help | --hel | --he | --h) |
---|
1716 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1717 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1718 | esac |
---|
1719 | done |
---|
1720 | |
---|
1721 | ac_given_srcdir=$srcdir |
---|
1722 | ac_given_INSTALL="$INSTALL" |
---|
1723 | |
---|
1724 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1725 | EOF |
---|
1726 | cat >> $CONFIG_STATUS <<EOF |
---|
1727 | |
---|
1728 | # Protect against being on the right side of a sed subst in config.status. |
---|
1729 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
1730 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
1731 | $ac_vpsub |
---|
1732 | $extrasub |
---|
1733 | s%@CFLAGS@%$CFLAGS%g |
---|
1734 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1735 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1736 | s%@DEFS@%$DEFS%g |
---|
1737 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1738 | s%@LIBS@%$LIBS%g |
---|
1739 | s%@exec_prefix@%$exec_prefix%g |
---|
1740 | s%@prefix@%$prefix%g |
---|
1741 | s%@program_transform_name@%$program_transform_name%g |
---|
1742 | s%@bindir@%$bindir%g |
---|
1743 | s%@sbindir@%$sbindir%g |
---|
1744 | s%@libexecdir@%$libexecdir%g |
---|
1745 | s%@datadir@%$datadir%g |
---|
1746 | s%@sysconfdir@%$sysconfdir%g |
---|
1747 | s%@sharedstatedir@%$sharedstatedir%g |
---|
1748 | s%@localstatedir@%$localstatedir%g |
---|
1749 | s%@libdir@%$libdir%g |
---|
1750 | s%@includedir@%$includedir%g |
---|
1751 | s%@oldincludedir@%$oldincludedir%g |
---|
1752 | s%@infodir@%$infodir%g |
---|
1753 | s%@mandir@%$mandir%g |
---|
1754 | s%@lbindir@%$lbindir%g |
---|
1755 | s%@CC@%$CC%g |
---|
1756 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
1757 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
1758 | s%@KRB4_LIBS@%$KRB4_LIBS%g |
---|
1759 | s%@AFS_DIR@%$AFS_DIR%g |
---|
1760 | |
---|
1761 | CEOF |
---|
1762 | EOF |
---|
1763 | |
---|
1764 | cat >> $CONFIG_STATUS <<\EOF |
---|
1765 | |
---|
1766 | # Split the substitutions into bite-sized pieces for seds with |
---|
1767 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
1768 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
1769 | ac_file=1 # Number of current file. |
---|
1770 | ac_beg=1 # First line for current file. |
---|
1771 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
1772 | ac_more_lines=: |
---|
1773 | ac_sed_cmds="" |
---|
1774 | while $ac_more_lines; do |
---|
1775 | if test $ac_beg -gt 1; then |
---|
1776 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1777 | else |
---|
1778 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1779 | fi |
---|
1780 | if test ! -s conftest.s$ac_file; then |
---|
1781 | ac_more_lines=false |
---|
1782 | rm -f conftest.s$ac_file |
---|
1783 | else |
---|
1784 | if test -z "$ac_sed_cmds"; then |
---|
1785 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
1786 | else |
---|
1787 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
1788 | fi |
---|
1789 | ac_file=`expr $ac_file + 1` |
---|
1790 | ac_beg=$ac_end |
---|
1791 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
1792 | fi |
---|
1793 | done |
---|
1794 | if test -z "$ac_sed_cmds"; then |
---|
1795 | ac_sed_cmds=cat |
---|
1796 | fi |
---|
1797 | EOF |
---|
1798 | |
---|
1799 | cat >> $CONFIG_STATUS <<EOF |
---|
1800 | |
---|
1801 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
1802 | EOF |
---|
1803 | cat >> $CONFIG_STATUS <<\EOF |
---|
1804 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1805 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
1806 | case "$ac_file" in |
---|
1807 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
1808 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1809 | *) ac_file_in="${ac_file}.in" ;; |
---|
1810 | esac |
---|
1811 | |
---|
1812 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
1813 | |
---|
1814 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1815 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1816 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1817 | # The file is in a subdirectory. |
---|
1818 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1819 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1820 | # A "../" for each directory in $ac_dir_suffix. |
---|
1821 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1822 | else |
---|
1823 | ac_dir_suffix= ac_dots= |
---|
1824 | fi |
---|
1825 | |
---|
1826 | case "$ac_given_srcdir" in |
---|
1827 | .) srcdir=. |
---|
1828 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1829 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1830 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1831 | *) # Relative path. |
---|
1832 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1833 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1834 | esac |
---|
1835 | |
---|
1836 | case "$ac_given_INSTALL" in |
---|
1837 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
1838 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
1839 | esac |
---|
1840 | |
---|
1841 | echo creating "$ac_file" |
---|
1842 | rm -f "$ac_file" |
---|
1843 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1844 | case "$ac_file" in |
---|
1845 | *Makefile*) ac_comsub="1i\\ |
---|
1846 | # $configure_input" ;; |
---|
1847 | *) ac_comsub= ;; |
---|
1848 | esac |
---|
1849 | |
---|
1850 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
1851 | sed -e "$ac_comsub |
---|
1852 | s%@configure_input@%$configure_input%g |
---|
1853 | s%@srcdir@%$srcdir%g |
---|
1854 | s%@top_srcdir@%$top_srcdir%g |
---|
1855 | s%@INSTALL@%$INSTALL%g |
---|
1856 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
1857 | fi; done |
---|
1858 | rm -f conftest.s* |
---|
1859 | |
---|
1860 | EOF |
---|
1861 | cat >> $CONFIG_STATUS <<EOF |
---|
1862 | |
---|
1863 | EOF |
---|
1864 | cat >> $CONFIG_STATUS <<\EOF |
---|
1865 | |
---|
1866 | exit 0 |
---|
1867 | EOF |
---|
1868 | chmod +x $CONFIG_STATUS |
---|
1869 | rm -fr confdefs* $ac_clean_files |
---|
1870 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1871 | |
---|