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