]>
Commit | Line | Data |
---|---|---|
cd6ede75 UD |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in CVSid | |
4 | ||
5 | ||
6 | ||
7 | ||
650425ce UD |
8 | |
9 | ||
10 | ||
11 | ||
63bda0c1 UD |
12 | |
13 | ||
cd6ede75 | 14 | # Guess values for system-dependent variables and create Makefiles. |
b43b13ac | 15 | # Generated automatically using autoconf version 2.14.1 |
cd6ede75 UD |
16 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
17 | # | |
18 | # This configure script is free software; the Free Software Foundation | |
19 | # gives unlimited permission to copy, distribute and modify it. | |
20 | ||
21 | # Defaults: | |
22 | ac_help= | |
23 | ac_default_prefix=/usr/local | |
24 | # Any additions from configure.in: | |
25 | ac_help="$ac_help | |
26 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)" | |
27 | ac_help="$ac_help | |
28 | --with-gettext=DIR find GNU gettext source code in DIR (not needed)" | |
c8f3e6db UD |
29 | ac_help="$ac_help |
30 | --with-gd=DIR find libgd include dir and library with prefix DIR" | |
e41db95b UD |
31 | ac_help="$ac_help |
32 | --with-gd-include=DIR find libgd include files in DIR" | |
33 | ac_help="$ac_help | |
34 | --with-gd-lib=DIR find libgd library files in DIR" | |
cd6ede75 UD |
35 | ac_help="$ac_help |
36 | --with-fp if using floating-point hardware [default=yes]" | |
37 | ac_help="$ac_help | |
a5a0310d | 38 | --with-binutils=PATH specify location of binutils (as and ld)" |
cd6ede75 UD |
39 | ac_help="$ac_help |
40 | --with-elf if using the ELF object format" | |
d67281a7 UD |
41 | ac_help="$ac_help |
42 | --without-cvs if CVS should not be used" | |
3c720987 UD |
43 | ac_help="$ac_help |
44 | --with-headers=PATH location of system headers to use | |
45 | [e.g. /usr/src/linux/include] | |
46 | [default=compiler default]" | |
cd6ede75 UD |
47 | ac_help="$ac_help |
48 | --enable-libio build in GNU libio instead of GNU stdio" | |
49 | ac_help="$ac_help | |
50 | --disable-sanity-checks really do not use threads (should not be used | |
51 | except in special situations) [default=yes]" | |
52 | ac_help="$ac_help | |
53 | --enable-shared build shared library [default=yes if GNU ld & ELF]" | |
54 | ac_help="$ac_help | |
55 | --enable-profile build profiled library [default=yes]" | |
56 | ac_help="$ac_help | |
57 | --enable-omitfp build undebuggable optimized library [default=no]" | |
58 | ac_help="$ac_help | |
59 | --enable-bounded build with runtime bounds checking [default=no]" | |
650425ce UD |
60 | ac_help="$ac_help |
61 | --disable-versioning do not include versioning information in the | |
62 | library objects [default=yes if supported]" | |
cd6ede75 | 63 | ac_help="$ac_help |
73237de3 UD |
64 | --enable-add-ons[=DIR1,DIR2]... |
65 | configure and build add-ons in DIR1,DIR2,... | |
66 | search for add-ons if no parameter given" | |
cd6ede75 UD |
67 | ac_help="$ac_help |
68 | --enable-static-nss build static NSS modules [default=no]" | |
73237de3 | 69 | ac_help="$ac_help |
310b3460 | 70 | --disable-force-install don't force installation of files from this package, |
73237de3 | 71 | even if they are older than the installed files" |
958f238f | 72 | ac_help="$ac_help |
4a307a98 | 73 | --enable-kernel=VERSION compile for compatibility with kernel not older |
958f238f | 74 | than VERSION" |
cd6ede75 UD |
75 | |
76 | # Initialize some variables set by options. | |
77 | # The variables have the same names as the options, with | |
78 | # dashes changed to underlines. | |
79 | build=NONE | |
80 | cache_file=./config.cache | |
81 | exec_prefix=NONE | |
82 | host=NONE | |
83 | no_create= | |
84 | nonopt=NONE | |
85 | no_recursion= | |
86 | prefix=NONE | |
87 | program_prefix=NONE | |
88 | program_suffix=NONE | |
89 | program_transform_name=s,x,x, | |
90 | silent= | |
91 | site= | |
92 | srcdir= | |
93 | target=NONE | |
94 | verbose= | |
95 | x_includes=NONE | |
96 | x_libraries=NONE | |
97 | bindir='${exec_prefix}/bin' | |
98 | sbindir='${exec_prefix}/sbin' | |
99 | libexecdir='${exec_prefix}/libexec' | |
100 | datadir='${prefix}/share' | |
101 | sysconfdir='${prefix}/etc' | |
102 | sharedstatedir='${prefix}/com' | |
103 | localstatedir='${prefix}/var' | |
104 | libdir='${exec_prefix}/lib' | |
105 | includedir='${prefix}/include' | |
106 | oldincludedir='/usr/include' | |
107 | infodir='${prefix}/info' | |
108 | mandir='${prefix}/man' | |
109 | ||
110 | # Initialize some other variables. | |
111 | subdirs= | |
112 | MFLAGS= MAKEFLAGS= | |
5c2a0669 | 113 | SHELL=${CONFIG_SHELL-/bin/sh} |
cd6ede75 UD |
114 | # Maximum number of lines to put in a shell here document. |
115 | ac_max_here_lines=12 | |
116 | ||
117 | ac_prev= | |
118 | for ac_option | |
119 | do | |
120 | ||
121 | # If the previous option needs an argument, assign it. | |
122 | if test -n "$ac_prev"; then | |
123 | eval "$ac_prev=\$ac_option" | |
124 | ac_prev= | |
125 | continue | |
126 | fi | |
127 | ||
128 | case "$ac_option" in | |
129 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
130 | *) ac_optarg= ;; | |
131 | esac | |
132 | ||
133 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
134 | ||
135 | case "$ac_option" in | |
136 | ||
137 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
138 | ac_prev=bindir ;; | |
139 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
140 | bindir="$ac_optarg" ;; | |
141 | ||
142 | -build | --build | --buil | --bui | --bu) | |
143 | ac_prev=build ;; | |
144 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
145 | build="$ac_optarg" ;; | |
146 | ||
147 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
148 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
149 | ac_prev=cache_file ;; | |
150 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
151 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
152 | cache_file="$ac_optarg" ;; | |
153 | ||
154 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
155 | ac_prev=datadir ;; | |
156 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
157 | | --da=*) | |
158 | datadir="$ac_optarg" ;; | |
159 | ||
160 | -disable-* | --disable-*) | |
161 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
162 | # Reject names that are not valid shell variable names. | |
163 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
164 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
165 | fi | |
166 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
167 | eval "enable_${ac_feature}=no" ;; | |
168 | ||
169 | -enable-* | --enable-*) | |
170 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
171 | # Reject names that are not valid shell variable names. | |
172 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
173 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
174 | fi | |
175 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
176 | case "$ac_option" in | |
177 | *=*) ;; | |
178 | *) ac_optarg=yes ;; | |
179 | esac | |
180 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
181 | ||
182 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
183 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
184 | | --exec | --exe | --ex) | |
185 | ac_prev=exec_prefix ;; | |
186 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
187 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
188 | | --exec=* | --exe=* | --ex=*) | |
189 | exec_prefix="$ac_optarg" ;; | |
190 | ||
191 | -gas | --gas | --ga | --g) | |
192 | # Obsolete; use --with-gas. | |
193 | with_gas=yes ;; | |
194 | ||
195 | -help | --help | --hel | --he) | |
196 | # Omit some internal or obsolete options to make the list less imposing. | |
197 | # This message is too long to be a string in the A/UX 3.1 sh. | |
198 | cat << EOF | |
199 | Usage: configure [options] [host] | |
200 | Options: [defaults in brackets after descriptions] | |
201 | Configuration: | |
202 | --cache-file=FILE cache test results in FILE | |
203 | --help print this message | |
204 | --no-create do not create output files | |
205 | --quiet, --silent do not print \`checking...' messages | |
206 | --version print the version of autoconf that created configure | |
207 | Directory and file names: | |
208 | --prefix=PREFIX install architecture-independent files in PREFIX | |
209 | [$ac_default_prefix] | |
210 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
211 | [same as prefix] | |
212 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
213 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
214 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
215 | --datadir=DIR read-only architecture-independent data in DIR | |
216 | [PREFIX/share] | |
217 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
218 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
219 | [PREFIX/com] | |
220 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
221 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
222 | --includedir=DIR C header files in DIR [PREFIX/include] | |
223 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
224 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
225 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
226 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
227 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
228 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
229 | --program-transform-name=PROGRAM | |
230 | run sed PROGRAM on installed program names | |
231 | EOF | |
232 | cat << EOF | |
233 | Host type: | |
234 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
235 | --host=HOST configure for HOST [guessed] | |
236 | --target=TARGET configure for TARGET [TARGET=HOST] | |
237 | Features and packages: | |
238 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
239 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
240 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
241 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
242 | --x-includes=DIR X include files are in DIR | |
243 | --x-libraries=DIR X library files are in DIR | |
244 | EOF | |
245 | if test -n "$ac_help"; then | |
246 | echo "--enable and --with options recognized:$ac_help" | |
247 | fi | |
248 | exit 0 ;; | |
249 | ||
250 | -host | --host | --hos | --ho) | |
251 | ac_prev=host ;; | |
252 | -host=* | --host=* | --hos=* | --ho=*) | |
253 | host="$ac_optarg" ;; | |
254 | ||
255 | -includedir | --includedir | --includedi | --included | --include \ | |
256 | | --includ | --inclu | --incl | --inc) | |
257 | ac_prev=includedir ;; | |
258 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
259 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
260 | includedir="$ac_optarg" ;; | |
261 | ||
262 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
263 | ac_prev=infodir ;; | |
264 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
265 | infodir="$ac_optarg" ;; | |
266 | ||
267 | -libdir | --libdir | --libdi | --libd) | |
268 | ac_prev=libdir ;; | |
269 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
270 | libdir="$ac_optarg" ;; | |
271 | ||
272 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
273 | | --libexe | --libex | --libe) | |
274 | ac_prev=libexecdir ;; | |
275 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
276 | | --libexe=* | --libex=* | --libe=*) | |
277 | libexecdir="$ac_optarg" ;; | |
278 | ||
279 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
280 | | --localstate | --localstat | --localsta | --localst \ | |
281 | | --locals | --local | --loca | --loc | --lo) | |
282 | ac_prev=localstatedir ;; | |
283 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
284 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
285 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
286 | localstatedir="$ac_optarg" ;; | |
287 | ||
288 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
289 | ac_prev=mandir ;; | |
290 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
291 | mandir="$ac_optarg" ;; | |
292 | ||
293 | -nfp | --nfp | --nf) | |
294 | # Obsolete; use --without-fp. | |
295 | with_fp=no ;; | |
296 | ||
297 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
298 | | --no-cr | --no-c) | |
299 | no_create=yes ;; | |
300 | ||
301 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
302 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
303 | no_recursion=yes ;; | |
304 | ||
305 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
306 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
307 | | --oldin | --oldi | --old | --ol | --o) | |
308 | ac_prev=oldincludedir ;; | |
309 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
310 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
311 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
312 | oldincludedir="$ac_optarg" ;; | |
313 | ||
314 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
315 | ac_prev=prefix ;; | |
316 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
317 | prefix="$ac_optarg" ;; | |
318 | ||
319 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
320 | | --program-pre | --program-pr | --program-p) | |
321 | ac_prev=program_prefix ;; | |
322 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
323 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
324 | program_prefix="$ac_optarg" ;; | |
325 | ||
326 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
327 | | --program-suf | --program-su | --program-s) | |
328 | ac_prev=program_suffix ;; | |
329 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
330 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
331 | program_suffix="$ac_optarg" ;; | |
332 | ||
333 | -program-transform-name | --program-transform-name \ | |
334 | | --program-transform-nam | --program-transform-na \ | |
335 | | --program-transform-n | --program-transform- \ | |
336 | | --program-transform | --program-transfor \ | |
337 | | --program-transfo | --program-transf \ | |
338 | | --program-trans | --program-tran \ | |
339 | | --progr-tra | --program-tr | --program-t) | |
340 | ac_prev=program_transform_name ;; | |
341 | -program-transform-name=* | --program-transform-name=* \ | |
342 | | --program-transform-nam=* | --program-transform-na=* \ | |
343 | | --program-transform-n=* | --program-transform-=* \ | |
344 | | --program-transform=* | --program-transfor=* \ | |
345 | | --program-transfo=* | --program-transf=* \ | |
346 | | --program-trans=* | --program-tran=* \ | |
347 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
348 | program_transform_name="$ac_optarg" ;; | |
349 | ||
350 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
351 | | -silent | --silent | --silen | --sile | --sil) | |
352 | silent=yes ;; | |
353 | ||
354 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
355 | ac_prev=sbindir ;; | |
356 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
357 | | --sbi=* | --sb=*) | |
358 | sbindir="$ac_optarg" ;; | |
359 | ||
360 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
361 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
362 | | --sharedst | --shareds | --shared | --share | --shar \ | |
363 | | --sha | --sh) | |
364 | ac_prev=sharedstatedir ;; | |
365 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
366 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
367 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
368 | | --sha=* | --sh=*) | |
369 | sharedstatedir="$ac_optarg" ;; | |
370 | ||
371 | -site | --site | --sit) | |
372 | ac_prev=site ;; | |
373 | -site=* | --site=* | --sit=*) | |
374 | site="$ac_optarg" ;; | |
375 | ||
376 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
377 | ac_prev=srcdir ;; | |
378 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
379 | srcdir="$ac_optarg" ;; | |
380 | ||
381 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
382 | | --syscon | --sysco | --sysc | --sys | --sy) | |
383 | ac_prev=sysconfdir ;; | |
384 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
385 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
386 | sysconfdir="$ac_optarg" ;; | |
387 | ||
388 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
389 | ac_prev=target ;; | |
390 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
391 | target="$ac_optarg" ;; | |
392 | ||
393 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
394 | verbose=yes ;; | |
395 | ||
396 | -version | --version | --versio | --versi | --vers) | |
b43b13ac | 397 | echo "configure generated by autoconf version 2.14.1" |
cd6ede75 UD |
398 | exit 0 ;; |
399 | ||
400 | -with-* | --with-*) | |
401 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
402 | # Reject names that are not valid shell variable names. | |
403 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
404 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
405 | fi | |
406 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
407 | case "$ac_option" in | |
408 | *=*) ;; | |
409 | *) ac_optarg=yes ;; | |
410 | esac | |
411 | eval "with_${ac_package}='$ac_optarg'" ;; | |
412 | ||
413 | -without-* | --without-*) | |
414 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
415 | # Reject names that are not valid shell variable names. | |
416 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
417 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
418 | fi | |
419 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
420 | eval "with_${ac_package}=no" ;; | |
421 | ||
422 | --x) | |
423 | # Obsolete; use --with-x. | |
424 | with_x=yes ;; | |
425 | ||
426 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
427 | | --x-incl | --x-inc | --x-in | --x-i) | |
428 | ac_prev=x_includes ;; | |
429 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
430 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
431 | x_includes="$ac_optarg" ;; | |
432 | ||
433 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
434 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
435 | ac_prev=x_libraries ;; | |
436 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
437 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
438 | x_libraries="$ac_optarg" ;; | |
439 | ||
440 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
441 | ;; | |
442 | ||
443 | *) | |
444 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
445 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
446 | fi | |
447 | if test "x$nonopt" != xNONE; then | |
448 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
449 | fi | |
450 | nonopt="$ac_option" | |
451 | ;; | |
452 | ||
453 | esac | |
454 | done | |
455 | ||
456 | if test -n "$ac_prev"; then | |
457 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
458 | fi | |
459 | ||
460 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
461 | ||
462 | # File descriptor usage: | |
463 | # 0 standard input | |
464 | # 1 file creation | |
465 | # 2 errors and warnings | |
466 | # 3 some systems may open it to /dev/tty | |
467 | # 4 used on the Kubota Titan | |
468 | # 6 checking for... messages and results | |
469 | # 5 compiler messages saved in config.log | |
470 | if test "$silent" = yes; then | |
471 | exec 6>/dev/null | |
472 | else | |
473 | exec 6>&1 | |
474 | fi | |
475 | exec 5>./config.log | |
476 | ||
477 | echo "\ | |
478 | This file contains any messages produced by compilers while | |
479 | running configure, to aid debugging if configure makes a mistake. | |
480 | " 1>&5 | |
481 | ||
482 | # Strip out --no-create and --no-recursion so they do not pile up. | |
483 | # Also quote any args containing shell metacharacters. | |
484 | ac_configure_args= | |
485 | for ac_arg | |
486 | do | |
487 | case "$ac_arg" in | |
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c) ;; | |
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
492 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
493 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
494 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
495 | esac | |
496 | done | |
497 | ||
498 | # NLS nuisances. | |
499 | # Only set these to C if already set. These must not be set unconditionally | |
500 | # because not all systems understand e.g. LANG=C (notably SCO). | |
501 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
502 | # Non-C LC_CTYPE values break the ctype check. | |
503 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
504 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
505 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
506 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
507 | ||
508 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
509 | rm -rf conftest* confdefs.h | |
510 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
511 | echo > confdefs.h | |
512 | ||
513 | # A filename unique to this package, relative to the directory that | |
514 | # configure is in, which we can look for to find out if srcdir is correct. | |
515 | ac_unique_file=include/features.h | |
516 | ||
517 | # Find the source files, if location was not specified. | |
518 | if test -z "$srcdir"; then | |
519 | ac_srcdir_defaulted=yes | |
520 | # Try the directory containing this script, then its parent. | |
521 | ac_prog=$0 | |
522 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
523 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
524 | srcdir=$ac_confdir | |
525 | if test ! -r $srcdir/$ac_unique_file; then | |
526 | srcdir=.. | |
527 | fi | |
528 | else | |
529 | ac_srcdir_defaulted=no | |
530 | fi | |
531 | if test ! -r $srcdir/$ac_unique_file; then | |
532 | if test "$ac_srcdir_defaulted" = yes; then | |
533 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
534 | else | |
535 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
536 | fi | |
537 | fi | |
538 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
539 | ||
540 | # Prefer explicitly selected file to automatically selected ones. | |
541 | if test -z "$CONFIG_SITE"; then | |
542 | if test "x$prefix" != xNONE; then | |
543 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
544 | else | |
545 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
546 | fi | |
547 | fi | |
548 | for ac_site_file in $CONFIG_SITE; do | |
549 | if test -r "$ac_site_file"; then | |
550 | echo "loading site script $ac_site_file" | |
551 | . "$ac_site_file" | |
552 | fi | |
553 | done | |
554 | ||
555 | if test -r "$cache_file"; then | |
556 | echo "loading cache $cache_file" | |
b43b13ac | 557 | test -f "$cache_file" && . $cache_file |
cd6ede75 UD |
558 | else |
559 | echo "creating cache $cache_file" | |
560 | > $cache_file | |
561 | fi | |
562 | ||
563 | ac_ext=c | |
564 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
565 | ac_cpp='$CPP $CPPFLAGS' | |
566 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c2a0669 | 567 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
cd6ede75 UD |
568 | cross_compiling=$ac_cv_prog_cc_cross |
569 | ||
5c2a0669 UD |
570 | ac_exeext= |
571 | ac_objext=o | |
cd6ede75 UD |
572 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
573 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
574 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
575 | ac_n= ac_c=' | |
576 | ' ac_t=' ' | |
577 | else | |
578 | ac_n=-n ac_c= ac_t= | |
579 | fi | |
580 | else | |
581 | ac_n= ac_c='\c' ac_t= | |
582 | fi | |
583 | ||
63bda0c1 UD |
584 | if test -r /vmunix; then |
585 | kernel_id=`strings /vmunix | grep UNIX` | |
586 | elif test -r /dynix; then | |
587 | kernel_id=`strings /dynix | grep DYNIX` | |
588 | else | |
589 | kernel_id= | |
590 | fi | |
591 | ||
cd6ede75 UD |
592 | |
593 | ||
444518fe UD |
594 | ac_aux_dir= |
595 | for ac_dir in scripts $srcdir/scripts; do | |
596 | if test -f $ac_dir/install-sh; then | |
597 | ac_aux_dir=$ac_dir | |
598 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
599 | break | |
600 | elif test -f $ac_dir/install.sh; then | |
601 | ac_aux_dir=$ac_dir | |
602 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
603 | break | |
604 | fi | |
605 | done | |
606 | if test -z "$ac_aux_dir"; then | |
607 | { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; } | |
608 | fi | |
b43b13ac UD |
609 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
610 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
611 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
444518fe | 612 | |
cd6ede75 UD |
613 | |
614 | # This will get text that should go into config.make. | |
615 | config_vars= | |
616 | ||
617 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
618 | # Check whether --with-gmp or --without-gmp was given. | |
619 | if test "${with_gmp+set}" = set; then | |
620 | withval="$with_gmp" | |
621 | case "$with_gmp" in | |
622 | yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;; | |
623 | ''|no) ;; | |
624 | *) config_vars="$config_vars | |
625 | gmp-srcdir = $withval" ;; | |
626 | esac | |
627 | ||
628 | fi | |
629 | ||
630 | # Check for a --with-gettext argument and set gettext-srcdir in config.make. | |
631 | # Check whether --with-gettext or --without-gettext was given. | |
632 | if test "${with_gettext+set}" = set; then | |
633 | withval="$with_gettext" | |
634 | case "$with_gettext" in | |
635 | yes) | |
636 | { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;; | |
637 | ''|no) ;; | |
638 | *) | |
639 | config_vars="$config_vars | |
640 | gettext-srcdir = $withval" ;; | |
641 | esac | |
642 | ||
643 | fi | |
644 | ||
c8f3e6db UD |
645 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. |
646 | # Check whether --with-gd or --without-gd was given. | |
647 | if test "${with_gd+set}" = set; then | |
648 | withval="$with_gd" | |
649 | case "$with_gd" in | |
e41db95b UD |
650 | yes|''|no) ;; |
651 | *) libgd_include="-I$withval/include" | |
c8f3e6db UD |
652 | libgd_ldflags="-L$withval/lib" ;; |
653 | esac | |
654 | ||
655 | fi | |
656 | ||
e41db95b UD |
657 | # Check whether --with-gd-include or --without-gd-include was given. |
658 | if test "${with_gd_include+set}" = set; then | |
659 | withval="$with_gd_include" | |
660 | case "$with_gd_include" in | |
661 | ''|no) ;; | |
662 | *) libgd_include="-I$withval" ;; | |
663 | esac | |
664 | ||
665 | fi | |
666 | ||
667 | # Check whether --with-gd-lib or --without-gd-lib was given. | |
668 | if test "${with_gd_lib+set}" = set; then | |
669 | withval="$with_gd_lib" | |
670 | case "$with_gd_lib" in | |
671 | ''|no) ;; | |
672 | *) libgd_ldflags="-L$withval" ;; | |
673 | esac | |
674 | ||
675 | fi | |
676 | ||
677 | ||
678 | if test -n "$libgd_include"; then | |
679 | config_vars="$config_vars | |
680 | CFLAGS-memprofstat.c = $libgd_include" | |
681 | fi | |
682 | if test -n "$libgd_ldflags"; then | |
683 | config_vars="$config_vars | |
684 | libgd-LDFLAGS = $libgd_ldflags" | |
685 | fi | |
cd6ede75 UD |
686 | |
687 | # Check whether --with-fp or --without-fp was given. | |
688 | if test "${with_fp+set}" = set; then | |
689 | withval="$with_fp" | |
690 | with_fp=$withval | |
691 | else | |
692 | with_fp=yes | |
693 | fi | |
694 | ||
650425ce UD |
695 | # Check whether --with-binutils or --without-binutils was given. |
696 | if test "${with_binutils+set}" = set; then | |
697 | withval="$with_binutils" | |
a5a0310d UD |
698 | path_binutils=$withval |
699 | else | |
650425ce | 700 | path_binutils='' |
cd6ede75 UD |
701 | fi |
702 | ||
cd6ede75 UD |
703 | # Check whether --with-elf or --without-elf was given. |
704 | if test "${with_elf+set}" = set; then | |
705 | withval="$with_elf" | |
706 | elf=$withval | |
707 | else | |
708 | elf=no | |
709 | fi | |
710 | ||
d67281a7 UD |
711 | # Check whether --with-cvs or --without-cvs was given. |
712 | if test "${with_cvs+set}" = set; then | |
713 | withval="$with_cvs" | |
714 | with_cvs=$withval | |
715 | else | |
716 | with_cvs=yes | |
717 | fi | |
718 | ||
719 | ||
cd6ede75 | 720 | |
3c720987 UD |
721 | # Check whether --with-headers or --without-headers was given. |
722 | if test "${with_headers+set}" = set; then | |
723 | withval="$with_headers" | |
724 | sysheaders=$withval | |
725 | else | |
726 | sysheaders='' | |
727 | fi | |
728 | ||
729 | ||
cd6ede75 UD |
730 | # Check whether --enable-libio or --disable-libio was given. |
731 | if test "${enable_libio+set}" = set; then | |
732 | enableval="$enable_libio" | |
733 | if test $enableval = yes; then | |
734 | stdio=libio | |
735 | else | |
736 | stdio=stdio | |
737 | fi | |
738 | else | |
739 | stdio=default | |
740 | fi | |
741 | ||
742 | ||
743 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. | |
744 | if test "${enable_sanity_checks+set}" = set; then | |
745 | enableval="$enable_sanity_checks" | |
746 | enable_sanity=$enableval | |
747 | else | |
748 | enable_sanity=yes | |
749 | fi | |
750 | ||
751 | ||
5c2a0669 | 752 | static=yes |
cd6ede75 UD |
753 | # Check whether --enable-shared or --disable-shared was given. |
754 | if test "${enable_shared+set}" = set; then | |
755 | enableval="$enable_shared" | |
756 | shared=$enableval | |
757 | else | |
758 | shared=default | |
759 | fi | |
760 | ||
761 | # Check whether --enable-profile or --disable-profile was given. | |
762 | if test "${enable_profile+set}" = set; then | |
763 | enableval="$enable_profile" | |
764 | profile=$enableval | |
765 | else | |
766 | profile=yes | |
767 | fi | |
768 | ||
769 | # Check whether --enable-omitfp or --disable-omitfp was given. | |
770 | if test "${enable_omitfp+set}" = set; then | |
771 | enableval="$enable_omitfp" | |
772 | omitfp=$enableval | |
773 | else | |
774 | omitfp=no | |
775 | fi | |
776 | ||
777 | # Check whether --enable-bounded or --disable-bounded was given. | |
778 | if test "${enable_bounded+set}" = set; then | |
779 | enableval="$enable_bounded" | |
780 | bounded=$enableval | |
781 | else | |
782 | bounded=no | |
783 | fi | |
784 | ||
650425ce UD |
785 | # Check whether --enable-versioning or --disable-versioning was given. |
786 | if test "${enable_versioning+set}" = set; then | |
787 | enableval="$enable_versioning" | |
788 | enable_versioning=$enableval | |
789 | else | |
790 | enable_versioning=yes | |
791 | fi | |
792 | ||
cd6ede75 UD |
793 | |
794 | # Check whether --enable-add-ons or --disable-add-ons was given. | |
795 | if test "${enable_add_ons+set}" = set; then | |
796 | enableval="$enable_add_ons" | |
61952351 | 797 | case "$enableval" in |
9c4c0024 UD |
798 | yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'` |
799 | test "$add_ons" = "*" && add_ons= ;; | |
61952351 UD |
800 | *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; |
801 | esac | |
cd6ede75 UD |
802 | else |
803 | add_ons= | |
804 | fi | |
805 | ||
61952351 | 806 | |
cd6ede75 UD |
807 | subdirs="$add_ons" |
808 | ||
809 | add_ons_pfx= | |
810 | if test x"$add_ons" != x; then | |
811 | for f in $add_ons; do | |
af6f3906 UD |
812 | # Test whether such a subdir really exists. |
813 | if test -d $srcdir/$f; then | |
814 | add_ons_pfx="$add_ons_pfx $f/" | |
815 | else | |
816 | { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; } | |
817 | fi | |
cd6ede75 UD |
818 | done |
819 | fi | |
820 | ||
821 | # Check whether --enable-static-nss or --disable-static-nss was given. | |
822 | if test "${enable_static_nss+set}" = set; then | |
823 | enableval="$enable_static_nss" | |
824 | static_nss=$enableval | |
825 | else | |
826 | static_nss=no | |
827 | fi | |
828 | ||
829 | if test x"$static_nss" = xyes; then | |
830 | cat >> confdefs.h <<\EOF | |
831 | #define DO_STATIC_NSS 1 | |
832 | EOF | |
833 | ||
834 | fi | |
835 | ||
73237de3 UD |
836 | # Check whether --enable-force-install or --disable-force-install was given. |
837 | if test "${enable_force_install+set}" = set; then | |
838 | enableval="$enable_force_install" | |
839 | force_install=$enableval | |
840 | else | |
841 | force_install=yes | |
842 | fi | |
843 | ||
844 | ||
845 | ||
958f238f UD |
846 | # Check whether --enable-kernel or --disable-kernel was given. |
847 | if test "${enable_kernel+set}" = set; then | |
848 | enableval="$enable_kernel" | |
849 | minimum_kernel=$enableval | |
cd6ede75 UD |
850 | fi |
851 | ||
654de60c UD |
852 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then |
853 | # Better nothing than this. | |
854 | minimum_kernel="" | |
78bba25c UD |
855 | else |
856 | if test "$minimum_kernel" = current; then | |
857 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
858 | fi | |
654de60c | 859 | fi |
958f238f UD |
860 | |
861 | ||
b43b13ac UD |
862 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
863 | echo "configure:864: checking host system type" >&5 | |
864 | if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then | |
865 | ||
958f238f | 866 | # Make sure we can run config.sub. |
b43b13ac UD |
867 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
868 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
869 | fi | |
870 | ||
871 | ac_cv_host_alias=$host | |
872 | case "$ac_cv_host_alias" in | |
873 | NONE) | |
874 | case $nonopt in | |
875 | NONE) | |
876 | if ac_cv_host_alias=`$ac_config_guess`; then : | |
877 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
878 | fi ;; | |
879 | *) ac_cv_host_alias=$nonopt ;; | |
880 | esac ;; | |
881 | esac | |
882 | ||
883 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` | |
884 | ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
885 | ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
886 | ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
887 | else | |
888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
958f238f UD |
889 | fi |
890 | ||
b43b13ac UD |
891 | echo "$ac_t""$ac_cv_host" 1>&6 |
892 | ||
893 | host=$ac_cv_host | |
894 | host_alias=$ac_cv_host_alias | |
895 | host_cpu=$ac_cv_host_cpu | |
896 | host_vendor=$ac_cv_host_vendor | |
897 | host_os=$ac_cv_host_os | |
898 | ||
958f238f | 899 | |
cd6ede75 | 900 | |
cd6ede75 UD |
901 | |
902 | ||
903 | # The way shlib-versions is used to generate soversions.mk uses a | |
904 | # fairly simplistic model for name recognition that can't distinguish | |
905 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
906 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
907 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
908 | case "$host_os" in | |
909 | linux*) | |
910 | ;; | |
911 | gnu*) | |
912 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
913 | ;; | |
914 | esac | |
915 | ||
916 | # We keep the original values in `$config_*' and never modify them, so we | |
917 | # can write them unchanged into config.make. Everything else uses | |
918 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
919 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
920 | ||
921 | # Some configurations imply other options. | |
922 | case "$host_os" in | |
923 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
924 | # These systems always use GNU tools. | |
925 | gnu_ld=yes gnu_as=yes ;; | |
926 | esac | |
927 | case "$host_os" in | |
928 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
929 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
930 | ;; | |
9a97d1f7 | 931 | gnu* | linux* | sysv4* | solaris2* | irix6*) |
cd6ede75 UD |
932 | # These systems (almost) always use the ELF format. |
933 | elf=yes | |
934 | ;; | |
935 | esac | |
936 | ||
937 | machine=$config_machine | |
938 | vendor=$config_vendor | |
939 | os=$config_os | |
940 | ||
7efb9bd1 UD |
941 | ### |
942 | ### I put this here to prevent those annoying emails from people who cannot | |
943 | ### read and try to compile glibc on unsupported platforms. --drepper | |
944 | ### | |
945 | ### By using the undocumented --enable-hacker-mode option for configure | |
946 | ### one can skip this test to make the configuration not fail for unsupported | |
947 | ### platforms. | |
948 | ### | |
949 | if test -z "$enable_hacker_mode"; then | |
950 | case "$machine-$host_os" in | |
f0d8cfd7 | 951 | *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*) |
7efb9bd1 UD |
952 | ;; |
953 | *) | |
954 | echo "*** The GNU C library is currently not available for this platform." | |
955 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
956 | echo "*** might never happen. So, if you have interest to see glibc on" | |
957 | echo "*** this platform visit" | |
958 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
959 | echo "*** and join the group of porters" | |
960 | exit 1 | |
961 | ;; | |
962 | esac | |
963 | fi | |
964 | ||
cd6ede75 UD |
965 | # Expand the configuration machine name into a subdirectory by architecture |
966 | # type and particular chip. | |
967 | case "$machine" in | |
968 | a29k | am29000) base_machine=a29k machine=a29k ;; | |
969 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
970 | arm*) base_machine=arm machine=arm/$machine ;; | |
60c96635 UD |
971 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; |
972 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
cd6ede75 UD |
973 | hppa*) base_machine=hppa machine=hppa/$machine ;; |
974 | i[3456]86) base_machine=i386 machine=i386/$machine ;; | |
975 | m680?0) base_machine=m68k machine=m68k/$machine ;; | |
976 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
977 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
978 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
979 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
9a97d1f7 UD |
980 | mips*) base_machine=mips |
981 | case "`uname -m`" in | |
982 | IP22) machine=mips/mips3 ;; | |
e66b6eca | 983 | *) machine=mips/$machine ;; |
9a97d1f7 | 984 | esac ;; |
ca34d7a7 UD |
985 | sparc | sparcv[67]) |
986 | base_machine=sparc machine=sparc/sparc32 ;; | |
987 | sparcv8 | supersparc | hypersparc) | |
988 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
ae6b8730 RH |
989 | sparcv8plus | sparcv8plusa | sparcv9) |
990 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
ca34d7a7 UD |
991 | sparc64 | ultrasparc) |
992 | base_machine=sparc machine=sparc/sparc64 ;; | |
cd6ede75 UD |
993 | esac |
994 | ||
995 | ||
dfd2257a UD |
996 | if test "$base_machine" = "i386"; then |
997 | cat >> confdefs.h <<\EOF | |
998 | #define USE_REGPARMS 1 | |
999 | EOF | |
1000 | ||
1001 | fi | |
1002 | ||
cd6ede75 UD |
1003 | # Compute the list of sysdep directories for this configuration. |
1004 | # This can take a while to compute. | |
1005 | sysdep_dir=$srcdir/sysdeps | |
1006 | echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 | |
b43b13ac | 1007 | echo "configure:1008: checking sysdep dirs" >&5 |
cd6ede75 UD |
1008 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
1009 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
1010 | ||
1011 | case "$os" in | |
1012 | gnu*) | |
1013 | base_os=mach/hurd ;; | |
1014 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
1015 | base_os=unix/bsd/bsd4.4 ;; | |
1016 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
1017 | base_os=unix/bsd ;; | |
1018 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
1019 | base_os=unix/sysv ;; | |
9a97d1f7 UD |
1020 | irix6*) |
1021 | base_os=unix/sysv/irix6/$os ;; | |
cd6ede75 UD |
1022 | solaris[2-9]*) |
1023 | base_os=unix/sysv/sysv4 ;; | |
908c3d5b UD |
1024 | hpux*) |
1025 | base_os=unix/sysv/hpux/$os ;; | |
f0d8cfd7 UD |
1026 | aix4.3*) |
1027 | base_os=unix/sysv/aix/aix4.3 ;; | |
cd6ede75 UD |
1028 | none) |
1029 | base_os=standalone ;; | |
1030 | *) | |
1031 | base_os='' ;; | |
1032 | esac | |
1033 | ||
1034 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
1035 | tail=$os | |
1036 | ostry=$os | |
1037 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
1038 | ostry="$ostry /$o" | |
1039 | tail=$o | |
1040 | done | |
1041 | o=`echo $tail | sed 's/[0-9]*$//'` | |
1042 | if test $o != $tail; then | |
1043 | ostry="$ostry /$o" | |
1044 | fi | |
1045 | # For linux-gnu, try linux-gnu, then linux. | |
1046 | o=`echo $tail | sed 's/-.*$//'` | |
1047 | if test $o != $tail; then | |
1048 | ostry="$ostry /$o" | |
1049 | fi | |
1050 | ||
1051 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
1052 | base= | |
1053 | tail=$base_os | |
1054 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
1055 | set $b | |
1056 | base="$base /$1" | |
1057 | tail="$2" | |
1058 | done | |
1059 | ||
ae6b8730 | 1060 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
cd6ede75 UD |
1061 | mach= |
1062 | tail=$machine | |
1063 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
1064 | set $m | |
1065 | # Prepend the machine's FPU directory unless --without-fp. | |
1066 | if test "$with_fp" = yes; then | |
1067 | mach="$mach /$1/fpu" | |
1068 | fi | |
1069 | mach="$mach /$1" | |
1070 | tail="$2" | |
1071 | done | |
1072 | ||
1073 | ||
1074 | # Find what sysdep directories exist. | |
1075 | sysnames= | |
1076 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1077 | for d in $add_ons_pfx ''; do | |
1078 | for b in $base ''; do | |
1079 | for m0 in $mach ''; do | |
1080 | for v in /$vendor ''; do | |
ae828bc6 | 1081 | test "$v" = / && continue |
cd6ede75 | 1082 | for o in /$ostry ''; do |
ae828bc6 | 1083 | test "$o" = / && continue |
cd6ede75 UD |
1084 | for m in $mach ''; do |
1085 | if test "$m0$b$v$o$m"; then | |
1086 | try="${d}sysdeps$m0$b$v$o$m" | |
1087 | test -n "$enable_debug_configure" && | |
1088 | echo "$0 DEBUG: try $try" >&2 | |
9c4c0024 | 1089 | if test -d $srcdir/$try; then |
cd6ede75 UD |
1090 | sysnames="$sysnames $try" |
1091 | { test -n "$o" || test -n "$b"; } && os_used=t | |
1092 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
1093 | fi | |
1094 | fi | |
1095 | done | |
1096 | done | |
1097 | done | |
1098 | done | |
1099 | done | |
1100 | done | |
1101 | IFS="$ac_save_ifs" | |
1102 | ||
1103 | if test -z "$os_used" && test "$os" != none; then | |
1104 | { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; } | |
1105 | fi | |
1106 | if test -z "$machine_used" && test "$machine" != none; then | |
1107 | { echo "configure: error: The $machine is not supported." 1>&2; exit 1; } | |
1108 | fi | |
1109 | ||
1110 | # We have now validated the configuration. | |
1111 | ||
1112 | ||
1113 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
1114 | # We prepend these rather than inserting them whereever the machine appears | |
1115 | # because things specified by the machine's ELF ABI should override | |
1116 | # OS-specific things, and should always be the same for any OS on the | |
1117 | # machine (otherwise what's the point of an ABI?). | |
1118 | if test "$elf" = yes; then | |
1119 | elf_dirs= | |
1120 | for d in $add_ons_pfx ''; do | |
cd6ede75 | 1121 | for m in $mach; do |
9c4c0024 | 1122 | if test -d $srcdir/${d}sysdeps$m/elf; then |
cd6ede75 UD |
1123 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
1124 | fi | |
1125 | done | |
1126 | done | |
1127 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" | |
1128 | fi | |
1129 | ||
1130 | ||
1131 | # Expand the list of system names into a full list of directories | |
1132 | # from each element's parent name and Implies file (if present). | |
1133 | set $sysnames | |
1134 | names= | |
1135 | while test $# -gt 0; do | |
1136 | name=$1 | |
1137 | shift | |
1138 | ||
1139 | case " $names " in *" $name "*) | |
1140 | # Already in the list. | |
1141 | continue | |
1142 | esac | |
1143 | ||
1144 | # Report each name as we discover it, so there is no long pause in output. | |
1145 | echo $ac_n "$name $ac_c" >&6 | |
1146 | ||
1147 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
1148 | ||
1149 | case $name in | |
1150 | /*) xsrcdir= ;; | |
1151 | *) xsrcdir=$srcdir/ ;; | |
1152 | esac | |
1153 | test -n "$enable_debug_configure" && | |
1154 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
1155 | ||
1156 | if test -f $xsrcdir$name/Implies; then | |
1157 | # Collect more names from the `Implies' file (removing comments). | |
1158 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
1159 | implied= | |
1160 | for x in $implied_candidate; do | |
1161 | if test -d $xsrcdir$name_base/$x; then | |
1162 | implied="$implied $name_base/$x"; | |
1163 | else | |
1164 | echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2 | |
1165 | fi | |
1166 | done | |
1167 | else | |
1168 | implied= | |
1169 | fi | |
1170 | ||
1171 | # Add NAME to the list of names. | |
1172 | names="$names $name" | |
1173 | ||
1174 | # Find the parent of NAME, using the empty string if it has none. | |
1175 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
1176 | ||
1177 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
1178 | # the list of names to be processed (the argument list). We prepend the | |
1179 | # implied names to the list and append the parent. We want implied | |
1180 | # directories to come before further directories inferred from the | |
1181 | # configuration components; this ensures that for sysv4, unix/common | |
1182 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
1183 | # after sysv4). | |
1184 | sysnames="`echo $implied $* $parent`" | |
1185 | test -n "$sysnames" && set $sysnames | |
1186 | done | |
1187 | ||
1188 | # Add the default directories. | |
a3a4a74e | 1189 | default_sysnames=sysdeps/generic |
2de7874e | 1190 | if test "$elf" = yes; then |
a3a4a74e | 1191 | default_sysnames="sysdeps/generic/elf $default_sysnames" |
2de7874e | 1192 | fi |
a3a4a74e | 1193 | sysnames="$names $default_sysnames" |
cd6ede75 UD |
1194 | |
1195 | # The other names were emitted during the scan. | |
a3a4a74e | 1196 | echo "$ac_t""$default_sysnames" 1>&6 |
cd6ede75 UD |
1197 | |
1198 | ||
1199 | ### Locate tools. | |
1200 | ||
1201 | # Find a good install program. We prefer a C program (faster), | |
1202 | # so one script is as good as another. But avoid the broken or | |
1203 | # incompatible versions: | |
1204 | # SysV /etc/install, /usr/sbin/install | |
1205 | # SunOS /usr/etc/install | |
1206 | # IRIX /sbin/install | |
1207 | # AIX /bin/install | |
5c2a0669 | 1208 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
cd6ede75 UD |
1209 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1210 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1211 | # ./install, which can be erroneously created by make from ./install.sh. | |
1212 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
b43b13ac | 1213 | echo "configure:1214: checking for a BSD compatible install" >&5 |
cd6ede75 | 1214 | if test -z "$INSTALL"; then |
b43b13ac | 1215 | if eval "test \"\${ac_cv_path_install+set}\" = set"; then |
cd6ede75 UD |
1216 | echo $ac_n "(cached) $ac_c" 1>&6 |
1217 | else | |
5c2a0669 | 1218 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
cd6ede75 UD |
1219 | for ac_dir in $PATH; do |
1220 | # Account for people who put trailing slashes in PATH elements. | |
1221 | case "$ac_dir/" in | |
1222 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1223 | *) | |
1224 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5c2a0669 UD |
1225 | # Don't use installbsd from OSF since it installs stuff as root |
1226 | # by default. | |
1227 | for ac_prog in ginstall scoinst install; do | |
cd6ede75 UD |
1228 | if test -f $ac_dir/$ac_prog; then |
1229 | if test $ac_prog = install && | |
1230 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1231 | # AIX install. It has an incompatible calling convention. | |
cd6ede75 | 1232 | : |
b43b13ac UD |
1233 | elif test $ac_prog = install && |
1234 | grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1235 | # program-specific install script used by HP pwplus--don't use. | |
1236 | : | |
cd6ede75 UD |
1237 | else |
1238 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1239 | break 2 | |
1240 | fi | |
1241 | fi | |
1242 | done | |
1243 | ;; | |
1244 | esac | |
1245 | done | |
1246 | IFS="$ac_save_IFS" | |
1247 | ||
1248 | fi | |
1249 | if test "${ac_cv_path_install+set}" = set; then | |
1250 | INSTALL="$ac_cv_path_install" | |
1251 | else | |
1252 | # As a last resort, use the slow shell script. We don't cache a | |
1253 | # path for INSTALL within a source directory, because that will | |
1254 | # break other packages using the cache if that directory is | |
1255 | # removed, or if the path is relative. | |
1256 | INSTALL="$ac_install_sh" | |
1257 | fi | |
1258 | fi | |
1259 | echo "$ac_t""$INSTALL" 1>&6 | |
1260 | ||
1261 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1262 | # It thinks the first close brace ends the variable substitution. | |
1263 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1264 | ||
b43b13ac | 1265 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5c2a0669 | 1266 | |
cd6ede75 UD |
1267 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1268 | ||
ed9c47d9 | 1269 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then |
cd6ede75 | 1270 | # The makefiles need to use a different form to find it in $srcdir. |
ed9c47d9 | 1271 | INSTALL='\$(..)./scripts/install-sh -c' |
cd6ede75 UD |
1272 | fi |
1273 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
b43b13ac UD |
1274 | echo "configure:1275: checking whether ln -s works" >&5 |
1275 | if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then | |
cd6ede75 UD |
1276 | echo $ac_n "(cached) $ac_c" 1>&6 |
1277 | else | |
1278 | rm -f conftestdata | |
1279 | if ln -s X conftestdata 2>/dev/null | |
1280 | then | |
1281 | rm -f conftestdata | |
1282 | ac_cv_prog_LN_S="ln -s" | |
1283 | else | |
1284 | ac_cv_prog_LN_S=ln | |
1285 | fi | |
1286 | fi | |
1287 | LN_S="$ac_cv_prog_LN_S" | |
1288 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1289 | echo "$ac_t""yes" 1>&6 | |
1290 | else | |
1291 | echo "$ac_t""no" 1>&6 | |
1292 | fi | |
1293 | ||
63bda0c1 UD |
1294 | |
1295 | # These programs are version sensitive. | |
b43b13ac | 1296 | |
4bca4c17 | 1297 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
b43b13ac UD |
1298 | echo "configure:1299: checking build system type" >&5 |
1299 | if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then | |
1300 | ||
1301 | # Make sure we can run config.sub. | |
1302 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1303 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1304 | fi | |
1305 | ||
1306 | ac_cv_build_alias=$build | |
1307 | case "$ac_cv_build_alias" in | |
1308 | NONE) | |
1309 | case $nonopt in | |
1310 | NONE) | |
1311 | ac_cv_build_alias=$host_alias ;; | |
1312 | ||
1313 | *) ac_cv_build_alias=$nonopt ;; | |
1314 | esac ;; | |
1315 | esac | |
1316 | ||
1317 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` | |
1318 | ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1319 | ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1320 | ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1321 | else | |
1322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1323 | fi | |
1324 | ||
1325 | echo "$ac_t""$ac_cv_build" 1>&6 | |
1326 | ||
1327 | build=$ac_cv_build | |
1328 | build_alias=$ac_cv_build_alias | |
1329 | build_cpu=$ac_cv_build_cpu | |
1330 | build_vendor=$ac_cv_build_vendor | |
1331 | build_os=$ac_cv_build_os | |
1332 | ||
1333 | ||
4bca4c17 | 1334 | |
4bca4c17 UD |
1335 | |
1336 | if test $host != $build; then | |
1337 | ac_tool_prefix=${host_alias}- | |
1338 | else | |
1339 | ac_tool_prefix= | |
1340 | fi | |
1341 | ||
1342 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
1343 | do | |
1344 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1345 | set dummy $ac_prog; ac_word=$2 | |
1346 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1347 | echo "configure:1348: checking for $ac_word" >&5 |
1348 | if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then | |
cd6ede75 UD |
1349 | echo $ac_n "(cached) $ac_c" 1>&6 |
1350 | else | |
63bda0c1 UD |
1351 | if test -n "$CC"; then |
1352 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 1353 | else |
5c2a0669 UD |
1354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1355 | ac_dummy="$PATH" | |
1356 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1357 | test -z "$ac_dir" && ac_dir=. |
1358 | if test -f $ac_dir/$ac_word; then | |
1359 | ac_cv_prog_CC="$ac_prog" | |
1360 | break | |
1361 | fi | |
cd6ede75 UD |
1362 | done |
1363 | IFS="$ac_save_ifs" | |
1364 | fi | |
1365 | fi | |
4bca4c17 UD |
1366 | CC="$ac_cv_prog_CC" |
1367 | if test -n "$CC"; then | |
1368 | echo "$ac_t""$CC" 1>&6 | |
1369 | else | |
cd6ede75 | 1370 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1371 | fi |
1372 | ||
1373 | test -n "$CC" && break | |
1374 | done | |
1375 | ||
1376 | if test -z "$CC"; then | |
1377 | ac_verc_fail=yes | |
63bda0c1 | 1378 | else |
4bca4c17 UD |
1379 | # Found it, now check the version. |
1380 | echo $ac_n "checking version of $CC""... $ac_c" 1>&6 | |
b43b13ac | 1381 | echo "configure:1382: checking version of $CC" >&5 |
98393660 | 1382 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1383 | case $ac_prog_version in |
1384 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
eb3bf573 | 1385 | egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]) |
4bca4c17 UD |
1386 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1387 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1388 | ||
63bda0c1 | 1389 | esac |
4bca4c17 UD |
1390 | echo "$ac_t""$ac_prog_version" 1>&6 |
1391 | fi | |
1392 | if test $ac_verc_fail = yes; then | |
1393 | critic_missing=t | |
ae828bc6 UD |
1394 | fi |
1395 | ||
22e65f8f | 1396 | for ac_prog in gnumake gmake make |
4bca4c17 UD |
1397 | do |
1398 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1399 | set dummy $ac_prog; ac_word=$2 | |
1400 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1401 | echo "configure:1402: checking for $ac_word" >&5 |
1402 | if eval "test \"\${ac_cv_prog_MAKE+set}\" = set"; then | |
04be94a8 UD |
1403 | echo $ac_n "(cached) $ac_c" 1>&6 |
1404 | else | |
63bda0c1 UD |
1405 | if test -n "$MAKE"; then |
1406 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
04be94a8 | 1407 | else |
5c2a0669 UD |
1408 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1409 | ac_dummy="$PATH" | |
1410 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1411 | test -z "$ac_dir" && ac_dir=. |
1412 | if test -f $ac_dir/$ac_word; then | |
1413 | ac_cv_prog_MAKE="$ac_prog" | |
1414 | break | |
1415 | fi | |
04be94a8 UD |
1416 | done |
1417 | IFS="$ac_save_ifs" | |
1418 | fi | |
1419 | fi | |
4bca4c17 UD |
1420 | MAKE="$ac_cv_prog_MAKE" |
1421 | if test -n "$MAKE"; then | |
1422 | echo "$ac_t""$MAKE" 1>&6 | |
1423 | else | |
04be94a8 | 1424 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1425 | fi |
1426 | ||
1427 | test -n "$MAKE" && break | |
1428 | done | |
1429 | ||
1430 | if test -z "$MAKE"; then | |
1431 | ac_verc_fail=yes | |
63bda0c1 | 1432 | else |
4bca4c17 UD |
1433 | # Found it, now check the version. |
1434 | echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6 | |
b43b13ac | 1435 | echo "configure:1436: checking version of $MAKE" >&5 |
8fc1e2ca | 1436 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1437 | case $ac_prog_version in |
1438 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
7e7a548e | 1439 | 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*) |
4bca4c17 UD |
1440 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1441 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1442 | ||
63bda0c1 | 1443 | esac |
4bca4c17 UD |
1444 | echo "$ac_t""$ac_prog_version" 1>&6 |
1445 | fi | |
1446 | if test $ac_verc_fail = yes; then | |
1447 | critic_missing=t | |
04be94a8 | 1448 | fi |
cd6ede75 | 1449 | |
63bda0c1 | 1450 | |
22e65f8f | 1451 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4bca4c17 UD |
1452 | do |
1453 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1454 | set dummy $ac_prog; ac_word=$2 | |
1455 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1456 | echo "configure:1457: checking for $ac_word" >&5 |
1457 | if eval "test \"\${ac_cv_prog_MSGFMT+set}\" = set"; then | |
cd6ede75 UD |
1458 | echo $ac_n "(cached) $ac_c" 1>&6 |
1459 | else | |
63bda0c1 UD |
1460 | if test -n "$MSGFMT"; then |
1461 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 1462 | else |
5c2a0669 UD |
1463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1464 | ac_dummy="$PATH" | |
1465 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1466 | test -z "$ac_dir" && ac_dir=. |
1467 | if test -f $ac_dir/$ac_word; then | |
1468 | ac_cv_prog_MSGFMT="$ac_prog" | |
1469 | break | |
1470 | fi | |
cd6ede75 UD |
1471 | done |
1472 | IFS="$ac_save_ifs" | |
1473 | fi | |
1474 | fi | |
4bca4c17 UD |
1475 | MSGFMT="$ac_cv_prog_MSGFMT" |
1476 | if test -n "$MSGFMT"; then | |
1477 | echo "$ac_t""$MSGFMT" 1>&6 | |
1478 | else | |
cd6ede75 | 1479 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1480 | fi |
1481 | ||
1482 | test -n "$MSGFMT" && break | |
1483 | done | |
1484 | ||
1485 | if test -z "$MSGFMT"; then | |
1486 | ac_verc_fail=yes | |
63bda0c1 | 1487 | else |
4bca4c17 UD |
1488 | # Found it, now check the version. |
1489 | echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6 | |
b43b13ac | 1490 | echo "configure:1491: checking version of $MSGFMT" >&5 |
bdd421cc | 1491 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1492 | case $ac_prog_version in |
1493 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
bdd421cc | 1494 | 0.[1-9][0-9].* | [1-9].*) |
4bca4c17 UD |
1495 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1496 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1497 | ||
63bda0c1 | 1498 | esac |
4bca4c17 UD |
1499 | echo "$ac_t""$ac_prog_version" 1>&6 |
1500 | fi | |
1501 | if test $ac_verc_fail = yes; then | |
1502 | MSGFMT=: aux_missing=t | |
cd6ede75 UD |
1503 | fi |
1504 | ||
4bca4c17 UD |
1505 | for ac_prog in makeinfo |
1506 | do | |
1507 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1508 | set dummy $ac_prog; ac_word=$2 | |
1509 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1510 | echo "configure:1511: checking for $ac_word" >&5 |
1511 | if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then | |
cd6ede75 UD |
1512 | echo $ac_n "(cached) $ac_c" 1>&6 |
1513 | else | |
63bda0c1 UD |
1514 | if test -n "$MAKEINFO"; then |
1515 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 1516 | else |
5c2a0669 UD |
1517 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1518 | ac_dummy="$PATH" | |
1519 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1520 | test -z "$ac_dir" && ac_dir=. |
1521 | if test -f $ac_dir/$ac_word; then | |
1522 | ac_cv_prog_MAKEINFO="$ac_prog" | |
1523 | break | |
1524 | fi | |
cd6ede75 UD |
1525 | done |
1526 | IFS="$ac_save_ifs" | |
cd6ede75 UD |
1527 | fi |
1528 | fi | |
4bca4c17 UD |
1529 | MAKEINFO="$ac_cv_prog_MAKEINFO" |
1530 | if test -n "$MAKEINFO"; then | |
1531 | echo "$ac_t""$MAKEINFO" 1>&6 | |
1532 | else | |
cd6ede75 | 1533 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1534 | fi |
1535 | ||
1536 | test -n "$MAKEINFO" && break | |
1537 | done | |
1538 | ||
1539 | if test -z "$MAKEINFO"; then | |
1540 | ac_verc_fail=yes | |
63bda0c1 | 1541 | else |
4bca4c17 UD |
1542 | # Found it, now check the version. |
1543 | echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6 | |
b43b13ac | 1544 | echo "configure:1545: checking version of $MAKEINFO" >&5 |
be1d9d95 | 1545 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1546 | case $ac_prog_version in |
1547 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43fc8f18 | 1548 | 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]) |
4bca4c17 UD |
1549 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1550 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1551 | ||
63bda0c1 | 1552 | esac |
4bca4c17 UD |
1553 | echo "$ac_t""$ac_prog_version" 1>&6 |
1554 | fi | |
1555 | if test $ac_verc_fail = yes; then | |
1556 | MAKEINFO=: aux_missing=t | |
cd6ede75 UD |
1557 | fi |
1558 | ||
cd6ede75 | 1559 | |
4bca4c17 UD |
1560 | if test -n "$critic_missing"; then |
1561 | { echo "configure: error: | |
63bda0c1 UD |
1562 | *** Some critical program is missing or too old. |
1563 | *** Check the INSTALL file for required versions." 1>&2; exit 1; } | |
4bca4c17 | 1564 | fi |
63bda0c1 | 1565 | |
4bca4c17 | 1566 | test -n "$aux_missing" && echo "configure: warning: |
63bda0c1 UD |
1567 | *** An auxiliary program is missing or too old; |
1568 | *** some features will be disabled. | |
1569 | *** Check the INSTALL file for required versions." 1>&2 | |
cd6ede75 | 1570 | |
beefeafb AS |
1571 | # glibcbug.in wants to know the compiler version. |
1572 | CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'` | |
1573 | ||
1574 | ||
63bda0c1 UD |
1575 | |
1576 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b43b13ac UD |
1577 | echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1578 | if eval "test \"\${ac_cv_prog_cc_works+set}\" = set"; then | |
63bda0c1 UD |
1579 | echo $ac_n "(cached) $ac_c" 1>&6 |
1580 | else | |
1581 | ||
cd6ede75 UD |
1582 | ac_ext=c |
1583 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1584 | ac_cpp='$CPP $CPPFLAGS' | |
1585 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c2a0669 | 1586 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
cd6ede75 UD |
1587 | cross_compiling=$ac_cv_prog_cc_cross |
1588 | ||
5c2a0669 UD |
1589 | cat > conftest.$ac_ext << EOF |
1590 | ||
b43b13ac | 1591 | #line 1592 "configure" |
cd6ede75 | 1592 | #include "confdefs.h" |
5c2a0669 | 1593 | |
cd6ede75 UD |
1594 | main(){return(0);} |
1595 | EOF | |
b43b13ac | 1596 | if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cd6ede75 UD |
1597 | ac_cv_prog_cc_works=yes |
1598 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1599 | if (./conftest; exit) 2>/dev/null; then | |
1600 | ac_cv_prog_cc_cross=no | |
1601 | else | |
1602 | ac_cv_prog_cc_cross=yes | |
1603 | fi | |
1604 | else | |
1605 | echo "configure: failed program was:" >&5 | |
1606 | cat conftest.$ac_ext >&5 | |
1607 | ac_cv_prog_cc_works=no | |
1608 | fi | |
1609 | rm -fr conftest* | |
5c2a0669 UD |
1610 | ac_ext=c |
1611 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1612 | ac_cpp='$CPP $CPPFLAGS' | |
1613 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1614 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1615 | cross_compiling=$ac_cv_prog_cc_cross | |
cd6ede75 | 1616 | |
63bda0c1 UD |
1617 | fi |
1618 | ||
cd6ede75 UD |
1619 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1620 | if test $ac_cv_prog_cc_works = no; then | |
1621 | cross_linkable=no | |
1622 | ac_cv_prog_cc_cross=yes | |
1623 | else | |
1624 | cross_linkable=yes | |
1625 | fi | |
1626 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b43b13ac UD |
1627 | echo "configure:1628: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1628 | if eval "test \"\${ac_cv_prog_cc_cross+set}\" = set"; then | |
63bda0c1 UD |
1629 | echo $ac_n "(cached) $ac_c" 1>&6 |
1630 | else | |
1631 | : | |
1632 | fi | |
1633 | ||
cd6ede75 UD |
1634 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1635 | ||
1636 | cross_compiling=$ac_cv_prog_cc_cross | |
1637 | ||
1638 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b43b13ac UD |
1639 | echo "configure:1640: checking whether we are using GNU C" >&5 |
1640 | if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then | |
cd6ede75 UD |
1641 | echo $ac_n "(cached) $ac_c" 1>&6 |
1642 | else | |
1643 | cat > conftest.c <<EOF | |
1644 | #ifdef __GNUC__ | |
1645 | yes; | |
1646 | #endif | |
1647 | EOF | |
b43b13ac | 1648 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
cd6ede75 UD |
1649 | ac_cv_prog_gcc=yes |
1650 | else | |
1651 | ac_cv_prog_gcc=no | |
1652 | fi | |
1653 | fi | |
1654 | ||
1655 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
63bda0c1 | 1656 | if test $ac_cv_prog_gcc != yes; then |
cd6ede75 UD |
1657 | { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; } |
1658 | fi | |
1659 | ||
b43b13ac | 1660 | |
cd6ede75 | 1661 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
b43b13ac UD |
1662 | echo "configure:1663: checking build system type" >&5 |
1663 | if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then | |
1664 | ||
1665 | # Make sure we can run config.sub. | |
1666 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1667 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1668 | fi | |
1669 | ||
1670 | ac_cv_build_alias=$build | |
1671 | case "$ac_cv_build_alias" in | |
1672 | NONE) | |
1673 | case $nonopt in | |
1674 | NONE) | |
1675 | ac_cv_build_alias=$host_alias ;; | |
1676 | ||
1677 | *) ac_cv_build_alias=$nonopt ;; | |
1678 | esac ;; | |
1679 | esac | |
1680 | ||
1681 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` | |
1682 | ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1683 | ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1684 | ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1685 | else | |
1686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1687 | fi | |
1688 | ||
1689 | echo "$ac_t""$ac_cv_build" 1>&6 | |
1690 | ||
1691 | build=$ac_cv_build | |
1692 | build_alias=$ac_cv_build_alias | |
1693 | build_cpu=$ac_cv_build_cpu | |
1694 | build_vendor=$ac_cv_build_vendor | |
1695 | build_os=$ac_cv_build_os | |
1696 | ||
1697 | ||
cd6ede75 | 1698 | |
cd6ede75 UD |
1699 | |
1700 | if test $host != $build; then | |
1701 | for ac_prog in gcc cc | |
1702 | do | |
1703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1704 | set dummy $ac_prog; ac_word=$2 | |
1705 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1706 | echo "configure:1707: checking for $ac_word" >&5 |
1707 | if eval "test \"\${ac_cv_prog_BUILD_CC+set}\" = set"; then | |
cd6ede75 UD |
1708 | echo $ac_n "(cached) $ac_c" 1>&6 |
1709 | else | |
1710 | if test -n "$BUILD_CC"; then | |
1711 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
1712 | else | |
5c2a0669 UD |
1713 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1714 | ac_dummy="$PATH" | |
1715 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1716 | test -z "$ac_dir" && ac_dir=. |
1717 | if test -f $ac_dir/$ac_word; then | |
1718 | ac_cv_prog_BUILD_CC="$ac_prog" | |
1719 | break | |
1720 | fi | |
1721 | done | |
1722 | IFS="$ac_save_ifs" | |
1723 | fi | |
1724 | fi | |
1725 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
1726 | if test -n "$BUILD_CC"; then | |
1727 | echo "$ac_t""$BUILD_CC" 1>&6 | |
1728 | else | |
1729 | echo "$ac_t""no" 1>&6 | |
1730 | fi | |
1731 | ||
1732 | test -n "$BUILD_CC" && break | |
1733 | done | |
1734 | ||
1735 | fi | |
1736 | ||
1737 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
b43b13ac | 1738 | echo "configure:1739: checking how to run the C preprocessor" >&5 |
cd6ede75 UD |
1739 | # On Suns, sometimes $CPP names a directory. |
1740 | if test -n "$CPP" && test -d "$CPP"; then | |
1741 | CPP= | |
1742 | fi | |
1743 | if test -z "$CPP"; then | |
b43b13ac | 1744 | if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then |
cd6ede75 UD |
1745 | echo $ac_n "(cached) $ac_c" 1>&6 |
1746 | else | |
1747 | # This must be in double quotes, not single quotes, because CPP may get | |
1748 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1749 | CPP="${CC-cc} -E" | |
1750 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1751 | # not just through cpp. | |
1752 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 1753 | #line 1754 "configure" |
cd6ede75 UD |
1754 | #include "confdefs.h" |
1755 | #include <assert.h> | |
1756 | Syntax Error | |
1757 | EOF | |
1758 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b43b13ac | 1759 | { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 | 1760 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
cd6ede75 UD |
1761 | if test -z "$ac_err"; then |
1762 | : | |
1763 | else | |
1764 | echo "$ac_err" >&5 | |
1765 | echo "configure: failed program was:" >&5 | |
1766 | cat conftest.$ac_ext >&5 | |
1767 | rm -rf conftest* | |
1768 | CPP="${CC-cc} -E -traditional-cpp" | |
1769 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 1770 | #line 1771 "configure" |
cd6ede75 UD |
1771 | #include "confdefs.h" |
1772 | #include <assert.h> | |
1773 | Syntax Error | |
1774 | EOF | |
1775 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b43b13ac | 1776 | { (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 UD |
1777 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1778 | if test -z "$ac_err"; then | |
1779 | : | |
1780 | else | |
1781 | echo "$ac_err" >&5 | |
1782 | echo "configure: failed program was:" >&5 | |
1783 | cat conftest.$ac_ext >&5 | |
1784 | rm -rf conftest* | |
1785 | CPP="${CC-cc} -nologo -E" | |
1786 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 1787 | #line 1788 "configure" |
5c2a0669 UD |
1788 | #include "confdefs.h" |
1789 | #include <assert.h> | |
1790 | Syntax Error | |
1791 | EOF | |
1792 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b43b13ac | 1793 | { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 | 1794 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
cd6ede75 UD |
1795 | if test -z "$ac_err"; then |
1796 | : | |
1797 | else | |
1798 | echo "$ac_err" >&5 | |
1799 | echo "configure: failed program was:" >&5 | |
1800 | cat conftest.$ac_ext >&5 | |
1801 | rm -rf conftest* | |
1802 | CPP=/lib/cpp | |
1803 | fi | |
1804 | rm -f conftest* | |
1805 | fi | |
5c2a0669 UD |
1806 | rm -f conftest* |
1807 | fi | |
cd6ede75 UD |
1808 | rm -f conftest* |
1809 | ac_cv_prog_CPP="$CPP" | |
1810 | fi | |
1811 | CPP="$ac_cv_prog_CPP" | |
1812 | else | |
1813 | ac_cv_prog_CPP="$CPP" | |
1814 | fi | |
1815 | echo "$ac_t""$CPP" 1>&6 | |
1816 | ||
650425ce UD |
1817 | # Was a --with-binutils option given? |
1818 | if test -n "$path_binutils"; then | |
1819 | # Make absolute; ensure a single trailing slash. | |
1820 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 1821 | CC="$CC -B$path_binutils" |
650425ce | 1822 | fi |
27a5bb33 UD |
1823 | AS=`$CC -print-prog-name=as` |
1824 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 1825 | AR=`$CC -print-prog-name=ar` |
cd6ede75 UD |
1826 | |
1827 | ||
5edb9387 UD |
1828 | # ranlib has to be treated a bit differently since it might not exist at all. |
1829 | RANLIB=`$CC -print-prog-name=ranlib` | |
1830 | if test $RANLIB = ranlib; then | |
1831 | # This extra check has to happen since gcc simply echos the parameter in | |
1832 | # case it cannot find the value in its own directories. | |
cd6ede75 UD |
1833 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
1834 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1835 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1836 | echo "configure:1837: checking for $ac_word" >&5 |
1837 | if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then | |
cd6ede75 UD |
1838 | echo $ac_n "(cached) $ac_c" 1>&6 |
1839 | else | |
1840 | if test -n "$RANLIB"; then | |
1841 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1842 | else | |
5c2a0669 UD |
1843 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1844 | ac_dummy="$PATH" | |
1845 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1846 | test -z "$ac_dir" && ac_dir=. |
1847 | if test -f $ac_dir/$ac_word; then | |
1848 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1849 | break | |
1850 | fi | |
1851 | done | |
1852 | IFS="$ac_save_ifs" | |
1853 | fi | |
1854 | fi | |
1855 | RANLIB="$ac_cv_prog_RANLIB" | |
1856 | if test -n "$RANLIB"; then | |
1857 | echo "$ac_t""$RANLIB" 1>&6 | |
1858 | else | |
1859 | echo "$ac_t""no" 1>&6 | |
1860 | fi | |
1861 | ||
1862 | ||
1863 | if test -z "$ac_cv_prog_RANLIB"; then | |
1864 | if test -n "$ac_tool_prefix"; then | |
1865 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1866 | set dummy ranlib; ac_word=$2 | |
1867 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1868 | echo "configure:1869: checking for $ac_word" >&5 |
1869 | if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then | |
cd6ede75 UD |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 |
1871 | else | |
1872 | if test -n "$RANLIB"; then | |
1873 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1874 | else | |
5c2a0669 UD |
1875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1876 | ac_dummy="$PATH" | |
1877 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1878 | test -z "$ac_dir" && ac_dir=. |
1879 | if test -f $ac_dir/$ac_word; then | |
1880 | ac_cv_prog_RANLIB="ranlib" | |
1881 | break | |
1882 | fi | |
1883 | done | |
1884 | IFS="$ac_save_ifs" | |
1885 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1886 | fi | |
1887 | fi | |
1888 | RANLIB="$ac_cv_prog_RANLIB" | |
1889 | if test -n "$RANLIB"; then | |
1890 | echo "$ac_t""$RANLIB" 1>&6 | |
1891 | else | |
1892 | echo "$ac_t""no" 1>&6 | |
1893 | fi | |
1894 | ||
1895 | else | |
1896 | RANLIB=":" | |
1897 | fi | |
1898 | fi | |
1899 | ||
5edb9387 UD |
1900 | fi |
1901 | ||
1902 | ||
1903 | # Determine whether we are using GNU binutils. | |
1904 | echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6 | |
b43b13ac UD |
1905 | echo "configure:1906: checking whether $AS is GNU as" >&5 |
1906 | if eval "test \"\${libc_cv_prog_as_gnu+set}\" = set"; then | |
5edb9387 UD |
1907 | echo $ac_n "(cached) $ac_c" 1>&6 |
1908 | else | |
1909 | # Most GNU programs take a -v and spit out some text including | |
1910 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
1911 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
1912 | libc_cv_prog_as_gnu=yes | |
1913 | else | |
1914 | libc_cv_prog_as_gnu=no | |
1915 | fi | |
1916 | rm -fr contest* | |
1917 | fi | |
1918 | ||
1919 | echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6 | |
1920 | rm -f a.out | |
1921 | gnu_as=$libc_cv_prog_as_gnu | |
1922 | ||
1923 | echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6 | |
b43b13ac UD |
1924 | echo "configure:1925: checking whether $LD is GNU ld" >&5 |
1925 | if eval "test \"\${libc_cv_prog_ld_gnu+set}\" = set"; then | |
5edb9387 UD |
1926 | echo $ac_n "(cached) $ac_c" 1>&6 |
1927 | else | |
1928 | # Most GNU programs take a -v and spit out some text including | |
1929 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
1930 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
1931 | libc_cv_prog_ld_gnu=yes | |
1932 | else | |
1933 | libc_cv_prog_ld_gnu=no | |
1934 | fi | |
1935 | rm -fr contest* | |
1936 | fi | |
1937 | ||
1938 | echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6 | |
1939 | gnu_ld=$libc_cv_prog_ld_gnu | |
1940 | ||
4bca4c17 UD |
1941 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
1942 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
1943 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
1944 | echo "configure:1945: checking for $ac_word" >&5 |
1945 | if eval "test \"\${ac_cv_prog_MIG+set}\" = set"; then | |
4bca4c17 UD |
1946 | echo $ac_n "(cached) $ac_c" 1>&6 |
1947 | else | |
1948 | if test -n "$MIG"; then | |
1949 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
1950 | else | |
5c2a0669 UD |
1951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1952 | ac_dummy="$PATH" | |
1953 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1954 | test -z "$ac_dir" && ac_dir=. |
1955 | if test -f $ac_dir/$ac_word; then | |
1956 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
1957 | break | |
1958 | fi | |
1959 | done | |
1960 | IFS="$ac_save_ifs" | |
1961 | test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig" | |
1962 | fi | |
1963 | fi | |
1964 | MIG="$ac_cv_prog_MIG" | |
1965 | if test -n "$MIG"; then | |
1966 | echo "$ac_t""$MIG" 1>&6 | |
1967 | else | |
1968 | echo "$ac_t""no" 1>&6 | |
1969 | fi | |
1970 | ||
1971 | ||
1972 | ||
cd6ede75 | 1973 | |
3c720987 UD |
1974 | # if using special system headers, find out the compiler's sekrit |
1975 | # header directory and add that to the list. NOTE: Only does the right | |
1976 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
1977 | if test -n "$sysheaders"; then | |
1978 | ccheaders=`$CC -print-file-name=include` | |
1979 | SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders" | |
1980 | fi | |
1981 | ||
1982 | ||
f89ac85c UD |
1983 | # check if ranlib is necessary |
1984 | echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6 | |
b43b13ac UD |
1985 | echo "configure:1986: checking whether ranlib is necessary" >&5 |
1986 | if eval "test \"\${libc_cv_ranlib_necessary+set}\" = set"; then | |
f38931a9 UD |
1987 | echo $ac_n "(cached) $ac_c" 1>&6 |
1988 | else | |
f89ac85c UD |
1989 | cat > conftest.c <<EOF |
1990 | int a; | |
1991 | char b; | |
1992 | void c(void) {} | |
1993 | EOF | |
1994 | $CC $CFLAGS -c conftest.c | |
1995 | $AR cr conftest.a conftest.c | |
1996 | cp conftest.a conftest2.a | |
1997 | $RANLIB conftest.a | |
1998 | if cmp -s conftest.a conftest2.a; then | |
1999 | libc_cv_ranlib_necessary=no | |
f38931a9 | 2000 | else |
f89ac85c | 2001 | libc_cv_ranlib_necessary=yes |
f38931a9 | 2002 | fi |
f89ac85c | 2003 | rm -rf conftest* |
f38931a9 UD |
2004 | fi |
2005 | ||
f89ac85c UD |
2006 | echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6 |
2007 | if test "$libc_cv_ranlib_necessary" = no; then | |
2008 | RANLIB=: | |
2009 | fi | |
f38931a9 | 2010 | |
3911660e UD |
2011 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
2012 | # since this would lead to problems installing/building glibc. | |
2013 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
2014 | # is true: | |
2015 | # - one of the terminals (":" and ";") is the first or last sign | |
2016 | # - two terminals occur directly after each other | |
2017 | # - the path contains an element with a dot in it | |
2018 | echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6 | |
b43b13ac | 2019 | echo "configure:2020: checking LD_LIBRARY_PATH variable" >&5 |
3911660e UD |
2020 | case ${LD_LIBRARY_PATH} in |
2021 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 2022 | ld_library_path_setting="contains current directory" |
3911660e UD |
2023 | ;; |
2024 | *) | |
2025 | ld_library_path_setting="ok" | |
2026 | ;; | |
2027 | esac | |
2028 | echo "$ac_t""$ld_library_path_setting" 1>&6 | |
2029 | if test "$ld_library_path_setting" != "ok"; then | |
63bda0c1 UD |
2030 | { echo "configure: error: |
2031 | *** LD_LIBRARY_PATH shouldn't contain the current directory when | |
2032 | *** building glibc. Please change the environment variable | |
2033 | *** and run configure again." 1>&2; exit 1; } | |
3911660e UD |
2034 | fi |
2035 | ||
cd6ede75 UD |
2036 | # Extract the first word of "bash", so it can be a program name with args. |
2037 | set dummy bash; ac_word=$2 | |
2038 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
2039 | echo "configure:2040: checking for $ac_word" >&5 |
2040 | if eval "test \"\${ac_cv_path_BASH+set}\" = set"; then | |
cd6ede75 UD |
2041 | echo $ac_n "(cached) $ac_c" 1>&6 |
2042 | else | |
2043 | case "$BASH" in | |
2044 | /*) | |
2045 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
2046 | ;; | |
5c2a0669 UD |
2047 | ?:/*) |
2048 | ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path. | |
2049 | ;; | |
cd6ede75 | 2050 | *) |
5c2a0669 UD |
2051 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2052 | ac_dummy="$PATH" | |
2053 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2054 | test -z "$ac_dir" && ac_dir=. |
2055 | if test -f $ac_dir/$ac_word; then | |
2056 | ac_cv_path_BASH="$ac_dir/$ac_word" | |
2057 | break | |
2058 | fi | |
2059 | done | |
2060 | IFS="$ac_save_ifs" | |
2061 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" | |
2062 | ;; | |
2063 | esac | |
2064 | fi | |
2065 | BASH="$ac_cv_path_BASH" | |
2066 | if test -n "$BASH"; then | |
2067 | echo "$ac_t""$BASH" 1>&6 | |
2068 | else | |
2069 | echo "$ac_t""no" 1>&6 | |
2070 | fi | |
2071 | ||
2072 | if test "$BASH" != no && | |
f43ce637 | 2073 | $BASH -c 'test "$BASH_VERSINFO" \ |
6973fc01 | 2074 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
2075 | libc_cv_have_bash2=yes |
2076 | else | |
2077 | libc_cv_have_bash2=no | |
2078 | fi | |
2079 | ||
2080 | ||
2081 | if test "$BASH" = no; then | |
2082 | # Extract the first word of "ksh", so it can be a program name with args. | |
2083 | set dummy ksh; ac_word=$2 | |
2084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
2085 | echo "configure:2086: checking for $ac_word" >&5 |
2086 | if eval "test \"\${ac_cv_path_KSH+set}\" = set"; then | |
cd6ede75 UD |
2087 | echo $ac_n "(cached) $ac_c" 1>&6 |
2088 | else | |
2089 | case "$KSH" in | |
2090 | /*) | |
2091 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. | |
2092 | ;; | |
5c2a0669 UD |
2093 | ?:/*) |
2094 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. | |
2095 | ;; | |
cd6ede75 | 2096 | *) |
5c2a0669 UD |
2097 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2098 | ac_dummy="$PATH" | |
2099 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2100 | test -z "$ac_dir" && ac_dir=. |
2101 | if test -f $ac_dir/$ac_word; then | |
2102 | ac_cv_path_KSH="$ac_dir/$ac_word" | |
2103 | break | |
2104 | fi | |
2105 | done | |
2106 | IFS="$ac_save_ifs" | |
2107 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" | |
2108 | ;; | |
2109 | esac | |
2110 | fi | |
2111 | KSH="$ac_cv_path_KSH" | |
2112 | if test -n "$KSH"; then | |
2113 | echo "$ac_t""$KSH" 1>&6 | |
2114 | else | |
2115 | echo "$ac_t""no" 1>&6 | |
2116 | fi | |
2117 | ||
2118 | if test "$KSH" = no; then | |
2119 | libc_cv_have_ksh=no | |
2120 | else | |
2121 | libc_cv_have_ksh=yes | |
2122 | fi | |
2123 | else | |
2124 | KSH="$BASH" | |
2125 | ||
2126 | libc_cv_have_ksh=yes | |
2127 | fi | |
2128 | ||
2129 | ||
f0d8cfd7 | 2130 | for ac_prog in mawk gawk nawk awk |
a2b08ee5 UD |
2131 | do |
2132 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2133 | set dummy $ac_prog; ac_word=$2 | |
2134 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
2135 | echo "configure:2136: checking for $ac_word" >&5 |
2136 | if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then | |
5aa8ff62 UD |
2137 | echo $ac_n "(cached) $ac_c" 1>&6 |
2138 | else | |
2139 | if test -n "$AWK"; then | |
2140 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2141 | else | |
5c2a0669 UD |
2142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2143 | ac_dummy="$PATH" | |
2144 | for ac_dir in $ac_dummy; do | |
5aa8ff62 UD |
2145 | test -z "$ac_dir" && ac_dir=. |
2146 | if test -f $ac_dir/$ac_word; then | |
2147 | ac_cv_prog_AWK="$ac_prog" | |
2148 | break | |
2149 | fi | |
2150 | done | |
2151 | IFS="$ac_save_ifs" | |
2152 | fi | |
2153 | fi | |
2154 | AWK="$ac_cv_prog_AWK" | |
2155 | if test -n "$AWK"; then | |
2156 | echo "$ac_t""$AWK" 1>&6 | |
2157 | else | |
2158 | echo "$ac_t""no" 1>&6 | |
2159 | fi | |
2160 | ||
2161 | test -n "$AWK" && break | |
2162 | done | |
2163 | ||
c0016081 UD |
2164 | # Extract the first word of "perl", so it can be a program name with args. |
2165 | set dummy perl; ac_word=$2 | |
5aa8ff62 | 2166 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b43b13ac UD |
2167 | echo "configure:2168: checking for $ac_word" >&5 |
2168 | if eval "test \"\${ac_cv_path_PERL+set}\" = set"; then | |
a2b08ee5 UD |
2169 | echo $ac_n "(cached) $ac_c" 1>&6 |
2170 | else | |
2171 | case "$PERL" in | |
2172 | /*) | |
2173 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
2174 | ;; | |
5c2a0669 UD |
2175 | ?:/*) |
2176 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | |
2177 | ;; | |
a2b08ee5 | 2178 | *) |
5c2a0669 UD |
2179 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2180 | ac_dummy="$PATH" | |
2181 | for ac_dir in $ac_dummy; do | |
a2b08ee5 UD |
2182 | test -z "$ac_dir" && ac_dir=. |
2183 | if test -f $ac_dir/$ac_word; then | |
2184 | ac_cv_path_PERL="$ac_dir/$ac_word" | |
2185 | break | |
2186 | fi | |
2187 | done | |
2188 | IFS="$ac_save_ifs" | |
c0016081 | 2189 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
2190 | ;; |
2191 | esac | |
2192 | fi | |
2193 | PERL="$ac_cv_path_PERL" | |
2194 | if test -n "$PERL"; then | |
2195 | echo "$ac_t""$PERL" 1>&6 | |
2196 | else | |
2197 | echo "$ac_t""no" 1>&6 | |
2198 | fi | |
2199 | ||
a2b08ee5 | 2200 | |
c0016081 UD |
2201 | # Extract the first word of "install-info", so it can be a program name with args. |
2202 | set dummy install-info; ac_word=$2 | |
2203 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b43b13ac UD |
2204 | echo "configure:2205: checking for $ac_word" >&5 |
2205 | if eval "test \"\${ac_cv_path_INSTALL_INFO+set}\" = set"; then | |
c0016081 UD |
2206 | echo $ac_n "(cached) $ac_c" 1>&6 |
2207 | else | |
2208 | case "$INSTALL_INFO" in | |
2209 | /*) | |
2210 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
2211 | ;; | |
5c2a0669 UD |
2212 | ?:/*) |
2213 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path. | |
2214 | ;; | |
c0016081 | 2215 | *) |
5c2a0669 | 2216 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9f2a9248 | 2217 | ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
5c2a0669 | 2218 | for ac_dir in $ac_dummy; do |
c0016081 UD |
2219 | test -z "$ac_dir" && ac_dir=. |
2220 | if test -f $ac_dir/$ac_word; then | |
2221 | ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word" | |
2222 | break | |
2223 | fi | |
2224 | done | |
2225 | IFS="$ac_save_ifs" | |
2226 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" | |
2227 | ;; | |
2228 | esac | |
2229 | fi | |
2230 | INSTALL_INFO="$ac_cv_path_INSTALL_INFO" | |
2231 | if test -n "$INSTALL_INFO"; then | |
2232 | echo "$ac_t""$INSTALL_INFO" 1>&6 | |
2233 | else | |
2234 | echo "$ac_t""no" 1>&6 | |
2235 | fi | |
2236 | ||
2237 | ||
2238 | if test "$INSTALL_INFO" != "no"; then | |
2239 | echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6 | |
b43b13ac UD |
2240 | echo "configure:2241: checking for old Debian install-info" >&5 |
2241 | if eval "test \"\${libc_cv_old_debian_install_info+set}\" = set"; then | |
c0016081 UD |
2242 | echo $ac_n "(cached) $ac_c" 1>&6 |
2243 | else | |
2244 | mkdir conftest.d | |
2245 | # There is a hard ^_ on the next line. I am open to better ideas. | |
2246 | (echo '\1f' | |
2247 | echo 'File: dir Node: Top This is the top of the INFO tree' | |
2248 | echo '* Menu:') >conftest.d/dir | |
2249 | (echo 'INFO-DIR-SECTION i-d-s works' | |
2250 | echo 'START-INFO-DIR-ENTRY' | |
2251 | echo '* Prog: (prog). Program.' | |
2252 | echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info | |
2253 | if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1 | |
d8cceb4f | 2254 | then |
c0016081 UD |
2255 | if grep -s 'i-d-s works' conftest.d/dir >/dev/null |
2256 | then libc_cv_old_debian_install_info=no | |
2257 | else libc_cv_old_debian_install_info=yes | |
2258 | fi | |
2259 | else libc_cv_old_debian_install_info=no testfailed=t | |
2260 | fi | |
2261 | rm -fr conftest.d | |
2262 | fi | |
2263 | ||
2264 | echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6 | |
2265 | if test -n "$testfailed" | |
2266 | then echo "configure: warning: install-info errored out, check config.log" 1>&2 | |
2267 | fi | |
2268 | OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info | |
2269 | fi | |
a2b08ee5 UD |
2270 | |
2271 | ||
cd6ede75 | 2272 | echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6 |
b43b13ac UD |
2273 | echo "configure:2274: checking for signed size_t type" >&5 |
2274 | if eval "test \"\${libc_cv_signed_size_t+set}\" = set"; then | |
cd6ede75 UD |
2275 | echo $ac_n "(cached) $ac_c" 1>&6 |
2276 | else | |
2277 | echo '#include <stddef.h> | |
2278 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
2279 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
2280 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
2281 | libc_cv_signed_size_t=no | |
2282 | else | |
2283 | libc_cv_signed_size_t=yes | |
2284 | fi | |
2285 | rm -f conftest* | |
2286 | fi | |
2287 | ||
2288 | echo "$ac_t""$libc_cv_signed_size_t" 1>&6 | |
2289 | if test $libc_cv_signed_size_t = yes; then | |
2290 | cat >> confdefs.h <<\EOF | |
2291 | #undef __SIZE_TYPE__ | |
2292 | #define __SIZE_TYPE__ unsigned | |
2293 | EOF | |
2294 | fi | |
2295 | ||
2296 | echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6 | |
b43b13ac UD |
2297 | echo "configure:2298: checking for libc-friendly stddef.h" >&5 |
2298 | if eval "test \"\${libc_cv_friendly_stddef+set}\" = set"; then | |
cd6ede75 UD |
2299 | echo $ac_n "(cached) $ac_c" 1>&6 |
2300 | else | |
2301 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 2302 | #line 2303 "configure" |
cd6ede75 UD |
2303 | #include "confdefs.h" |
2304 | #define __need_size_t | |
2305 | #define __need_wchar_t | |
2306 | #include <stddef.h> | |
2307 | #define __need_NULL | |
2308 | #include <stddef.h> | |
2309 | int main() { | |
2310 | size_t size; wchar_t wchar; | |
2311 | #ifdef offsetof | |
2312 | #error stddef.h ignored __need_* | |
2313 | #endif | |
2314 | if (&size == NULL || &wchar == NULL) abort (); | |
2315 | ; return 0; } | |
2316 | EOF | |
b43b13ac | 2317 | if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
2318 | rm -rf conftest* |
2319 | libc_cv_friendly_stddef=yes | |
2320 | else | |
2321 | echo "configure: failed program was:" >&5 | |
2322 | cat conftest.$ac_ext >&5 | |
2323 | rm -rf conftest* | |
2324 | libc_cv_friendly_stddef=no | |
2325 | fi | |
2326 | rm -f conftest* | |
2327 | fi | |
2328 | ||
2329 | echo "$ac_t""$libc_cv_friendly_stddef" 1>&6 | |
2330 | if test $libc_cv_friendly_stddef = yes; then | |
2331 | config_vars="$config_vars | |
2332 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
2333 | fi | |
2334 | ||
2335 | echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6 | |
b43b13ac UD |
2336 | echo "configure:2337: checking whether we need to use -P to assemble .S files" >&5 |
2337 | if eval "test \"\${libc_cv_need_minus_P+set}\" = set"; then | |
cd6ede75 UD |
2338 | echo $ac_n "(cached) $ac_c" 1>&6 |
2339 | else | |
2340 | cat > conftest.S <<EOF | |
2341 | #include "confdefs.h" | |
2342 | /* Nothing whatsoever. */ | |
2343 | EOF | |
2344 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
2345 | libc_cv_need_minus_P=no | |
2346 | else | |
2347 | libc_cv_need_minus_P=yes | |
2348 | fi | |
2349 | rm -f conftest* | |
2350 | fi | |
2351 | ||
2352 | echo "$ac_t""$libc_cv_need_minus_P" 1>&6 | |
2353 | if test $libc_cv_need_minus_P = yes; then | |
2354 | config_vars="$config_vars | |
2355 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
2356 | fi | |
2357 | ||
2293395f | 2358 | echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6 |
b43b13ac UD |
2359 | echo "configure:2360: checking whether .text pseudo-op must be used" >&5 |
2360 | if eval "test \"\${libc_cv_dot_text+set}\" = set"; then | |
2293395f UD |
2361 | echo $ac_n "(cached) $ac_c" 1>&6 |
2362 | else | |
2363 | cat > conftest.s <<EOF | |
2364 | .text | |
2365 | EOF | |
2366 | libc_cv_dot_text= | |
2367 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2368 | libc_cv_dot_text=.text | |
2369 | fi | |
2370 | rm -f conftest* | |
2371 | fi | |
2372 | ||
2373 | if test -z "$libc_cv_dot_text"; then | |
2374 | echo "$ac_t""no" 1>&6 | |
2375 | else | |
2376 | echo "$ac_t""yes" 1>&6 | |
2377 | fi | |
2378 | ||
cd6ede75 | 2379 | echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6 |
b43b13ac UD |
2380 | echo "configure:2381: checking for assembler global-symbol directive" >&5 |
2381 | if eval "test \"\${libc_cv_asm_global_directive+set}\" = set"; then | |
cd6ede75 UD |
2382 | echo $ac_n "(cached) $ac_c" 1>&6 |
2383 | else | |
2384 | libc_cv_asm_global_directive=UNKNOWN | |
908c3d5b | 2385 | for ac_globl in .globl .global .EXPORT; do |
cd6ede75 | 2386 | cat > conftest.s <<EOF |
2293395f | 2387 | ${libc_cv_dot_text} |
908c3d5b | 2388 | ${ac_globl} foo |
cd6ede75 UD |
2389 | foo: |
2390 | EOF | |
2391 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2392 | libc_cv_asm_global_directive=${ac_globl} | |
2393 | fi | |
2394 | rm -f conftest* | |
2395 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
2396 | done | |
2397 | fi | |
2398 | ||
2399 | echo "$ac_t""$libc_cv_asm_global_directive" 1>&6 | |
2400 | if test $libc_cv_asm_global_directive = UNKNOWN; then | |
2401 | { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; } | |
2402 | else | |
2403 | cat >> confdefs.h <<EOF | |
2404 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} | |
2405 | EOF | |
2406 | ||
2407 | fi | |
2408 | ||
2409 | echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6 | |
b43b13ac UD |
2410 | echo "configure:2411: checking for .set assembler directive" >&5 |
2411 | if eval "test \"\${libc_cv_asm_set_directive+set}\" = set"; then | |
cd6ede75 UD |
2412 | echo $ac_n "(cached) $ac_c" 1>&6 |
2413 | else | |
2414 | cat > conftest.s <<EOF | |
2293395f | 2415 | ${libc_cv_dot_text} |
cd6ede75 UD |
2416 | foo: |
2417 | .set glibc_conftest_frobozz,foo | |
2418 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
2419 | EOF | |
2420 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
2421 | # (but it doesn't work), so we must do a linking check to be sure. | |
2422 | cat > conftest1.c <<\EOF | |
2423 | extern int glibc_conftest_frobozz; | |
2424 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
2425 | EOF | |
2426 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
2427 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then | |
2428 | libc_cv_asm_set_directive=yes | |
2429 | else | |
2430 | libc_cv_asm_set_directive=no | |
2431 | fi | |
2432 | rm -f conftest* | |
2433 | fi | |
2434 | ||
2435 | echo "$ac_t""$libc_cv_asm_set_directive" 1>&6 | |
2436 | if test $libc_cv_asm_set_directive = yes; then | |
2437 | cat >> confdefs.h <<\EOF | |
2438 | #define HAVE_ASM_SET_DIRECTIVE 1 | |
2439 | EOF | |
2440 | ||
2441 | fi | |
2442 | ||
2443 | echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6 | |
b43b13ac UD |
2444 | echo "configure:2445: checking for .symver assembler directive" >&5 |
2445 | if eval "test \"\${libc_cv_asm_symver_directive+set}\" = set"; then | |
cd6ede75 UD |
2446 | echo $ac_n "(cached) $ac_c" 1>&6 |
2447 | else | |
2448 | cat > conftest.s <<EOF | |
2293395f | 2449 | ${libc_cv_dot_text} |
cd6ede75 UD |
2450 | _sym: |
2451 | .symver _sym,sym@VERS | |
2452 | EOF | |
2453 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
2454 | libc_cv_asm_symver_directive=yes | |
2455 | else | |
2456 | libc_cv_asm_symver_directive=no | |
2457 | fi | |
2458 | rm -f conftest* | |
2459 | fi | |
2460 | ||
2461 | echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6 | |
2462 | echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6 | |
b43b13ac UD |
2463 | echo "configure:2464: checking for ld --version-script" >&5 |
2464 | if eval "test \"\${libc_cv_ld_version_script_option+set}\" = set"; then | |
cd6ede75 UD |
2465 | echo $ac_n "(cached) $ac_c" 1>&6 |
2466 | else | |
2467 | if test $libc_cv_asm_symver_directive = yes; then | |
2468 | cat > conftest.s <<EOF | |
2293395f | 2469 | ${libc_cv_dot_text} |
cd6ede75 UD |
2470 | _sym: |
2471 | .symver _sym,sym@VERS | |
2472 | EOF | |
2473 | cat > conftest.map <<EOF | |
f43ce637 | 2474 | VERS_1 { |
cd6ede75 UD |
2475 | global: sym; |
2476 | }; | |
f43ce637 UD |
2477 | |
2478 | VERS_2 { | |
2479 | global: sym; | |
2480 | } VERS_1; | |
cd6ede75 UD |
2481 | EOF |
2482 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
2483 | if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o | |
2484 | -nostartfiles -nostdlib | |
2485 | -Wl,--version-script,conftest.map | |
b43b13ac | 2486 | 1>&5'; { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
cd6ede75 UD |
2487 | then |
2488 | libc_cv_ld_version_script_option=yes | |
2489 | else | |
2490 | libc_cv_ld_version_script_option=no | |
2491 | fi | |
2492 | else | |
2493 | libc_cv_ld_version_script_option=no | |
2494 | fi | |
2495 | else | |
2496 | libc_cv_ld_version_script_option=no | |
2497 | fi | |
2498 | rm -f conftest* | |
2499 | fi | |
2500 | ||
2501 | echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6 | |
2502 | if test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
2503 | test $libc_cv_ld_version_script_option = yes && |
2504 | test $enable_versioning = yes; then | |
cd6ede75 UD |
2505 | VERSIONING=yes |
2506 | cat >> confdefs.h <<\EOF | |
2507 | #define DO_VERSIONING 1 | |
2508 | EOF | |
2509 | ||
2510 | else | |
2511 | VERSIONING=no | |
2512 | fi | |
2513 | ||
2514 | ||
f43ce637 UD |
2515 | if test $VERSIONING = no; then |
2516 | echo "\ | |
f4017d20 | 2517 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
2518 | *** versioning will introduce incompatibilities so that old binaries |
2519 | *** will not run anymore. | |
08a0d60a | 2520 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 2521 | fi |
cd6ede75 UD |
2522 | if test $elf = yes; then |
2523 | echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6 | |
b43b13ac UD |
2524 | echo "configure:2525: checking for .previous assembler directive" >&5 |
2525 | if eval "test \"\${libc_cv_asm_previous_directive+set}\" = set"; then | |
cd6ede75 UD |
2526 | echo $ac_n "(cached) $ac_c" 1>&6 |
2527 | else | |
2528 | cat > conftest.s <<EOF | |
2529 | .section foo_section | |
2530 | .previous | |
2531 | EOF | |
b43b13ac | 2532 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2533 | libc_cv_asm_previous_directive=yes |
2534 | else | |
2535 | libc_cv_asm_previous_directive=no | |
2536 | fi | |
2537 | rm -f conftest* | |
2538 | fi | |
2539 | ||
2540 | echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6 | |
2541 | if test $libc_cv_asm_previous_directive = yes; then | |
2542 | cat >> confdefs.h <<\EOF | |
2543 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 | |
2544 | EOF | |
2545 | ||
2546 | else | |
2547 | echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 | |
b43b13ac UD |
2548 | echo "configure:2549: checking for .popsection assembler directive" >&5 |
2549 | if eval "test \"\${libc_cv_asm_popsection_directive+set}\" = set"; then | |
cd6ede75 UD |
2550 | echo $ac_n "(cached) $ac_c" 1>&6 |
2551 | else | |
2552 | cat > conftest.s <<EOF | |
2553 | .pushsection foo_section | |
2554 | .popsection | |
2555 | EOF | |
b43b13ac | 2556 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2557 | libc_cv_asm_popsection_directive=yes |
2558 | else | |
2559 | libc_cv_asm_popsection_directive=no | |
2560 | fi | |
2561 | rm -f conftest* | |
2562 | fi | |
2563 | ||
2564 | echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 | |
2565 | if test $libc_cv_asm_popsection_directive = yes; then | |
2566 | cat >> confdefs.h <<\EOF | |
2567 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 | |
2568 | EOF | |
2569 | ||
2570 | fi | |
2571 | fi | |
2572 | fi | |
2573 | ||
2574 | if test $elf != yes; then | |
2575 | echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6 | |
b43b13ac UD |
2576 | echo "configure:2577: checking for .init and .fini sections" >&5 |
2577 | if eval "test \"\${libc_cv_have_initfini+set}\" = set"; then | |
cd6ede75 UD |
2578 | echo $ac_n "(cached) $ac_c" 1>&6 |
2579 | else | |
2580 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 2581 | #line 2582 "configure" |
cd6ede75 UD |
2582 | #include "confdefs.h" |
2583 | ||
2584 | int main() { | |
2585 | asm (".section .init"); | |
2586 | asm (".section .fini"); | |
2293395f | 2587 | asm ("${libc_cv_dot_text}"); |
cd6ede75 UD |
2588 | ; return 0; } |
2589 | EOF | |
b43b13ac | 2590 | if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
2591 | rm -rf conftest* |
2592 | libc_cv_have_initfini=yes | |
2593 | else | |
2594 | echo "configure: failed program was:" >&5 | |
2595 | cat conftest.$ac_ext >&5 | |
2596 | rm -rf conftest* | |
2597 | libc_cv_have_initfini=no | |
2598 | fi | |
2599 | rm -f conftest* | |
2600 | fi | |
2601 | ||
2602 | echo "$ac_t""$libc_cv_have_initfini" 1>&6 | |
2603 | if test $libc_cv_have_initfini = yes; then | |
2604 | cat >> confdefs.h <<\EOF | |
2605 | #define HAVE_INITFINI 1 | |
2606 | EOF | |
2607 | ||
2608 | fi | |
2609 | fi | |
2610 | ||
9a0a462c UD |
2611 | |
2612 | ||
cd6ede75 UD |
2613 | if test $elf = yes; then |
2614 | libc_cv_asm_underscores=no | |
2615 | else | |
9a0a462c UD |
2616 | if test $ac_cv_prog_cc_works = yes; then |
2617 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
b43b13ac UD |
2618 | echo "configure:2619: checking for _ prefix on C symbol names" >&5 |
2619 | if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then | |
cd6ede75 UD |
2620 | echo $ac_n "(cached) $ac_c" 1>&6 |
2621 | else | |
2622 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 2623 | #line 2624 "configure" |
cd6ede75 UD |
2624 | #include "confdefs.h" |
2625 | asm ("_glibc_foobar:"); | |
2626 | int main() { | |
2627 | glibc_foobar (); | |
2628 | ; return 0; } | |
2629 | EOF | |
b43b13ac | 2630 | if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cd6ede75 UD |
2631 | rm -rf conftest* |
2632 | libc_cv_asm_underscores=yes | |
2633 | else | |
2634 | echo "configure: failed program was:" >&5 | |
2635 | cat conftest.$ac_ext >&5 | |
2636 | rm -rf conftest* | |
2637 | libc_cv_asm_underscores=no | |
2638 | fi | |
2639 | rm -f conftest* | |
2640 | fi | |
2641 | ||
2642 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
9a0a462c UD |
2643 | else |
2644 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
b43b13ac UD |
2645 | echo "configure:2646: checking for _ prefix on C symbol names" >&5 |
2646 | if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then | |
9a0a462c UD |
2647 | echo $ac_n "(cached) $ac_c" 1>&6 |
2648 | else | |
2649 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 2650 | #line 2651 "configure" |
9a0a462c UD |
2651 | #include "confdefs.h" |
2652 | void underscore_test(void) { | |
2653 | return; } | |
2654 | EOF | |
b43b13ac | 2655 | if { (eval echo configure:2656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9a0a462c UD |
2656 | if grep _underscore_test conftest* >/dev/null; then |
2657 | rm -f conftest* | |
2658 | libc_cv_asm_underscores=yes | |
2659 | else | |
2660 | rm -f conftest* | |
2661 | libc_cv_asm_underscores=no | |
2662 | fi | |
2663 | else | |
2664 | echo "configure: failed program was:" >&5 | |
2665 | cat conftest.$ac_ext >&5 | |
2666 | rm -f conftest* | |
2667 | libc_cv_asm_underscores=no | |
2668 | fi | |
2669 | rm -f conftest* | |
2670 | fi | |
2671 | ||
2672 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
2673 | fi | |
cd6ede75 UD |
2674 | fi |
2675 | if test $libc_cv_asm_underscores = no; then | |
2676 | cat >> confdefs.h <<\EOF | |
2677 | #define NO_UNDERSCORES 1 | |
2678 | EOF | |
2679 | ||
2680 | fi | |
2681 | ||
2682 | if test $elf = yes; then | |
2683 | libc_cv_weak_symbols=yes | |
9a97d1f7 UD |
2684 | fi |
2685 | ||
2686 | echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6 | |
b43b13ac UD |
2687 | echo "configure:2688: checking for assembler .weak directive" >&5 |
2688 | if eval "test \"\${libc_cv_asm_weak_directive+set}\" = set"; then | |
cd6ede75 UD |
2689 | echo $ac_n "(cached) $ac_c" 1>&6 |
2690 | else | |
2691 | cat > conftest.s <<EOF | |
2293395f | 2692 | ${libc_cv_dot_text} |
cd6ede75 UD |
2693 | ${libc_cv_asm_global_directive} foo |
2694 | foo: | |
2695 | .weak foo | |
2696 | .weak bar; bar = foo | |
2697 | EOF | |
9a97d1f7 UD |
2698 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then |
2699 | libc_cv_asm_weak_directive=yes | |
2700 | else | |
2701 | libc_cv_asm_weak_directive=no | |
2702 | fi | |
2703 | rm -f conftest* | |
cd6ede75 UD |
2704 | fi |
2705 | ||
2706 | echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6 | |
2707 | ||
2708 | if test $libc_cv_asm_weak_directive = no; then | |
2709 | echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6 | |
b43b13ac UD |
2710 | echo "configure:2711: checking for assembler .weakext directive" >&5 |
2711 | if eval "test \"\${libc_cv_asm_weakext_directive+set}\" = set"; then | |
cd6ede75 UD |
2712 | echo $ac_n "(cached) $ac_c" 1>&6 |
2713 | else | |
2714 | cat > conftest.s <<EOF | |
2293395f | 2715 | ${libc_cv_dot_text} |
cd6ede75 UD |
2716 | ${libc_cv_asm_global_directive} foo |
2717 | foo: | |
9a97d1f7 UD |
2718 | .weakext bar foo |
2719 | .weakext baz | |
2720 | ${libc_cv_asm_global_directive} baz | |
2721 | baz: | |
cd6ede75 UD |
2722 | EOF |
2723 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2724 | libc_cv_asm_weakext_directive=yes | |
2725 | else | |
2726 | libc_cv_asm_weakext_directive=no | |
2727 | fi | |
2728 | rm -f conftest* | |
2729 | fi | |
2730 | ||
2731 | echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6 | |
2732 | ||
9a97d1f7 | 2733 | fi # no .weak |
cd6ede75 UD |
2734 | |
2735 | if test $libc_cv_asm_weak_directive = yes; then | |
2736 | cat >> confdefs.h <<\EOF | |
2737 | #define HAVE_ASM_WEAK_DIRECTIVE 1 | |
2738 | EOF | |
2739 | ||
2740 | elif test $libc_cv_asm_weakext_directive = yes; then | |
2741 | cat >> confdefs.h <<\EOF | |
2742 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 | |
2743 | EOF | |
2744 | ||
2745 | fi | |
2746 | ||
2747 | echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6 | |
b43b13ac UD |
2748 | echo "configure:2749: checking for ld --no-whole-archive" >&5 |
2749 | if eval "test \"\${libc_cv_ld_no_whole_archive+set}\" = set"; then | |
cd6ede75 UD |
2750 | echo $ac_n "(cached) $ac_c" 1>&6 |
2751 | else | |
2752 | cat > conftest.c <<\EOF | |
2753 | _start () {} | |
2754 | int __eh_pc; | |
2755 | __throw () {} | |
2756 | EOF | |
2757 | if { ac_try='${CC-cc} $CFLAGS | |
2758 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
b43b13ac | 2759 | -o conftest conftest.c 1>&5'; { (eval echo configure:2760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2760 | libc_cv_ld_no_whole_archive=yes |
2761 | else | |
2762 | libc_cv_ld_no_whole_archive=no | |
2763 | fi | |
2764 | rm -f conftest* | |
2765 | fi | |
2766 | ||
2767 | echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6 | |
b17277cf UD |
2768 | if test $libc_cv_ld_no_whole_archive = yes; then |
2769 | no_whole_archive=-Wl,--no-whole-archive | |
2770 | fi | |
cd6ede75 | 2771 | |
dff14448 | 2772 | echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6 |
b43b13ac UD |
2773 | echo "configure:2774: checking for gcc -fexceptions" >&5 |
2774 | if eval "test \"\${libc_cv_gcc_exceptions+set}\" = set"; then | |
cd6ede75 UD |
2775 | echo $ac_n "(cached) $ac_c" 1>&6 |
2776 | else | |
2777 | cat > conftest.c <<\EOF | |
2778 | _start () {} | |
2779 | int __eh_pc; | |
2780 | __throw () {} | |
2781 | EOF | |
2782 | if { ac_try='${CC-cc} $CFLAGS | |
dff14448 | 2783 | -nostdlib -nostartfiles -fexceptions |
b43b13ac | 2784 | -o conftest conftest.c 1>&5'; { (eval echo configure:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
dff14448 | 2785 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 2786 | else |
dff14448 | 2787 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
2788 | fi |
2789 | rm -f conftest* | |
2790 | fi | |
2791 | ||
dff14448 UD |
2792 | echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6 |
2793 | if test $libc_cv_gcc_exceptions = yes; then | |
2794 | exceptions=-fexceptions | |
b17277cf | 2795 | fi |
cd6ede75 | 2796 | |
d71b808a UD |
2797 | if test "$base_machine" = alpha ; then |
2798 | echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6 | |
b43b13ac UD |
2799 | echo "configure:2800: checking for function ..ng prefix" >&5 |
2800 | if eval "test \"\${libc_cv_gcc_alpha_ng_prefix+set}\" = set"; then | |
d71b808a UD |
2801 | echo $ac_n "(cached) $ac_c" 1>&6 |
2802 | else | |
2803 | cat > conftest.c <<\EOF | |
2804 | foo () { } | |
2805 | EOF | |
b43b13ac | 2806 | if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
d71b808a UD |
2807 | then |
2808 | libc_cv_gcc_alpha_ng_prefix=yes | |
2809 | else | |
2810 | libc_cv_gcc_alpha_ng_prefix=no | |
2811 | fi | |
2812 | rm -f conftest* | |
2813 | fi | |
2814 | ||
2815 | echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6 | |
2816 | if test $libc_cv_gcc_alpha_ng_prefix = yes ; then | |
2817 | cat >> confdefs.h <<\EOF | |
2818 | #define ASM_ALPHA_NG_SYMBOL_PREFIX "$" | |
2819 | EOF | |
2820 | ||
2821 | else | |
2822 | cat >> confdefs.h <<\EOF | |
2823 | #define ASM_ALPHA_NG_SYMBOL_PREFIX "" | |
2824 | EOF | |
2825 | ||
2826 | fi | |
2827 | fi | |
2828 | ||
ebcd12d4 UD |
2829 | if test "$host_cpu" = powerpc ; then |
2830 | # Check for a bug present in at least versions 2.8.x of GCC | |
2831 | # and versions 1.0.x of EGCS. | |
2832 | echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6 | |
b43b13ac UD |
2833 | echo "configure:2834: checking whether clobbering cr0 causes problems" >&5 |
2834 | if eval "test \"\${libc_cv_c_asmcr0_bug+set}\" = set"; then | |
ebcd12d4 UD |
2835 | echo $ac_n "(cached) $ac_c" 1>&6 |
2836 | else | |
2837 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 2838 | #line 2839 "configure" |
ebcd12d4 UD |
2839 | #include "confdefs.h" |
2840 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } | |
2841 | int main() { | |
2842 | ||
2843 | ; return 0; } | |
2844 | EOF | |
b43b13ac | 2845 | if { (eval echo configure:2846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ebcd12d4 UD |
2846 | rm -rf conftest* |
2847 | libc_cv_c_asmcr0_bug='no' | |
2848 | else | |
2849 | echo "configure: failed program was:" >&5 | |
2850 | cat conftest.$ac_ext >&5 | |
2851 | rm -rf conftest* | |
2852 | libc_cv_c_asmcr0_bug='yes' | |
2853 | fi | |
2854 | rm -f conftest* | |
2855 | fi | |
2856 | ||
2857 | echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6 | |
2858 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then | |
2859 | cat >> confdefs.h <<\EOF | |
2860 | #define BROKEN_PPC_ASM_CR0 1 | |
2861 | EOF | |
2862 | ||
2863 | fi | |
2864 | fi | |
2865 | ||
650425ce | 2866 | echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6 |
b43b13ac UD |
2867 | echo "configure:2868: checking for DWARF2 unwind info support" >&5 |
2868 | if eval "test \"\${libc_cv_gcc_dwarf2_unwind_info+set}\" = set"; then | |
650425ce UD |
2869 | echo $ac_n "(cached) $ac_c" 1>&6 |
2870 | else | |
2871 | cat > conftest.c <<EOF | |
b43b13ac | 2872 | #line 2873 "configure" |
650425ce UD |
2873 | static char __EH_FRAME_BEGIN__; |
2874 | _start () | |
2875 | { | |
9756dfe1 | 2876 | #ifdef CHECK__register_frame |
650425ce UD |
2877 | __register_frame (__EH_FRAME_BEGIN__); |
2878 | __deregister_frame (__EH_FRAME_BEGIN__); | |
9756dfe1 UD |
2879 | #endif |
2880 | #ifdef CHECK__register_frame_info | |
2881 | __register_frame_info (__EH_FRAME_BEGIN__); | |
2882 | __deregister_frame_info (__EH_FRAME_BEGIN__); | |
2883 | #endif | |
650425ce UD |
2884 | } |
2885 | int __eh_pc; | |
2886 | __throw () {} | |
2887 | /* FIXME: this is fragile. */ | |
2888 | malloc () {} | |
2889 | strcmp () {} | |
2890 | strlen () {} | |
2891 | memcpy () {} | |
2892 | memset () {} | |
2893 | free () {} | |
2894 | abort () {} | |
dfd2257a | 2895 | __bzero () {} |
650425ce | 2896 | EOF |
9756dfe1 | 2897 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info |
650425ce | 2898 | -nostdlib -nostartfiles |
b43b13ac | 2899 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
9756dfe1 | 2900 | libc_cv_gcc_dwarf2_unwind_info=static |
650425ce UD |
2901 | else |
2902 | libc_cv_gcc_dwarf2_unwind_info=no | |
2903 | fi | |
9756dfe1 UD |
2904 | if test $libc_cv_gcc_dwarf2_unwind_info = no; then |
2905 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame | |
2906 | -nostdlib -nostartfiles | |
b43b13ac | 2907 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
9756dfe1 UD |
2908 | libc_cv_gcc_dwarf2_unwind_info=yes |
2909 | else | |
2910 | libc_cv_gcc_dwarf2_unwind_info=no | |
2911 | fi | |
2912 | fi | |
650425ce UD |
2913 | rm -f conftest* |
2914 | fi | |
2915 | ||
2916 | echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6 | |
9756dfe1 UD |
2917 | case $libc_cv_gcc_dwarf2_unwind_info in |
2918 | yes) | |
650425ce UD |
2919 | cat >> confdefs.h <<\EOF |
2920 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
2921 | EOF | |
2922 | ||
9756dfe1 UD |
2923 | ;; |
2924 | static) | |
2925 | cat >> confdefs.h <<\EOF | |
2926 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
2927 | EOF | |
2928 | ||
2929 | cat >> confdefs.h <<\EOF | |
2930 | #define HAVE_DWARF2_UNWIND_INFO_STATIC 1 | |
2931 | EOF | |
2932 | ||
2933 | ;; | |
2934 | esac | |
650425ce | 2935 | |
a8eab8b1 | 2936 | echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6 |
b43b13ac UD |
2937 | echo "configure:2938: checking for __builtin_expect" >&5 |
2938 | if eval "test \"\${libc_cv_gcc_builtin_expect+set}\" = set"; then | |
a8eab8b1 UD |
2939 | echo $ac_n "(cached) $ac_c" 1>&6 |
2940 | else | |
2941 | cat > conftest.c <<EOF | |
b43b13ac | 2942 | #line 2943 "configure" |
a8eab8b1 UD |
2943 | int foo (int a) |
2944 | { | |
2945 | a = __builtin_expect (a, 10); | |
2946 | return a == 10 ? 0 : 1; | |
2947 | } | |
2948 | EOF | |
2949 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
b43b13ac | 2950 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
a8eab8b1 UD |
2951 | libc_cv_gcc_builtin_expect=yes |
2952 | else | |
2953 | libc_cv_gcc_builtin_expect=no | |
2954 | fi | |
2955 | rm -f conftest* | |
2956 | fi | |
2957 | ||
2958 | echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6 | |
2959 | if test "$libc_cv_gcc_builtin_expect" = yes; then | |
2960 | cat >> confdefs.h <<\EOF | |
2961 | #define HAVE_BUILTIN_EXPECT 1 | |
2962 | EOF | |
2963 | ||
2964 | fi | |
2965 | ||
3d558f4e | 2966 | echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6 |
b43b13ac UD |
2967 | echo "configure:2968: checking for local label subtraction" >&5 |
2968 | if eval "test \"\${libc_cv_gcc_subtract_local_labels+set}\" = set"; then | |
3d558f4e UD |
2969 | echo $ac_n "(cached) $ac_c" 1>&6 |
2970 | else | |
2971 | cat > conftest.c <<EOF | |
b43b13ac | 2972 | #line 2973 "configure" |
3d558f4e UD |
2973 | int foo (int a) |
2974 | { | |
2975 | static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; | |
2976 | void *p = &&l1 + ar[a]; | |
2977 | goto *p; | |
2978 | l1: | |
2979 | return 1; | |
2980 | l2: | |
2981 | return 2; | |
2982 | } | |
2983 | EOF | |
2984 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
b43b13ac | 2985 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
3d558f4e UD |
2986 | libc_cv_gcc_subtract_local_labels=yes |
2987 | else | |
2988 | libc_cv_gcc_subtract_local_labels=no | |
2989 | fi | |
2990 | rm -f conftest* | |
2991 | fi | |
2992 | ||
2993 | echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6 | |
2994 | if test "$libc_cv_gcc_subtract_local_labels" = yes; then | |
2995 | cat >> confdefs.h <<\EOF | |
2996 | #define HAVE_SUBTRACT_LOCAL_LABELS 1 | |
2997 | EOF | |
2998 | ||
2999 | fi | |
3000 | ||
c8f3e6db | 3001 | echo $ac_n "checking for libgd""... $ac_c" 1>&6 |
b43b13ac | 3002 | echo "configure:3003: checking for libgd" >&5 |
c8f3e6db UD |
3003 | old_CFLAGS="$CFLAGS" |
3004 | CFLAGS="$CFLAGS $libgd_include" | |
3005 | old_LDFLAGS="$LDFLAGS" | |
3006 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
3007 | old_LIBS="$LIBS" | |
3008 | LIBS="$LIBS -lgd -lpng -lz" | |
3009 | cat > conftest.$ac_ext <<EOF | |
b43b13ac | 3010 | #line 3011 "configure" |
c8f3e6db UD |
3011 | #include "confdefs.h" |
3012 | #include <gd.h> | |
3013 | int main() { | |
3014 | gdImagePng (0, 0) | |
3015 | ; return 0; } | |
3016 | EOF | |
b43b13ac | 3017 | if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c8f3e6db UD |
3018 | rm -rf conftest* |
3019 | LIBGD=yes | |
3020 | else | |
3021 | echo "configure: failed program was:" >&5 | |
3022 | cat conftest.$ac_ext >&5 | |
3023 | rm -rf conftest* | |
3024 | LIBGD=no | |
3025 | fi | |
3026 | rm -f conftest* | |
3027 | CFLAGS="$old_CFLAGS" | |
3028 | LDFLAGS="$old_LDFLAGS" | |
3029 | LIBS="$old_LIBS" | |
3030 | echo "$ac_t""$LIBGD" 1>&6 | |
3031 | ||
3d558f4e | 3032 | |
cd6ede75 UD |
3033 | ### End of automated tests. |
3034 | ### Now run sysdeps configure fragments. | |
3035 | ||
3036 | # sysdeps configure fragments may set these with files to be linked below. | |
3037 | libc_link_dests= | |
3038 | libc_link_sources= | |
3039 | ||
cb343854 | 3040 | # They also can set these variables. |
b43b13ac | 3041 | use_ldconfig=no |
cb343854 UD |
3042 | ldd_rewrite_script=no |
3043 | ||
cd6ede75 UD |
3044 | # Iterate over all the sysdep directories we will use, running their |
3045 | # configure fragments, and looking for a uname implementation. | |
3046 | uname= | |
3047 | for dir in $sysnames; do | |
3048 | case $dir in | |
3049 | /*) dest=$dir ;; | |
3050 | *) dest=$srcdir/$dir ;; | |
3051 | esac | |
3052 | if test -r $dest/configure; then | |
3053 | echo "$ac_t""running configure fragment for $dest" 1>&6 | |
3054 | . $dest/configure | |
3055 | fi | |
3056 | ||
3057 | if test -z "$uname"; then | |
3058 | if test -r $dest/uname.c || | |
3059 | test -r $dest/uname.S || | |
3060 | { test -r $dest/syscalls.list && | |
3061 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
3062 | uname=$dir | |
3063 | fi | |
3064 | fi | |
3065 | done | |
3066 | ||
3067 | ||
3068 | ||
3069 | # If we will use the generic uname implementation, we must figure out what | |
3070 | # it will say by examining the system, and write the results in config-name.h. | |
3071 | if test "$uname" = "sysdeps/generic"; then | |
3072 | ||
3073 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
3074 | if test $uname_sysname != $config_os; then | |
3075 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
3076 | fi | |
3077 | ||
3078 | echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 | |
b43b13ac UD |
3079 | echo "configure:3080: checking OS release for uname" >&5 |
3080 | if eval "test \"\${libc_cv_uname_release+set}\" = set"; then | |
cd6ede75 UD |
3081 | echo $ac_n "(cached) $ac_c" 1>&6 |
3082 | else | |
3083 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
3084 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ | |
3085 | != x$config_release; then | |
3086 | # The configuration release is a substring of the kernel release. | |
3087 | libc_cv_uname_release=$kernel_release | |
3088 | elif test x$config_release != x; then | |
3089 | libc_cv_uname_release=$config_release | |
3090 | elif test x$kernel_release != x; then | |
3091 | libc_cv_uname_release=$kernel_release | |
3092 | else | |
3093 | libc_cv_uname_release=unknown | |
3094 | fi | |
3095 | fi | |
3096 | ||
3097 | echo "$ac_t""$libc_cv_uname_release" 1>&6 | |
3098 | uname_release="$libc_cv_uname_release" | |
3099 | ||
3100 | echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 | |
b43b13ac UD |
3101 | echo "configure:3102: checking OS version for uname" >&5 |
3102 | if eval "test \"\${libc_cv_uname_version+set}\" = set"; then | |
cd6ede75 UD |
3103 | echo $ac_n "(cached) $ac_c" 1>&6 |
3104 | else | |
3105 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
3106 | if test -n "$kernel_version"; then | |
3107 | libc_cv_uname_version="$kernel_version" | |
3108 | else | |
3109 | libc_cv_uname_version=unknown | |
3110 | fi | |
3111 | fi | |
3112 | ||
3113 | echo "$ac_t""$libc_cv_uname_version" 1>&6 | |
3114 | uname_version="$libc_cv_uname_version" | |
3115 | ||
3116 | config_uname=config-name.h:config-name.in | |
3117 | else | |
3118 | # For non-generic uname, we don't need to create config-name.h at all. | |
3119 | config_uname= | |
3120 | fi | |
3121 | ||
3122 | echo $ac_n "checking stdio selection""... $ac_c" 1>&6 | |
b43b13ac | 3123 | echo "configure:3124: checking stdio selection" >&5 |
cd6ede75 UD |
3124 | |
3125 | case $stdio in | |
3126 | libio) cat >> confdefs.h <<\EOF | |
3127 | #define USE_IN_LIBIO 1 | |
3128 | EOF | |
3129 | ;; | |
3130 | default) stdio=stdio ;; | |
3131 | esac | |
3132 | echo "$ac_t""$stdio" 1>&6 | |
3133 | ||
a53bad16 UD |
3134 | # Test for old glibc 2.0.x headers so that they can be removed properly |
3135 | # Search only in includedir. | |
3136 | echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6 | |
b43b13ac | 3137 | echo "configure:3138: checking for old glibc 2.0.x headers" >&5 |
011ce8ed | 3138 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
3139 | then |
3140 | old_glibc_headers=yes | |
3141 | else | |
3142 | old_glibc_headers=no | |
3143 | fi | |
3144 | echo "$ac_t""$old_glibc_headers" 1>&6 | |
3145 | if test ${old_glibc_headers} = yes; then | |
3146 | echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2 | |
3147 | echo "configure: warning: *** be removed." 1>&2 | |
3148 | fi | |
26b4d766 | 3149 | |
cd6ede75 UD |
3150 | |
3151 | ||
3152 | ||
3153 | ||
3154 | ||
3155 | ||
cb343854 | 3156 | |
dff14448 | 3157 | |
cd6ede75 UD |
3158 | |
3159 | if test $gnu_ld = yes; then | |
3160 | cat >> confdefs.h <<\EOF | |
3161 | #define HAVE_GNU_LD 1 | |
3162 | EOF | |
3163 | ||
3164 | fi | |
3165 | if test $gnu_as = yes; then | |
3166 | cat >> confdefs.h <<\EOF | |
3167 | #define HAVE_GNU_AS 1 | |
3168 | EOF | |
3169 | ||
3170 | fi | |
3171 | if test $elf = yes; then | |
3172 | cat >> confdefs.h <<\EOF | |
3173 | #define HAVE_ELF 1 | |
3174 | EOF | |
3175 | ||
3176 | fi | |
3177 | ||
3178 | ||
650425ce | 3179 | |
cd6ede75 UD |
3180 | if test $shared = default; then |
3181 | if test $gnu_ld = yes; then | |
3182 | shared=$elf | |
3183 | else | |
3184 | # For now we do not assume shared libs are available. In future more | |
3185 | # tests might become available. | |
3186 | shared=no | |
3187 | fi | |
3188 | fi | |
3189 | ||
cc3fa755 | 3190 | echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6 |
b43b13ac UD |
3191 | echo "configure:3192: checking whether -fPIC is default" >&5 |
3192 | if eval "test \"\${pic_default+set}\" = set"; then | |
cc3fa755 UD |
3193 | echo $ac_n "(cached) $ac_c" 1>&6 |
3194 | else | |
3195 | pic_default=yes | |
3196 | cat > conftest.c <<EOF | |
9756dfe1 | 3197 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
3198 | # error PIC is default. |
3199 | #endif | |
3200 | EOF | |
3201 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
3202 | pic_default=no | |
3203 | fi | |
3204 | rm -f conftest.* | |
3205 | fi | |
3206 | ||
3207 | echo "$ac_t""$pic_default" 1>&6 | |
3208 | ||
3209 | ||
3210 | ||
cd6ede75 UD |
3211 | |
3212 | ||
3213 | ||
3214 | ||
3215 | ||
3216 | ||
3217 | ||
7cabd57c UD |
3218 | case "$add_ons" in |
3219 | *door*) linux_doors=yes ;; | |
3220 | *) linux_doors=no ;; | |
3221 | esac | |
3222 | ||
3223 | ||
cd6ede75 UD |
3224 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
3225 | config_makefile= | |
3226 | else | |
3227 | config_makefile=Makefile | |
3228 | fi | |
3229 | ||
ee74a442 UD |
3230 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
3231 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
3232 | ||
cd6ede75 UD |
3233 | |
3234 | ||
0013b2b1 UD |
3235 | echo '*** Do NOT install this release on any production system!' |
3236 | echo '*** It is known to be broken and will be so for quite some time.' | |
3237 | echo '*** Use the latest released version instead.' | |
3238 | ||
cd6ede75 UD |
3239 | trap '' 1 2 15 |
3240 | cat > confcache <<\EOF | |
3241 | # This file is a shell script that caches the results of configure | |
3242 | # tests run on this system so they can be shared between configure | |
3243 | # scripts and configure runs. It is not useful on other systems. | |
3244 | # If it contains results you don't want to keep, you may remove or edit it. | |
3245 | # | |
3246 | # By default, configure uses ./config.cache as the cache file, | |
3247 | # creating it if it does not exist already. You can give configure | |
3248 | # the --cache-file=FILE option to use a different cache file; that is | |
3249 | # what configure does when it calls configure scripts in | |
3250 | # subdirectories, so they share the cache. | |
3251 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
3252 | # config.status only pays attention to the cache file if you give it the | |
3253 | # --recheck option to rerun configure. | |
3254 | # | |
3255 | EOF | |
3256 | # The following way of writing the cache mishandles newlines in values, | |
3257 | # but we know of no workaround that is simple, portable, and efficient. | |
3258 | # So, don't put newlines in cache variables' values. | |
3259 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3260 | # and sets the high bit in the cache file unless we assign to the vars. | |
3261 | (set) 2>&1 | | |
5c2a0669 | 3262 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
cd6ede75 UD |
3263 | *ac_space=\ *) |
3264 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
3265 | # turns \\\\ into \\, and sed turns \\ into \). | |
3266 | sed -n \ | |
3267 | -e "s/'/'\\\\''/g" \ | |
3268 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
3269 | ;; | |
3270 | *) | |
3271 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3272 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
3273 | ;; | |
3274 | esac >> confcache | |
3275 | if cmp -s $cache_file confcache; then | |
3276 | : | |
3277 | else | |
3278 | if test -w $cache_file; then | |
3279 | echo "updating cache $cache_file" | |
3280 | cat confcache > $cache_file | |
3281 | else | |
3282 | echo "not updating unwritable cache $cache_file" | |
3283 | fi | |
3284 | fi | |
3285 | rm -f confcache | |
3286 | ||
3287 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3288 | ||
3289 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3290 | # Let make expand exec_prefix. | |
3291 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3292 | ||
3293 | # Any assignment to VPATH causes Sun make to only execute | |
3294 | # the first set of double-colon rules, so remove it if not needed. | |
3295 | # If there is a colon in the path, we need to keep it. | |
3296 | if test "x$srcdir" = x.; then | |
3297 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3298 | fi | |
3299 | ||
3300 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3301 | ||
3302 | DEFS=-DHAVE_CONFIG_H | |
3303 | ||
3304 | # Without the "./", some shells look in PATH for config.status. | |
3305 | : ${CONFIG_STATUS=./config.status} | |
3306 | ||
3307 | echo creating $CONFIG_STATUS | |
3308 | rm -f $CONFIG_STATUS | |
3309 | cat > $CONFIG_STATUS <<EOF | |
3310 | #! /bin/sh | |
3311 | # Generated automatically by configure. | |
3312 | # Run this file to recreate the current configuration. | |
3313 | # This directory was configured as follows, | |
3314 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3315 | # | |
3316 | # $0 $ac_configure_args | |
3317 | # | |
3318 | # Compiler output produced by configure, useful for debugging | |
3319 | # configure, is in ./config.log if it exists. | |
3320 | ||
3321 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3322 | for ac_option | |
3323 | do | |
3324 | case "\$ac_option" in | |
3325 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3326 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3327 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3328 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b43b13ac | 3329 | echo "$CONFIG_STATUS generated by autoconf version 2.14.1" |
cd6ede75 UD |
3330 | exit 0 ;; |
3331 | -help | --help | --hel | --he | --h) | |
3332 | echo "\$ac_cs_usage"; exit 0 ;; | |
3333 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3334 | esac | |
3335 | done | |
3336 | ||
3337 | ac_given_srcdir=$srcdir | |
3338 | ac_given_INSTALL="$INSTALL" | |
3339 | ||
3340 | trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
3341 | EOF | |
3342 | cat >> $CONFIG_STATUS <<EOF | |
3343 | ||
3344 | # Protect against being on the right side of a sed subst in config.status. | |
3345 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3346 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
3347 | $ac_vpsub | |
3348 | $extrasub | |
5c2a0669 | 3349 | s%@SHELL@%$SHELL%g |
cd6ede75 UD |
3350 | s%@CFLAGS@%$CFLAGS%g |
3351 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3352 | s%@CXXFLAGS@%$CXXFLAGS%g | |
5c2a0669 | 3353 | s%@FFLAGS@%$FFLAGS%g |
cd6ede75 UD |
3354 | s%@DEFS@%$DEFS%g |
3355 | s%@LDFLAGS@%$LDFLAGS%g | |
3356 | s%@LIBS@%$LIBS%g | |
3357 | s%@exec_prefix@%$exec_prefix%g | |
3358 | s%@prefix@%$prefix%g | |
3359 | s%@program_transform_name@%$program_transform_name%g | |
3360 | s%@bindir@%$bindir%g | |
3361 | s%@sbindir@%$sbindir%g | |
3362 | s%@libexecdir@%$libexecdir%g | |
3363 | s%@datadir@%$datadir%g | |
3364 | s%@sysconfdir@%$sysconfdir%g | |
3365 | s%@sharedstatedir@%$sharedstatedir%g | |
3366 | s%@localstatedir@%$localstatedir%g | |
3367 | s%@libdir@%$libdir%g | |
3368 | s%@includedir@%$includedir%g | |
3369 | s%@oldincludedir@%$oldincludedir%g | |
3370 | s%@infodir@%$infodir%g | |
3371 | s%@mandir@%$mandir%g | |
d67281a7 | 3372 | s%@with_cvs@%$with_cvs%g |
cd6ede75 | 3373 | s%@subdirs@%$subdirs%g |
73237de3 | 3374 | s%@force_install@%$force_install%g |
cd6ede75 UD |
3375 | s%@host@%$host%g |
3376 | s%@host_alias@%$host_alias%g | |
3377 | s%@host_cpu@%$host_cpu%g | |
3378 | s%@host_vendor@%$host_vendor%g | |
3379 | s%@host_os@%$host_os%g | |
3380 | s%@base_machine@%$base_machine%g | |
3381 | s%@sysnames@%$sysnames%g | |
3382 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
5c2a0669 | 3383 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
cd6ede75 UD |
3384 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
3385 | s%@LN_S@%$LN_S%g | |
cd6ede75 UD |
3386 | s%@build@%$build%g |
3387 | s%@build_alias@%$build_alias%g | |
3388 | s%@build_cpu@%$build_cpu%g | |
3389 | s%@build_vendor@%$build_vendor%g | |
3390 | s%@build_os@%$build_os%g | |
4bca4c17 UD |
3391 | s%@CC@%$CC%g |
3392 | s%@MAKE@%$MAKE%g | |
3393 | s%@MSGFMT@%$MSGFMT%g | |
3394 | s%@MAKEINFO@%$MAKEINFO%g | |
beefeafb | 3395 | s%@CCVERSION@%$CCVERSION%g |
4bca4c17 | 3396 | s%@cross_linkable@%$cross_linkable%g |
cd6ede75 UD |
3397 | s%@BUILD_CC@%$BUILD_CC%g |
3398 | s%@cross_compiling@%$cross_compiling%g | |
3399 | s%@CPP@%$CPP%g | |
3400 | s%@AR@%$AR%g | |
3401 | s%@RANLIB@%$RANLIB%g | |
4bca4c17 | 3402 | s%@MIG@%$MIG%g |
3c720987 | 3403 | s%@SYSINCLUDES@%$SYSINCLUDES%g |
cd6ede75 UD |
3404 | s%@BASH@%$BASH%g |
3405 | s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g | |
3406 | s%@KSH@%$KSH%g | |
3407 | s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g | |
5aa8ff62 | 3408 | s%@AWK@%$AWK%g |
a2b08ee5 | 3409 | s%@PERL@%$PERL%g |
c0016081 UD |
3410 | s%@INSTALL_INFO@%$INSTALL_INFO%g |
3411 | s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g | |
cd6ede75 UD |
3412 | s%@VERSIONING@%$VERSIONING%g |
3413 | s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g | |
b17277cf | 3414 | s%@no_whole_archive@%$no_whole_archive%g |
dff14448 | 3415 | s%@exceptions@%$exceptions%g |
c8f3e6db | 3416 | s%@LIBGD@%$LIBGD%g |
cd6ede75 UD |
3417 | s%@uname_sysname@%$uname_sysname%g |
3418 | s%@uname_release@%$uname_release%g | |
3419 | s%@uname_version@%$uname_version%g | |
3420 | s%@stdio@%$stdio%g | |
dff14448 | 3421 | s%@old_glibc_headers@%$old_glibc_headers%g |
cd6ede75 UD |
3422 | s%@libc_cv_slibdir@%$libc_cv_slibdir%g |
3423 | s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g | |
3424 | s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g | |
b43b13ac | 3425 | s%@use_ldconfig@%$use_ldconfig%g |
cb343854 | 3426 | s%@ldd_rewrite_script@%$ldd_rewrite_script%g |
cd6ede75 UD |
3427 | s%@gnu_ld@%$gnu_ld%g |
3428 | s%@gnu_as@%$gnu_as%g | |
3429 | s%@elf@%$elf%g | |
650425ce | 3430 | s%@static@%$static%g |
cd6ede75 | 3431 | s%@shared@%$shared%g |
cc3fa755 | 3432 | s%@pic_default@%$pic_default%g |
cd6ede75 UD |
3433 | s%@profile@%$profile%g |
3434 | s%@omitfp@%$omitfp%g | |
3435 | s%@bounded@%$bounded%g | |
3436 | s%@static_nss@%$static_nss%g | |
3437 | s%@nopic_initfini@%$nopic_initfini%g | |
3438 | s%@DEFINES@%$DEFINES%g | |
7cabd57c | 3439 | s%@linux_doors@%$linux_doors%g |
cd6ede75 | 3440 | s%@VERSION@%$VERSION%g |
ee74a442 | 3441 | s%@RELEASE@%$RELEASE%g |
cd6ede75 UD |
3442 | |
3443 | CEOF | |
3444 | EOF | |
3445 | ||
3446 | cat >> $CONFIG_STATUS <<\EOF | |
3447 | ||
3448 | # Split the substitutions into bite-sized pieces for seds with | |
3449 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3450 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
3451 | ac_file=1 # Number of current file. | |
3452 | ac_beg=1 # First line for current file. | |
3453 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
3454 | ac_more_lines=: | |
3455 | ac_sed_cmds="" | |
3456 | while $ac_more_lines; do | |
3457 | if test $ac_beg -gt 1; then | |
3458 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
3459 | else | |
3460 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
3461 | fi | |
3462 | if test ! -s conftest.s$ac_file; then | |
3463 | ac_more_lines=false | |
3464 | rm -f conftest.s$ac_file | |
3465 | else | |
3466 | if test -z "$ac_sed_cmds"; then | |
3467 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
3468 | else | |
3469 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
3470 | fi | |
3471 | ac_file=`expr $ac_file + 1` | |
3472 | ac_beg=$ac_end | |
3473 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3474 | fi | |
3475 | done | |
3476 | if test -z "$ac_sed_cmds"; then | |
3477 | ac_sed_cmds=cat | |
3478 | fi | |
3479 | EOF | |
3480 | ||
3481 | cat >> $CONFIG_STATUS <<EOF | |
3482 | ||
3483 | CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"} | |
3484 | EOF | |
3485 | cat >> $CONFIG_STATUS <<\EOF | |
3486 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
3487 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3488 | case "$ac_file" in | |
3489 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3490 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3491 | *) ac_file_in="${ac_file}.in" ;; | |
3492 | esac | |
3493 | ||
3494 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
3495 | ||
3496 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3497 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3498 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3499 | # The file is in a subdirectory. | |
3500 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3501 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3502 | # A "../" for each directory in $ac_dir_suffix. | |
3503 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3504 | else | |
3505 | ac_dir_suffix= ac_dots= | |
3506 | fi | |
3507 | ||
3508 | case "$ac_given_srcdir" in | |
3509 | .) srcdir=. | |
3510 | if test -z "$ac_dots"; then top_srcdir=. | |
3511 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3512 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3513 | *) # Relative path. | |
3514 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3515 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3516 | esac | |
3517 | ||
3518 | case "$ac_given_INSTALL" in | |
3519 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3520 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3521 | esac | |
3522 | ||
3523 | echo creating "$ac_file" | |
3524 | rm -f "$ac_file" | |
3525 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3526 | case "$ac_file" in | |
3527 | *Makefile*) ac_comsub="1i\\ | |
3528 | # $configure_input" ;; | |
3529 | *) ac_comsub= ;; | |
3530 | esac | |
3531 | ||
3532 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3533 | sed -e "$ac_comsub | |
3534 | s%@configure_input@%$configure_input%g | |
3535 | s%@srcdir@%$srcdir%g | |
3536 | s%@top_srcdir@%$top_srcdir%g | |
3537 | s%@INSTALL@%$INSTALL%g | |
3538 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
3539 | fi; done | |
3540 | rm -f conftest.s* | |
3541 | ||
3542 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
3543 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3544 | # | |
3545 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3546 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3547 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
3548 | ac_dC='\3' | |
3549 | ac_dD='%g' | |
3550 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
3551 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3552 | ac_uB='\([ ]\)%\1#\2define\3' | |
3553 | ac_uC=' ' | |
3554 | ac_uD='\4%g' | |
3555 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3556 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3557 | ac_eB='$%\1#\2define\3' | |
3558 | ac_eC=' ' | |
3559 | ac_eD='%g' | |
3560 | ||
3561 | if test "${CONFIG_HEADERS+set}" != set; then | |
3562 | EOF | |
3563 | cat >> $CONFIG_STATUS <<EOF | |
3564 | CONFIG_HEADERS="config.h" | |
3565 | EOF | |
3566 | cat >> $CONFIG_STATUS <<\EOF | |
3567 | fi | |
3568 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
3569 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3570 | case "$ac_file" in | |
3571 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3572 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3573 | *) ac_file_in="${ac_file}.in" ;; | |
3574 | esac | |
3575 | ||
3576 | echo creating $ac_file | |
3577 | ||
3578 | rm -f conftest.frag conftest.in conftest.out | |
3579 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3580 | cat $ac_file_inputs > conftest.in | |
3581 | ||
3582 | EOF | |
3583 | ||
3584 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
3585 | # the proper values into config.h.in to produce config.h. And first: | |
3586 | # Protect against being on the right side of a sed subst in config.status. | |
3587 | # Protect against being in an unquoted here document in config.status. | |
3588 | rm -f conftest.vals | |
3589 | cat > conftest.hdr <<\EOF | |
3590 | s/[\\&%]/\\&/g | |
3591 | s%[\\$`]%\\&%g | |
3592 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
3593 | s%ac_d%ac_u%gp | |
3594 | s%ac_u%ac_e%gp | |
3595 | EOF | |
3596 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
3597 | rm -f conftest.hdr | |
3598 | ||
3599 | # This sed command replaces #undef with comments. This is necessary, for | |
3600 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3601 | # on some systems where configure will not decide to define it. | |
3602 | cat >> conftest.vals <<\EOF | |
3603 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
3604 | EOF | |
3605 | ||
3606 | # Break up conftest.vals because some shells have a limit on | |
3607 | # the size of here documents, and old seds have small limits too. | |
3608 | ||
3609 | rm -f conftest.tail | |
3610 | while : | |
3611 | do | |
3612 | ac_lines=`grep -c . conftest.vals` | |
3613 | # grep -c gives empty output for an empty file on some AIX systems. | |
3614 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
3615 | # Write a limited-size here document to conftest.frag. | |
3616 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
3617 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
3618 | echo 'CEOF | |
3619 | sed -f conftest.frag conftest.in > conftest.out | |
3620 | rm -f conftest.in | |
3621 | mv conftest.out conftest.in | |
3622 | ' >> $CONFIG_STATUS | |
3623 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
3624 | rm -f conftest.vals | |
3625 | mv conftest.tail conftest.vals | |
3626 | done | |
3627 | rm -f conftest.vals | |
3628 | ||
3629 | cat >> $CONFIG_STATUS <<\EOF | |
3630 | rm -f conftest.frag conftest.h | |
3631 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
3632 | cat conftest.in >> conftest.h | |
3633 | rm -f conftest.in | |
3634 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
3635 | echo "$ac_file is unchanged" | |
3636 | rm -f conftest.h | |
3637 | else | |
3638 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3639 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3640 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3641 | # The file is in a subdirectory. | |
3642 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3643 | fi | |
3644 | rm -f $ac_file | |
3645 | mv conftest.h $ac_file | |
3646 | fi | |
3647 | fi; done | |
3648 | ||
3649 | EOF | |
3650 | ||
3651 | cat >> $CONFIG_STATUS <<EOF | |
3652 | ac_sources="`echo $libc_link_sources`" | |
3653 | ac_dests="`echo $libc_link_dests`" | |
3654 | EOF | |
3655 | ||
3656 | cat >> $CONFIG_STATUS <<\EOF | |
3657 | srcdir=$ac_given_srcdir | |
3658 | while test -n "$ac_sources"; do | |
3659 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
3660 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
3661 | ||
3662 | echo "linking $srcdir/$ac_source to $ac_dest" | |
3663 | ||
3664 | if test ! -r $srcdir/$ac_source; then | |
3665 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
3666 | fi | |
3667 | rm -f $ac_dest | |
3668 | ||
3669 | # Make relative symlinks. | |
3670 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3671 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
3672 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
3673 | # The dest file is in a subdirectory. | |
3674 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
3675 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
3676 | # A "../" for each directory in $ac_dest_dir_suffix. | |
3677 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
3678 | else | |
3679 | ac_dest_dir_suffix= ac_dots= | |
3680 | fi | |
3681 | ||
3682 | case "$srcdir" in | |
3683 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
3684 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
3685 | esac | |
3686 | ||
3687 | # Make a symlink if possible; otherwise try a hard link. | |
3688 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
3689 | ln $srcdir/$ac_source $ac_dest; then : | |
3690 | else | |
3691 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
3692 | fi | |
3693 | done | |
3694 | EOF | |
3695 | cat >> $CONFIG_STATUS <<EOF | |
c0fb8a56 | 3696 | config_vars='$config_vars' |
cd6ede75 UD |
3697 | EOF |
3698 | cat >> $CONFIG_STATUS <<\EOF | |
3699 | ||
c0fb8a56 UD |
3700 | case $CONFIG_FILES in *config.make*) |
3701 | echo "$config_vars" >> config.make;; | |
3702 | esac | |
3703 | test -d bits || mkdir bits | |
cd6ede75 UD |
3704 | exit 0 |
3705 | EOF | |
3706 | chmod +x $CONFIG_STATUS | |
3707 | rm -fr confdefs* $ac_clean_files | |
b43b13ac | 3708 | test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 |
cd6ede75 UD |
3709 | |
3710 | if test "$no_recursion" != yes; then | |
3711 | ||
3712 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
3713 | ac_sub_configure_args= | |
3714 | ac_prev= | |
3715 | for ac_arg in $ac_configure_args; do | |
3716 | if test -n "$ac_prev"; then | |
3717 | ac_prev= | |
3718 | continue | |
3719 | fi | |
3720 | case "$ac_arg" in | |
3721 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
3722 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
3723 | ac_prev=cache_file ;; | |
3724 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3725 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3726 | ;; | |
3727 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
3728 | ac_prev=srcdir ;; | |
3729 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3730 | ;; | |
3731 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
3732 | esac | |
3733 | done | |
3734 | ||
3735 | for ac_config_dir in $add_ons; do | |
3736 | ||
3737 | # Do not complain, so a configure script can configure whichever | |
3738 | # parts of a large source tree are present. | |
3739 | if test ! -d $srcdir/$ac_config_dir; then | |
3740 | continue | |
3741 | fi | |
3742 | ||
3743 | echo configuring in $ac_config_dir | |
3744 | ||
3745 | case "$srcdir" in | |
3746 | .) ;; | |
3747 | *) | |
3748 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
3749 | else | |
3750 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
3751 | fi | |
3752 | ;; | |
3753 | esac | |
3754 | ||
3755 | ac_popdir=`pwd` | |
3756 | cd $ac_config_dir | |
3757 | ||
3758 | # A "../" for each directory in /$ac_config_dir. | |
3759 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
3760 | ||
3761 | case "$srcdir" in | |
3762 | .) # No --srcdir option. We are building in place. | |
3763 | ac_sub_srcdir=$srcdir ;; | |
3764 | /*) # Absolute path. | |
3765 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
3766 | *) # Relative path. | |
3767 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
3768 | esac | |
3769 | ||
3770 | # Check for guested configure; otherwise get Cygnus style configure. | |
3771 | if test -f $ac_sub_srcdir/configure; then | |
b43b13ac | 3772 | ac_sub_configure="$SHELL $ac_sub_srcdir/configure" |
cd6ede75 UD |
3773 | elif test -f $ac_sub_srcdir/configure.in; then |
3774 | ac_sub_configure=$ac_configure | |
3775 | else | |
3776 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
3777 | ac_sub_configure= | |
3778 | fi | |
3779 | ||
3780 | # The recursion is here. | |
3781 | if test -n "$ac_sub_configure"; then | |
3782 | ||
3783 | # Make the cache file name correct relative to the subdirectory. | |
3784 | case "$cache_file" in | |
3785 | /*) ac_sub_cache_file=$cache_file ;; | |
3786 | *) # Relative path. | |
3787 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
3788 | esac | |
3789 | case "$ac_given_INSTALL" in | |
3790 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3791 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3792 | esac | |
3793 | ||
b43b13ac | 3794 | echo "running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
cd6ede75 | 3795 | # The eval makes quoting arguments work. |
b43b13ac | 3796 | if eval $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
cd6ede75 UD |
3797 | then : |
3798 | else | |
3799 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
3800 | fi | |
3801 | fi | |
3802 | ||
3803 | cd $ac_popdir | |
3804 | done | |
3805 | fi | |
3806 |