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