]>
Commit | Line | Data |
---|---|---|
dfac8a13 TT |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
c45f211e | 6 | # |
dfac8a13 TT |
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-maintainer-mode enable make rules and dependencies not useful | |
16 | (and sometimes confusing) to the casual installer" | |
17 | ac_help="$ac_help | |
3ef1cea8 RO |
18 | --with-target-subdir=SUBDIR |
19 | configuring in a subdirectory" | |
dfac8a13 | 20 | ac_help="$ac_help |
3ef1cea8 | 21 | --with-cross-host=HOST configuring with a cross compiler" |
dfac8a13 | 22 | ac_help="$ac_help |
3ef1cea8 | 23 | --enable-multilib build many library versions (default)" |
79a9a529 | 24 | ac_help="$ac_help |
3ef1cea8 | 25 | --with-system-zlib use installed libz" |
dfac8a13 TT |
26 | ac_help="$ac_help |
27 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
28 | ac_help="$ac_help | |
29 | --enable-static[=PKGS] build static libraries [default=yes]" | |
30 | ac_help="$ac_help | |
31 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
32 | ac_help="$ac_help | |
33 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
34 | ac_help="$ac_help | |
025fd00e | 35 | --disable-libtool-lock force libtool not to do file locking" |
dfac8a13 TT |
36 | |
37 | # Initialize some variables set by options. | |
38 | # The variables have the same names as the options, with | |
39 | # dashes changed to underlines. | |
40 | build=NONE | |
41 | cache_file=./config.cache | |
42 | exec_prefix=NONE | |
43 | host=NONE | |
44 | no_create= | |
45 | nonopt=NONE | |
46 | no_recursion= | |
47 | prefix=NONE | |
48 | program_prefix=NONE | |
49 | program_suffix=NONE | |
50 | program_transform_name=s,x,x, | |
51 | silent= | |
52 | site= | |
3ef1cea8 | 53 | sitefile= |
dfac8a13 TT |
54 | srcdir= |
55 | target=NONE | |
56 | verbose= | |
57 | x_includes=NONE | |
58 | x_libraries=NONE | |
59 | bindir='${exec_prefix}/bin' | |
60 | sbindir='${exec_prefix}/sbin' | |
61 | libexecdir='${exec_prefix}/libexec' | |
62 | datadir='${prefix}/share' | |
63 | sysconfdir='${prefix}/etc' | |
64 | sharedstatedir='${prefix}/com' | |
65 | localstatedir='${prefix}/var' | |
66 | libdir='${exec_prefix}/lib' | |
67 | includedir='${prefix}/include' | |
68 | oldincludedir='/usr/include' | |
69 | infodir='${prefix}/info' | |
70 | mandir='${prefix}/man' | |
71 | ||
72 | # Initialize some other variables. | |
73 | subdirs= | |
74 | MFLAGS= MAKEFLAGS= | |
75 | SHELL=${CONFIG_SHELL-/bin/sh} | |
76 | # Maximum number of lines to put in a shell here document. | |
77 | ac_max_here_lines=12 | |
78 | ||
79 | ac_prev= | |
80 | for ac_option | |
81 | do | |
82 | ||
83 | # If the previous option needs an argument, assign it. | |
84 | if test -n "$ac_prev"; then | |
85 | eval "$ac_prev=\$ac_option" | |
86 | ac_prev= | |
87 | continue | |
88 | fi | |
89 | ||
90 | case "$ac_option" in | |
91 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
92 | *) ac_optarg= ;; | |
93 | esac | |
94 | ||
95 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
96 | ||
97 | case "$ac_option" in | |
98 | ||
99 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
100 | ac_prev=bindir ;; | |
101 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
102 | bindir="$ac_optarg" ;; | |
103 | ||
104 | -build | --build | --buil | --bui | --bu) | |
105 | ac_prev=build ;; | |
106 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
107 | build="$ac_optarg" ;; | |
108 | ||
109 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
110 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
111 | ac_prev=cache_file ;; | |
112 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
113 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
114 | cache_file="$ac_optarg" ;; | |
115 | ||
116 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
117 | ac_prev=datadir ;; | |
118 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
119 | | --da=*) | |
120 | datadir="$ac_optarg" ;; | |
121 | ||
122 | -disable-* | --disable-*) | |
123 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
124 | # Reject names that are not valid shell variable names. | |
125 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
126 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
127 | fi | |
128 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
129 | eval "enable_${ac_feature}=no" ;; | |
130 | ||
131 | -enable-* | --enable-*) | |
132 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
133 | # Reject names that are not valid shell variable names. | |
134 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
135 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
136 | fi | |
137 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
138 | case "$ac_option" in | |
139 | *=*) ;; | |
140 | *) ac_optarg=yes ;; | |
141 | esac | |
142 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
143 | ||
144 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
145 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
146 | | --exec | --exe | --ex) | |
147 | ac_prev=exec_prefix ;; | |
148 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
149 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
150 | | --exec=* | --exe=* | --ex=*) | |
151 | exec_prefix="$ac_optarg" ;; | |
152 | ||
153 | -gas | --gas | --ga | --g) | |
154 | # Obsolete; use --with-gas. | |
155 | with_gas=yes ;; | |
156 | ||
157 | -help | --help | --hel | --he) | |
158 | # Omit some internal or obsolete options to make the list less imposing. | |
159 | # This message is too long to be a string in the A/UX 3.1 sh. | |
160 | cat << EOF | |
161 | Usage: configure [options] [host] | |
162 | Options: [defaults in brackets after descriptions] | |
163 | Configuration: | |
164 | --cache-file=FILE cache test results in FILE | |
165 | --help print this message | |
166 | --no-create do not create output files | |
167 | --quiet, --silent do not print \`checking...' messages | |
3ef1cea8 | 168 | --site-file=FILE use FILE as the site file |
dfac8a13 TT |
169 | --version print the version of autoconf that created configure |
170 | Directory and file names: | |
171 | --prefix=PREFIX install architecture-independent files in PREFIX | |
172 | [$ac_default_prefix] | |
173 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
174 | [same as prefix] | |
175 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
176 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
177 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
178 | --datadir=DIR read-only architecture-independent data in DIR | |
179 | [PREFIX/share] | |
180 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
181 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
182 | [PREFIX/com] | |
183 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
184 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
185 | --includedir=DIR C header files in DIR [PREFIX/include] | |
186 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
187 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
188 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
189 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
190 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
191 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
192 | --program-transform-name=PROGRAM | |
193 | run sed PROGRAM on installed program names | |
194 | EOF | |
195 | cat << EOF | |
196 | Host type: | |
197 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
198 | --host=HOST configure for HOST [guessed] | |
199 | --target=TARGET configure for TARGET [TARGET=HOST] | |
200 | Features and packages: | |
201 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
202 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
203 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
204 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
205 | --x-includes=DIR X include files are in DIR | |
206 | --x-libraries=DIR X library files are in DIR | |
207 | EOF | |
208 | if test -n "$ac_help"; then | |
209 | echo "--enable and --with options recognized:$ac_help" | |
210 | fi | |
211 | exit 0 ;; | |
212 | ||
213 | -host | --host | --hos | --ho) | |
214 | ac_prev=host ;; | |
215 | -host=* | --host=* | --hos=* | --ho=*) | |
216 | host="$ac_optarg" ;; | |
217 | ||
218 | -includedir | --includedir | --includedi | --included | --include \ | |
219 | | --includ | --inclu | --incl | --inc) | |
220 | ac_prev=includedir ;; | |
221 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
222 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
223 | includedir="$ac_optarg" ;; | |
224 | ||
225 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
226 | ac_prev=infodir ;; | |
227 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
228 | infodir="$ac_optarg" ;; | |
229 | ||
230 | -libdir | --libdir | --libdi | --libd) | |
231 | ac_prev=libdir ;; | |
232 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
233 | libdir="$ac_optarg" ;; | |
234 | ||
235 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
236 | | --libexe | --libex | --libe) | |
237 | ac_prev=libexecdir ;; | |
238 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
239 | | --libexe=* | --libex=* | --libe=*) | |
240 | libexecdir="$ac_optarg" ;; | |
241 | ||
242 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
243 | | --localstate | --localstat | --localsta | --localst \ | |
244 | | --locals | --local | --loca | --loc | --lo) | |
245 | ac_prev=localstatedir ;; | |
246 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
247 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
248 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
249 | localstatedir="$ac_optarg" ;; | |
250 | ||
251 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
252 | ac_prev=mandir ;; | |
253 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
254 | mandir="$ac_optarg" ;; | |
255 | ||
256 | -nfp | --nfp | --nf) | |
257 | # Obsolete; use --without-fp. | |
258 | with_fp=no ;; | |
259 | ||
260 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
261 | | --no-cr | --no-c) | |
262 | no_create=yes ;; | |
263 | ||
264 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
265 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
266 | no_recursion=yes ;; | |
267 | ||
268 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
269 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
270 | | --oldin | --oldi | --old | --ol | --o) | |
271 | ac_prev=oldincludedir ;; | |
272 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
273 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
274 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
275 | oldincludedir="$ac_optarg" ;; | |
276 | ||
277 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
278 | ac_prev=prefix ;; | |
279 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
280 | prefix="$ac_optarg" ;; | |
281 | ||
282 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
283 | | --program-pre | --program-pr | --program-p) | |
284 | ac_prev=program_prefix ;; | |
285 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
286 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
287 | program_prefix="$ac_optarg" ;; | |
288 | ||
289 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
290 | | --program-suf | --program-su | --program-s) | |
291 | ac_prev=program_suffix ;; | |
292 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
293 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
294 | program_suffix="$ac_optarg" ;; | |
295 | ||
296 | -program-transform-name | --program-transform-name \ | |
297 | | --program-transform-nam | --program-transform-na \ | |
298 | | --program-transform-n | --program-transform- \ | |
299 | | --program-transform | --program-transfor \ | |
300 | | --program-transfo | --program-transf \ | |
301 | | --program-trans | --program-tran \ | |
302 | | --progr-tra | --program-tr | --program-t) | |
303 | ac_prev=program_transform_name ;; | |
304 | -program-transform-name=* | --program-transform-name=* \ | |
305 | | --program-transform-nam=* | --program-transform-na=* \ | |
306 | | --program-transform-n=* | --program-transform-=* \ | |
307 | | --program-transform=* | --program-transfor=* \ | |
308 | | --program-transfo=* | --program-transf=* \ | |
309 | | --program-trans=* | --program-tran=* \ | |
310 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
311 | program_transform_name="$ac_optarg" ;; | |
312 | ||
313 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
314 | | -silent | --silent | --silen | --sile | --sil) | |
315 | silent=yes ;; | |
316 | ||
317 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
318 | ac_prev=sbindir ;; | |
319 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
320 | | --sbi=* | --sb=*) | |
321 | sbindir="$ac_optarg" ;; | |
322 | ||
323 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
324 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
325 | | --sharedst | --shareds | --shared | --share | --shar \ | |
326 | | --sha | --sh) | |
327 | ac_prev=sharedstatedir ;; | |
328 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
329 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
330 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
331 | | --sha=* | --sh=*) | |
332 | sharedstatedir="$ac_optarg" ;; | |
333 | ||
334 | -site | --site | --sit) | |
335 | ac_prev=site ;; | |
336 | -site=* | --site=* | --sit=*) | |
337 | site="$ac_optarg" ;; | |
338 | ||
3ef1cea8 RO |
339 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
340 | ac_prev=sitefile ;; | |
341 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
342 | sitefile="$ac_optarg" ;; | |
343 | ||
dfac8a13 TT |
344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
345 | ac_prev=srcdir ;; | |
346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
347 | srcdir="$ac_optarg" ;; | |
348 | ||
349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
350 | | --syscon | --sysco | --sysc | --sys | --sy) | |
351 | ac_prev=sysconfdir ;; | |
352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
354 | sysconfdir="$ac_optarg" ;; | |
355 | ||
356 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
357 | ac_prev=target ;; | |
358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
359 | target="$ac_optarg" ;; | |
360 | ||
361 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
362 | verbose=yes ;; | |
363 | ||
364 | -version | --version | --versio | --versi | --vers) | |
365 | echo "configure generated by autoconf version 2.13" | |
366 | exit 0 ;; | |
367 | ||
368 | -with-* | --with-*) | |
369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
370 | # Reject names that are not valid shell variable names. | |
371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
373 | fi | |
374 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
375 | case "$ac_option" in | |
376 | *=*) ;; | |
377 | *) ac_optarg=yes ;; | |
378 | esac | |
379 | eval "with_${ac_package}='$ac_optarg'" ;; | |
380 | ||
381 | -without-* | --without-*) | |
382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
383 | # Reject names that are not valid shell variable names. | |
384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
386 | fi | |
387 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
388 | eval "with_${ac_package}=no" ;; | |
389 | ||
390 | --x) | |
391 | # Obsolete; use --with-x. | |
392 | with_x=yes ;; | |
393 | ||
394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
395 | | --x-incl | --x-inc | --x-in | --x-i) | |
396 | ac_prev=x_includes ;; | |
397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
399 | x_includes="$ac_optarg" ;; | |
400 | ||
401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
403 | ac_prev=x_libraries ;; | |
404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
406 | x_libraries="$ac_optarg" ;; | |
407 | ||
408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
409 | ;; | |
410 | ||
411 | *) | |
412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
413 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
414 | fi | |
415 | if test "x$nonopt" != xNONE; then | |
416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
417 | fi | |
418 | nonopt="$ac_option" | |
419 | ;; | |
420 | ||
421 | esac | |
422 | done | |
423 | ||
424 | if test -n "$ac_prev"; then | |
425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
426 | fi | |
427 | ||
428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
429 | ||
430 | # File descriptor usage: | |
431 | # 0 standard input | |
432 | # 1 file creation | |
433 | # 2 errors and warnings | |
434 | # 3 some systems may open it to /dev/tty | |
435 | # 4 used on the Kubota Titan | |
436 | # 6 checking for... messages and results | |
437 | # 5 compiler messages saved in config.log | |
438 | if test "$silent" = yes; then | |
439 | exec 6>/dev/null | |
440 | else | |
441 | exec 6>&1 | |
442 | fi | |
443 | exec 5>./config.log | |
444 | ||
445 | echo "\ | |
446 | This file contains any messages produced by compilers while | |
447 | running configure, to aid debugging if configure makes a mistake. | |
448 | " 1>&5 | |
449 | ||
450 | # Strip out --no-create and --no-recursion so they do not pile up. | |
451 | # Also quote any args containing shell metacharacters. | |
452 | ac_configure_args= | |
453 | for ac_arg | |
c45f211e | 454 | do |
dfac8a13 TT |
455 | case "$ac_arg" in |
456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
457 | | --no-cr | --no-c) ;; | |
458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
463 | esac | |
464 | done | |
465 | ||
466 | # NLS nuisances. | |
467 | # Only set these to C if already set. These must not be set unconditionally | |
468 | # because not all systems understand e.g. LANG=C (notably SCO). | |
469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
470 | # Non-C LC_CTYPE values break the ctype check. | |
471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
475 | ||
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
477 | rm -rf conftest* confdefs.h | |
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
479 | echo > confdefs.h | |
480 | ||
481 | # A filename unique to this package, relative to the directory that | |
482 | # configure is in, which we can look for to find out if srcdir is correct. | |
483 | ac_unique_file=zlib.h | |
484 | ||
485 | # Find the source files, if location was not specified. | |
486 | if test -z "$srcdir"; then | |
487 | ac_srcdir_defaulted=yes | |
488 | # Try the directory containing this script, then its parent. | |
489 | ac_prog=$0 | |
490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
492 | srcdir=$ac_confdir | |
493 | if test ! -r $srcdir/$ac_unique_file; then | |
494 | srcdir=.. | |
495 | fi | |
496 | else | |
497 | ac_srcdir_defaulted=no | |
498 | fi | |
499 | if test ! -r $srcdir/$ac_unique_file; then | |
500 | if test "$ac_srcdir_defaulted" = yes; then | |
501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
502 | else | |
503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
504 | fi | |
505 | fi | |
506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
507 | ||
508 | # Prefer explicitly selected file to automatically selected ones. | |
3ef1cea8 RO |
509 | if test -z "$sitefile"; then |
510 | if test -z "$CONFIG_SITE"; then | |
511 | if test "x$prefix" != xNONE; then | |
512 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
513 | else | |
514 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
515 | fi | |
dfac8a13 | 516 | fi |
3ef1cea8 RO |
517 | else |
518 | CONFIG_SITE="$sitefile" | |
dfac8a13 TT |
519 | fi |
520 | for ac_site_file in $CONFIG_SITE; do | |
521 | if test -r "$ac_site_file"; then | |
522 | echo "loading site script $ac_site_file" | |
523 | . "$ac_site_file" | |
524 | fi | |
525 | done | |
526 | ||
527 | if test -r "$cache_file"; then | |
528 | echo "loading cache $cache_file" | |
529 | . $cache_file | |
530 | else | |
531 | echo "creating cache $cache_file" | |
532 | > $cache_file | |
533 | fi | |
534 | ||
535 | ac_ext=c | |
536 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
537 | ac_cpp='$CPP $CPPFLAGS' | |
538 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
539 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
540 | cross_compiling=$ac_cv_prog_cc_cross | |
541 | ||
542 | ac_exeext= | |
543 | ac_objext=o | |
544 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
545 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
546 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
547 | ac_n= ac_c=' | |
548 | ' ac_t=' ' | |
549 | else | |
550 | ac_n=-n ac_c= ac_t= | |
551 | fi | |
552 | else | |
553 | ac_n= ac_c='\c' ac_t= | |
554 | fi | |
555 | ||
556 | ||
557 | ac_aux_dir= | |
558 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
559 | if test -f $ac_dir/install-sh; then | |
560 | ac_aux_dir=$ac_dir | |
561 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
562 | break | |
563 | elif test -f $ac_dir/install.sh; then | |
564 | ac_aux_dir=$ac_dir | |
565 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
566 | break | |
567 | fi | |
568 | done | |
569 | if test -z "$ac_aux_dir"; then | |
570 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
571 | fi | |
572 | ac_config_guess=$ac_aux_dir/config.guess | |
573 | ac_config_sub=$ac_aux_dir/config.sub | |
574 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
575 | ||
576 | ||
577 | # Do some error checking and defaulting for the host and target type. | |
578 | # The inputs are: | |
579 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
580 | # | |
581 | # The rules are: | |
582 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
583 | # same time. | |
584 | # 2. Host defaults to nonopt. | |
585 | # 3. If nonopt is not specified, then host defaults to the current host, | |
586 | # as determined by config.guess. | |
587 | # 4. Target and build default to nonopt. | |
588 | # 5. If nonopt is not specified, then target and build default to host. | |
589 | ||
590 | # The aliases save the names the user supplied, while $host etc. | |
591 | # will get canonicalized. | |
592 | case $host---$target---$nonopt in | |
593 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
594 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
595 | esac | |
596 | ||
597 | ||
598 | # Make sure we can run config.sub. | |
599 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
600 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
601 | fi | |
602 | ||
603 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3ef1cea8 | 604 | echo "configure:605: checking host system type" >&5 |
dfac8a13 TT |
605 | |
606 | host_alias=$host | |
607 | case "$host_alias" in | |
608 | NONE) | |
609 | case $nonopt in | |
610 | NONE) | |
611 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
612 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
613 | fi ;; | |
614 | *) host_alias=$nonopt ;; | |
615 | esac ;; | |
616 | esac | |
617 | ||
618 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
619 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
620 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
621 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
622 | echo "$ac_t""$host" 1>&6 | |
623 | ||
624 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3ef1cea8 | 625 | echo "configure:626: checking target system type" >&5 |
dfac8a13 TT |
626 | |
627 | target_alias=$target | |
628 | case "$target_alias" in | |
629 | NONE) | |
630 | case $nonopt in | |
631 | NONE) target_alias=$host_alias ;; | |
632 | *) target_alias=$nonopt ;; | |
633 | esac ;; | |
634 | esac | |
635 | ||
636 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
637 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
638 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
639 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
640 | echo "$ac_t""$target" 1>&6 | |
641 | ||
642 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3ef1cea8 | 643 | echo "configure:644: checking build system type" >&5 |
dfac8a13 TT |
644 | |
645 | build_alias=$build | |
646 | case "$build_alias" in | |
647 | NONE) | |
648 | case $nonopt in | |
649 | NONE) build_alias=$host_alias ;; | |
650 | *) build_alias=$nonopt ;; | |
651 | esac ;; | |
652 | esac | |
653 | ||
654 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
655 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
656 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
657 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
658 | echo "$ac_t""$build" 1>&6 | |
659 | ||
660 | test "$host_alias" != "$target_alias" && | |
661 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
662 | NONENONEs,x,x, && | |
663 | program_prefix=${target_alias}- | |
664 | ||
665 | # Find a good install program. We prefer a C program (faster), | |
666 | # so one script is as good as another. But avoid the broken or | |
667 | # incompatible versions: | |
668 | # SysV /etc/install, /usr/sbin/install | |
669 | # SunOS /usr/etc/install | |
670 | # IRIX /sbin/install | |
671 | # AIX /bin/install | |
672 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
673 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
674 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
675 | # ./install, which can be erroneously created by make from ./install.sh. | |
676 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
3ef1cea8 | 677 | echo "configure:678: checking for a BSD compatible install" >&5 |
dfac8a13 TT |
678 | if test -z "$INSTALL"; then |
679 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
681 | else | |
682 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
683 | for ac_dir in $PATH; do | |
684 | # Account for people who put trailing slashes in PATH elements. | |
685 | case "$ac_dir/" in | |
686 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
687 | *) | |
688 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
689 | # Don't use installbsd from OSF since it installs stuff as root | |
690 | # by default. | |
691 | for ac_prog in ginstall scoinst install; do | |
692 | if test -f $ac_dir/$ac_prog; then | |
693 | if test $ac_prog = install && | |
694 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
695 | # AIX install. It has an incompatible calling convention. | |
696 | : | |
697 | else | |
698 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
699 | break 2 | |
700 | fi | |
701 | fi | |
702 | done | |
703 | ;; | |
704 | esac | |
705 | done | |
706 | IFS="$ac_save_IFS" | |
707 | ||
708 | fi | |
709 | if test "${ac_cv_path_install+set}" = set; then | |
710 | INSTALL="$ac_cv_path_install" | |
711 | else | |
712 | # As a last resort, use the slow shell script. We don't cache a | |
713 | # path for INSTALL within a source directory, because that will | |
714 | # break other packages using the cache if that directory is | |
715 | # removed, or if the path is relative. | |
716 | INSTALL="$ac_install_sh" | |
717 | fi | |
718 | fi | |
719 | echo "$ac_t""$INSTALL" 1>&6 | |
720 | ||
721 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
722 | # It thinks the first close brace ends the variable substitution. | |
723 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
724 | ||
725 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
726 | ||
727 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
728 | ||
729 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
3ef1cea8 | 730 | echo "configure:731: checking whether build environment is sane" >&5 |
dfac8a13 TT |
731 | # Just in case |
732 | sleep 1 | |
733 | echo timestamp > conftestfile | |
734 | # Do `set' in a subshell so we don't clobber the current shell's | |
735 | # arguments. Must try -L first in case configure is actually a | |
736 | # symlink; some systems play weird games with the mod time of symlinks | |
737 | # (eg FreeBSD returns the mod time of the symlink's containing | |
738 | # directory). | |
739 | if ( | |
740 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
741 | if test "$*" = "X"; then | |
742 | # -L didn't work. | |
743 | set X `ls -t $srcdir/configure conftestfile` | |
744 | fi | |
745 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
746 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
747 | ||
748 | # If neither matched, then we have a broken ls. This can happen | |
749 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
750 | # broken ls alias from the environment. This has actually | |
751 | # happened. Such a system could not be considered "sane". | |
752 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
753 | alias in your environment" 1>&2; exit 1; } | |
754 | fi | |
755 | ||
756 | test "$2" = conftestfile | |
757 | ) | |
758 | then | |
759 | # Ok. | |
760 | : | |
761 | else | |
762 | { echo "configure: error: newly created file is older than distributed files! | |
763 | Check your system clock" 1>&2; exit 1; } | |
764 | fi | |
765 | rm -f conftest* | |
766 | echo "$ac_t""yes" 1>&6 | |
767 | if test "$program_transform_name" = s,x,x,; then | |
768 | program_transform_name= | |
769 | else | |
770 | # Double any \ or $. echo might interpret backslashes. | |
771 | cat <<\EOF_SED > conftestsed | |
772 | s,\\,\\\\,g; s,\$,$$,g | |
773 | EOF_SED | |
774 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
775 | rm -f conftestsed | |
776 | fi | |
777 | test "$program_prefix" != NONE && | |
778 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
779 | # Use a double $ so make ignores it. | |
780 | test "$program_suffix" != NONE && | |
781 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
782 | ||
783 | # sed with no file args requires a program. | |
784 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
785 | ||
786 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
3ef1cea8 | 787 | echo "configure:788: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
dfac8a13 TT |
788 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
789 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
791 | else | |
792 | cat > conftestmake <<\EOF | |
793 | all: | |
794 | @echo 'ac_maketemp="${MAKE}"' | |
795 | EOF | |
796 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
797 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
798 | if test -n "$ac_maketemp"; then | |
799 | eval ac_cv_prog_make_${ac_make}_set=yes | |
800 | else | |
801 | eval ac_cv_prog_make_${ac_make}_set=no | |
802 | fi | |
803 | rm -f conftestmake | |
804 | fi | |
805 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
806 | echo "$ac_t""yes" 1>&6 | |
807 | SET_MAKE= | |
808 | else | |
809 | echo "$ac_t""no" 1>&6 | |
810 | SET_MAKE="MAKE=${MAKE-make}" | |
811 | fi | |
812 | ||
813 | ||
814 | PACKAGE=zlib | |
815 | ||
816 | VERSION=1.1.3 | |
817 | ||
818 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
819 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
820 | fi | |
821 | cat >> confdefs.h <<EOF | |
822 | #define PACKAGE "$PACKAGE" | |
823 | EOF | |
824 | ||
825 | cat >> confdefs.h <<EOF | |
826 | #define VERSION "$VERSION" | |
827 | EOF | |
828 | ||
829 | ||
830 | ||
831 | missing_dir=`cd $ac_aux_dir && pwd` | |
832 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
3ef1cea8 | 833 | echo "configure:834: checking for working aclocal" >&5 |
dfac8a13 TT |
834 | # Run test in a subshell; some versions of sh will print an error if |
835 | # an executable is not found, even if stderr is redirected. | |
836 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
837 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
838 | ACLOCAL=aclocal | |
839 | echo "$ac_t""found" 1>&6 | |
840 | else | |
841 | ACLOCAL="$missing_dir/missing aclocal" | |
842 | echo "$ac_t""missing" 1>&6 | |
843 | fi | |
844 | ||
845 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
3ef1cea8 | 846 | echo "configure:847: checking for working autoconf" >&5 |
dfac8a13 TT |
847 | # Run test in a subshell; some versions of sh will print an error if |
848 | # an executable is not found, even if stderr is redirected. | |
849 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
850 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
851 | AUTOCONF=autoconf | |
852 | echo "$ac_t""found" 1>&6 | |
853 | else | |
854 | AUTOCONF="$missing_dir/missing autoconf" | |
855 | echo "$ac_t""missing" 1>&6 | |
856 | fi | |
857 | ||
858 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
3ef1cea8 | 859 | echo "configure:860: checking for working automake" >&5 |
dfac8a13 TT |
860 | # Run test in a subshell; some versions of sh will print an error if |
861 | # an executable is not found, even if stderr is redirected. | |
862 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
863 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
864 | AUTOMAKE=automake | |
865 | echo "$ac_t""found" 1>&6 | |
866 | else | |
867 | AUTOMAKE="$missing_dir/missing automake" | |
868 | echo "$ac_t""missing" 1>&6 | |
869 | fi | |
870 | ||
871 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
3ef1cea8 | 872 | echo "configure:873: checking for working autoheader" >&5 |
dfac8a13 TT |
873 | # Run test in a subshell; some versions of sh will print an error if |
874 | # an executable is not found, even if stderr is redirected. | |
875 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
876 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
877 | AUTOHEADER=autoheader | |
878 | echo "$ac_t""found" 1>&6 | |
879 | else | |
880 | AUTOHEADER="$missing_dir/missing autoheader" | |
881 | echo "$ac_t""missing" 1>&6 | |
882 | fi | |
883 | ||
884 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
3ef1cea8 | 885 | echo "configure:886: checking for working makeinfo" >&5 |
dfac8a13 TT |
886 | # Run test in a subshell; some versions of sh will print an error if |
887 | # an executable is not found, even if stderr is redirected. | |
888 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
889 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
890 | MAKEINFO=makeinfo | |
891 | echo "$ac_t""found" 1>&6 | |
892 | else | |
893 | MAKEINFO="$missing_dir/missing makeinfo" | |
894 | echo "$ac_t""missing" 1>&6 | |
895 | fi | |
896 | ||
897 | ||
898 | ||
899 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
3ef1cea8 | 900 | echo "configure:901: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
dfac8a13 TT |
901 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
902 | if test "${enable_maintainer_mode+set}" = set; then | |
903 | enableval="$enable_maintainer_mode" | |
904 | USE_MAINTAINER_MODE=$enableval | |
905 | else | |
906 | USE_MAINTAINER_MODE=no | |
907 | fi | |
908 | ||
909 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
910 | ||
911 | ||
912 | if test $USE_MAINTAINER_MODE = yes; then | |
913 | MAINTAINER_MODE_TRUE= | |
914 | MAINTAINER_MODE_FALSE='#' | |
915 | else | |
916 | MAINTAINER_MODE_TRUE='#' | |
917 | MAINTAINER_MODE_FALSE= | |
918 | fi | |
919 | MAINT=$MAINTAINER_MODE_TRUE | |
920 | ||
921 | ||
922 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
3ef1cea8 | 923 | echo "configure:924: checking for Cygwin environment" >&5 |
dfac8a13 TT |
924 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
926 | else | |
927 | cat > conftest.$ac_ext <<EOF | |
3ef1cea8 | 928 | #line 929 "configure" |
dfac8a13 TT |
929 | #include "confdefs.h" |
930 | ||
931 | int main() { | |
932 | ||
933 | #ifndef __CYGWIN__ | |
934 | #define __CYGWIN__ __CYGWIN32__ | |
935 | #endif | |
936 | return __CYGWIN__; | |
937 | ; return 0; } | |
938 | EOF | |
3ef1cea8 | 939 | if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dfac8a13 TT |
940 | rm -rf conftest* |
941 | ac_cv_cygwin=yes | |
942 | else | |
943 | echo "configure: failed program was:" >&5 | |
944 | cat conftest.$ac_ext >&5 | |
945 | rm -rf conftest* | |
946 | ac_cv_cygwin=no | |
947 | fi | |
948 | rm -f conftest* | |
949 | rm -f conftest* | |
950 | fi | |
951 | ||
952 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
953 | CYGWIN= | |
954 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
955 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
3ef1cea8 | 956 | echo "configure:957: checking for mingw32 environment" >&5 |
dfac8a13 TT |
957 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
959 | else | |
960 | cat > conftest.$ac_ext <<EOF | |
3ef1cea8 | 961 | #line 962 "configure" |
dfac8a13 TT |
962 | #include "confdefs.h" |
963 | ||
964 | int main() { | |
965 | return __MINGW32__; | |
966 | ; return 0; } | |
967 | EOF | |
3ef1cea8 | 968 | if { (eval echo configure:969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dfac8a13 TT |
969 | rm -rf conftest* |
970 | ac_cv_mingw32=yes | |
971 | else | |
972 | echo "configure: failed program was:" >&5 | |
973 | cat conftest.$ac_ext >&5 | |
974 | rm -rf conftest* | |
975 | ac_cv_mingw32=no | |
976 | fi | |
977 | rm -f conftest* | |
978 | rm -f conftest* | |
979 | fi | |
980 | ||
981 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
982 | MINGW32= | |
983 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
984 | ||
985 | ||
986 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
3ef1cea8 | 987 | echo "configure:988: checking for executable suffix" >&5 |
dfac8a13 TT |
988 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
990 | else | |
991 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
992 | ac_cv_exeext=.exe | |
993 | else | |
994 | rm -f conftest* | |
995 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
996 | ac_cv_exeext= | |
3ef1cea8 | 997 | if { (eval echo configure:998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
dfac8a13 TT |
998 | for file in conftest.*; do |
999 | case $file in | |
1000 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
1001 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
1002 | esac | |
1003 | done | |
1004 | else | |
1005 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1006 | fi | |
1007 | rm -f conftest* | |
1008 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1009 | fi | |
1010 | fi | |
1011 | ||
1012 | EXEEXT="" | |
1013 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1014 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1015 | ac_exeext=$EXEEXT | |
1016 | ||
1017 | ||
1018 | ac_aux_dir= | |
1019 | for ac_dir in .. $srcdir/..; do | |
1020 | if test -f $ac_dir/install-sh; then | |
1021 | ac_aux_dir=$ac_dir | |
1022 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1023 | break | |
1024 | elif test -f $ac_dir/install.sh; then | |
1025 | ac_aux_dir=$ac_dir | |
1026 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1027 | break | |
1028 | fi | |
1029 | done | |
1030 | if test -z "$ac_aux_dir"; then | |
1031 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | |
1032 | fi | |
1033 | ac_config_guess=$ac_aux_dir/config.guess | |
1034 | ac_config_sub=$ac_aux_dir/config.sub | |
1035 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1036 | ||
1037 | ||
1038 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
1039 | if test "${with_target_subdir+set}" = set; then | |
1040 | withval="$with_target_subdir" | |
1041 | : | |
1042 | fi | |
1043 | ||
1044 | # Check whether --with-cross-host or --without-cross-host was given. | |
1045 | if test "${with_cross_host+set}" = set; then | |
1046 | withval="$with_cross_host" | |
1047 | : | |
1048 | fi | |
1049 | ||
1050 | ||
1051 | # Check whether --enable-multilib or --disable-multilib was given. | |
1052 | if test "${enable_multilib+set}" = set; then | |
1053 | enableval="$enable_multilib" | |
1054 | case "${enableval}" in | |
1055 | yes) multilib=yes ;; | |
1056 | no) multilib=no ;; | |
1057 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
1058 | esac | |
1059 | else | |
1060 | multilib=yes | |
1061 | fi | |
1062 | ||
1063 | ||
1064 | if test "${srcdir}" = "."; then | |
1065 | if test "${with_target_subdir}" != "."; then | |
1066 | zlib_basedir="${srcdir}/${with_multisrctop}../" | |
1067 | else | |
1068 | zlib_basedir="${srcdir}/${with_multisrctop}" | |
1069 | fi | |
1070 | else | |
1071 | zlib_basedir="${srcdir}/" | |
1072 | fi | |
1073 | ||
1074 | ||
79a9a529 TT |
1075 | # Check whether --with-system-zlib or --without-system-zlib was given. |
1076 | if test "${with_system_zlib+set}" = set; then | |
1077 | withval="$with_system_zlib" | |
1078 | : | |
1079 | fi | |
1080 | ||
1081 | ||
025fd00e | 1082 | |
dfac8a13 TT |
1083 | # Extract the first word of "gcc", so it can be a program name with args. |
1084 | set dummy gcc; ac_word=$2 | |
1085 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
025fd00e | 1086 | echo "configure:1087: checking for $ac_word" >&5 |
dfac8a13 TT |
1087 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1089 | else | |
1090 | if test -n "$CC"; then | |
1091 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1092 | else | |
1093 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1094 | ac_dummy="$PATH" | |
1095 | for ac_dir in $ac_dummy; do | |
1096 | test -z "$ac_dir" && ac_dir=. | |
1097 | if test -f $ac_dir/$ac_word; then | |
1098 | ac_cv_prog_CC="gcc" | |
1099 | break | |
1100 | fi | |
1101 | done | |
1102 | IFS="$ac_save_ifs" | |
1103 | fi | |
1104 | fi | |
1105 | CC="$ac_cv_prog_CC" | |
1106 | if test -n "$CC"; then | |
1107 | echo "$ac_t""$CC" 1>&6 | |
1108 | else | |
1109 | echo "$ac_t""no" 1>&6 | |
1110 | fi | |
1111 | ||
1112 | if test -z "$CC"; then | |
1113 | # Extract the first word of "cc", so it can be a program name with args. | |
1114 | set dummy cc; ac_word=$2 | |
1115 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
025fd00e | 1116 | echo "configure:1117: checking for $ac_word" >&5 |
dfac8a13 TT |
1117 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1119 | else | |
1120 | if test -n "$CC"; then | |
1121 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1122 | else | |
1123 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1124 | ac_prog_rejected=no | |
1125 | ac_dummy="$PATH" | |
1126 | for ac_dir in $ac_dummy; do | |
1127 | test -z "$ac_dir" && ac_dir=. | |
1128 | if test -f $ac_dir/$ac_word; then | |
1129 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1130 | ac_prog_rejected=yes | |
1131 | continue | |
1132 | fi | |
1133 | ac_cv_prog_CC="cc" | |
1134 | break | |
1135 | fi | |
1136 | done | |
1137 | IFS="$ac_save_ifs" | |
1138 | if test $ac_prog_rejected = yes; then | |
1139 | # We found a bogon in the path, so make sure we never use it. | |
1140 | set dummy $ac_cv_prog_CC | |
1141 | shift | |
1142 | if test $# -gt 0; then | |
1143 | # We chose a different compiler from the bogus one. | |
1144 | # However, it has the same basename, so the bogon will be chosen | |
1145 | # first if we set CC to just the basename; use the full file name. | |
1146 | shift | |
1147 | set dummy "$ac_dir/$ac_word" "$@" | |
1148 | shift | |
1149 | ac_cv_prog_CC="$@" | |
1150 | fi | |
1151 | fi | |
1152 | fi | |
1153 | fi | |
1154 | CC="$ac_cv_prog_CC" | |
1155 | if test -n "$CC"; then | |
1156 | echo "$ac_t""$CC" 1>&6 | |
1157 | else | |
1158 | echo "$ac_t""no" 1>&6 | |
1159 | fi | |
1160 | ||
1161 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1162 | fi | |
1163 | ||
1164 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
025fd00e | 1165 | echo "configure:1166: checking whether we are using GNU C" >&5 |
dfac8a13 TT |
1166 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1168 | else | |
1169 | cat > conftest.c <<EOF | |
1170 | #ifdef __GNUC__ | |
1171 | yes; | |
1172 | #endif | |
1173 | EOF | |
025fd00e | 1174 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
dfac8a13 TT |
1175 | ac_cv_prog_gcc=yes |
1176 | else | |
1177 | ac_cv_prog_gcc=no | |
1178 | fi | |
1179 | fi | |
1180 | ||
1181 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1182 | ||
1183 | if test $ac_cv_prog_gcc = yes; then | |
1184 | GCC=yes | |
1185 | ac_test_CFLAGS="${CFLAGS+set}" | |
1186 | ac_save_CFLAGS="$CFLAGS" | |
1187 | CFLAGS= | |
1188 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
025fd00e | 1189 | echo "configure:1190: checking whether ${CC-cc} accepts -g" >&5 |
dfac8a13 TT |
1190 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1192 | else | |
1193 | echo 'void f(){}' > conftest.c | |
1194 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1195 | ac_cv_prog_cc_g=yes | |
1196 | else | |
1197 | ac_cv_prog_cc_g=no | |
1198 | fi | |
1199 | rm -f conftest* | |
1200 | ||
1201 | fi | |
1202 | ||
1203 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1204 | if test "$ac_test_CFLAGS" = set; then | |
1205 | CFLAGS="$ac_save_CFLAGS" | |
1206 | elif test $ac_cv_prog_cc_g = yes; then | |
1207 | CFLAGS="-g -O2" | |
1208 | else | |
1209 | CFLAGS="-O2" | |
1210 | fi | |
1211 | else | |
1212 | GCC= | |
1213 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1214 | fi | |
1215 | ||
1216 | # Check whether --enable-shared or --disable-shared was given. | |
1217 | if test "${enable_shared+set}" = set; then | |
1218 | enableval="$enable_shared" | |
1219 | p=${PACKAGE-default} | |
1220 | case "$enableval" in | |
1221 | yes) enable_shared=yes ;; | |
1222 | no) enable_shared=no ;; | |
1223 | *) | |
1224 | enable_shared=no | |
1225 | # Look at the argument we got. We use all the common list separators. | |
1226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1227 | for pkg in $enableval; do | |
1228 | if test "X$pkg" = "X$p"; then | |
1229 | enable_shared=yes | |
1230 | fi | |
1231 | done | |
1232 | IFS="$ac_save_ifs" | |
1233 | ;; | |
1234 | esac | |
1235 | else | |
1236 | enable_shared=yes | |
1237 | fi | |
1238 | ||
1239 | # Check whether --enable-static or --disable-static was given. | |
1240 | if test "${enable_static+set}" = set; then | |
1241 | enableval="$enable_static" | |
1242 | p=${PACKAGE-default} | |
1243 | case "$enableval" in | |
1244 | yes) enable_static=yes ;; | |
1245 | no) enable_static=no ;; | |
1246 | *) | |
1247 | enable_static=no | |
1248 | # Look at the argument we got. We use all the common list separators. | |
1249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1250 | for pkg in $enableval; do | |
1251 | if test "X$pkg" = "X$p"; then | |
1252 | enable_static=yes | |
1253 | fi | |
1254 | done | |
1255 | IFS="$ac_save_ifs" | |
1256 | ;; | |
1257 | esac | |
1258 | else | |
1259 | enable_static=yes | |
1260 | fi | |
1261 | ||
1262 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1263 | if test "${enable_fast_install+set}" = set; then | |
1264 | enableval="$enable_fast_install" | |
1265 | p=${PACKAGE-default} | |
1266 | case "$enableval" in | |
1267 | yes) enable_fast_install=yes ;; | |
1268 | no) enable_fast_install=no ;; | |
1269 | *) | |
1270 | enable_fast_install=no | |
1271 | # Look at the argument we got. We use all the common list separators. | |
1272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1273 | for pkg in $enableval; do | |
1274 | if test "X$pkg" = "X$p"; then | |
1275 | enable_fast_install=yes | |
1276 | fi | |
1277 | done | |
1278 | IFS="$ac_save_ifs" | |
1279 | ;; | |
1280 | esac | |
1281 | else | |
1282 | enable_fast_install=yes | |
1283 | fi | |
1284 | ||
1285 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1286 | set dummy ranlib; ac_word=$2 | |
1287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
025fd00e | 1288 | echo "configure:1289: checking for $ac_word" >&5 |
dfac8a13 TT |
1289 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1291 | else | |
1292 | if test -n "$RANLIB"; then | |
1293 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1294 | else | |
1295 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1296 | ac_dummy="$PATH" | |
1297 | for ac_dir in $ac_dummy; do | |
1298 | test -z "$ac_dir" && ac_dir=. | |
1299 | if test -f $ac_dir/$ac_word; then | |
1300 | ac_cv_prog_RANLIB="ranlib" | |
1301 | break | |
1302 | fi | |
1303 | done | |
1304 | IFS="$ac_save_ifs" | |
1305 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1306 | fi | |
1307 | fi | |
1308 | RANLIB="$ac_cv_prog_RANLIB" | |
1309 | if test -n "$RANLIB"; then | |
1310 | echo "$ac_t""$RANLIB" 1>&6 | |
1311 | else | |
1312 | echo "$ac_t""no" 1>&6 | |
1313 | fi | |
1314 | ||
dfac8a13 TT |
1315 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1316 | if test "${with_gnu_ld+set}" = set; then | |
1317 | withval="$with_gnu_ld" | |
1318 | test "$withval" = no || with_gnu_ld=yes | |
1319 | else | |
1320 | with_gnu_ld=no | |
1321 | fi | |
1322 | ||
1323 | ac_prog=ld | |
1324 | if test "$ac_cv_prog_gcc" = yes; then | |
1325 | # Check if gcc -print-prog-name=ld gives a path. | |
1326 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
025fd00e | 1327 | echo "configure:1328: checking for ld used by GCC" >&5 |
dfac8a13 TT |
1328 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1329 | case "$ac_prog" in | |
1330 | # Accept absolute paths. | |
025fd00e | 1331 | /* | [A-Za-z]:[\\/]*) |
dfac8a13 TT |
1332 | re_direlt='/[^/][^/]*/\.\./' |
1333 | # Canonicalize the path of ld | |
1334 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1335 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1336 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1337 | done | |
1338 | test -z "$LD" && LD="$ac_prog" | |
1339 | ;; | |
1340 | "") | |
1341 | # If it fails, then pretend we aren't using GCC. | |
1342 | ac_prog=ld | |
1343 | ;; | |
1344 | *) | |
1345 | # If it is relative, then search for the first ld in PATH. | |
1346 | with_gnu_ld=unknown | |
1347 | ;; | |
1348 | esac | |
1349 | elif test "$with_gnu_ld" = yes; then | |
1350 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
025fd00e | 1351 | echo "configure:1352: checking for GNU ld" >&5 |
dfac8a13 TT |
1352 | else |
1353 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
025fd00e | 1354 | echo "configure:1355: checking for non-GNU ld" >&5 |
dfac8a13 TT |
1355 | fi |
1356 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
1357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1358 | else | |
1359 | if test -z "$LD"; then | |
025fd00e | 1360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
dfac8a13 TT |
1361 | for ac_dir in $PATH; do |
1362 | test -z "$ac_dir" && ac_dir=. | |
025fd00e | 1363 | if test -f "$ac_dir/$ac_prog"; then |
dfac8a13 TT |
1364 | ac_cv_path_LD="$ac_dir/$ac_prog" |
1365 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1366 | # but apparently some GNU ld's only accept -v. | |
1367 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1368 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1369 | test "$with_gnu_ld" != no && break | |
1370 | else | |
1371 | test "$with_gnu_ld" != yes && break | |
1372 | fi | |
1373 | fi | |
1374 | done | |
1375 | IFS="$ac_save_ifs" | |
1376 | else | |
1377 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
1378 | fi | |
1379 | fi | |
1380 | ||
1381 | LD="$ac_cv_path_LD" | |
1382 | if test -n "$LD"; then | |
1383 | echo "$ac_t""$LD" 1>&6 | |
1384 | else | |
1385 | echo "$ac_t""no" 1>&6 | |
1386 | fi | |
1387 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1388 | ||
1389 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
025fd00e | 1390 | echo "configure:1391: checking if the linker ($LD) is GNU ld" >&5 |
dfac8a13 TT |
1391 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1393 | else | |
1394 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1395 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1396 | ac_cv_prog_gnu_ld=yes | |
1397 | else | |
1398 | ac_cv_prog_gnu_ld=no | |
1399 | fi | |
1400 | fi | |
1401 | ||
1402 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
1403 | ||
1404 | ||
1405 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
025fd00e | 1406 | echo "configure:1407: checking for BSD-compatible nm" >&5 |
dfac8a13 TT |
1407 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1409 | else | |
1410 | if test -n "$NM"; then | |
1411 | # Let the user override the test. | |
1412 | ac_cv_path_NM="$NM" | |
1413 | else | |
025fd00e | 1414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
dfac8a13 TT |
1415 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1416 | test -z "$ac_dir" && ac_dir=. | |
025fd00e | 1417 | if test -f $ac_dir/nm; then |
dfac8a13 TT |
1418 | # Check to see if the nm accepts a BSD-compat flag. |
1419 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1420 | # nm: unknown option "B" ignored | |
1421 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1422 | ac_cv_path_NM="$ac_dir/nm -B" | |
1423 | break | |
1424 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1425 | ac_cv_path_NM="$ac_dir/nm -p" | |
1426 | break | |
1427 | else | |
1428 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but | |
1429 | continue # so that we can try to find one that supports BSD flags | |
1430 | fi | |
1431 | fi | |
1432 | done | |
1433 | IFS="$ac_save_ifs" | |
1434 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
1435 | fi | |
1436 | fi | |
1437 | ||
1438 | NM="$ac_cv_path_NM" | |
1439 | echo "$ac_t""$NM" 1>&6 | |
1440 | ||
1441 | ||
025fd00e TT |
1442 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
1443 | echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 | |
1444 | echo "configure:1445: checking command to parse $NM output" >&5 | |
1445 | if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then | |
1446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1447 | else | |
1448 | # These are sane defaults that work on at least a few old systems. | |
1449 | # {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
1450 | ||
1451 | # Character class describing NM global symbol codes. | |
1452 | ac_symcode='[BCDEGRST]' | |
1453 | ||
1454 | # Regexp to match symbols that can be accessed directly from C. | |
1455 | ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
1456 | ||
1457 | # Transform the above into a raw symbol and a C symbol. | |
1458 | ac_symxfrm='\1 \2\3 \3' | |
1459 | ||
1460 | # Transform an extracted symbol line into a proper C declaration | |
1461 | ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
1462 | ||
1463 | # Define system-specific variables. | |
1464 | case "$host_os" in | |
1465 | aix*) | |
1466 | ac_symcode='[BCDT]' | |
1467 | ;; | |
1468 | cygwin* | mingw*) | |
1469 | ac_symcode='[ABCDGISTW]' | |
1470 | ;; | |
1471 | hpux*) | |
1472 | ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
1473 | ;; | |
1474 | irix*) | |
1475 | ac_symcode='[BCDEGRST]' | |
1476 | ;; | |
1477 | solaris*) | |
1478 | ac_symcode='[BDT]' | |
1479 | ;; | |
1480 | esac | |
1481 | ||
1482 | # If we're using GNU nm, then use its standard symbol codes. | |
1483 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
1484 | ac_symcode='[ABCDGISTW]' | |
1485 | fi | |
1486 | ||
1487 | # Try without a prefix undercore, then with it. | |
1488 | for ac_symprfx in "" "_"; do | |
1489 | ||
1490 | ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'" | |
1491 | ||
1492 | # Check to see that the pipe works correctly. | |
1493 | ac_pipe_works=no | |
1494 | rm -f conftest.$ac_ext | |
1495 | cat > conftest.$ac_ext <<EOF | |
1496 | #ifdef __cplusplus | |
1497 | extern "C" { | |
1498 | #endif | |
1499 | char nm_test_var; | |
1500 | void nm_test_func(){} | |
1501 | #ifdef __cplusplus | |
1502 | } | |
1503 | #endif | |
1504 | int main(){nm_test_var='a';nm_test_func;return 0;} | |
1505 | EOF | |
1506 | ||
1507 | if { (eval echo configure:1508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1508 | # Now try to grab the symbols. | |
1509 | ac_nlist=conftest.nm | |
1510 | ||
1511 | if { (eval echo configure:1512: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
1512 | ||
1513 | # Try sorting and uniquifying the output. | |
1514 | if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
1515 | mv -f "$ac_nlist"T "$ac_nlist" | |
1516 | else | |
1517 | rm -f "$ac_nlist"T | |
1518 | fi | |
1519 | ||
1520 | # Make sure that we snagged all the symbols we need. | |
1521 | if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
1522 | if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
1523 | cat <<EOF > conftest.c | |
1524 | #ifdef __cplusplus | |
1525 | extern "C" { | |
1526 | #endif | |
1527 | ||
1528 | EOF | |
1529 | # Now generate the symbol file. | |
1530 | eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c' | |
1531 | ||
1532 | cat <<EOF >> conftest.c | |
1533 | #if defined (__STDC__) && __STDC__ | |
1534 | # define lt_ptr_t void * | |
1535 | #else | |
1536 | # define lt_ptr_t char * | |
1537 | # define const | |
1538 | #endif | |
1539 | ||
1540 | /* The mapping between symbol names and symbols. */ | |
1541 | const struct { | |
1542 | const char *name; | |
1543 | lt_ptr_t address; | |
1544 | } | |
1545 | lt_preloaded_symbols[] = | |
1546 | { | |
1547 | EOF | |
1548 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
1549 | cat <<\EOF >> conftest.c | |
1550 | {0, (lt_ptr_t) 0} | |
1551 | }; | |
1552 | ||
1553 | #ifdef __cplusplus | |
1554 | } | |
1555 | #endif | |
1556 | EOF | |
1557 | # Now try linking the two files. | |
1558 | mv conftest.$ac_objext conftestm.$ac_objext | |
1559 | ac_save_LIBS="$LIBS" | |
1560 | ac_save_CFLAGS="$CFLAGS" | |
1561 | LIBS="conftestm.$ac_objext" | |
1562 | CFLAGS="$CFLAGS$no_builtin_flag" | |
1563 | if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1564 | ac_pipe_works=yes | |
1565 | else | |
1566 | echo "configure: failed program was:" >&5 | |
1567 | cat conftest.c >&5 | |
1568 | fi | |
1569 | LIBS="$ac_save_LIBS" | |
1570 | CFLAGS="$ac_save_CFLAGS" | |
1571 | else | |
1572 | echo "cannot find nm_test_func in $ac_nlist" >&5 | |
1573 | fi | |
1574 | else | |
1575 | echo "cannot find nm_test_var in $ac_nlist" >&5 | |
1576 | fi | |
1577 | else | |
1578 | echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
1579 | fi | |
1580 | else | |
1581 | echo "$progname: failed program was:" >&5 | |
1582 | cat conftest.c >&5 | |
1583 | fi | |
1584 | rm -rf conftest* | |
1585 | ||
1586 | # Do not use the global_symbol_pipe unless it works. | |
1587 | if test "$ac_pipe_works" = yes; then | |
1588 | if test x"$ac_symprfx" = x"_"; then | |
1589 | ac_cv_sys_symbol_underscore=yes | |
1590 | else | |
1591 | ac_cv_sys_symbol_underscore=no | |
1592 | fi | |
1593 | break | |
1594 | else | |
1595 | ac_cv_sys_global_symbol_pipe= | |
1596 | fi | |
1597 | done | |
1598 | ||
1599 | fi | |
1600 | ||
1601 | ||
1602 | ac_result=yes | |
1603 | if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
1604 | ac_result=no | |
1605 | fi | |
1606 | echo "$ac_t""$ac_result" 1>&6 | |
1607 | ||
1608 | echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 | |
1609 | echo "configure:1610: checking for _ prefix in compiled symbols" >&5 | |
1610 | if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then | |
1611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1612 | else | |
1613 | ac_cv_sys_symbol_underscore=no | |
1614 | cat > conftest.$ac_ext <<EOF | |
1615 | void nm_test_func(){} | |
1616 | int main(){nm_test_func;return 0;} | |
1617 | EOF | |
1618 | if { (eval echo configure:1619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1619 | # Now try to grab the symbols. | |
1620 | ac_nlist=conftest.nm | |
1621 | if { (eval echo configure:1622: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
1622 | # See whether the symbols have a leading underscore. | |
1623 | if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
1624 | ac_cv_sys_symbol_underscore=yes | |
1625 | else | |
1626 | if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
1627 | : | |
1628 | else | |
1629 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
1630 | fi | |
1631 | fi | |
1632 | else | |
1633 | echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
1634 | fi | |
1635 | else | |
1636 | echo "configure: failed program was:" >&5 | |
1637 | cat conftest.c >&5 | |
1638 | fi | |
1639 | rm -rf conftest* | |
1640 | ||
1641 | fi | |
1642 | ||
1643 | echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 | |
1644 | USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} | |
1645 | ||
dfac8a13 | 1646 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
025fd00e | 1647 | echo "configure:1648: checking whether ln -s works" >&5 |
dfac8a13 TT |
1648 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1650 | else | |
1651 | rm -f conftestdata | |
1652 | if ln -s X conftestdata 2>/dev/null | |
1653 | then | |
1654 | rm -f conftestdata | |
1655 | ac_cv_prog_LN_S="ln -s" | |
1656 | else | |
1657 | ac_cv_prog_LN_S=ln | |
1658 | fi | |
1659 | fi | |
1660 | LN_S="$ac_cv_prog_LN_S" | |
1661 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1662 | echo "$ac_t""yes" 1>&6 | |
1663 | else | |
1664 | echo "$ac_t""no" 1>&6 | |
1665 | fi | |
1666 | ||
025fd00e TT |
1667 | if test $host != $build; then |
1668 | ac_tool_prefix=${host_alias}- | |
1669 | else | |
1670 | ac_tool_prefix= | |
1671 | fi | |
1672 | ||
dfac8a13 TT |
1673 | |
1674 | # Check for any special flags to pass to ltconfig. | |
1675 | libtool_flags="--cache-file=$cache_file" | |
1676 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
1677 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
1678 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
025fd00e TT |
1679 | test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen" |
1680 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
dfac8a13 TT |
1681 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
1682 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
1683 | ||
1684 | # Some flags need to be propagated to the compiler or linker for good | |
1685 | # libtool support. | |
1686 | case "$host" in | |
1687 | *-*-irix6*) | |
1688 | # Find out which ABI we are using. | |
025fd00e TT |
1689 | echo '#line 1690 "configure"' > conftest.$ac_ext |
1690 | if { (eval echo configure:1691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
dfac8a13 TT |
1691 | case "`/usr/bin/file conftest.o`" in |
1692 | *32-bit*) | |
1693 | LD="${LD-ld} -32" | |
1694 | ;; | |
1695 | *N32*) | |
1696 | LD="${LD-ld} -n32" | |
1697 | ;; | |
1698 | *64-bit*) | |
1699 | LD="${LD-ld} -64" | |
1700 | ;; | |
c45f211e | 1701 | esac |
dfac8a13 TT |
1702 | fi |
1703 | rm -rf conftest* | |
1704 | ;; | |
1705 | ||
1706 | *-*-sco3.2v5*) | |
1707 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1708 | SAVE_CFLAGS="$CFLAGS" | |
1709 | CFLAGS="$CFLAGS -belf" | |
1710 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
025fd00e | 1711 | echo "configure:1712: checking whether the C compiler needs -belf" >&5 |
dfac8a13 TT |
1712 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1714 | else | |
1715 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 1716 | #line 1717 "configure" |
dfac8a13 | 1717 | #include "confdefs.h" |
c45f211e | 1718 | |
dfac8a13 TT |
1719 | int main() { |
1720 | ||
1721 | ; return 0; } | |
c45f211e | 1722 | EOF |
025fd00e | 1723 | if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
dfac8a13 TT |
1724 | rm -rf conftest* |
1725 | lt_cv_cc_needs_belf=yes | |
1726 | else | |
1727 | echo "configure: failed program was:" >&5 | |
1728 | cat conftest.$ac_ext >&5 | |
1729 | rm -rf conftest* | |
1730 | lt_cv_cc_needs_belf=no | |
1731 | fi | |
1732 | rm -f conftest* | |
1733 | fi | |
1734 | ||
1735 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
1736 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1737 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1738 | CFLAGS="$SAVE_CFLAGS" | |
1739 | fi | |
1740 | ;; | |
1741 | ||
025fd00e TT |
1742 | *-*-cygwin*) |
1743 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
1744 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
1745 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1746 | echo "configure:1747: checking for $ac_word" >&5 | |
1747 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
1748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1749 | else | |
1750 | if test -n "$DLLTOOL"; then | |
1751 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1752 | else | |
1753 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1754 | ac_dummy="$PATH" | |
1755 | for ac_dir in $ac_dummy; do | |
1756 | test -z "$ac_dir" && ac_dir=. | |
1757 | if test -f $ac_dir/$ac_word; then | |
1758 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
1759 | break | |
1760 | fi | |
1761 | done | |
1762 | IFS="$ac_save_ifs" | |
1763 | fi | |
1764 | fi | |
1765 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1766 | if test -n "$DLLTOOL"; then | |
1767 | echo "$ac_t""$DLLTOOL" 1>&6 | |
1768 | else | |
1769 | echo "$ac_t""no" 1>&6 | |
1770 | fi | |
1771 | ||
1772 | ||
1773 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
1774 | if test -n "$ac_tool_prefix"; then | |
1775 | # Extract the first word of "dlltool", so it can be a program name with args. | |
1776 | set dummy dlltool; ac_word=$2 | |
1777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1778 | echo "configure:1779: checking for $ac_word" >&5 | |
1779 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
1780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1781 | else | |
1782 | if test -n "$DLLTOOL"; then | |
1783 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1784 | else | |
1785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1786 | ac_dummy="$PATH" | |
1787 | for ac_dir in $ac_dummy; do | |
1788 | test -z "$ac_dir" && ac_dir=. | |
1789 | if test -f $ac_dir/$ac_word; then | |
1790 | ac_cv_prog_DLLTOOL="dlltool" | |
1791 | break | |
1792 | fi | |
1793 | done | |
1794 | IFS="$ac_save_ifs" | |
1795 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
1796 | fi | |
1797 | fi | |
1798 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1799 | if test -n "$DLLTOOL"; then | |
1800 | echo "$ac_t""$DLLTOOL" 1>&6 | |
1801 | else | |
1802 | echo "$ac_t""no" 1>&6 | |
1803 | fi | |
1804 | ||
1805 | else | |
1806 | DLLTOOL="false" | |
1807 | fi | |
1808 | fi | |
1809 | ||
1810 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
1811 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1812 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1813 | echo "configure:1814: checking for $ac_word" >&5 | |
1814 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
1815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1816 | else | |
1817 | if test -n "$AS"; then | |
1818 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1819 | else | |
1820 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1821 | ac_dummy="$PATH" | |
1822 | for ac_dir in $ac_dummy; do | |
1823 | test -z "$ac_dir" && ac_dir=. | |
1824 | if test -f $ac_dir/$ac_word; then | |
1825 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1826 | break | |
1827 | fi | |
1828 | done | |
1829 | IFS="$ac_save_ifs" | |
1830 | fi | |
1831 | fi | |
1832 | AS="$ac_cv_prog_AS" | |
1833 | if test -n "$AS"; then | |
1834 | echo "$ac_t""$AS" 1>&6 | |
1835 | else | |
1836 | echo "$ac_t""no" 1>&6 | |
1837 | fi | |
1838 | ||
1839 | ||
1840 | if test -z "$ac_cv_prog_AS"; then | |
1841 | if test -n "$ac_tool_prefix"; then | |
1842 | # Extract the first word of "as", so it can be a program name with args. | |
1843 | set dummy as; ac_word=$2 | |
1844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1845 | echo "configure:1846: checking for $ac_word" >&5 | |
1846 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
1847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1848 | else | |
1849 | if test -n "$AS"; then | |
1850 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1851 | else | |
1852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1853 | ac_dummy="$PATH" | |
1854 | for ac_dir in $ac_dummy; do | |
1855 | test -z "$ac_dir" && ac_dir=. | |
1856 | if test -f $ac_dir/$ac_word; then | |
1857 | ac_cv_prog_AS="as" | |
1858 | break | |
1859 | fi | |
1860 | done | |
1861 | IFS="$ac_save_ifs" | |
1862 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
1863 | fi | |
1864 | fi | |
1865 | AS="$ac_cv_prog_AS" | |
1866 | if test -n "$AS"; then | |
1867 | echo "$ac_t""$AS" 1>&6 | |
1868 | else | |
1869 | echo "$ac_t""no" 1>&6 | |
1870 | fi | |
1871 | ||
1872 | else | |
1873 | AS="false" | |
1874 | fi | |
1875 | fi | |
1876 | ||
1877 | ||
1878 | ;; | |
c45f211e | 1879 | |
c45f211e TT |
1880 | esac |
1881 | ||
025fd00e TT |
1882 | # enable the --disable-libtool-lock switch |
1883 | ||
1884 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1885 | if test "${enable_libtool_lock+set}" = set; then | |
1886 | enableval="$enable_libtool_lock" | |
1887 | need_locks=$enableval | |
1888 | else | |
1889 | need_locks=yes | |
1890 | fi | |
1891 | ||
1892 | ||
1893 | if test x"$need_locks" = xno; then | |
1894 | libtool_flags="$libtool_flags --disable-lock" | |
1895 | fi | |
1896 | ||
dfac8a13 TT |
1897 | |
1898 | # Save cache, so that ltconfig can load it | |
1899 | cat > confcache <<\EOF | |
1900 | # This file is a shell script that caches the results of configure | |
1901 | # tests run on this system so they can be shared between configure | |
1902 | # scripts and configure runs. It is not useful on other systems. | |
1903 | # If it contains results you don't want to keep, you may remove or edit it. | |
1904 | # | |
1905 | # By default, configure uses ./config.cache as the cache file, | |
1906 | # creating it if it does not exist already. You can give configure | |
1907 | # the --cache-file=FILE option to use a different cache file; that is | |
1908 | # what configure does when it calls configure scripts in | |
1909 | # subdirectories, so they share the cache. | |
1910 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1911 | # config.status only pays attention to the cache file if you give it the | |
1912 | # --recheck option to rerun configure. | |
1913 | # | |
1914 | EOF | |
1915 | # The following way of writing the cache mishandles newlines in values, | |
1916 | # but we know of no workaround that is simple, portable, and efficient. | |
1917 | # So, don't put newlines in cache variables' values. | |
1918 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1919 | # and sets the high bit in the cache file unless we assign to the vars. | |
1920 | (set) 2>&1 | | |
1921 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
1922 | *ac_space=\ *) | |
1923 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1924 | # turns \\\\ into \\, and sed turns \\ into \). | |
1925 | sed -n \ | |
1926 | -e "s/'/'\\\\''/g" \ | |
1927 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1928 | ;; | |
1929 | *) | |
1930 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1931 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1932 | ;; | |
1933 | esac >> confcache | |
1934 | if cmp -s $cache_file confcache; then | |
1935 | : | |
1936 | else | |
1937 | if test -w $cache_file; then | |
1938 | echo "updating cache $cache_file" | |
1939 | cat confcache > $cache_file | |
c45f211e | 1940 | else |
dfac8a13 | 1941 | echo "not updating unwritable cache $cache_file" |
c45f211e TT |
1942 | fi |
1943 | fi | |
dfac8a13 TT |
1944 | rm -f confcache |
1945 | ||
1946 | ||
1947 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
1948 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
025fd00e TT |
1949 | LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ |
1950 | DLLTOOL="$DLLTOOL" AS="$AS" \ | |
dfac8a13 TT |
1951 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
1952 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | |
1953 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
1954 | ||
1955 | # Reload cache, that may have been modified by ltconfig | |
1956 | if test -r "$cache_file"; then | |
1957 | echo "loading cache $cache_file" | |
1958 | . $cache_file | |
1959 | else | |
1960 | echo "creating cache $cache_file" | |
1961 | > $cache_file | |
1962 | fi | |
1963 | ||
1964 | ||
1965 | # This can be used to rebuild libtool when needed | |
1966 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | |
1967 | ||
1968 | # Always use our own libtool. | |
1969 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
1970 | ||
1971 | # Redirect the config.log output again, so that the ltconfig log is not | |
1972 | # clobbered by the next message. | |
1973 | exec 5>>./config.log | |
1974 | ||
1975 | ||
1976 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then | |
1977 | COMPPATH=. | |
1978 | else | |
1979 | COMPPATH=.. | |
1980 | fi | |
1981 | ||
1982 | ||
1983 | ||
1984 | if test -n "$with_cross_host"; then | |
1985 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
1986 | # may not work correctly, because the compiler may not be able to | |
1987 | # link executables. | |
1988 | ||
1989 | # We assume newlib. This lets us hard-code the functions we know | |
1990 | # we'll have. | |
1991 | cat >> confdefs.h <<\EOF | |
1992 | #define HAVE_MEMCPY 1 | |
1993 | EOF | |
1994 | ||
1995 | cat >> confdefs.h <<\EOF | |
1996 | #define HAVE_STRERROR 1 | |
1997 | EOF | |
1998 | ||
79a9a529 TT |
1999 | |
2000 | # We ignore --with-system-zlib in this case. | |
2001 | target_all=libzgcj.la | |
dfac8a13 TT |
2002 | else |
2003 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
025fd00e | 2004 | echo "configure:2005: checking how to run the C preprocessor" >&5 |
dfac8a13 TT |
2005 | # On Suns, sometimes $CPP names a directory. |
2006 | if test -n "$CPP" && test -d "$CPP"; then | |
2007 | CPP= | |
2008 | fi | |
2009 | if test -z "$CPP"; then | |
2010 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2012 | else | |
2013 | # This must be in double quotes, not single quotes, because CPP may get | |
2014 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2015 | CPP="${CC-cc} -E" | |
2016 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2017 | # not just through cpp. | |
2018 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2019 | #line 2020 "configure" |
dfac8a13 TT |
2020 | #include "confdefs.h" |
2021 | #include <assert.h> | |
2022 | Syntax Error | |
2023 | EOF | |
2024 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
025fd00e | 2025 | { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2026 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2027 | if test -z "$ac_err"; then | |
2028 | : | |
2029 | else | |
2030 | echo "$ac_err" >&5 | |
2031 | echo "configure: failed program was:" >&5 | |
2032 | cat conftest.$ac_ext >&5 | |
2033 | rm -rf conftest* | |
2034 | CPP="${CC-cc} -E -traditional-cpp" | |
2035 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2036 | #line 2037 "configure" |
dfac8a13 TT |
2037 | #include "confdefs.h" |
2038 | #include <assert.h> | |
2039 | Syntax Error | |
2040 | EOF | |
2041 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
025fd00e | 2042 | { (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2043 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2044 | if test -z "$ac_err"; then | |
2045 | : | |
2046 | else | |
2047 | echo "$ac_err" >&5 | |
2048 | echo "configure: failed program was:" >&5 | |
2049 | cat conftest.$ac_ext >&5 | |
2050 | rm -rf conftest* | |
2051 | CPP="${CC-cc} -nologo -E" | |
2052 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2053 | #line 2054 "configure" |
dfac8a13 TT |
2054 | #include "confdefs.h" |
2055 | #include <assert.h> | |
2056 | Syntax Error | |
2057 | EOF | |
2058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
025fd00e | 2059 | { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2061 | if test -z "$ac_err"; then | |
2062 | : | |
2063 | else | |
2064 | echo "$ac_err" >&5 | |
2065 | echo "configure: failed program was:" >&5 | |
2066 | cat conftest.$ac_ext >&5 | |
2067 | rm -rf conftest* | |
2068 | CPP=/lib/cpp | |
2069 | fi | |
2070 | rm -f conftest* | |
2071 | fi | |
2072 | rm -f conftest* | |
2073 | fi | |
2074 | rm -f conftest* | |
2075 | ac_cv_prog_CPP="$CPP" | |
2076 | fi | |
2077 | CPP="$ac_cv_prog_CPP" | |
2078 | else | |
2079 | ac_cv_prog_CPP="$CPP" | |
2080 | fi | |
2081 | echo "$ac_t""$CPP" 1>&6 | |
2082 | ||
2083 | for ac_hdr in unistd.h | |
2084 | do | |
2085 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2086 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
025fd00e | 2087 | echo "configure:2088: checking for $ac_hdr" >&5 |
dfac8a13 TT |
2088 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2090 | else | |
2091 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2092 | #line 2093 "configure" |
dfac8a13 TT |
2093 | #include "confdefs.h" |
2094 | #include <$ac_hdr> | |
2095 | EOF | |
2096 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
025fd00e | 2097 | { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2098 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2099 | if test -z "$ac_err"; then | |
2100 | rm -rf conftest* | |
2101 | eval "ac_cv_header_$ac_safe=yes" | |
2102 | else | |
2103 | echo "$ac_err" >&5 | |
2104 | echo "configure: failed program was:" >&5 | |
2105 | cat conftest.$ac_ext >&5 | |
2106 | rm -rf conftest* | |
2107 | eval "ac_cv_header_$ac_safe=no" | |
2108 | fi | |
2109 | rm -f conftest* | |
2110 | fi | |
2111 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2112 | echo "$ac_t""yes" 1>&6 | |
2113 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2114 | cat >> confdefs.h <<EOF | |
2115 | #define $ac_tr_hdr 1 | |
2116 | EOF | |
2117 | ||
2118 | else | |
2119 | echo "$ac_t""no" 1>&6 | |
c45f211e | 2120 | fi |
dfac8a13 TT |
2121 | done |
2122 | ||
2123 | for ac_func in getpagesize | |
2124 | do | |
2125 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
025fd00e | 2126 | echo "configure:2127: checking for $ac_func" >&5 |
dfac8a13 TT |
2127 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2129 | else | |
2130 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2131 | #line 2132 "configure" |
dfac8a13 TT |
2132 | #include "confdefs.h" |
2133 | /* System header to define __stub macros and hopefully few prototypes, | |
2134 | which can conflict with char $ac_func(); below. */ | |
2135 | #include <assert.h> | |
2136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2137 | /* We use char because int might match the return type of a gcc2 | |
2138 | builtin and then its argument prototype would still apply. */ | |
2139 | char $ac_func(); | |
2140 | ||
2141 | int main() { | |
2142 | ||
2143 | /* The GNU C library defines this for functions which it implements | |
2144 | to always fail with ENOSYS. Some functions are actually named | |
2145 | something starting with __ and the normal name is an alias. */ | |
2146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2147 | choke me | |
2148 | #else | |
2149 | $ac_func(); | |
2150 | #endif | |
c45f211e | 2151 | |
dfac8a13 | 2152 | ; return 0; } |
c45f211e | 2153 | EOF |
025fd00e | 2154 | if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
dfac8a13 TT |
2155 | rm -rf conftest* |
2156 | eval "ac_cv_func_$ac_func=yes" | |
c45f211e | 2157 | else |
dfac8a13 TT |
2158 | echo "configure: failed program was:" >&5 |
2159 | cat conftest.$ac_ext >&5 | |
2160 | rm -rf conftest* | |
2161 | eval "ac_cv_func_$ac_func=no" | |
2162 | fi | |
2163 | rm -f conftest* | |
c45f211e TT |
2164 | fi |
2165 | ||
dfac8a13 TT |
2166 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2167 | echo "$ac_t""yes" 1>&6 | |
2168 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2169 | cat >> confdefs.h <<EOF | |
2170 | #define $ac_tr_func 1 | |
c45f211e | 2171 | EOF |
dfac8a13 | 2172 | |
c45f211e | 2173 | else |
dfac8a13 | 2174 | echo "$ac_t""no" 1>&6 |
c45f211e | 2175 | fi |
dfac8a13 TT |
2176 | done |
2177 | ||
2178 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
025fd00e | 2179 | echo "configure:2180: checking for working mmap" >&5 |
dfac8a13 TT |
2180 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2182 | else | |
2183 | if test "$cross_compiling" = yes; then | |
2184 | ac_cv_func_mmap_fixed_mapped=no | |
2185 | else | |
2186 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2187 | #line 2188 "configure" |
dfac8a13 TT |
2188 | #include "confdefs.h" |
2189 | ||
2190 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2191 | Here is a matrix of mmap possibilities: | |
2192 | mmap private not fixed | |
2193 | mmap private fixed at somewhere currently unmapped | |
2194 | mmap private fixed at somewhere already mapped | |
2195 | mmap shared not fixed | |
2196 | mmap shared fixed at somewhere currently unmapped | |
2197 | mmap shared fixed at somewhere already mapped | |
2198 | For private mappings, we should verify that changes cannot be read() | |
2199 | back from the file, nor mmap's back from the file at a different | |
2200 | address. (There have been systems where private was not correctly | |
2201 | implemented like the infamous i386 svr4.0, and systems where the | |
2202 | VM page cache was not coherent with the filesystem buffer cache | |
2203 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2204 | For shared mappings, we should conversely verify that changes get | |
2205 | propogated back to all the places they're supposed to be. | |
c45f211e | 2206 | |
dfac8a13 TT |
2207 | Grep wants private fixed already mapped. |
2208 | The main things grep needs to know about mmap are: | |
2209 | * does it exist and is it safe to write into the mmap'd area | |
2210 | * how to use it (BSD variants) */ | |
c45f211e | 2211 | #include <sys/types.h> |
dfac8a13 | 2212 | #include <fcntl.h> |
c45f211e | 2213 | #include <sys/mman.h> |
dfac8a13 TT |
2214 | |
2215 | /* This mess was copied from the GNU getpagesize.h. */ | |
2216 | #ifndef HAVE_GETPAGESIZE | |
2217 | # ifdef HAVE_UNISTD_H | |
2218 | # include <unistd.h> | |
2219 | # endif | |
2220 | ||
2221 | /* Assume that all systems that can run configure have sys/param.h. */ | |
2222 | # ifndef HAVE_SYS_PARAM_H | |
2223 | # define HAVE_SYS_PARAM_H 1 | |
2224 | # endif | |
2225 | ||
2226 | # ifdef _SC_PAGESIZE | |
2227 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2228 | # else /* no _SC_PAGESIZE */ | |
2229 | # ifdef HAVE_SYS_PARAM_H | |
2230 | # include <sys/param.h> | |
2231 | # ifdef EXEC_PAGESIZE | |
2232 | # define getpagesize() EXEC_PAGESIZE | |
2233 | # else /* no EXEC_PAGESIZE */ | |
2234 | # ifdef NBPG | |
2235 | # define getpagesize() NBPG * CLSIZE | |
2236 | # ifndef CLSIZE | |
2237 | # define CLSIZE 1 | |
2238 | # endif /* no CLSIZE */ | |
2239 | # else /* no NBPG */ | |
2240 | # ifdef NBPC | |
2241 | # define getpagesize() NBPC | |
2242 | # else /* no NBPC */ | |
2243 | # ifdef PAGESIZE | |
2244 | # define getpagesize() PAGESIZE | |
2245 | # endif /* PAGESIZE */ | |
2246 | # endif /* no NBPC */ | |
2247 | # endif /* no NBPG */ | |
2248 | # endif /* no EXEC_PAGESIZE */ | |
2249 | # else /* no HAVE_SYS_PARAM_H */ | |
2250 | # define getpagesize() 8192 /* punt totally */ | |
2251 | # endif /* no HAVE_SYS_PARAM_H */ | |
2252 | # endif /* no _SC_PAGESIZE */ | |
2253 | ||
2254 | #endif /* no HAVE_GETPAGESIZE */ | |
2255 | ||
2256 | #ifdef __cplusplus | |
2257 | extern "C" { void *malloc(unsigned); } | |
2258 | #else | |
2259 | char *malloc(); | |
2260 | #endif | |
2261 | ||
2262 | int | |
2263 | main() | |
2264 | { | |
2265 | char *data, *data2, *data3; | |
2266 | int i, pagesize; | |
2267 | int fd; | |
2268 | ||
2269 | pagesize = getpagesize(); | |
2270 | ||
2271 | /* | |
2272 | * First, make a file with some known garbage in it. | |
2273 | */ | |
2274 | data = malloc(pagesize); | |
2275 | if (!data) | |
2276 | exit(1); | |
2277 | for (i = 0; i < pagesize; ++i) | |
2278 | *(data + i) = rand(); | |
2279 | umask(0); | |
2280 | fd = creat("conftestmmap", 0600); | |
2281 | if (fd < 0) | |
2282 | exit(1); | |
2283 | if (write(fd, data, pagesize) != pagesize) | |
2284 | exit(1); | |
2285 | close(fd); | |
2286 | ||
2287 | /* | |
2288 | * Next, try to mmap the file at a fixed address which | |
2289 | * already has something else allocated at it. If we can, | |
2290 | * also make sure that we see the same garbage. | |
2291 | */ | |
2292 | fd = open("conftestmmap", O_RDWR); | |
2293 | if (fd < 0) | |
2294 | exit(1); | |
2295 | data2 = malloc(2 * pagesize); | |
2296 | if (!data2) | |
2297 | exit(1); | |
2298 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
2299 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
2300 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
2301 | exit(1); | |
2302 | for (i = 0; i < pagesize; ++i) | |
2303 | if (*(data + i) != *(data2 + i)) | |
2304 | exit(1); | |
2305 | ||
2306 | /* | |
2307 | * Finally, make sure that changes to the mapped area | |
2308 | * do not percolate back to the file as seen by read(). | |
2309 | * (This is a bug on some variants of i386 svr4.0.) | |
2310 | */ | |
2311 | for (i = 0; i < pagesize; ++i) | |
2312 | *(data2 + i) = *(data2 + i) + 1; | |
2313 | data3 = malloc(pagesize); | |
2314 | if (!data3) | |
2315 | exit(1); | |
2316 | if (read(fd, data3, pagesize) != pagesize) | |
2317 | exit(1); | |
2318 | for (i = 0; i < pagesize; ++i) | |
2319 | if (*(data + i) != *(data3 + i)) | |
2320 | exit(1); | |
2321 | close(fd); | |
2322 | unlink("conftestmmap"); | |
2323 | exit(0); | |
c45f211e | 2324 | } |
dfac8a13 TT |
2325 | |
2326 | EOF | |
025fd00e | 2327 | if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
dfac8a13 TT |
2328 | then |
2329 | ac_cv_func_mmap_fixed_mapped=yes | |
2330 | else | |
2331 | echo "configure: failed program was:" >&5 | |
2332 | cat conftest.$ac_ext >&5 | |
2333 | rm -fr conftest* | |
2334 | ac_cv_func_mmap_fixed_mapped=no | |
2335 | fi | |
2336 | rm -fr conftest* | |
2337 | fi | |
2338 | ||
2339 | fi | |
2340 | ||
2341 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
2342 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2343 | cat >> confdefs.h <<\EOF | |
2344 | #define HAVE_MMAP 1 | |
2345 | EOF | |
2346 | ||
2347 | fi | |
2348 | ||
2349 | for ac_func in memcpy strerror | |
2350 | do | |
2351 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
025fd00e | 2352 | echo "configure:2353: checking for $ac_func" >&5 |
dfac8a13 TT |
2353 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2355 | else | |
2356 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2357 | #line 2358 "configure" |
dfac8a13 TT |
2358 | #include "confdefs.h" |
2359 | /* System header to define __stub macros and hopefully few prototypes, | |
2360 | which can conflict with char $ac_func(); below. */ | |
2361 | #include <assert.h> | |
2362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2363 | /* We use char because int might match the return type of a gcc2 | |
2364 | builtin and then its argument prototype would still apply. */ | |
2365 | char $ac_func(); | |
2366 | ||
2367 | int main() { | |
2368 | ||
2369 | /* The GNU C library defines this for functions which it implements | |
2370 | to always fail with ENOSYS. Some functions are actually named | |
2371 | something starting with __ and the normal name is an alias. */ | |
2372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2373 | choke me | |
2374 | #else | |
2375 | $ac_func(); | |
2376 | #endif | |
2377 | ||
2378 | ; return 0; } | |
2379 | EOF | |
025fd00e | 2380 | if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
dfac8a13 TT |
2381 | rm -rf conftest* |
2382 | eval "ac_cv_func_$ac_func=yes" | |
2383 | else | |
2384 | echo "configure: failed program was:" >&5 | |
2385 | cat conftest.$ac_ext >&5 | |
2386 | rm -rf conftest* | |
2387 | eval "ac_cv_func_$ac_func=no" | |
2388 | fi | |
2389 | rm -f conftest* | |
2390 | fi | |
2391 | ||
2392 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2393 | echo "$ac_t""yes" 1>&6 | |
2394 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2395 | cat >> confdefs.h <<EOF | |
2396 | #define $ac_tr_func 1 | |
2397 | EOF | |
2398 | ||
2399 | else | |
2400 | echo "$ac_t""no" 1>&6 | |
2401 | fi | |
2402 | done | |
2403 | ||
79a9a529 TT |
2404 | |
2405 | if test "$with_system_zlib" = yes; then | |
2406 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
025fd00e | 2407 | echo "configure:2408: checking for deflate in -lz" >&5 |
79a9a529 TT |
2408 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
2409 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2411 | else | |
2412 | ac_save_LIBS="$LIBS" | |
2413 | LIBS="-lz $LIBS" | |
2414 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2415 | #line 2416 "configure" |
79a9a529 TT |
2416 | #include "confdefs.h" |
2417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2418 | /* We use char because int might match the return type of a gcc2 | |
2419 | builtin and then its argument prototype would still apply. */ | |
2420 | char deflate(); | |
2421 | ||
2422 | int main() { | |
2423 | deflate() | |
2424 | ; return 0; } | |
2425 | EOF | |
025fd00e | 2426 | if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
79a9a529 TT |
2427 | rm -rf conftest* |
2428 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2429 | else | |
2430 | echo "configure: failed program was:" >&5 | |
2431 | cat conftest.$ac_ext >&5 | |
2432 | rm -rf conftest* | |
2433 | eval "ac_cv_lib_$ac_lib_var=no" | |
dfac8a13 | 2434 | fi |
79a9a529 TT |
2435 | rm -f conftest* |
2436 | LIBS="$ac_save_LIBS" | |
2437 | ||
2438 | fi | |
2439 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2440 | echo "$ac_t""yes" 1>&6 | |
2441 | target_all= | |
2442 | else | |
2443 | echo "$ac_t""no" 1>&6 | |
2444 | target_all=libzgcj.la | |
2445 | fi | |
2446 | ||
2447 | else | |
2448 | target_all=libzgcj.la | |
2449 | fi | |
2450 | fi | |
2451 | ||
2452 | ||
dfac8a13 TT |
2453 | |
2454 | for ac_hdr in unistd.h | |
2455 | do | |
2456 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2457 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
025fd00e | 2458 | echo "configure:2459: checking for $ac_hdr" >&5 |
dfac8a13 TT |
2459 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2461 | else | |
2462 | cat > conftest.$ac_ext <<EOF | |
025fd00e | 2463 | #line 2464 "configure" |
dfac8a13 TT |
2464 | #include "confdefs.h" |
2465 | #include <$ac_hdr> | |
2466 | EOF | |
2467 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
025fd00e | 2468 | { (eval echo configure:2469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
dfac8a13 TT |
2469 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2470 | if test -z "$ac_err"; then | |
2471 | rm -rf conftest* | |
2472 | eval "ac_cv_header_$ac_safe=yes" | |
2473 | else | |
2474 | echo "$ac_err" >&5 | |
2475 | echo "configure: failed program was:" >&5 | |
2476 | cat conftest.$ac_ext >&5 | |
2477 | rm -rf conftest* | |
2478 | eval "ac_cv_header_$ac_safe=no" | |
2479 | fi | |
2480 | rm -f conftest* | |
2481 | fi | |
2482 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2483 | echo "$ac_t""yes" 1>&6 | |
2484 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2485 | cat >> confdefs.h <<EOF | |
2486 | #define $ac_tr_hdr 1 | |
2487 | EOF | |
2488 | ||
2489 | else | |
2490 | echo "$ac_t""no" 1>&6 | |
2491 | fi | |
2492 | done | |
2493 | ||
2494 | ||
b48ed568 TT |
2495 | |
2496 | ||
2497 | if test -z "$with_cross_host"; then | |
2498 | USE_LIBDIR_TRUE= | |
2499 | USE_LIBDIR_FALSE='#' | |
2500 | else | |
2501 | USE_LIBDIR_TRUE='#' | |
2502 | USE_LIBDIR_FALSE= | |
2503 | fi | |
2504 | ||
dfac8a13 TT |
2505 | if test "${multilib}" = "yes"; then |
2506 | multilib_arg="--enable-multilib" | |
2507 | else | |
2508 | multilib_arg= | |
2509 | fi | |
2510 | ||
2511 | trap '' 1 2 15 | |
2512 | cat > confcache <<\EOF | |
2513 | # This file is a shell script that caches the results of configure | |
2514 | # tests run on this system so they can be shared between configure | |
2515 | # scripts and configure runs. It is not useful on other systems. | |
2516 | # If it contains results you don't want to keep, you may remove or edit it. | |
2517 | # | |
2518 | # By default, configure uses ./config.cache as the cache file, | |
2519 | # creating it if it does not exist already. You can give configure | |
2520 | # the --cache-file=FILE option to use a different cache file; that is | |
2521 | # what configure does when it calls configure scripts in | |
2522 | # subdirectories, so they share the cache. | |
2523 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2524 | # config.status only pays attention to the cache file if you give it the | |
2525 | # --recheck option to rerun configure. | |
2526 | # | |
c45f211e | 2527 | EOF |
dfac8a13 TT |
2528 | # The following way of writing the cache mishandles newlines in values, |
2529 | # but we know of no workaround that is simple, portable, and efficient. | |
2530 | # So, don't put newlines in cache variables' values. | |
2531 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2532 | # and sets the high bit in the cache file unless we assign to the vars. | |
2533 | (set) 2>&1 | | |
2534 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2535 | *ac_space=\ *) | |
2536 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2537 | # turns \\\\ into \\, and sed turns \\ into \). | |
2538 | sed -n \ | |
2539 | -e "s/'/'\\\\''/g" \ | |
2540 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2541 | ;; | |
2542 | *) | |
2543 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2544 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2545 | ;; | |
2546 | esac >> confcache | |
2547 | if cmp -s $cache_file confcache; then | |
2548 | : | |
c45f211e | 2549 | else |
dfac8a13 TT |
2550 | if test -w $cache_file; then |
2551 | echo "updating cache $cache_file" | |
2552 | cat confcache > $cache_file | |
2553 | else | |
2554 | echo "not updating unwritable cache $cache_file" | |
2555 | fi | |
2556 | fi | |
2557 | rm -f confcache | |
2558 | ||
2559 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2560 | ||
2561 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2562 | # Let make expand exec_prefix. | |
2563 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2564 | ||
2565 | # Any assignment to VPATH causes Sun make to only execute | |
2566 | # the first set of double-colon rules, so remove it if not needed. | |
2567 | # If there is a colon in the path, we need to keep it. | |
2568 | if test "x$srcdir" = x.; then | |
2569 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
c45f211e TT |
2570 | fi |
2571 | ||
dfac8a13 TT |
2572 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
2573 | ||
2574 | # Transform confdefs.h into DEFS. | |
2575 | # Protect against shell expansion while executing Makefile rules. | |
2576 | # Protect against Makefile macro expansion. | |
2577 | cat > conftest.defs <<\EOF | |
2578 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
2579 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
2580 | s%\[%\\&%g | |
2581 | s%\]%\\&%g | |
2582 | s%\$%$$%g | |
2583 | EOF | |
2584 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
2585 | rm -f conftest.defs | |
2586 | ||
2587 | ||
2588 | # Without the "./", some shells look in PATH for config.status. | |
2589 | : ${CONFIG_STATUS=./config.status} | |
2590 | ||
2591 | echo creating $CONFIG_STATUS | |
2592 | rm -f $CONFIG_STATUS | |
2593 | cat > $CONFIG_STATUS <<EOF | |
2594 | #! /bin/sh | |
2595 | # Generated automatically by configure. | |
2596 | # Run this file to recreate the current configuration. | |
2597 | # This directory was configured as follows, | |
2598 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2599 | # | |
2600 | # $0 $ac_configure_args | |
2601 | # | |
2602 | # Compiler output produced by configure, useful for debugging | |
2603 | # configure, is in ./config.log if it exists. | |
2604 | ||
2605 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2606 | for ac_option | |
2607 | do | |
2608 | case "\$ac_option" in | |
2609 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2610 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2611 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2612 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
2613 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
2614 | exit 0 ;; | |
2615 | -help | --help | --hel | --he | --h) | |
2616 | echo "\$ac_cs_usage"; exit 0 ;; | |
2617 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2618 | esac | |
2619 | done | |
2620 | ||
2621 | ac_given_srcdir=$srcdir | |
2622 | ac_given_INSTALL="$INSTALL" | |
2623 | ||
2624 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2625 | EOF | |
2626 | cat >> $CONFIG_STATUS <<EOF | |
2627 | ||
2628 | # Protect against being on the right side of a sed subst in config.status. | |
2629 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2630 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2631 | $ac_vpsub | |
2632 | $extrasub | |
2633 | s%@SHELL@%$SHELL%g | |
2634 | s%@CFLAGS@%$CFLAGS%g | |
2635 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2636 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2637 | s%@FFLAGS@%$FFLAGS%g | |
2638 | s%@DEFS@%$DEFS%g | |
2639 | s%@LDFLAGS@%$LDFLAGS%g | |
2640 | s%@LIBS@%$LIBS%g | |
2641 | s%@exec_prefix@%$exec_prefix%g | |
2642 | s%@prefix@%$prefix%g | |
2643 | s%@program_transform_name@%$program_transform_name%g | |
2644 | s%@bindir@%$bindir%g | |
2645 | s%@sbindir@%$sbindir%g | |
2646 | s%@libexecdir@%$libexecdir%g | |
2647 | s%@datadir@%$datadir%g | |
2648 | s%@sysconfdir@%$sysconfdir%g | |
2649 | s%@sharedstatedir@%$sharedstatedir%g | |
2650 | s%@localstatedir@%$localstatedir%g | |
2651 | s%@libdir@%$libdir%g | |
2652 | s%@includedir@%$includedir%g | |
2653 | s%@oldincludedir@%$oldincludedir%g | |
2654 | s%@infodir@%$infodir%g | |
2655 | s%@mandir@%$mandir%g | |
2656 | s%@host@%$host%g | |
2657 | s%@host_alias@%$host_alias%g | |
2658 | s%@host_cpu@%$host_cpu%g | |
2659 | s%@host_vendor@%$host_vendor%g | |
2660 | s%@host_os@%$host_os%g | |
2661 | s%@target@%$target%g | |
2662 | s%@target_alias@%$target_alias%g | |
2663 | s%@target_cpu@%$target_cpu%g | |
2664 | s%@target_vendor@%$target_vendor%g | |
2665 | s%@target_os@%$target_os%g | |
2666 | s%@build@%$build%g | |
2667 | s%@build_alias@%$build_alias%g | |
2668 | s%@build_cpu@%$build_cpu%g | |
2669 | s%@build_vendor@%$build_vendor%g | |
2670 | s%@build_os@%$build_os%g | |
2671 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2672 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
2673 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2674 | s%@PACKAGE@%$PACKAGE%g | |
2675 | s%@VERSION@%$VERSION%g | |
2676 | s%@ACLOCAL@%$ACLOCAL%g | |
2677 | s%@AUTOCONF@%$AUTOCONF%g | |
2678 | s%@AUTOMAKE@%$AUTOMAKE%g | |
2679 | s%@AUTOHEADER@%$AUTOHEADER%g | |
2680 | s%@MAKEINFO@%$MAKEINFO%g | |
2681 | s%@SET_MAKE@%$SET_MAKE%g | |
2682 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
2683 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
2684 | s%@MAINT@%$MAINT%g | |
2685 | s%@EXEEXT@%$EXEEXT%g | |
2686 | s%@zlib_basedir@%$zlib_basedir%g | |
2687 | s%@CC@%$CC%g | |
2688 | s%@RANLIB@%$RANLIB%g | |
2689 | s%@LD@%$LD%g | |
2690 | s%@NM@%$NM%g | |
025fd00e | 2691 | s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g |
dfac8a13 | 2692 | s%@LN_S@%$LN_S%g |
025fd00e TT |
2693 | s%@DLLTOOL@%$DLLTOOL%g |
2694 | s%@AS@%$AS%g | |
dfac8a13 TT |
2695 | s%@LIBTOOL@%$LIBTOOL%g |
2696 | s%@COMPPATH@%$COMPPATH%g | |
2697 | s%@CPP@%$CPP%g | |
79a9a529 | 2698 | s%@target_all@%$target_all%g |
b48ed568 TT |
2699 | s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g |
2700 | s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g | |
dfac8a13 TT |
2701 | |
2702 | CEOF | |
2703 | EOF | |
2704 | ||
2705 | cat >> $CONFIG_STATUS <<\EOF | |
2706 | ||
2707 | # Split the substitutions into bite-sized pieces for seds with | |
2708 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2709 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2710 | ac_file=1 # Number of current file. | |
2711 | ac_beg=1 # First line for current file. | |
2712 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2713 | ac_more_lines=: | |
2714 | ac_sed_cmds="" | |
2715 | while $ac_more_lines; do | |
2716 | if test $ac_beg -gt 1; then | |
2717 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2718 | else | |
2719 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2720 | fi | |
2721 | if test ! -s conftest.s$ac_file; then | |
2722 | ac_more_lines=false | |
2723 | rm -f conftest.s$ac_file | |
2724 | else | |
2725 | if test -z "$ac_sed_cmds"; then | |
2726 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
c45f211e | 2727 | else |
dfac8a13 TT |
2728 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
2729 | fi | |
2730 | ac_file=`expr $ac_file + 1` | |
2731 | ac_beg=$ac_end | |
2732 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2733 | fi | |
2734 | done | |
2735 | if test -z "$ac_sed_cmds"; then | |
2736 | ac_sed_cmds=cat | |
2737 | fi | |
2738 | EOF | |
2739 | ||
2740 | cat >> $CONFIG_STATUS <<EOF | |
2741 | ||
2742 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
2743 | EOF | |
2744 | cat >> $CONFIG_STATUS <<\EOF | |
2745 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2746 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2747 | case "$ac_file" in | |
2748 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2749 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2750 | *) ac_file_in="${ac_file}.in" ;; | |
2751 | esac | |
2752 | ||
2753 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
2754 | ||
2755 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2756 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2757 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2758 | # The file is in a subdirectory. | |
2759 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2760 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2761 | # A "../" for each directory in $ac_dir_suffix. | |
2762 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2763 | else | |
2764 | ac_dir_suffix= ac_dots= | |
2765 | fi | |
2766 | ||
2767 | case "$ac_given_srcdir" in | |
2768 | .) srcdir=. | |
2769 | if test -z "$ac_dots"; then top_srcdir=. | |
2770 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2771 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2772 | *) # Relative path. | |
2773 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2774 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2775 | esac | |
2776 | ||
2777 | case "$ac_given_INSTALL" in | |
2778 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2779 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2780 | esac | |
2781 | ||
2782 | echo creating "$ac_file" | |
2783 | rm -f "$ac_file" | |
2784 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2785 | case "$ac_file" in | |
2786 | *Makefile*) ac_comsub="1i\\ | |
2787 | # $configure_input" ;; | |
2788 | *) ac_comsub= ;; | |
2789 | esac | |
2790 | ||
2791 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2792 | sed -e "$ac_comsub | |
2793 | s%@configure_input@%$configure_input%g | |
2794 | s%@srcdir@%$srcdir%g | |
2795 | s%@top_srcdir@%$top_srcdir%g | |
2796 | s%@INSTALL@%$INSTALL%g | |
2797 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2798 | fi; done | |
2799 | rm -f conftest.s* | |
2800 | ||
2801 | EOF | |
2802 | cat >> $CONFIG_STATUS <<EOF | |
2803 | srcdir=${srcdir} | |
2804 | host=${host} | |
2805 | target=${target} | |
2806 | with_multisubdir=${with_multisubdir} | |
2807 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
2808 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
2809 | zlib_basedir=${zlib_basedir} | |
2810 | CC="${CC}" | |
2811 | CXX="${CXX}" | |
2812 | ||
2813 | EOF | |
2814 | cat >> $CONFIG_STATUS <<\EOF | |
2815 | if test -n "$CONFIG_FILES"; then | |
2816 | ac_file=Makefile . ${zlib_basedir}/../config-ml.in | |
2817 | fi | |
2818 | exit 0 | |
2819 | EOF | |
2820 | chmod +x $CONFIG_STATUS | |
2821 | rm -fr confdefs* $ac_clean_files | |
2822 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
c45f211e | 2823 |