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