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