]>
Commit | Line | Data |
---|---|---|
28f540f4 RM |
1 | #! /bin/sh |
2 | ||
424f8c09 | 3 | # From configure.in CVSid |
28f540f4 | 4 | # Guess values for system-dependent variables and create Makefiles. |
26761c28 | 5 | # Generated automatically using autoconf version 2.10.3 |
c224a18a | 6 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
28f540f4 RM |
7 | # |
8 | # This configure script is free software; the Free Software Foundation | |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10 | ||
11 | # Defaults: | |
12 | ac_help= | |
13 | ac_default_prefix=/usr/local | |
14 | # Any additions from configure.in: | |
15 | ac_help="$ac_help | |
16 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)" | |
75914335 RM |
17 | ac_help="$ac_help |
18 | --with-gettext=DIR find GNU gettext source code in DIR (not needed)" | |
e215c478 | 19 | ac_help="$ac_help |
45086082 | 20 | --with-fp if using floating-point hardware default=yes" |
28f540f4 RM |
21 | ac_help="$ac_help |
22 | --with-gnu-binutils if using GNU binutils (as and ld)" | |
23 | ac_help="$ac_help | |
24 | --with-gnu-ld if using GNU ld (in the binutils package)" | |
25 | ac_help="$ac_help | |
26 | --with-gnu-as if using GNU as (in the binutils package)" | |
27 | ac_help="$ac_help | |
28 | --with-elf if using the ELF object format" | |
d17e960c RM |
29 | ac_help="$ac_help |
30 | --enable-libio build in GNU libio instead of GNU stdio" | |
424f8c09 RM |
31 | ac_help="$ac_help |
32 | --enable-shared build shared library [default=yes if GNU ld & ELF]" | |
33 | ac_help="$ac_help | |
34 | --enable-profile build profiled library [default=yes]" | |
35 | ac_help="$ac_help | |
6b3a2224 RM |
36 | --enable-omitfp build undebuggable optimized library [default=no]" |
37 | ac_help="$ac_help | |
38 | --enable-add-ons=DIR... configure and build named extra directories" | |
28f540f4 RM |
39 | |
40 | # Initialize some variables set by options. | |
41 | # The variables have the same names as the options, with | |
42 | # dashes changed to underlines. | |
43 | build=NONE | |
44 | cache_file=./config.cache | |
45 | exec_prefix=NONE | |
46 | host=NONE | |
47 | no_create= | |
48 | nonopt=NONE | |
49 | no_recursion= | |
50 | prefix=NONE | |
51 | program_prefix=NONE | |
52 | program_suffix=NONE | |
53 | program_transform_name=s,x,x, | |
54 | silent= | |
55 | site= | |
56 | srcdir= | |
57 | target=NONE | |
58 | verbose= | |
59 | x_includes=NONE | |
60 | x_libraries=NONE | |
b8dc6a10 RM |
61 | bindir='${exec_prefix}/bin' |
62 | sbindir='${exec_prefix}/sbin' | |
63 | libexecdir='${exec_prefix}/libexec' | |
64 | datadir='${prefix}/share' | |
65 | sysconfdir='${prefix}/etc' | |
66 | sharedstatedir='${prefix}/com' | |
67 | localstatedir='${prefix}/var' | |
68 | libdir='${exec_prefix}/lib' | |
69 | includedir='${prefix}/include' | |
70 | oldincludedir='/usr/include' | |
71 | infodir='${prefix}/info' | |
72 | mandir='${prefix}/man' | |
28f540f4 RM |
73 | |
74 | # Initialize some other variables. | |
75 | subdirs= | |
91c7b85d | 76 | MFLAGS= MAKEFLAGS= |
28f540f4 RM |
77 | |
78 | ac_prev= | |
79 | for ac_option | |
80 | do | |
81 | ||
82 | # If the previous option needs an argument, assign it. | |
83 | if test -n "$ac_prev"; then | |
84 | eval "$ac_prev=\$ac_option" | |
85 | ac_prev= | |
86 | continue | |
87 | fi | |
88 | ||
89 | case "$ac_option" in | |
90 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
91 | *) ac_optarg= ;; | |
92 | esac | |
93 | ||
94 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
95 | ||
96 | case "$ac_option" in | |
97 | ||
b8dc6a10 RM |
98 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
99 | ac_prev=bindir ;; | |
100 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
101 | bindir="$ac_optarg" ;; | |
102 | ||
103 | -build | --build | --buil | --bui | --bu) | |
28f540f4 | 104 | ac_prev=build ;; |
b8dc6a10 | 105 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
28f540f4 RM |
106 | build="$ac_optarg" ;; |
107 | ||
108 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
109 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
110 | ac_prev=cache_file ;; | |
111 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
112 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
113 | cache_file="$ac_optarg" ;; | |
114 | ||
b8dc6a10 RM |
115 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
116 | ac_prev=datadir ;; | |
117 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
118 | | --da=*) | |
119 | datadir="$ac_optarg" ;; | |
120 | ||
28f540f4 RM |
121 | -disable-* | --disable-*) |
122 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
123 | # Reject names that are not valid shell variable names. | |
124 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
126 | fi | |
127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
128 | eval "enable_${ac_feature}=no" ;; | |
129 | ||
130 | -enable-* | --enable-*) | |
131 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
132 | # Reject names that are not valid shell variable names. | |
133 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
135 | fi | |
136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
137 | case "$ac_option" in | |
138 | *=*) ;; | |
139 | *) ac_optarg=yes ;; | |
140 | esac | |
141 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
142 | ||
143 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
144 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
145 | | --exec | --exe | --ex) | |
146 | ac_prev=exec_prefix ;; | |
147 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
148 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
149 | | --exec=* | --exe=* | --ex=*) | |
150 | exec_prefix="$ac_optarg" ;; | |
151 | ||
152 | -gas | --gas | --ga | --g) | |
153 | # Obsolete; use --with-gas. | |
154 | with_gas=yes ;; | |
155 | ||
156 | -help | --help | --hel | --he) | |
157 | # Omit some internal or obsolete options to make the list less imposing. | |
158 | # This message is too long to be a string in the A/UX 3.1 sh. | |
159 | cat << EOF | |
160 | Usage: configure [options] [host] | |
161 | Options: [defaults in brackets after descriptions] | |
162 | Configuration: | |
163 | --cache-file=FILE cache test results in FILE | |
164 | --help print this message | |
165 | --no-create do not create output files | |
166 | --quiet, --silent do not print \`checking...' messages | |
167 | --version print the version of autoconf that created configure | |
168 | Directory and file names: | |
169 | --prefix=PREFIX install architecture-independent files in PREFIX | |
170 | [$ac_default_prefix] | |
b8dc6a10 | 171 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
28f540f4 | 172 | [same as prefix] |
b8dc6a10 RM |
173 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
174 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
175 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
1ed0083c RM |
176 | --datadir=DIR read-only architecture-independent data in DIR |
177 | [PREFIX/share] | |
b8dc6a10 | 178 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
1ed0083c RM |
179 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
180 | [PREFIX/com] | |
b8dc6a10 RM |
181 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
182 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
183 | --includedir=DIR C header files in DIR [PREFIX/include] | |
184 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
185 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
186 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
28f540f4 RM |
187 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
188 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
189 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1ed0083c RM |
190 | --program-transform-name=PROGRAM |
191 | run sed PROGRAM on installed program names | |
b8dc6a10 RM |
192 | EOF |
193 | cat << EOF | |
28f540f4 RM |
194 | Host type: |
195 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
196 | --host=HOST configure for HOST [guessed] | |
197 | --target=TARGET configure for TARGET [TARGET=HOST] | |
198 | Features and packages: | |
199 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
200 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
201 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
202 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
203 | --x-includes=DIR X include files are in DIR | |
204 | --x-libraries=DIR X library files are in DIR | |
28f540f4 | 205 | EOF |
1ed0083c RM |
206 | if test -n "$ac_help"; then |
207 | echo "--enable and --with options recognized:$ac_help" | |
208 | fi | |
28f540f4 RM |
209 | exit 0 ;; |
210 | ||
211 | -host | --host | --hos | --ho) | |
212 | ac_prev=host ;; | |
213 | -host=* | --host=* | --hos=* | --ho=*) | |
214 | host="$ac_optarg" ;; | |
215 | ||
b8dc6a10 RM |
216 | -includedir | --includedir | --includedi | --included | --include \ |
217 | | --includ | --inclu | --incl | --inc) | |
218 | ac_prev=includedir ;; | |
219 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
220 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
221 | includedir="$ac_optarg" ;; | |
222 | ||
223 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
224 | ac_prev=infodir ;; | |
225 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
226 | infodir="$ac_optarg" ;; | |
227 | ||
228 | -libdir | --libdir | --libdi | --libd) | |
229 | ac_prev=libdir ;; | |
230 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
231 | libdir="$ac_optarg" ;; | |
232 | ||
233 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
234 | | --libexe | --libex | --libe) | |
235 | ac_prev=libexecdir ;; | |
236 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
237 | | --libexe=* | --libex=* | --libe=*) | |
238 | libexecdir="$ac_optarg" ;; | |
239 | ||
240 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
241 | | --localstate | --localstat | --localsta | --localst \ | |
242 | | --locals | --local | --loca | --loc | --lo) | |
243 | ac_prev=localstatedir ;; | |
244 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
245 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
246 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
247 | localstatedir="$ac_optarg" ;; | |
248 | ||
249 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
250 | ac_prev=mandir ;; | |
251 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
252 | mandir="$ac_optarg" ;; | |
253 | ||
28f540f4 RM |
254 | -nfp | --nfp | --nf) |
255 | # Obsolete; use --without-fp. | |
256 | with_fp=no ;; | |
257 | ||
258 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
259 | | --no-cr | --no-c) | |
260 | no_create=yes ;; | |
261 | ||
262 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
263 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
264 | no_recursion=yes ;; | |
265 | ||
b8dc6a10 RM |
266 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
267 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
268 | | --oldin | --oldi | --old | --ol | --o) | |
269 | ac_prev=oldincludedir ;; | |
270 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
271 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
272 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
273 | oldincludedir="$ac_optarg" ;; | |
274 | ||
28f540f4 RM |
275 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
276 | ac_prev=prefix ;; | |
277 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
278 | prefix="$ac_optarg" ;; | |
279 | ||
280 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
281 | | --program-pre | --program-pr | --program-p) | |
282 | ac_prev=program_prefix ;; | |
283 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
284 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
285 | program_prefix="$ac_optarg" ;; | |
286 | ||
287 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
288 | | --program-suf | --program-su | --program-s) | |
289 | ac_prev=program_suffix ;; | |
290 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
291 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
292 | program_suffix="$ac_optarg" ;; | |
293 | ||
294 | -program-transform-name | --program-transform-name \ | |
295 | | --program-transform-nam | --program-transform-na \ | |
296 | | --program-transform-n | --program-transform- \ | |
297 | | --program-transform | --program-transfor \ | |
298 | | --program-transfo | --program-transf \ | |
299 | | --program-trans | --program-tran \ | |
300 | | --progr-tra | --program-tr | --program-t) | |
301 | ac_prev=program_transform_name ;; | |
302 | -program-transform-name=* | --program-transform-name=* \ | |
303 | | --program-transform-nam=* | --program-transform-na=* \ | |
304 | | --program-transform-n=* | --program-transform-=* \ | |
305 | | --program-transform=* | --program-transfor=* \ | |
306 | | --program-transfo=* | --program-transf=* \ | |
307 | | --program-trans=* | --program-tran=* \ | |
308 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
309 | program_transform_name="$ac_optarg" ;; | |
310 | ||
311 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
312 | | -silent | --silent | --silen | --sile | --sil) | |
313 | silent=yes ;; | |
314 | ||
b8dc6a10 RM |
315 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
316 | ac_prev=sbindir ;; | |
317 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
318 | | --sbi=* | --sb=*) | |
319 | sbindir="$ac_optarg" ;; | |
320 | ||
321 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
322 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
323 | | --sharedst | --shareds | --shared | --share | --shar \ | |
324 | | --sha | --sh) | |
325 | ac_prev=sharedstatedir ;; | |
326 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
327 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
328 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
329 | | --sha=* | --sh=*) | |
330 | sharedstatedir="$ac_optarg" ;; | |
331 | ||
28f540f4 RM |
332 | -site | --site | --sit) |
333 | ac_prev=site ;; | |
334 | -site=* | --site=* | --sit=*) | |
335 | site="$ac_optarg" ;; | |
336 | ||
337 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
338 | ac_prev=srcdir ;; | |
339 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
340 | srcdir="$ac_optarg" ;; | |
341 | ||
b8dc6a10 RM |
342 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
343 | | --syscon | --sysco | --sysc | --sys | --sy) | |
344 | ac_prev=sysconfdir ;; | |
345 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
346 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
347 | sysconfdir="$ac_optarg" ;; | |
348 | ||
28f540f4 RM |
349 | -target | --target | --targe | --targ | --tar | --ta | --t) |
350 | ac_prev=target ;; | |
351 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
352 | target="$ac_optarg" ;; | |
353 | ||
354 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
355 | verbose=yes ;; | |
356 | ||
357 | -version | --version | --versio | --versi | --vers) | |
26761c28 | 358 | echo "configure generated by autoconf version 2.10.3" |
28f540f4 RM |
359 | exit 0 ;; |
360 | ||
361 | -with-* | --with-*) | |
362 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
363 | # Reject names that are not valid shell variable names. | |
364 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
365 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
366 | fi | |
367 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
368 | case "$ac_option" in | |
369 | *=*) ;; | |
370 | *) ac_optarg=yes ;; | |
371 | esac | |
372 | eval "with_${ac_package}='$ac_optarg'" ;; | |
373 | ||
374 | -without-* | --without-*) | |
375 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
376 | # Reject names that are not valid shell variable names. | |
377 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
378 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
379 | fi | |
380 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
381 | eval "with_${ac_package}=no" ;; | |
382 | ||
383 | --x) | |
384 | # Obsolete; use --with-x. | |
385 | with_x=yes ;; | |
386 | ||
387 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
388 | | --x-incl | --x-inc | --x-in | --x-i) | |
389 | ac_prev=x_includes ;; | |
390 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
391 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
392 | x_includes="$ac_optarg" ;; | |
393 | ||
394 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
395 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
396 | ac_prev=x_libraries ;; | |
397 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
398 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
399 | x_libraries="$ac_optarg" ;; | |
400 | ||
401 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
402 | ;; | |
403 | ||
91c7b85d | 404 | *) |
28f540f4 RM |
405 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
406 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
407 | fi | |
408 | if test "x$nonopt" != xNONE; then | |
409 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
410 | fi | |
411 | nonopt="$ac_option" | |
412 | ;; | |
413 | ||
414 | esac | |
415 | done | |
416 | ||
417 | if test -n "$ac_prev"; then | |
418 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
419 | fi | |
420 | ||
421 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
422 | ||
423 | # File descriptor usage: | |
424 | # 0 standard input | |
425 | # 1 file creation | |
426 | # 2 errors and warnings | |
427 | # 3 some systems may open it to /dev/tty | |
428 | # 4 used on the Kubota Titan | |
f55814ff | 429 | # 6 checking for... messages and results |
28f540f4 RM |
430 | # 5 compiler messages saved in config.log |
431 | if test "$silent" = yes; then | |
f55814ff | 432 | exec 6>/dev/null |
28f540f4 | 433 | else |
f55814ff | 434 | exec 6>&1 |
28f540f4 RM |
435 | fi |
436 | exec 5>./config.log | |
437 | ||
438 | echo "\ | |
439 | This file contains any messages produced by compilers while | |
440 | running configure, to aid debugging if configure makes a mistake. | |
441 | " 1>&5 | |
442 | ||
443 | # Strip out --no-create and --no-recursion so they do not pile up. | |
444 | # Also quote any args containing shell metacharacters. | |
445 | ac_configure_args= | |
446 | for ac_arg | |
447 | do | |
448 | case "$ac_arg" in | |
449 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
450 | | --no-cr | --no-c) ;; | |
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
453 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
454 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
455 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
456 | esac | |
457 | done | |
458 | ||
459 | # NLS nuisances. | |
460 | # Only set LANG and LC_ALL to C if already set. | |
461 | # These must not be set unconditionally because not all systems understand | |
462 | # e.g. LANG=C (notably SCO). | |
463 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
464 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
465 | ||
466 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
467 | rm -rf conftest* confdefs.h | |
468 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
469 | echo > confdefs.h | |
470 | ||
471 | # A filename unique to this package, relative to the directory that | |
472 | # configure is in, which we can look for to find out if srcdir is correct. | |
473 | ac_unique_file=features.h | |
474 | ||
475 | # Find the source files, if location was not specified. | |
476 | if test -z "$srcdir"; then | |
477 | ac_srcdir_defaulted=yes | |
478 | # Try the directory containing this script, then its parent. | |
479 | ac_prog=$0 | |
480 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
481 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
482 | srcdir=$ac_confdir | |
483 | if test ! -r $srcdir/$ac_unique_file; then | |
484 | srcdir=.. | |
485 | fi | |
486 | else | |
487 | ac_srcdir_defaulted=no | |
488 | fi | |
489 | if test ! -r $srcdir/$ac_unique_file; then | |
490 | if test "$ac_srcdir_defaulted" = yes; then | |
491 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
492 | else | |
493 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
494 | fi | |
495 | fi | |
496 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
497 | ||
498 | # Prefer explicitly selected file to automatically selected ones. | |
499 | if test -z "$CONFIG_SITE"; then | |
500 | if test "x$prefix" != xNONE; then | |
501 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
502 | else | |
503 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
504 | fi | |
505 | fi | |
506 | for ac_site_file in $CONFIG_SITE; do | |
507 | if test -r "$ac_site_file"; then | |
508 | echo "loading site script $ac_site_file" | |
509 | . "$ac_site_file" | |
510 | fi | |
511 | done | |
512 | ||
513 | if test -r "$cache_file"; then | |
514 | echo "loading cache $cache_file" | |
515 | . $cache_file | |
516 | else | |
517 | echo "creating cache $cache_file" | |
518 | > $cache_file | |
519 | fi | |
520 | ||
521 | ac_ext=c | |
522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
c6de6968 RM |
523 | ac_cpp='$CPP $CPPFLAGS' |
524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
525 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
28f540f4 RM |
526 | |
527 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
528 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
529 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
530 | ac_n= ac_c=' | |
531 | ' ac_t=' ' | |
532 | else | |
533 | ac_n=-n ac_c= ac_t= | |
534 | fi | |
535 | else | |
536 | ac_n= ac_c='\c' ac_t= | |
537 | fi | |
538 | ||
539 | if test -r /vmunix; then | |
540 | kernel_id=`strings /vmunix | grep UNIX` | |
541 | elif test -r /dynix; then | |
542 | kernel_id=`strings /dynix | grep DYNIX` | |
543 | else | |
544 | kernel_id= | |
545 | fi | |
546 | ||
547 | ||
548 | ||
549 | ||
550 | # This will get text that should go into config.make. | |
551 | config_vars= | |
552 | ||
553 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
554 | # Check whether --with-gmp or --without-gmp was given. | |
b8dc6a10 RM |
555 | if test "${with_gmp+set}" = set; then |
556 | withval="$with_gmp" | |
28f540f4 RM |
557 | case "$with_gmp" in |
558 | yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;; | |
559 | ''|no) ;; | |
560 | *) config_vars="$config_vars | |
561 | gmp-srcdir = $withval" ;; | |
562 | esac | |
563 | ||
564 | fi | |
565 | ||
75914335 RM |
566 | # Check for a --with-gettext argument and set gettext-srcdir in config.make. |
567 | # Check whether --with-gettext or --without-gettext was given. | |
568 | if test "${with_gettext+set}" = set; then | |
569 | withval="$with_gettext" | |
570 | case "$with_gettext" in | |
571 | yes) | |
572 | { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;; | |
573 | ''|no) ;; | |
574 | *) | |
575 | config_vars="$config_vars | |
576 | gettext-srcdir = $withval" ;; | |
577 | esac | |
578 | ||
579 | fi | |
580 | ||
28f540f4 | 581 | |
e215c478 | 582 | # Check whether --with-fp or --without-fp was given. |
b8dc6a10 RM |
583 | if test "${with_fp+set}" = set; then |
584 | withval="$with_fp" | |
e215c478 RM |
585 | with_fp=$withval |
586 | else | |
587 | with_fp=yes | |
588 | fi | |
589 | ||
28f540f4 | 590 | # Check whether --with-gnu-binutils or --without-gnu-binutils was given. |
b8dc6a10 RM |
591 | if test "${with_gnu_binutils+set}" = set; then |
592 | withval="$with_gnu_binutils" | |
e215c478 | 593 | gnu_binutils=$withval |
28f540f4 RM |
594 | else |
595 | gnu_binutils=no | |
596 | fi | |
597 | ||
598 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
b8dc6a10 RM |
599 | if test "${with_gnu_ld+set}" = set; then |
600 | withval="$with_gnu_ld" | |
e215c478 | 601 | gnu_ld=$withval |
28f540f4 RM |
602 | else |
603 | gnu_ld=no | |
604 | fi | |
605 | ||
606 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
b8dc6a10 RM |
607 | if test "${with_gnu_as+set}" = set; then |
608 | withval="$with_gnu_as" | |
e215c478 | 609 | gnu_as=$withval |
28f540f4 RM |
610 | else |
611 | gnu_as=no | |
612 | fi | |
613 | ||
614 | test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes | |
615 | # Check whether --with-elf or --without-elf was given. | |
b8dc6a10 RM |
616 | if test "${with_elf+set}" = set; then |
617 | withval="$with_elf" | |
e215c478 | 618 | elf=$withval |
28f540f4 RM |
619 | else |
620 | elf=no | |
621 | fi | |
622 | ||
28f540f4 | 623 | |
d17e960c RM |
624 | # Check whether --enable-libio or --disable-libio was given. |
625 | if test "${enable_libio+set}" = set; then | |
626 | enableval="$enable_libio" | |
1ed0083c RM |
627 | if test $enableval = yes; then |
628 | stdio=libio | |
629 | else | |
630 | stdio=stdio | |
631 | fi | |
d17e960c | 632 | else |
91c7b85d | 633 | stdio=default |
d17e960c RM |
634 | fi |
635 | ||
636 | ||
424f8c09 | 637 | # Check whether --enable-shared or --disable-shared was given. |
b8dc6a10 RM |
638 | if test "${enable_shared+set}" = set; then |
639 | enableval="$enable_shared" | |
424f8c09 RM |
640 | shared=$enableval |
641 | else | |
642 | shared=default | |
643 | fi | |
644 | ||
645 | # Check whether --enable-profile or --disable-profile was given. | |
b8dc6a10 RM |
646 | if test "${enable_profile+set}" = set; then |
647 | enableval="$enable_profile" | |
424f8c09 RM |
648 | profile=$enableval |
649 | else | |
650 | profile=yes | |
651 | fi | |
652 | ||
653 | # Check whether --enable-omitfp or --disable-omitfp was given. | |
b8dc6a10 RM |
654 | if test "${enable_omitfp+set}" = set; then |
655 | enableval="$enable_omitfp" | |
424f8c09 RM |
656 | omitfp=$enableval |
657 | else | |
658 | omitfp=no | |
659 | fi | |
660 | ||
661 | ||
6b3a2224 RM |
662 | # Check whether --enable-add-ons or --disable-add-ons was given. |
663 | if test "${enable_add_ons+set}" = set; then | |
664 | enableval="$enable_add_ons" | |
ba3f9540 | 665 | add_ons=`echo "$enableval" | sed 's/,/ /g'` |
6b3a2224 | 666 | else |
ba3f9540 | 667 | add_ons= |
6b3a2224 RM |
668 | fi |
669 | ||
28f540f4 RM |
670 | ac_aux_dir= |
671 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
672 | if test -f $ac_dir/install-sh; then | |
673 | ac_aux_dir=$ac_dir | |
674 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
675 | break | |
676 | elif test -f $ac_dir/install.sh; then | |
677 | ac_aux_dir=$ac_dir | |
678 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
679 | break | |
680 | fi | |
681 | done | |
682 | if test -z "$ac_aux_dir"; then | |
683 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
684 | fi | |
685 | ac_config_guess=$ac_aux_dir/config.guess | |
686 | ac_config_sub=$ac_aux_dir/config.sub | |
687 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
688 | ||
6b3a2224 RM |
689 | subdirs="$add_ons" |
690 | ||
57ba7bb4 | 691 | add_ons_pfx= |
da74e902 | 692 | if test x"$add_ons" != x; then |
57ba7bb4 UD |
693 | for f in $add_ons; do |
694 | add_ons_pfx="$add_ons_pfx $f/" | |
695 | done | |
696 | fi | |
6b3a2224 | 697 | |
28f540f4 RM |
698 | |
699 | # Make sure we can run config.sub. | |
700 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
701 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
702 | fi | |
703 | ||
f55814ff | 704 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
84384f5b | 705 | echo "configure:706: checking host system type" >&5 |
28f540f4 RM |
706 | |
707 | host_alias=$host | |
708 | case "$host_alias" in | |
709 | NONE) | |
710 | case $nonopt in | |
711 | NONE) | |
712 | if host_alias=`$ac_config_guess`; then : | |
713 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
714 | fi ;; | |
715 | *) host_alias=$nonopt ;; | |
716 | esac ;; | |
717 | esac | |
718 | ||
719 | host=`$ac_config_sub $host_alias` | |
ec4b0518 UD |
720 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
721 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
722 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
f55814ff | 723 | echo "$ac_t""$host" 1>&6 |
28f540f4 RM |
724 | |
725 | # We keep the original values in `$config_*' and never modify them, so we | |
726 | # can write them unchanged into config.make. Everything else uses | |
727 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
728 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
729 | ||
2b83a2a4 RM |
730 | # Some configurations imply other options. |
731 | case "$host_os" in | |
732 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
733 | # These systems always use GNU tools. | |
c8cf0b14 | 734 | gnu_ld=yes gnu_as=yes ;; |
2b83a2a4 RM |
735 | esac |
736 | case "$host_os" in | |
d7126ae6 RM |
737 | linux*ecoff*) |
738 | ;; | |
2b83a2a4 | 739 | gnu* | linux* | sysv4* | solaris2*) |
d7126ae6 RM |
740 | # These systems (almost) always use the ELF format. |
741 | elf=yes | |
9004bc20 | 742 | ;; |
2b83a2a4 RM |
743 | esac |
744 | ||
f0523145 | 745 | machine=$config_machine |
28f540f4 RM |
746 | vendor=$config_vendor |
747 | os=$config_os | |
748 | ||
749 | # Expand the configuration machine name into a subdirectory by architecture | |
750 | # type and particular chip. | |
751 | case "$machine" in | |
f0523145 RM |
752 | a29k | am29000) base_machine=a29k machine=a29k ;; |
753 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
754 | hppa*) base_machine=hppa machine=hppa/$machine ;; | |
a5113b14 | 755 | i[3456]86) base_machine=i386 machine=i386/$machine ;; |
f0523145 RM |
756 | m680?0) base_machine=m68k machine=m68k/$machine ;; |
757 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
758 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
759 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
760 | mips*) base_machine=mips machine=mips/$machine ;; | |
761 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
762 | sparc[6789]) base_machine=sparc machine=sparc/$machine ;; | |
763 | supersparc) base_machine=sparc machine=sparc/sparc8 ;; | |
28f540f4 RM |
764 | esac |
765 | ||
f0523145 RM |
766 | |
767 | # Compute the list of sysdep directories for this configuration. | |
f9496a7b | 768 | # This can take a while to compute. |
f0523145 | 769 | sysdep_dir=$srcdir/sysdeps |
f55814ff | 770 | echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 |
84384f5b | 771 | echo "configure:772: checking sysdep dirs" >&5 |
f9496a7b | 772 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
28f540f4 RM |
773 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" |
774 | ||
775 | case "$os" in | |
776 | gnu*) | |
777 | base_os=mach/hurd ;; | |
e215c478 | 778 | netbsd* | 386bsd* | freebsd* | bsdi*) |
28f540f4 | 779 | base_os=unix/bsd/bsd4.4 ;; |
222c4e71 | 780 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) |
28f540f4 | 781 | base_os=unix/bsd ;; |
287fbbe7 | 782 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) |
28f540f4 | 783 | base_os=unix/sysv ;; |
287fbbe7 | 784 | solaris[2-9]*) |
28f540f4 RM |
785 | base_os=unix/sysv/sysv4 ;; |
786 | none) | |
787 | base_os=standalone ;; | |
788 | *) | |
789 | base_os='' ;; | |
790 | esac | |
791 | ||
792 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
793 | tail=$os | |
794 | ostry=$os | |
795 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
796 | ostry="$ostry /$o" | |
797 | tail=$o | |
75914335 | 798 | done |
28f540f4 RM |
799 | o=`echo $tail | sed 's/[0-9]*$//'` |
800 | if test $o != $tail; then | |
801 | ostry="$ostry /$o" | |
802 | fi | |
ec4b0518 UD |
803 | # For linux-gnu, try linux-gnu, then linux. |
804 | o=`echo $tail | sed 's/-.*$//'` | |
805 | if test $o != $tail; then | |
806 | ostry="$ostry /$o" | |
807 | fi | |
28f540f4 RM |
808 | |
809 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
810 | base= | |
811 | tail=$base_os | |
812 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
813 | set $b | |
814 | base="$base /$1" | |
815 | tail="$2" | |
816 | done | |
817 | ||
818 | # For sparc/sparc9, try sparc/sparc9 and then sparc. | |
819 | mach= | |
820 | tail=$machine | |
821 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
822 | set $m | |
273d56ce RM |
823 | # Prepend the machine's FPU directory unless --without-fp. |
824 | if test "$with_fp" = yes; then | |
825 | mach="$mach /$1/fpu" | |
b96bdcd7 | 826 | fi |
28f540f4 RM |
827 | mach="$mach /$1" |
828 | tail="$2" | |
829 | done | |
830 | ||
831 | ||
832 | # Find what sysdep directories exist. | |
833 | sysnames= | |
57ba7bb4 UD |
834 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
835 | for d in $add_ons_pfx ''; do | |
836 | for b in $base ''; do | |
837 | for m0 in $mach ''; do | |
838 | for v in /$vendor ''; do | |
839 | for o in /$ostry ''; do | |
840 | for m in $mach ''; do | |
841 | if test "$m0$b$v$o$m"; then | |
842 | try="${d}sysdeps$m0$b$v$o$m" | |
843 | test -n "$enable_debug_configure" && | |
844 | echo "$0 DEBUG: try $try" >&2 | |
845 | case $try in | |
846 | /*) dest=$try ;; | |
847 | *) dest=$srcdir/$try ;; | |
848 | esac | |
849 | if test -d $dest; then | |
850 | sysnames="$sysnames $try" | |
851 | { test -n "$o" || test -n "$b"; } && os_used=t | |
852 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
853 | fi | |
854 | fi | |
855 | done | |
28f540f4 RM |
856 | done |
857 | done | |
858 | done | |
859 | done | |
860 | done | |
57ba7bb4 | 861 | IFS="$ac_save_ifs" |
28f540f4 RM |
862 | |
863 | if test -z "$os_used" && test "$os" != none; then | |
864 | { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; } | |
865 | fi | |
866 | if test -z "$machine_used" && test "$machine" != none; then | |
867 | { echo "configure: error: The $machine is not supported." 1>&2; exit 1; } | |
868 | fi | |
869 | ||
870 | # We have now validated the configuration. | |
871 | ||
e215c478 | 872 | |
273d56ce RM |
873 | # If using ELF, look for an `elf' subdirectory of each machine directory. |
874 | # We prepend these rather than inserting them whereever the machine appears | |
875 | # because things specified by the machine's ELF ABI should override | |
876 | # OS-specific things, and should always be the same for any OS on the | |
877 | # machine (otherwise what's the point of an ABI?). | |
878 | if test "$elf" = yes; then | |
879 | elf_dirs= | |
57ba7bb4 UD |
880 | for d in $add_ons_pfx ''; do |
881 | case $d in | |
882 | /*) xsrcdir= ;; | |
883 | *) xsrcdir=$srcdir/ ;; | |
884 | esac | |
885 | for m in $mach; do | |
886 | if test -d $xsrcdir${d}sysdeps$m/elf; then | |
c2bb8cab | 887 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
57ba7bb4 UD |
888 | fi |
889 | done | |
28f540f4 | 890 | done |
57ba7bb4 | 891 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" |
28f540f4 RM |
892 | fi |
893 | ||
e215c478 | 894 | |
28f540f4 RM |
895 | # Expand the list of system names into a full list of directories |
896 | # from each element's parent name and Implies file (if present). | |
897 | set $sysnames | |
959c3674 | 898 | names= |
28f540f4 RM |
899 | while test $# -gt 0; do |
900 | name=$1 | |
901 | shift | |
902 | ||
959c3674 | 903 | case " $names " in *" $name "*) |
f9496a7b RM |
904 | # Already in the list. |
905 | continue | |
959c3674 | 906 | esac |
f9496a7b RM |
907 | |
908 | # Report each name as we discover it, so there is no long pause in output. | |
909 | echo $ac_n "$name $ac_c" >&6 | |
910 | ||
57ba7bb4 UD |
911 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
912 | ||
913 | case $name in | |
914 | /*) xsrcdir= ;; | |
915 | *) xsrcdir=$srcdir/ ;; | |
916 | esac | |
917 | test -n "$enable_debug_configure" && | |
918 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
919 | ||
920 | if test -f $xsrcdir$name/Implies; then | |
28f540f4 | 921 | # Collect more names from the `Implies' file (removing comments). |
57ba7bb4 UD |
922 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" |
923 | implied= | |
924 | for x in $implied_candidate; do | |
925 | if test -d $xsrcdir$name_base/$x; then | |
926 | implied="$implied $name_base/$x"; | |
927 | else | |
928 | echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2 | |
929 | fi | |
28f540f4 RM |
930 | done |
931 | else | |
932 | implied= | |
933 | fi | |
934 | ||
935 | # Add NAME to the list of names. | |
936 | names="$names $name" | |
937 | ||
938 | # Find the parent of NAME, using the empty string if it has none. | |
57ba7bb4 | 939 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" |
28f540f4 RM |
940 | |
941 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
942 | # the list of names to be processed (the argument list). We prepend the | |
943 | # implied names to the list and append the parent. We want implied | |
944 | # directories to come before further directories inferred from the | |
945 | # configuration components; this ensures that for sysv4, unix/common | |
946 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
947 | # after sysv4). | |
948 | sysnames="`echo $implied $* $parent`" | |
949 | test -n "$sysnames" && set $sysnames | |
950 | done | |
951 | ||
952 | # Add the default directories. | |
57ba7bb4 | 953 | sysnames="$names sysdeps/generic sysdeps/stub" |
f9496a7b RM |
954 | |
955 | # The other names were emitted during the scan. | |
57ba7bb4 | 956 | echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6 |
28f540f4 | 957 | |
28f540f4 | 958 | |
f9496a7b | 959 | ### Locate tools. |
28f540f4 | 960 | |
28f540f4 RM |
961 | # Find a good install program. We prefer a C program (faster), |
962 | # so one script is as good as another. But avoid the broken or | |
963 | # incompatible versions: | |
964 | # SysV /etc/install, /usr/sbin/install | |
965 | # SunOS /usr/etc/install | |
966 | # IRIX /sbin/install | |
967 | # AIX /bin/install | |
968 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
969 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
970 | # ./install, which can be erroneously created by make from ./install.sh. | |
f55814ff | 971 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
84384f5b | 972 | echo "configure:973: checking for a BSD compatible install" >&5 |
28f540f4 | 973 | if test -z "$INSTALL"; then |
424f8c09 | 974 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
f55814ff | 975 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
976 | else |
977 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
978 | for ac_dir in $PATH; do | |
979 | # Account for people who put trailing slashes in PATH elements. | |
980 | case "$ac_dir/" in | |
981 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
982 | *) | |
983 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
984 | for ac_prog in ginstall installbsd scoinst install; do | |
985 | if test -f $ac_dir/$ac_prog; then | |
986 | if test $ac_prog = install && | |
987 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
988 | # AIX install. It has an incompatible calling convention. | |
989 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
990 | : | |
991 | else | |
992 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
993 | break 2 | |
994 | fi | |
995 | fi | |
996 | done | |
997 | ;; | |
998 | esac | |
999 | done | |
1000 | IFS="$ac_save_ifs" | |
b8dc6a10 | 1001 | |
28f540f4 | 1002 | fi |
b8dc6a10 RM |
1003 | if test "${ac_cv_path_install+set}" = set; then |
1004 | INSTALL="$ac_cv_path_install" | |
1005 | else | |
1006 | # As a last resort, use the slow shell script. We don't cache a | |
1007 | # path for INSTALL within a source directory, because that will | |
1008 | # break other packages using the cache if that directory is | |
1009 | # removed, or if the path is relative. | |
1010 | INSTALL="$ac_install_sh" | |
1011 | fi | |
28f540f4 | 1012 | fi |
f55814ff | 1013 | echo "$ac_t""$INSTALL" 1>&6 |
28f540f4 RM |
1014 | |
1015 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1016 | # It thinks the first close brace ends the variable substitution. | |
1017 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1018 | ||
1019 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1020 | ||
26761c28 | 1021 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then |
28f540f4 | 1022 | # The makefiles need to use a different form to find it in $srcdir. |
84384f5b | 1023 | INSTALL="$(..)./install-sh -c" |
28f540f4 | 1024 | fi |
f55814ff | 1025 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
84384f5b | 1026 | echo "configure:1027: checking whether ln -s works" >&5 |
ad41463d | 1027 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
f55814ff | 1028 | echo $ac_n "(cached) $ac_c" 1>&6 |
ad41463d RM |
1029 | else |
1030 | rm -f conftestdata | |
1031 | if ln -s X conftestdata 2>/dev/null | |
1032 | then | |
1033 | rm -f conftestdata | |
1034 | ac_cv_prog_LN_S="ln -s" | |
1035 | else | |
1036 | ac_cv_prog_LN_S=ln | |
1037 | fi | |
1038 | fi | |
1039 | LN_S="$ac_cv_prog_LN_S" | |
1040 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
f55814ff | 1041 | echo "$ac_t""yes" 1>&6 |
ad41463d | 1042 | else |
f55814ff | 1043 | echo "$ac_t""no" 1>&6 |
ad41463d RM |
1044 | fi |
1045 | ||
ce4d8b66 RM |
1046 | for ac_prog in msgfmt gmsgfmt |
1047 | do | |
1048 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1049 | set dummy $ac_prog; ac_word=$2 | |
f55814ff | 1050 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
84384f5b | 1051 | echo "configure:1052: checking for $ac_word" >&5 |
ce4d8b66 | 1052 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
f55814ff | 1053 | echo $ac_n "(cached) $ac_c" 1>&6 |
ce4d8b66 RM |
1054 | else |
1055 | if test -n "$MSGFMT"; then | |
1056 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
1057 | else | |
1058 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1059 | for ac_dir in $PATH; do | |
1060 | test -z "$ac_dir" && ac_dir=. | |
1061 | if test -f $ac_dir/$ac_word; then | |
1062 | ac_cv_prog_MSGFMT="$ac_prog" | |
1063 | break | |
1064 | fi | |
1065 | done | |
1066 | IFS="$ac_save_ifs" | |
1067 | fi | |
1068 | fi | |
1069 | MSGFMT="$ac_cv_prog_MSGFMT" | |
1070 | if test -n "$MSGFMT"; then | |
f55814ff | 1071 | echo "$ac_t""$MSGFMT" 1>&6 |
ce4d8b66 | 1072 | else |
f55814ff | 1073 | echo "$ac_t""no" 1>&6 |
ce4d8b66 RM |
1074 | fi |
1075 | ||
1076 | test -n "$MSGFMT" && break | |
1077 | done | |
f0523145 | 1078 | test -n "$MSGFMT" || MSGFMT=":" |
ce4d8b66 | 1079 | |
28f540f4 | 1080 | |
f55814ff | 1081 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
84384f5b | 1082 | echo "configure:1083: checking build system type" >&5 |
28f540f4 RM |
1083 | |
1084 | build_alias=$build | |
1085 | case "$build_alias" in | |
1086 | NONE) | |
1087 | case $nonopt in | |
1088 | NONE) build_alias=$host_alias ;; | |
1089 | *) build_alias=$nonopt ;; | |
1090 | esac ;; | |
1091 | esac | |
1092 | ||
1093 | build=`$ac_config_sub $build_alias` | |
ec4b0518 UD |
1094 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1095 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1096 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
f55814ff | 1097 | echo "$ac_t""$build" 1>&6 |
28f540f4 RM |
1098 | |
1099 | if test $host != $build; then | |
1100 | ac_tool_prefix=${host_alias}- | |
1101 | else | |
1102 | ac_tool_prefix= | |
1103 | fi | |
1104 | ||
1105 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1106 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
f55814ff | 1107 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
84384f5b | 1108 | echo "configure:1109: checking for $ac_word" >&5 |
424f8c09 | 1109 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
f55814ff | 1110 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1111 | else |
1112 | if test -n "$CC"; then | |
1113 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1114 | else | |
1115 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3bbceb12 | 1116 | for ac_dir in $PATH; do |
28f540f4 RM |
1117 | test -z "$ac_dir" && ac_dir=. |
1118 | if test -f $ac_dir/$ac_word; then | |
1119 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1120 | break | |
1121 | fi | |
1122 | done | |
1123 | IFS="$ac_save_ifs" | |
1124 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc" | |
1125 | fi | |
1126 | fi | |
1127 | CC="$ac_cv_prog_CC" | |
1128 | if test -n "$CC"; then | |
f55814ff | 1129 | echo "$ac_t""$CC" 1>&6 |
28f540f4 | 1130 | else |
f55814ff | 1131 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1132 | fi |
1133 | ||
1134 | ||
1135 | ||
7f811679 | 1136 | if test $host != $build; then |
40a4b79f RM |
1137 | # Extract the first word of "gcc cc", so it can be a program name with args. |
1138 | set dummy gcc cc; ac_word=$2 | |
1139 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
84384f5b | 1140 | echo "configure:1141: checking for $ac_word" >&5 |
40a4b79f RM |
1141 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
1142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1143 | else | |
1144 | if test -n "$BUILD_CC"; then | |
1145 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
1146 | else | |
1147 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1148 | for ac_dir in $PATH; do | |
1149 | test -z "$ac_dir" && ac_dir=. | |
1150 | if test -f $ac_dir/$ac_word; then | |
1151 | ac_cv_prog_BUILD_CC="" | |
1152 | break | |
1153 | fi | |
1154 | done | |
1155 | IFS="$ac_save_ifs" | |
1156 | fi | |
1157 | fi | |
1158 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
1159 | if test -n "$BUILD_CC"; then | |
1160 | echo "$ac_t""$BUILD_CC" 1>&6 | |
1161 | else | |
1162 | echo "$ac_t""no" 1>&6 | |
1163 | fi | |
1164 | ||
1165 | fi | |
f55814ff | 1166 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
84384f5b | 1167 | echo "configure:1168: checking how to run the C preprocessor" >&5 |
8942a07a RM |
1168 | # On Suns, sometimes $CPP names a directory. |
1169 | if test -n "$CPP" && test -d "$CPP"; then | |
1170 | CPP= | |
1171 | fi | |
1172 | if test -z "$CPP"; then | |
1173 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
f55814ff | 1174 | echo $ac_n "(cached) $ac_c" 1>&6 |
8942a07a RM |
1175 | else |
1176 | # This must be in double quotes, not single quotes, because CPP may get | |
1177 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1178 | CPP="${CC-cc} -E" | |
1179 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1180 | # not just through cpp. | |
1181 | cat > conftest.$ac_ext <<EOF | |
84384f5b | 1182 | #line 1183 "configure" |
8942a07a RM |
1183 | #include "confdefs.h" |
1184 | #include <assert.h> | |
1185 | Syntax Error | |
1186 | EOF | |
1187 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
84384f5b | 1188 | { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8942a07a RM |
1189 | ac_err=`grep -v '^ *+' conftest.out` |
1190 | if test -z "$ac_err"; then | |
1191 | : | |
1192 | else | |
1193 | echo "$ac_err" >&5 | |
26761c28 UD |
1194 | echo "configure: failed program was:" >&5 |
1195 | cat conftest.$ac_ext >&5 | |
8942a07a RM |
1196 | rm -rf conftest* |
1197 | CPP="${CC-cc} -E -traditional-cpp" | |
1198 | cat > conftest.$ac_ext <<EOF | |
84384f5b | 1199 | #line 1200 "configure" |
8942a07a RM |
1200 | #include "confdefs.h" |
1201 | #include <assert.h> | |
1202 | Syntax Error | |
1203 | EOF | |
1204 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
84384f5b | 1205 | { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8942a07a RM |
1206 | ac_err=`grep -v '^ *+' conftest.out` |
1207 | if test -z "$ac_err"; then | |
1208 | : | |
1209 | else | |
1210 | echo "$ac_err" >&5 | |
26761c28 UD |
1211 | echo "configure: failed program was:" >&5 |
1212 | cat conftest.$ac_ext >&5 | |
8942a07a RM |
1213 | rm -rf conftest* |
1214 | CPP=/lib/cpp | |
1215 | fi | |
1216 | rm -f conftest* | |
1217 | fi | |
1218 | rm -f conftest* | |
1219 | ac_cv_prog_CPP="$CPP" | |
1220 | fi | |
1221 | CPP="$ac_cv_prog_CPP" | |
1222 | else | |
1223 | ac_cv_prog_CPP="$CPP" | |
1224 | fi | |
f55814ff | 1225 | echo "$ac_t""$CPP" 1>&6 |
8942a07a | 1226 | |
28f540f4 RM |
1227 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
1228 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
f55814ff | 1229 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
84384f5b | 1230 | echo "configure:1231: checking for $ac_word" >&5 |
424f8c09 | 1231 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
f55814ff | 1232 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1233 | else |
1234 | if test -n "$AR"; then | |
1235 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1236 | else | |
1237 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3bbceb12 | 1238 | for ac_dir in $PATH; do |
28f540f4 RM |
1239 | test -z "$ac_dir" && ac_dir=. |
1240 | if test -f $ac_dir/$ac_word; then | |
1241 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1242 | break | |
1243 | fi | |
1244 | done | |
1245 | IFS="$ac_save_ifs" | |
1246 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1247 | fi | |
1248 | fi | |
1249 | AR="$ac_cv_prog_AR" | |
1250 | if test -n "$AR"; then | |
f55814ff | 1251 | echo "$ac_t""$AR" 1>&6 |
28f540f4 | 1252 | else |
f55814ff | 1253 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1254 | fi |
1255 | ||
1256 | ||
1257 | ||
1258 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1259 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
f55814ff | 1260 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
84384f5b | 1261 | echo "configure:1262: checking for $ac_word" >&5 |
424f8c09 | 1262 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
f55814ff | 1263 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1264 | else |
1265 | if test -n "$RANLIB"; then | |
1266 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1267 | else | |
1268 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1269 | for ac_dir in $PATH; do | |
1270 | test -z "$ac_dir" && ac_dir=. | |
1271 | if test -f $ac_dir/$ac_word; then | |
1272 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1273 | break | |
1274 | fi | |
1275 | done | |
1276 | IFS="$ac_save_ifs" | |
1277 | fi | |
1278 | fi | |
1279 | RANLIB="$ac_cv_prog_RANLIB" | |
1280 | if test -n "$RANLIB"; then | |
f55814ff | 1281 | echo "$ac_t""$RANLIB" 1>&6 |
28f540f4 | 1282 | else |
f55814ff | 1283 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1284 | fi |
1285 | ||
1286 | ||
1287 | if test -z "$ac_cv_prog_RANLIB"; then | |
1288 | if test -n "$ac_tool_prefix"; then | |
1289 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1290 | set dummy ranlib; ac_word=$2 | |
f55814ff | 1291 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
84384f5b | 1292 | echo "configure:1293: checking for $ac_word" >&5 |
424f8c09 | 1293 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
f55814ff | 1294 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1295 | else |
1296 | if test -n "$RANLIB"; then | |
1297 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1298 | else | |
1299 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3bbceb12 | 1300 | for ac_dir in $PATH; do |
28f540f4 RM |
1301 | test -z "$ac_dir" && ac_dir=. |
1302 | if test -f $ac_dir/$ac_word; then | |
1303 | ac_cv_prog_RANLIB="ranlib" | |
1304 | break | |
1305 | fi | |
1306 | done | |
1307 | IFS="$ac_save_ifs" | |
1308 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1309 | fi | |
1310 | fi | |
1311 | RANLIB="$ac_cv_prog_RANLIB" | |
1312 | if test -n "$RANLIB"; then | |
f55814ff | 1313 | echo "$ac_t""$RANLIB" 1>&6 |
28f540f4 | 1314 | else |
f55814ff | 1315 | echo "$ac_t""no" 1>&6 |
28f540f4 RM |
1316 | fi |
1317 | ||
1318 | else | |
1319 | RANLIB=":" | |
1320 | fi | |
1321 | fi | |
1322 | ||
28f540f4 | 1323 | |
84384f5b UD |
1324 | # Extract the first word of "bash", so it can be a program name with args. |
1325 | set dummy bash; ac_word=$2 | |
1326 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1327 | echo "configure:1328: checking for $ac_word" >&5 | |
1328 | if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then | |
1329 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1330 | else | |
1331 | case "$BASH" in | |
1332 | /*) | |
1333 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
1334 | ;; | |
1335 | *) | |
1336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1337 | for ac_dir in $PATH; do | |
1338 | test -z "$ac_dir" && ac_dir=. | |
1339 | if test -f $ac_dir/$ac_word; then | |
1340 | ac_cv_path_BASH="$ac_dir/$ac_word" | |
1341 | break | |
1342 | fi | |
1343 | done | |
1344 | IFS="$ac_save_ifs" | |
1345 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" | |
1346 | ;; | |
1347 | esac | |
1348 | fi | |
1349 | BASH="$ac_cv_path_BASH" | |
1350 | if test -n "$BASH"; then | |
1351 | echo "$ac_t""$BASH" 1>&6 | |
1352 | else | |
1353 | echo "$ac_t""no" 1>&6 | |
1354 | fi | |
1355 | ||
1356 | if test "$BASH" != no && $BASH -c 'test "$BASH_VERSINFO" -ge 2'; then | |
1357 | libc_cv_have_bash2=yes | |
1358 | else | |
1359 | libc_cv_have_bash2=no | |
1360 | fi | |
1361 | ||
1362 | ||
f55814ff | 1363 | echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6 |
84384f5b | 1364 | echo "configure:1365: checking for signed size_t type" >&5 |
424f8c09 | 1365 | if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then |
f55814ff | 1366 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1367 | else |
1368 | echo '#include <stddef.h> | |
1369 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
1370 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
1371 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
1372 | libc_cv_signed_size_t=no | |
1373 | else | |
1374 | libc_cv_signed_size_t=yes | |
1375 | fi | |
1376 | rm -f conftest* | |
1377 | fi | |
1378 | ||
f55814ff | 1379 | echo "$ac_t""$libc_cv_signed_size_t" 1>&6 |
28f540f4 RM |
1380 | if test $libc_cv_signed_size_t = yes; then |
1381 | cat >> confdefs.h <<\EOF | |
1382 | #undef __SIZE_TYPE__ | |
1383 | #define __SIZE_TYPE__ unsigned | |
1384 | EOF | |
1385 | fi | |
1386 | ||
f55814ff | 1387 | echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6 |
84384f5b | 1388 | echo "configure:1389: checking for libc-friendly stddef.h" >&5 |
424f8c09 | 1389 | if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then |
f55814ff | 1390 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1391 | else |
1392 | cat > conftest.$ac_ext <<EOF | |
84384f5b | 1393 | #line 1394 "configure" |
28f540f4 RM |
1394 | #include "confdefs.h" |
1395 | #define __need_size_t | |
1396 | #define __need_wchar_t | |
1397 | #include <stddef.h> | |
1398 | #define __need_NULL | |
1399 | #include <stddef.h> | |
26761c28 | 1400 | int main() { |
28f540f4 RM |
1401 | size_t size; wchar_t wchar; |
1402 | #ifdef offsetof | |
1403 | #error stddef.h ignored __need_* | |
1404 | #endif | |
1405 | if (&size == NULL || &wchar == NULL) abort (); | |
1406 | ; return 0; } | |
1407 | EOF | |
84384f5b | 1408 | if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28f540f4 RM |
1409 | rm -rf conftest* |
1410 | libc_cv_friendly_stddef=yes | |
1411 | else | |
26761c28 UD |
1412 | echo "configure: failed program was:" >&5 |
1413 | cat conftest.$ac_ext >&5 | |
28f540f4 RM |
1414 | rm -rf conftest* |
1415 | libc_cv_friendly_stddef=no | |
1416 | fi | |
1417 | rm -f conftest* | |
1418 | ||
1419 | fi | |
1420 | ||
f55814ff | 1421 | echo "$ac_t""$libc_cv_friendly_stddef" 1>&6 |
28f540f4 RM |
1422 | if test $libc_cv_friendly_stddef = yes; then |
1423 | config_vars="$config_vars | |
1424 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
1425 | fi | |
1426 | ||
f55814ff | 1427 | echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6 |
84384f5b | 1428 | echo "configure:1429: checking whether we need to use -P to assemble .S files" >&5 |
424f8c09 | 1429 | if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then |
f55814ff | 1430 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1431 | else |
1432 | cat > conftest.S <<EOF | |
1433 | #include "confdefs.h" | |
1434 | /* Nothing whatsoever. */ | |
1435 | EOF | |
1436 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
1437 | libc_cv_need_minus_P=no | |
1438 | else | |
1439 | libc_cv_need_minus_P=yes | |
1440 | fi | |
1441 | rm -f conftest* | |
1442 | fi | |
1443 | ||
f55814ff | 1444 | echo "$ac_t""$libc_cv_need_minus_P" 1>&6 |
28f540f4 RM |
1445 | if test $libc_cv_need_minus_P = yes; then |
1446 | config_vars="$config_vars | |
1447 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
1448 | fi | |
1449 | ||
f55814ff | 1450 | echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6 |
84384f5b | 1451 | echo "configure:1452: checking for assembler global-symbol directive" >&5 |
587dbc6f | 1452 | if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then |
f55814ff | 1453 | echo $ac_n "(cached) $ac_c" 1>&6 |
587dbc6f RM |
1454 | else |
1455 | libc_cv_asm_global_directive=UNKNOWN | |
1456 | for ac_globl in .globl .global; do | |
1457 | cat > conftest.s <<EOF | |
1458 | .text | |
1459 | ${ac_globl} foo | |
1460 | foo: .long 0 | |
1461 | EOF | |
1462 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1463 | libc_cv_asm_global_directive=${ac_globl} | |
1464 | fi | |
1465 | rm -f conftest* | |
1466 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
1467 | done | |
1468 | fi | |
1469 | ||
f55814ff | 1470 | echo "$ac_t""$libc_cv_asm_global_directive" 1>&6 |
587dbc6f RM |
1471 | if test $libc_cv_asm_global_directive = UNKNOWN; then |
1472 | { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; } | |
1473 | else | |
1474 | cat >> confdefs.h <<EOF | |
1475 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} | |
1476 | EOF | |
1477 | ||
1478 | fi | |
1479 | ||
f55814ff | 1480 | echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6 |
84384f5b | 1481 | echo "configure:1482: checking for .set assembler directive" >&5 |
e215c478 | 1482 | if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then |
f55814ff | 1483 | echo $ac_n "(cached) $ac_c" 1>&6 |
e215c478 | 1484 | else |
587dbc6f | 1485 | cat > conftest.s <<EOF |
e215c478 RM |
1486 | .text |
1487 | foo: .long 0 | |
df2a0c93 | 1488 | .set glibc_conftest_frobozz,foo |
587dbc6f | 1489 | $libc_cv_asm_global_directive glibc_conftest_frobozz |
e215c478 | 1490 | EOF |
df2a0c93 RM |
1491 | # The alpha-dec-osf1 assembler gives only a warning for `.set' |
1492 | # (but it doesn't work), so we must do a linking check to be sure. | |
1493 | cat > conftest1.c <<\EOF | |
1494 | extern int glibc_conftest_frobozz; | |
1495 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
1496 | EOF | |
1497 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
b3a59f40 | 1498 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
e215c478 RM |
1499 | libc_cv_asm_set_directive=yes |
1500 | else | |
1501 | libc_cv_asm_set_directive=no | |
1502 | fi | |
d02907df | 1503 | rm -f conftest* |
e215c478 RM |
1504 | fi |
1505 | ||
f55814ff | 1506 | echo "$ac_t""$libc_cv_asm_set_directive" 1>&6 |
e215c478 RM |
1507 | if test $libc_cv_asm_set_directive = yes; then |
1508 | cat >> confdefs.h <<\EOF | |
1509 | #define HAVE_ASM_SET_DIRECTIVE 1 | |
1510 | EOF | |
1511 | ||
1512 | fi | |
1513 | ||
b8dc6a10 | 1514 | if test $elf != yes; then |
f55814ff | 1515 | echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6 |
84384f5b | 1516 | echo "configure:1517: checking for .init and .fini sections" >&5 |
b8dc6a10 | 1517 | if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then |
f55814ff | 1518 | echo $ac_n "(cached) $ac_c" 1>&6 |
b8dc6a10 RM |
1519 | else |
1520 | cat > conftest.$ac_ext <<EOF | |
84384f5b | 1521 | #line 1522 "configure" |
b8dc6a10 RM |
1522 | #include "confdefs.h" |
1523 | ||
26761c28 | 1524 | int main() { |
b8dc6a10 RM |
1525 | asm (".section .init"); |
1526 | asm (".section .fini"); | |
9004bc20 | 1527 | asm (".text"); |
b8dc6a10 RM |
1528 | ; return 0; } |
1529 | EOF | |
84384f5b | 1530 | if { (eval echo configure:1531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b8dc6a10 RM |
1531 | rm -rf conftest* |
1532 | libc_cv_have_initfini=yes | |
1533 | else | |
26761c28 UD |
1534 | echo "configure: failed program was:" >&5 |
1535 | cat conftest.$ac_ext >&5 | |
b8dc6a10 RM |
1536 | rm -rf conftest* |
1537 | libc_cv_have_initfini=no | |
1538 | fi | |
1539 | rm -f conftest* | |
1540 | ||
1541 | fi | |
1542 | ||
f55814ff | 1543 | echo "$ac_t""$libc_cv_have_initfini" 1>&6 |
b8dc6a10 RM |
1544 | if test $libc_cv_have_initfini = yes; then |
1545 | cat >> confdefs.h <<\EOF | |
1546 | #define HAVE_INITFINI 1 | |
1547 | EOF | |
1548 | ||
1549 | fi | |
1550 | fi | |
e215c478 | 1551 | |
c224a18a RM |
1552 | if test $elf = yes; then |
1553 | libc_cv_asm_underscores=no | |
1554 | else | |
f55814ff | 1555 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 |
84384f5b | 1556 | echo "configure:1557: checking for _ prefix on C symbol names" >&5 |
c224a18a | 1557 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
f55814ff | 1558 | echo $ac_n "(cached) $ac_c" 1>&6 |
c224a18a RM |
1559 | else |
1560 | cat > conftest.$ac_ext <<EOF | |
84384f5b | 1561 | #line 1562 "configure" |
c224a18a RM |
1562 | #include "confdefs.h" |
1563 | asm ("_glibc_foobar:"); | |
26761c28 | 1564 | int main() { |
c224a18a RM |
1565 | glibc_foobar (); |
1566 | ; return 0; } | |
1567 | EOF | |
84384f5b | 1568 | if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c224a18a RM |
1569 | rm -rf conftest* |
1570 | libc_cv_asm_underscores=yes | |
1571 | else | |
26761c28 UD |
1572 | echo "configure: failed program was:" >&5 |
1573 | cat conftest.$ac_ext >&5 | |
c224a18a RM |
1574 | rm -rf conftest* |
1575 | libc_cv_asm_underscores=no | |
1576 | fi | |
1577 | rm -f conftest* | |
1578 | ||
1579 | fi | |
1580 | ||
f55814ff | 1581 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 |
c224a18a RM |
1582 | fi |
1583 | if test $libc_cv_asm_underscores = no; then | |
1584 | cat >> confdefs.h <<\EOF | |
1585 | #define NO_UNDERSCORES 1 | |
1586 | EOF | |
1587 | ||
1588 | fi | |
1589 | ||
1590 | if test $elf = yes; then | |
1591 | libc_cv_weak_symbols=yes | |
1592 | libc_cv_asm_weak_directive=yes | |
1593 | libc_cv_asm_weakext_directive=no | |
1594 | else | |
f55814ff | 1595 | echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6 |
84384f5b | 1596 | echo "configure:1597: checking for assembler .weak directive" >&5 |
c224a18a | 1597 | if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then |
f55814ff | 1598 | echo $ac_n "(cached) $ac_c" 1>&6 |
c224a18a RM |
1599 | else |
1600 | cat > conftest.s <<EOF | |
1601 | .text | |
1602 | ${libc_cv_asm_global_directive} foo | |
1603 | foo: .long 0 | |
1604 | .weak foo | |
1605 | .weak bar; bar = foo | |
1606 | EOF | |
1607 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1608 | libc_cv_asm_weak_directive=yes | |
1609 | else | |
1610 | libc_cv_asm_weak_directive=no | |
1611 | fi | |
1612 | rm -f conftest* | |
1613 | fi | |
1614 | ||
f55814ff | 1615 | echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6 |
c224a18a | 1616 | |
c8cf0b14 | 1617 | if test $libc_cv_asm_weak_directive = no; then |
f55814ff | 1618 | echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6 |
84384f5b | 1619 | echo "configure:1620: checking for assembler .weakext directive" >&5 |
c224a18a | 1620 | if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then |
f55814ff | 1621 | echo $ac_n "(cached) $ac_c" 1>&6 |
c224a18a RM |
1622 | else |
1623 | cat > conftest.s <<EOF | |
1624 | .text | |
1625 | ${libc_cv_asm_global_directive} foo | |
1626 | foo: .long 0 | |
1627 | .weakext foo | |
a1470b6f | 1628 | .weakext foo, bar |
c224a18a RM |
1629 | EOF |
1630 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1631 | libc_cv_asm_weakext_directive=yes | |
1632 | else | |
1633 | libc_cv_asm_weakext_directive=no | |
1634 | fi | |
1635 | rm -f conftest* | |
1636 | fi | |
1637 | ||
f55814ff | 1638 | echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6 |
c224a18a RM |
1639 | |
1640 | fi # no .weak | |
1641 | fi # not ELF | |
1642 | ||
ffcf9634 | 1643 | if test $libc_cv_asm_weak_directive = yes; then |
c224a18a RM |
1644 | cat >> confdefs.h <<\EOF |
1645 | #define HAVE_ASM_WEAK_DIRECTIVE 1 | |
1646 | EOF | |
1647 | ||
ffcf9634 | 1648 | elif test $libc_cv_asm_weakext_directive = yes; then |
c224a18a RM |
1649 | cat >> confdefs.h <<\EOF |
1650 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 | |
1651 | EOF | |
1652 | ||
1653 | fi | |
1654 | ||
f55814ff | 1655 | echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6 |
84384f5b | 1656 | echo "configure:1657: checking for ld --no-whole-archive" >&5 |
ad41463d | 1657 | if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then |
f55814ff | 1658 | echo $ac_n "(cached) $ac_c" 1>&6 |
ad41463d RM |
1659 | else |
1660 | cat > conftest.c <<\EOF | |
5f0e6fc7 | 1661 | _start () {} |
655a5796 UD |
1662 | int __eh_pc; |
1663 | __throw () {} | |
ad41463d | 1664 | EOF |
dcea62dd RM |
1665 | if { ac_try='${CC-cc} $CFLAGS |
1666 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
84384f5b | 1667 | -o conftest conftest.c'; { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
ad41463d RM |
1668 | libc_cv_ld_no_whole_archive=yes |
1669 | else | |
1670 | libc_cv_ld_no_whole_archive=no | |
1671 | fi | |
1672 | rm -f conftest* | |
1673 | fi | |
1674 | ||
f55814ff | 1675 | echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6 |
ad41463d | 1676 | |
59f63dc4 | 1677 | echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6 |
84384f5b | 1678 | echo "configure:1679: checking for gcc -fno-exceptions" >&5 |
59f63dc4 UD |
1679 | if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then |
1680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1681 | else | |
1682 | cat > conftest.c <<\EOF | |
1683 | _start () {} | |
1684 | int __eh_pc; | |
1685 | __throw () {} | |
1686 | EOF | |
1687 | if { ac_try='${CC-cc} $CFLAGS | |
1688 | -nostdlib -nostartfiles -fno-exceptions | |
84384f5b | 1689 | -o conftest conftest.c'; { (eval echo configure:1690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
59f63dc4 UD |
1690 | libc_cv_gcc_no_exceptions=yes |
1691 | else | |
1692 | libc_cv_gcc_no_exceptions=no | |
1693 | fi | |
1694 | rm -f conftest* | |
1695 | fi | |
1696 | ||
1697 | echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6 | |
1698 | ||
c224a18a RM |
1699 | ### End of automated tests. |
1700 | ### Now run sysdeps configure fragments. | |
1701 | ||
28f540f4 RM |
1702 | # sysdeps configure fragments may set these with files to be linked below. |
1703 | libc_link_dests= | |
1704 | libc_link_sources= | |
1705 | ||
1706 | # Iterate over all the sysdep directories we will use, running their | |
1707 | # configure fragments, and looking for a uname implementation. | |
1708 | uname= | |
1709 | for dir in $sysnames; do | |
57ba7bb4 UD |
1710 | case $dir in |
1711 | /*) dest=$dir ;; | |
1712 | *) dest=$srcdir/$dir ;; | |
1713 | esac | |
1714 | if test -r $dest/configure; then | |
1715 | echo "$ac_t""running configure fragment for $dest" 1>&6 | |
1716 | . $dest/configure | |
28f540f4 | 1717 | fi |
c6de6968 | 1718 | |
28f540f4 | 1719 | if test -z "$uname"; then |
c6de6968 RM |
1720 | if test -r $sysdep_dir/$dir/uname.c || |
1721 | test -r $sysdep_dir/$dir/uname.S || | |
1722 | { test -r $sysdep_dir/$dir/syscalls.list && | |
1723 | grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then | |
1724 | uname=$dir | |
1725 | fi | |
28f540f4 RM |
1726 | fi |
1727 | done | |
1728 | ||
1729 | ||
1730 | ||
1731 | # If we will use the generic uname implementation, we must figure out what | |
1732 | # it will say by examining the system, and write the results in config-name.h. | |
1733 | if test "$uname" = generic; then | |
1734 | ||
1735 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
1736 | if test $uname_sysname != $config_os; then | |
1737 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
1738 | fi | |
1739 | ||
f55814ff | 1740 | echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 |
84384f5b | 1741 | echo "configure:1742: checking OS release for uname" >&5 |
b8dc6a10 | 1742 | if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then |
f55814ff | 1743 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1744 | else |
1745 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
1746 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ | |
1747 | != x$config_release; then | |
1748 | # The configuration release is a substring of the kernel release. | |
1749 | libc_cv_uname_release=$kernel_release | |
1750 | elif test x$config_release != x; then | |
1751 | libc_cv_uname_release=$config_release | |
1752 | elif test x$kernel_release != x; then | |
1753 | libc_cv_uname_release=$kernel_release | |
1754 | else | |
1755 | libc_cv_uname_release=unknown | |
1756 | fi | |
1757 | fi | |
1758 | ||
f55814ff | 1759 | echo "$ac_t""$libc_cv_uname_release" 1>&6 |
28f540f4 RM |
1760 | uname_release="$libc_cv_uname_release" |
1761 | ||
f55814ff | 1762 | echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 |
84384f5b | 1763 | echo "configure:1764: checking OS version for uname" >&5 |
b8dc6a10 | 1764 | if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then |
f55814ff | 1765 | echo $ac_n "(cached) $ac_c" 1>&6 |
28f540f4 RM |
1766 | else |
1767 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
1768 | if test -n "$kernel_version"; then | |
1769 | libc_cv_uname_version="$kernel_version" | |
1770 | else | |
1771 | libc_cv_uname_version=unknown | |
1772 | fi | |
1773 | fi | |
1774 | ||
f55814ff | 1775 | echo "$ac_t""$libc_cv_uname_version" 1>&6 |
28f540f4 RM |
1776 | uname_version="$libc_cv_uname_version" |
1777 | ||
1778 | config_uname=config-name.h:config-name.in | |
1779 | else | |
1780 | # For non-generic uname, we don't need to create config-name.h at all. | |
1781 | config_uname= | |
1782 | fi | |
1783 | ||
f55814ff | 1784 | echo $ac_n "checking stdio selection""... $ac_c" 1>&6 |
84384f5b | 1785 | echo "configure:1786: checking stdio selection" >&5 |
91c7b85d RM |
1786 | |
1787 | case $stdio in | |
1788 | libio) cat >> confdefs.h <<\EOF | |
1789 | #define USE_IN_LIBIO 1 | |
1790 | EOF | |
1791 | ;; | |
1792 | default) stdio=stdio ;; | |
1793 | esac | |
f55814ff | 1794 | echo "$ac_t""$stdio" 1>&6 |
91c7b85d | 1795 | |
84384f5b UD |
1796 | |
1797 | ||
1798 | ||
c224a18a | 1799 | |
28f540f4 RM |
1800 | if test $gnu_ld = yes; then |
1801 | cat >> confdefs.h <<\EOF | |
1802 | #define HAVE_GNU_LD 1 | |
1803 | EOF | |
1804 | ||
1805 | fi | |
1806 | if test $gnu_as = yes; then | |
1807 | cat >> confdefs.h <<\EOF | |
1808 | #define HAVE_GNU_AS 1 | |
1809 | EOF | |
1810 | ||
1811 | fi | |
1812 | if test $elf = yes; then | |
1813 | cat >> confdefs.h <<\EOF | |
1814 | #define HAVE_ELF 1 | |
1815 | EOF | |
1816 | ||
28f540f4 RM |
1817 | fi |
1818 | ||
1819 | ||
424f8c09 RM |
1820 | if test $shared = default; then |
1821 | if test $gnu_ld = yes; then | |
1822 | shared=$elf | |
1823 | fi | |
1824 | fi | |
1825 | ||
1826 | ||
1827 | ||
edf5b2d7 UD |
1828 | |
1829 | ||
28f540f4 RM |
1830 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
1831 | config_makefile= | |
1832 | else | |
1833 | config_makefile=Makefile | |
1834 | fi | |
1835 | ||
1836 | trap '' 1 2 15 | |
424f8c09 | 1837 | cat > confcache <<\EOF |
28f540f4 RM |
1838 | # This file is a shell script that caches the results of configure |
1839 | # tests run on this system so they can be shared between configure | |
1840 | # scripts and configure runs. It is not useful on other systems. | |
1841 | # If it contains results you don't want to keep, you may remove or edit it. | |
1842 | # | |
1843 | # By default, configure uses ./config.cache as the cache file, | |
1844 | # creating it if it does not exist already. You can give configure | |
1845 | # the --cache-file=FILE option to use a different cache file; that is | |
1846 | # what configure does when it calls configure scripts in | |
1847 | # subdirectories, so they share the cache. | |
1848 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1849 | # config.status only pays attention to the cache file if you give it the | |
1850 | # --recheck option to rerun configure. | |
1851 | # | |
1852 | EOF | |
1853 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1854 | # and sets the high bit in the cache file unless we assign to the vars. | |
26761c28 | 1855 | # HP-UX 10.01 sh prints single quotes around any value that contains spaces. |
28f540f4 | 1856 | (set) 2>&1 | |
26761c28 | 1857 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)='*\([^']*\)'*/\1=\${\1='\2'}/p"\ |
424f8c09 RM |
1858 | >> confcache |
1859 | if cmp -s $cache_file confcache; then | |
1860 | : | |
28f540f4 | 1861 | else |
424f8c09 RM |
1862 | if test -w $cache_file; then |
1863 | echo "updating cache $cache_file" | |
1864 | cat confcache > $cache_file | |
1865 | else | |
1866 | echo "not updating unwritable cache $cache_file" | |
1867 | fi | |
28f540f4 | 1868 | fi |
424f8c09 | 1869 | rm -f confcache |
28f540f4 RM |
1870 | |
1871 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
1872 | ||
1873 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
1874 | # Let make expand exec_prefix. | |
1875 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
1876 | ||
1877 | # Any assignment to VPATH causes Sun make to only execute | |
1878 | # the first set of double-colon rules, so remove it if not needed. | |
1879 | # If there is a colon in the path, we need to keep it. | |
1880 | if test "x$srcdir" = x.; then | |
1881 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1882 | fi | |
1883 | ||
1884 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1885 | ||
1886 | DEFS=-DHAVE_CONFIG_H | |
1887 | ||
1888 | # Without the "./", some shells look in PATH for config.status. | |
1889 | : ${CONFIG_STATUS=./config.status} | |
1890 | ||
1891 | echo creating $CONFIG_STATUS | |
1892 | rm -f $CONFIG_STATUS | |
1893 | cat > $CONFIG_STATUS <<EOF | |
1894 | #! /bin/sh | |
1895 | # Generated automatically by configure. | |
1896 | # Run this file to recreate the current configuration. | |
1897 | # This directory was configured as follows, | |
1898 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1899 | # | |
1900 | # $0 $ac_configure_args | |
1901 | # | |
1902 | # Compiler output produced by configure, useful for debugging | |
1903 | # configure, is in ./config.log if it exists. | |
1904 | ||
1905 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
1906 | for ac_option | |
1907 | do | |
1908 | case "\$ac_option" in | |
1909 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
1910 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
1911 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
1912 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
26761c28 | 1913 | echo "$CONFIG_STATUS generated by autoconf version 2.10.3" |
28f540f4 RM |
1914 | exit 0 ;; |
1915 | -help | --help | --hel | --he | --h) | |
1916 | echo "\$ac_cs_usage"; exit 0 ;; | |
1917 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
1918 | esac | |
1919 | done | |
1920 | ||
1921 | ac_given_srcdir=$srcdir | |
1922 | ac_given_INSTALL="$INSTALL" | |
1923 | ||
e215c478 | 1924 | trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1ed0083c RM |
1925 | EOF |
1926 | cat >> $CONFIG_STATUS <<EOF | |
28f540f4 | 1927 | |
91c7b85d | 1928 | # Protect against being on the right side of a sed subst in config.status. |
1ed0083c RM |
1929 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
1930 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
28f540f4 RM |
1931 | $ac_vpsub |
1932 | $extrasub | |
1933 | s%@CFLAGS@%$CFLAGS%g | |
1934 | s%@CPPFLAGS@%$CPPFLAGS%g | |
1935 | s%@CXXFLAGS@%$CXXFLAGS%g | |
1936 | s%@DEFS@%$DEFS%g | |
1937 | s%@LDFLAGS@%$LDFLAGS%g | |
1938 | s%@LIBS@%$LIBS%g | |
1939 | s%@exec_prefix@%$exec_prefix%g | |
1940 | s%@prefix@%$prefix%g | |
1941 | s%@program_transform_name@%$program_transform_name%g | |
b8dc6a10 RM |
1942 | s%@bindir@%$bindir%g |
1943 | s%@sbindir@%$sbindir%g | |
1944 | s%@libexecdir@%$libexecdir%g | |
1945 | s%@datadir@%$datadir%g | |
1946 | s%@sysconfdir@%$sysconfdir%g | |
1947 | s%@sharedstatedir@%$sharedstatedir%g | |
1948 | s%@localstatedir@%$localstatedir%g | |
1949 | s%@libdir@%$libdir%g | |
1950 | s%@includedir@%$includedir%g | |
1951 | s%@oldincludedir@%$oldincludedir%g | |
1952 | s%@infodir@%$infodir%g | |
1953 | s%@mandir@%$mandir%g | |
6b3a2224 | 1954 | s%@subdirs@%$subdirs%g |
28f540f4 RM |
1955 | s%@host@%$host%g |
1956 | s%@host_alias@%$host_alias%g | |
1957 | s%@host_cpu@%$host_cpu%g | |
1958 | s%@host_vendor@%$host_vendor%g | |
1959 | s%@host_os@%$host_os%g | |
f0523145 | 1960 | s%@base_machine@%$base_machine%g |
28f540f4 RM |
1961 | s%@sysnames@%$sysnames%g |
1962 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
1963 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
ad41463d | 1964 | s%@LN_S@%$LN_S%g |
ce4d8b66 | 1965 | s%@MSGFMT@%$MSGFMT%g |
28f540f4 RM |
1966 | s%@build@%$build%g |
1967 | s%@build_alias@%$build_alias%g | |
1968 | s%@build_cpu@%$build_cpu%g | |
1969 | s%@build_vendor@%$build_vendor%g | |
1970 | s%@build_os@%$build_os%g | |
1971 | s%@CC@%$CC%g | |
40a4b79f | 1972 | s%@BUILD_CC@%$BUILD_CC%g |
8942a07a | 1973 | s%@CPP@%$CPP%g |
28f540f4 RM |
1974 | s%@AR@%$AR%g |
1975 | s%@RANLIB@%$RANLIB%g | |
84384f5b UD |
1976 | s%@BASH@%$BASH%g |
1977 | s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g | |
b8dc6a10 | 1978 | s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g |
ad41463d | 1979 | s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g |
0b72c47e | 1980 | s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g |
28f540f4 RM |
1981 | s%@uname_sysname@%$uname_sysname%g |
1982 | s%@uname_release@%$uname_release%g | |
1983 | s%@uname_version@%$uname_version%g | |
91c7b85d | 1984 | s%@stdio@%$stdio%g |
84384f5b UD |
1985 | s%@libc_cv_slibdir@%$libc_cv_slibdir%g |
1986 | s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g | |
28f540f4 RM |
1987 | s%@gnu_ld@%$gnu_ld%g |
1988 | s%@gnu_as@%$gnu_as%g | |
1989 | s%@elf@%$elf%g | |
424f8c09 RM |
1990 | s%@shared@%$shared%g |
1991 | s%@profile@%$profile%g | |
1992 | s%@omitfp@%$omitfp%g | |
edf5b2d7 | 1993 | s%@DEFINES@%$DEFINES%g |
28f540f4 RM |
1994 | |
1995 | CEOF | |
1996 | EOF | |
26761c28 UD |
1997 | |
1998 | cat >> $CONFIG_STATUS <<\EOF | |
1999 | ||
2000 | # Split the substitutions into bite-sized pieces for seds with | |
2001 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2002 | ac_file=1 # Number of current file. | |
2003 | ac_inc=90 # Lines per file. | |
2004 | ac_beg=1 # First line for current file. | |
2005 | ac_end=$ac_inc # Line after last line for current file. | |
2006 | ac_more_lines=: | |
2007 | ac_sed_cmds="" | |
2008 | while $ac_more_lines; do | |
2009 | if test $ac_beg -gt 1; then | |
2010 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2011 | else | |
2012 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2013 | fi | |
2014 | if test ! -s conftest.s$ac_file; then | |
2015 | ac_more_lines=false | |
2016 | rm -f conftest.s$ac_file | |
2017 | else | |
2018 | if test -z "$ac_sed_cmds"; then | |
2019 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2020 | else | |
2021 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2022 | fi | |
2023 | ac_file=`expr $ac_file + 1` | |
2024 | ac_beg=$ac_end | |
2025 | ac_end=`expr $ac_end + $ac_inc` | |
2026 | fi | |
2027 | done | |
2028 | if test -z "$ac_sed_cmds"; then | |
2029 | ac_sed_cmds=cat | |
2030 | fi | |
2031 | EOF | |
2032 | ||
28f540f4 RM |
2033 | cat >> $CONFIG_STATUS <<EOF |
2034 | ||
2035 | CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"} | |
2036 | EOF | |
2037 | cat >> $CONFIG_STATUS <<\EOF | |
2038 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2039 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
2040 | case "$ac_file" in | |
2041 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2042 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2043 | *) ac_file_in="${ac_file}.in" ;; | |
2044 | esac | |
2045 | ||
26761c28 | 2046 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
28f540f4 RM |
2047 | |
2048 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2049 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2050 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2051 | # The file is in a subdirectory. | |
2052 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2053 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2054 | # A "../" for each directory in $ac_dir_suffix. | |
2055 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2056 | else | |
2057 | ac_dir_suffix= ac_dots= | |
2058 | fi | |
2059 | ||
2060 | case "$ac_given_srcdir" in | |
2061 | .) srcdir=. | |
2062 | if test -z "$ac_dots"; then top_srcdir=. | |
2063 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2064 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2065 | *) # Relative path. | |
2066 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2067 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2068 | esac | |
2069 | ||
2070 | case "$ac_given_INSTALL" in | |
2071 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2072 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2073 | esac | |
26761c28 | 2074 | |
28f540f4 RM |
2075 | echo creating "$ac_file" |
2076 | rm -f "$ac_file" | |
2077 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2078 | case "$ac_file" in | |
2079 | *Makefile*) ac_comsub="1i\\ | |
2080 | # $configure_input" ;; | |
2081 | *) ac_comsub= ;; | |
2082 | esac | |
2083 | sed -e "$ac_comsub | |
2084 | s%@configure_input@%$configure_input%g | |
2085 | s%@srcdir@%$srcdir%g | |
2086 | s%@top_srcdir@%$top_srcdir%g | |
2087 | s%@INSTALL@%$INSTALL%g | |
26761c28 | 2088 | " $ac_given_srcdir/$ac_file_in | eval "$ac_sed_cmds" > $ac_file |
28f540f4 | 2089 | fi; done |
26761c28 | 2090 | rm -f conftest.s* |
28f540f4 RM |
2091 | |
2092 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
2093 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
2094 | # | |
2095 | # ac_d sets the value in "#define NAME VALUE" lines. | |
2096 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
2097 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
2098 | ac_dC='\3' | |
2099 | ac_dD='%g' | |
2100 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
2101 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2102 | ac_uB='\([ ]\)%\1#\2define\3' | |
2103 | ac_uC=' ' | |
2104 | ac_uD='\4%g' | |
2105 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
2106 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2107 | ac_eB='$%\1#\2define\3' | |
2108 | ac_eC=' ' | |
2109 | ac_eD='%g' | |
2110 | ||
26761c28 UD |
2111 | if test -z "$CONFIG_HEADERS"; then |
2112 | EOF | |
2113 | cat >> $CONFIG_STATUS <<EOF | |
2114 | CONFIG_HEADERS="config.h" | |
2115 | EOF | |
2116 | cat >> $CONFIG_STATUS <<\EOF | |
2117 | fi | |
28f540f4 RM |
2118 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
2119 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
2120 | case "$ac_file" in | |
2121 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2122 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2123 | *) ac_file_in="${ac_file}.in" ;; | |
2124 | esac | |
2125 | ||
2126 | echo creating $ac_file | |
2127 | ||
2128 | rm -f conftest.frag conftest.in conftest.out | |
2129 | cp $ac_given_srcdir/$ac_file_in conftest.in | |
2130 | ||
2131 | EOF | |
2132 | ||
2133 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
2134 | # the proper values into config.h.in to produce config.h. And first: | |
91c7b85d | 2135 | # Protect against being on the right side of a sed subst in config.status. |
28f540f4 RM |
2136 | # Protect against being in an unquoted here document in config.status. |
2137 | rm -f conftest.vals | |
2138 | cat > conftest.hdr <<\EOF | |
2139 | s/[\\&%]/\\&/g | |
2140 | s%[\\$`]%\\&%g | |
c224a18a | 2141 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
28f540f4 RM |
2142 | s%ac_d%ac_u%gp |
2143 | s%ac_u%ac_e%gp | |
2144 | EOF | |
2145 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
2146 | rm -f conftest.hdr | |
2147 | ||
2148 | # This sed command replaces #undef with comments. This is necessary, for | |
2149 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
2150 | # on some systems where configure will not decide to define it. | |
2151 | cat >> conftest.vals <<\EOF | |
2152 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
2153 | EOF | |
2154 | ||
2155 | # Break up conftest.vals because some shells have a limit on | |
2156 | # the size of here documents, and old seds have small limits too. | |
2157 | # Maximum number of lines to put in a single here document. | |
2158 | ac_max_here_lines=12 | |
2159 | ||
2160 | rm -f conftest.tail | |
2161 | while : | |
2162 | do | |
2163 | ac_lines=`grep -c . conftest.vals` | |
2164 | # grep -c gives empty output for an empty file on some AIX systems. | |
2165 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
2166 | # Write a limited-size here document to conftest.frag. | |
2167 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
2168 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
2169 | echo 'CEOF | |
2170 | sed -f conftest.frag conftest.in > conftest.out | |
2171 | rm -f conftest.in | |
2172 | mv conftest.out conftest.in | |
2173 | ' >> $CONFIG_STATUS | |
2174 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
2175 | rm -f conftest.vals | |
2176 | mv conftest.tail conftest.vals | |
2177 | done | |
2178 | rm -f conftest.vals | |
2179 | ||
2180 | cat >> $CONFIG_STATUS <<\EOF | |
2181 | rm -f conftest.frag conftest.h | |
2182 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
2183 | cat conftest.in >> conftest.h | |
2184 | rm -f conftest.in | |
2185 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
2186 | echo "$ac_file is unchanged" | |
2187 | rm -f conftest.h | |
2188 | else | |
ad41463d RM |
2189 | # Remove last slash and all that follows it. Not all systems have dirname. |
2190 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2191 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2192 | # The file is in a subdirectory. | |
2193 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2194 | fi | |
28f540f4 RM |
2195 | rm -f $ac_file |
2196 | mv conftest.h $ac_file | |
2197 | fi | |
2198 | fi; done | |
2199 | ||
2200 | EOF | |
2201 | ||
2202 | cat >> $CONFIG_STATUS <<EOF | |
2203 | ac_sources="`echo $libc_link_sources`" | |
2204 | ac_dests="`echo $libc_link_dests`" | |
2205 | EOF | |
2206 | ||
2207 | cat >> $CONFIG_STATUS <<\EOF | |
2208 | srcdir=$ac_given_srcdir | |
2209 | while test -n "$ac_sources"; do | |
2210 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
2211 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
2212 | ||
2213 | echo "linking $srcdir/$ac_source to $ac_dest" | |
2214 | ||
2215 | if test ! -r $srcdir/$ac_source; then | |
2216 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
2217 | fi | |
2218 | rm -f $ac_dest | |
2219 | ||
2220 | # Make relative symlinks. | |
2221 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2222 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
2223 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
2224 | # The dest file is in a subdirectory. | |
2225 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
2226 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
2227 | # A "../" for each directory in $ac_dest_dir_suffix. | |
2228 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
2229 | else | |
2230 | ac_dest_dir_suffix= ac_dots= | |
2231 | fi | |
2232 | ||
2233 | case "$srcdir" in | |
2234 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
2235 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
2236 | esac | |
2237 | ||
2238 | # Make a symlink if possible; otherwise try a hard link. | |
2239 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
2240 | ln $srcdir/$ac_source $ac_dest; then : | |
2241 | else | |
2242 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
2243 | fi | |
2244 | done | |
2245 | EOF | |
2246 | cat >> $CONFIG_STATUS <<EOF | |
2247 | echo '$config_vars' >> config.make | |
2248 | EOF | |
2249 | cat >> $CONFIG_STATUS <<\EOF | |
2250 | ||
2251 | exit 0 | |
2252 | EOF | |
2253 | chmod +x $CONFIG_STATUS | |
2254 | rm -fr confdefs* $ac_clean_files | |
2255 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2256 | ||
6b3a2224 RM |
2257 | if test "$no_recursion" != yes; then |
2258 | ||
2259 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2260 | ac_sub_configure_args= | |
2261 | ac_prev= | |
2262 | for ac_arg in $ac_configure_args; do | |
2263 | if test -n "$ac_prev"; then | |
2264 | ac_prev= | |
2265 | continue | |
2266 | fi | |
2267 | case "$ac_arg" in | |
2268 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2269 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2270 | ac_prev=cache_file ;; | |
2271 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2272 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2273 | ;; | |
2274 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2275 | ac_prev=srcdir ;; | |
2276 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2277 | ;; | |
2278 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
2279 | esac | |
2280 | done | |
2281 | ||
2282 | for ac_config_dir in $add_ons; do | |
2283 | ||
2284 | # Do not complain, so a configure script can configure whichever | |
2285 | # parts of a large source tree are present. | |
2286 | if test ! -d $srcdir/$ac_config_dir; then | |
2287 | continue | |
2288 | fi | |
2289 | ||
2290 | echo configuring in $ac_config_dir | |
2291 | ||
2292 | case "$srcdir" in | |
2293 | .) ;; | |
2294 | *) | |
2295 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
2296 | else | |
2297 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
2298 | fi | |
2299 | ;; | |
2300 | esac | |
2301 | ||
2302 | ac_popdir=`pwd` | |
2303 | cd $ac_config_dir | |
2304 | ||
26761c28 UD |
2305 | # A "../" for each directory in /$ac_config_dir. |
2306 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2307 | ||
6b3a2224 RM |
2308 | case "$srcdir" in |
2309 | .) # No --srcdir option. We are building in place. | |
2310 | ac_sub_srcdir=$srcdir ;; | |
2311 | /*) # Absolute path. | |
2312 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2313 | *) # Relative path. | |
26761c28 | 2314 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
6b3a2224 RM |
2315 | esac |
2316 | ||
2317 | # Check for guested configure; otherwise get Cygnus style configure. | |
2318 | if test -f $ac_sub_srcdir/configure; then | |
2319 | ac_sub_configure=$ac_sub_srcdir/configure | |
2320 | elif test -f $ac_sub_srcdir/configure.in; then | |
2321 | ac_sub_configure=$ac_configure | |
2322 | else | |
2323 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
2324 | ac_sub_configure= | |
2325 | fi | |
2326 | ||
2327 | # The recursion is here. | |
2328 | if test -n "$ac_sub_configure"; then | |
2329 | ||
2330 | # Make the cache file name correct relative to the subdirectory. | |
6b3a2224 RM |
2331 | case "$cache_file" in |
2332 | /*) ac_sub_cache_file=$cache_file ;; | |
2333 | *) # Relative path. | |
2334 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2335 | esac | |
2336 | case "$ac_given_INSTALL" in | |
2337 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2338 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2339 | esac | |
2340 | ||
2341 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
2342 | # The eval makes quoting arguments work. | |
2343 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
2344 | then : | |
2345 | else | |
2346 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
2347 | fi | |
2348 | fi | |
2349 | ||
2350 | cd $ac_popdir | |
2351 | done | |
2352 | fi | |
2353 |