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