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