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