]>
Commit | Line | Data |
---|---|---|
2efbc2a7 JJ |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-multilib build many library versions (default)" | |
16 | ac_help="$ac_help | |
17 | --enable-target-optspace optimize for space" | |
3ac6f3a7 JJ |
18 | ac_help="$ac_help |
19 | --enable-malloc-debugging indicate malloc debugging requested" | |
2efbc2a7 JJ |
20 | ac_help="$ac_help |
21 | --enable-newlib-mb enable multibyte support" | |
786ab12c JJ |
22 | ac_help="$ac_help |
23 | --enable-newlib-iconv enable iconv library support" | |
24 | ac_help="$ac_help | |
25 | --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in" | |
0c048a9a TF |
26 | ac_help="$ac_help |
27 | --enable-newlib-multithread enable support for multiple threads" | |
90b65e2d JJ |
28 | ac_help="$ac_help |
29 | --enable-newlib-elix-level supply desired elix library level (1-4)" | |
afecf2fa JJ |
30 | ac_help="$ac_help |
31 | --disable-newlib-io-float disable printf/scanf family float support" | |
313f1349 JJ |
32 | ac_help="$ac_help |
33 | --disable-newlib-supplied-syscalls disable newlib from supplying syscalls" | |
2efbc2a7 JJ |
34 | ac_help="$ac_help |
35 | --enable-maintainer-mode enable make rules and dependencies not useful | |
36 | (and sometimes confusing) to the casual installer" | |
2e1a7175 TF |
37 | ac_help="$ac_help |
38 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
39 | ac_help="$ac_help | |
40 | --enable-static[=PKGS] build static libraries [default=yes]" | |
41 | ac_help="$ac_help | |
42 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
43 | ac_help="$ac_help | |
44 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
45 | ac_help="$ac_help | |
46 | --disable-libtool-lock avoid locking (might break parallel builds)" | |
0953fe64 TF |
47 | ac_help="$ac_help |
48 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
2efbc2a7 JJ |
49 | |
50 | # Initialize some variables set by options. | |
51 | # The variables have the same names as the options, with | |
52 | # dashes changed to underlines. | |
53 | build=NONE | |
54 | cache_file=./config.cache | |
55 | exec_prefix=NONE | |
56 | host=NONE | |
57 | no_create= | |
58 | nonopt=NONE | |
59 | no_recursion= | |
60 | prefix=NONE | |
61 | program_prefix=NONE | |
62 | program_suffix=NONE | |
63 | program_transform_name=s,x,x, | |
64 | silent= | |
65 | site= | |
2efbc2a7 JJ |
66 | srcdir= |
67 | target=NONE | |
68 | verbose= | |
69 | x_includes=NONE | |
70 | x_libraries=NONE | |
71 | bindir='${exec_prefix}/bin' | |
72 | sbindir='${exec_prefix}/sbin' | |
73 | libexecdir='${exec_prefix}/libexec' | |
74 | datadir='${prefix}/share' | |
75 | sysconfdir='${prefix}/etc' | |
76 | sharedstatedir='${prefix}/com' | |
77 | localstatedir='${prefix}/var' | |
78 | libdir='${exec_prefix}/lib' | |
79 | includedir='${prefix}/include' | |
80 | oldincludedir='/usr/include' | |
81 | infodir='${prefix}/info' | |
82 | mandir='${prefix}/man' | |
83 | ||
84 | # Initialize some other variables. | |
85 | subdirs= | |
86 | MFLAGS= MAKEFLAGS= | |
87 | SHELL=${CONFIG_SHELL-/bin/sh} | |
88 | # Maximum number of lines to put in a shell here document. | |
89 | ac_max_here_lines=12 | |
90 | ||
91 | ac_prev= | |
92 | for ac_option | |
93 | do | |
94 | ||
95 | # If the previous option needs an argument, assign it. | |
96 | if test -n "$ac_prev"; then | |
97 | eval "$ac_prev=\$ac_option" | |
98 | ac_prev= | |
99 | continue | |
100 | fi | |
101 | ||
102 | case "$ac_option" in | |
103 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
104 | *) ac_optarg= ;; | |
105 | esac | |
106 | ||
107 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
108 | ||
109 | case "$ac_option" in | |
110 | ||
111 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
112 | ac_prev=bindir ;; | |
113 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
114 | bindir="$ac_optarg" ;; | |
115 | ||
116 | -build | --build | --buil | --bui | --bu) | |
117 | ac_prev=build ;; | |
118 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
119 | build="$ac_optarg" ;; | |
120 | ||
121 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
122 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
123 | ac_prev=cache_file ;; | |
124 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
125 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
126 | cache_file="$ac_optarg" ;; | |
127 | ||
128 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
129 | ac_prev=datadir ;; | |
130 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
131 | | --da=*) | |
132 | datadir="$ac_optarg" ;; | |
133 | ||
134 | -disable-* | --disable-*) | |
135 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
136 | # Reject names that are not valid shell variable names. | |
137 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
138 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
139 | fi | |
140 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
141 | eval "enable_${ac_feature}=no" ;; | |
142 | ||
143 | -enable-* | --enable-*) | |
144 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
145 | # Reject names that are not valid shell variable names. | |
146 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
147 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
148 | fi | |
149 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
150 | case "$ac_option" in | |
151 | *=*) ;; | |
152 | *) ac_optarg=yes ;; | |
153 | esac | |
154 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
155 | ||
156 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
157 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
158 | | --exec | --exe | --ex) | |
159 | ac_prev=exec_prefix ;; | |
160 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
161 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
162 | | --exec=* | --exe=* | --ex=*) | |
163 | exec_prefix="$ac_optarg" ;; | |
164 | ||
165 | -gas | --gas | --ga | --g) | |
166 | # Obsolete; use --with-gas. | |
167 | with_gas=yes ;; | |
168 | ||
169 | -help | --help | --hel | --he) | |
170 | # Omit some internal or obsolete options to make the list less imposing. | |
171 | # This message is too long to be a string in the A/UX 3.1 sh. | |
172 | cat << EOF | |
173 | Usage: configure [options] [host] | |
174 | Options: [defaults in brackets after descriptions] | |
175 | Configuration: | |
176 | --cache-file=FILE cache test results in FILE | |
177 | --help print this message | |
178 | --no-create do not create output files | |
179 | --quiet, --silent do not print \`checking...' messages | |
2efbc2a7 JJ |
180 | --version print the version of autoconf that created configure |
181 | Directory and file names: | |
182 | --prefix=PREFIX install architecture-independent files in PREFIX | |
183 | [$ac_default_prefix] | |
184 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
185 | [same as prefix] | |
186 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
187 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
188 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
189 | --datadir=DIR read-only architecture-independent data in DIR | |
190 | [PREFIX/share] | |
191 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
192 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
193 | [PREFIX/com] | |
194 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
195 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
196 | --includedir=DIR C header files in DIR [PREFIX/include] | |
197 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
198 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
199 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
200 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
201 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
202 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
203 | --program-transform-name=PROGRAM | |
204 | run sed PROGRAM on installed program names | |
205 | EOF | |
206 | cat << EOF | |
207 | Host type: | |
208 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
209 | --host=HOST configure for HOST [guessed] | |
210 | --target=TARGET configure for TARGET [TARGET=HOST] | |
211 | Features and packages: | |
212 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
213 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
214 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
215 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
216 | --x-includes=DIR X include files are in DIR | |
217 | --x-libraries=DIR X library files are in DIR | |
218 | EOF | |
219 | if test -n "$ac_help"; then | |
220 | echo "--enable and --with options recognized:$ac_help" | |
221 | fi | |
222 | exit 0 ;; | |
223 | ||
224 | -host | --host | --hos | --ho) | |
225 | ac_prev=host ;; | |
226 | -host=* | --host=* | --hos=* | --ho=*) | |
227 | host="$ac_optarg" ;; | |
228 | ||
229 | -includedir | --includedir | --includedi | --included | --include \ | |
230 | | --includ | --inclu | --incl | --inc) | |
231 | ac_prev=includedir ;; | |
232 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
233 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
234 | includedir="$ac_optarg" ;; | |
235 | ||
236 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
237 | ac_prev=infodir ;; | |
238 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
239 | infodir="$ac_optarg" ;; | |
240 | ||
241 | -libdir | --libdir | --libdi | --libd) | |
242 | ac_prev=libdir ;; | |
243 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
244 | libdir="$ac_optarg" ;; | |
245 | ||
246 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
247 | | --libexe | --libex | --libe) | |
248 | ac_prev=libexecdir ;; | |
249 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
250 | | --libexe=* | --libex=* | --libe=*) | |
251 | libexecdir="$ac_optarg" ;; | |
252 | ||
253 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
254 | | --localstate | --localstat | --localsta | --localst \ | |
255 | | --locals | --local | --loca | --loc | --lo) | |
256 | ac_prev=localstatedir ;; | |
257 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
258 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
259 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
260 | localstatedir="$ac_optarg" ;; | |
261 | ||
262 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
263 | ac_prev=mandir ;; | |
264 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
265 | mandir="$ac_optarg" ;; | |
266 | ||
267 | -nfp | --nfp | --nf) | |
268 | # Obsolete; use --without-fp. | |
269 | with_fp=no ;; | |
270 | ||
271 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
272 | | --no-cr | --no-c) | |
273 | no_create=yes ;; | |
274 | ||
275 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
276 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
277 | no_recursion=yes ;; | |
278 | ||
279 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
280 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
281 | | --oldin | --oldi | --old | --ol | --o) | |
282 | ac_prev=oldincludedir ;; | |
283 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
284 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
285 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
286 | oldincludedir="$ac_optarg" ;; | |
287 | ||
288 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
289 | ac_prev=prefix ;; | |
290 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
291 | prefix="$ac_optarg" ;; | |
292 | ||
293 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
294 | | --program-pre | --program-pr | --program-p) | |
295 | ac_prev=program_prefix ;; | |
296 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
297 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
298 | program_prefix="$ac_optarg" ;; | |
299 | ||
300 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
301 | | --program-suf | --program-su | --program-s) | |
302 | ac_prev=program_suffix ;; | |
303 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
304 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
305 | program_suffix="$ac_optarg" ;; | |
306 | ||
307 | -program-transform-name | --program-transform-name \ | |
308 | | --program-transform-nam | --program-transform-na \ | |
309 | | --program-transform-n | --program-transform- \ | |
310 | | --program-transform | --program-transfor \ | |
311 | | --program-transfo | --program-transf \ | |
312 | | --program-trans | --program-tran \ | |
313 | | --progr-tra | --program-tr | --program-t) | |
314 | ac_prev=program_transform_name ;; | |
315 | -program-transform-name=* | --program-transform-name=* \ | |
316 | | --program-transform-nam=* | --program-transform-na=* \ | |
317 | | --program-transform-n=* | --program-transform-=* \ | |
318 | | --program-transform=* | --program-transfor=* \ | |
319 | | --program-transfo=* | --program-transf=* \ | |
320 | | --program-trans=* | --program-tran=* \ | |
321 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
322 | program_transform_name="$ac_optarg" ;; | |
323 | ||
324 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
325 | | -silent | --silent | --silen | --sile | --sil) | |
326 | silent=yes ;; | |
327 | ||
328 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
329 | ac_prev=sbindir ;; | |
330 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
331 | | --sbi=* | --sb=*) | |
332 | sbindir="$ac_optarg" ;; | |
333 | ||
334 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
335 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
336 | | --sharedst | --shareds | --shared | --share | --shar \ | |
337 | | --sha | --sh) | |
338 | ac_prev=sharedstatedir ;; | |
339 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
340 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
341 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
342 | | --sha=* | --sh=*) | |
343 | sharedstatedir="$ac_optarg" ;; | |
344 | ||
345 | -site | --site | --sit) | |
346 | ac_prev=site ;; | |
347 | -site=* | --site=* | --sit=*) | |
348 | site="$ac_optarg" ;; | |
349 | ||
2efbc2a7 JJ |
350 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
351 | ac_prev=srcdir ;; | |
352 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
353 | srcdir="$ac_optarg" ;; | |
354 | ||
355 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
356 | | --syscon | --sysco | --sysc | --sys | --sy) | |
357 | ac_prev=sysconfdir ;; | |
358 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
359 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
360 | sysconfdir="$ac_optarg" ;; | |
361 | ||
362 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
363 | ac_prev=target ;; | |
364 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
365 | target="$ac_optarg" ;; | |
366 | ||
367 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
368 | verbose=yes ;; | |
369 | ||
370 | -version | --version | --versio | --versi | --vers) | |
371 | echo "configure generated by autoconf version 2.13" | |
372 | exit 0 ;; | |
373 | ||
374 | -with-* | --with-*) | |
375 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
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 | case "$ac_option" in | |
382 | *=*) ;; | |
383 | *) ac_optarg=yes ;; | |
384 | esac | |
385 | eval "with_${ac_package}='$ac_optarg'" ;; | |
386 | ||
387 | -without-* | --without-*) | |
388 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
389 | # Reject names that are not valid shell variable names. | |
390 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
391 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
392 | fi | |
393 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
394 | eval "with_${ac_package}=no" ;; | |
395 | ||
396 | --x) | |
397 | # Obsolete; use --with-x. | |
398 | with_x=yes ;; | |
399 | ||
400 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
401 | | --x-incl | --x-inc | --x-in | --x-i) | |
402 | ac_prev=x_includes ;; | |
403 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
404 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
405 | x_includes="$ac_optarg" ;; | |
406 | ||
407 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
408 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
409 | ac_prev=x_libraries ;; | |
410 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
411 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
412 | x_libraries="$ac_optarg" ;; | |
413 | ||
414 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
415 | ;; | |
416 | ||
417 | *) | |
418 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
419 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
420 | fi | |
421 | if test "x$nonopt" != xNONE; then | |
422 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
423 | fi | |
424 | nonopt="$ac_option" | |
425 | ;; | |
426 | ||
427 | esac | |
428 | done | |
429 | ||
430 | if test -n "$ac_prev"; then | |
431 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
432 | fi | |
433 | ||
434 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
435 | ||
436 | # File descriptor usage: | |
437 | # 0 standard input | |
438 | # 1 file creation | |
439 | # 2 errors and warnings | |
440 | # 3 some systems may open it to /dev/tty | |
441 | # 4 used on the Kubota Titan | |
442 | # 6 checking for... messages and results | |
443 | # 5 compiler messages saved in config.log | |
444 | if test "$silent" = yes; then | |
445 | exec 6>/dev/null | |
446 | else | |
447 | exec 6>&1 | |
448 | fi | |
449 | exec 5>./config.log | |
450 | ||
451 | echo "\ | |
452 | This file contains any messages produced by compilers while | |
453 | running configure, to aid debugging if configure makes a mistake. | |
454 | " 1>&5 | |
455 | ||
456 | # Strip out --no-create and --no-recursion so they do not pile up. | |
457 | # Also quote any args containing shell metacharacters. | |
458 | ac_configure_args= | |
459 | for ac_arg | |
460 | do | |
461 | case "$ac_arg" in | |
462 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
463 | | --no-cr | --no-c) ;; | |
464 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
465 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
466 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
467 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
468 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
469 | esac | |
470 | done | |
471 | ||
472 | # NLS nuisances. | |
473 | # Only set these to C if already set. These must not be set unconditionally | |
474 | # because not all systems understand e.g. LANG=C (notably SCO). | |
475 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
476 | # Non-C LC_CTYPE values break the ctype check. | |
477 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
478 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
479 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
480 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
481 | ||
482 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
483 | rm -rf conftest* confdefs.h | |
484 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
485 | echo > confdefs.h | |
486 | ||
487 | # A filename unique to this package, relative to the directory that | |
488 | # configure is in, which we can look for to find out if srcdir is correct. | |
489 | ac_unique_file=linux.c | |
490 | ||
491 | # Find the source files, if location was not specified. | |
492 | if test -z "$srcdir"; then | |
493 | ac_srcdir_defaulted=yes | |
494 | # Try the directory containing this script, then its parent. | |
495 | ac_prog=$0 | |
496 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
497 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
498 | srcdir=$ac_confdir | |
499 | if test ! -r $srcdir/$ac_unique_file; then | |
500 | srcdir=.. | |
501 | fi | |
502 | else | |
503 | ac_srcdir_defaulted=no | |
504 | fi | |
505 | if test ! -r $srcdir/$ac_unique_file; then | |
506 | if test "$ac_srcdir_defaulted" = yes; then | |
507 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
508 | else | |
509 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
510 | fi | |
511 | fi | |
512 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
513 | ||
514 | # Prefer explicitly selected file to automatically selected ones. | |
786ab12c JJ |
515 | if test -z "$CONFIG_SITE"; then |
516 | if test "x$prefix" != xNONE; then | |
517 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
518 | else | |
519 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
2efbc2a7 | 520 | fi |
2efbc2a7 JJ |
521 | fi |
522 | for ac_site_file in $CONFIG_SITE; do | |
523 | if test -r "$ac_site_file"; then | |
524 | echo "loading site script $ac_site_file" | |
525 | . "$ac_site_file" | |
526 | fi | |
527 | done | |
528 | ||
529 | if test -r "$cache_file"; then | |
530 | echo "loading cache $cache_file" | |
531 | . $cache_file | |
532 | else | |
533 | echo "creating cache $cache_file" | |
534 | > $cache_file | |
535 | fi | |
536 | ||
537 | ac_ext=c | |
538 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
539 | ac_cpp='$CPP $CPPFLAGS' | |
540 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
541 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
542 | cross_compiling=$ac_cv_prog_cc_cross | |
543 | ||
544 | ac_exeext= | |
545 | ac_objext=o | |
546 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
547 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
548 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
549 | ac_n= ac_c=' | |
550 | ' ac_t=' ' | |
551 | else | |
552 | ac_n=-n ac_c= ac_t= | |
553 | fi | |
554 | else | |
555 | ac_n= ac_c='\c' ac_t= | |
556 | fi | |
557 | ||
558 | ||
559 | ||
560 | ac_aux_dir= | |
561 | for ac_dir in ../../../.. $srcdir/../../../..; do | |
562 | if test -f $ac_dir/install-sh; then | |
563 | ac_aux_dir=$ac_dir | |
564 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
565 | break | |
566 | elif test -f $ac_dir/install.sh; then | |
567 | ac_aux_dir=$ac_dir | |
568 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
569 | break | |
570 | fi | |
571 | done | |
572 | if test -z "$ac_aux_dir"; then | |
573 | { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } | |
574 | fi | |
575 | ac_config_guess=$ac_aux_dir/config.guess | |
576 | ac_config_sub=$ac_aux_dir/config.sub | |
577 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
578 | ||
579 | ||
580 | # Find a good install program. We prefer a C program (faster), | |
581 | # so one script is as good as another. But avoid the broken or | |
582 | # incompatible versions: | |
583 | # SysV /etc/install, /usr/sbin/install | |
584 | # SunOS /usr/etc/install | |
585 | # IRIX /sbin/install | |
586 | # AIX /bin/install | |
587 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
588 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
589 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
590 | # ./install, which can be erroneously created by make from ./install.sh. | |
591 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
786ab12c | 592 | echo "configure:593: checking for a BSD compatible install" >&5 |
2efbc2a7 JJ |
593 | if test -z "$INSTALL"; then |
594 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
596 | else | |
597 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
598 | for ac_dir in $PATH; do | |
599 | # Account for people who put trailing slashes in PATH elements. | |
600 | case "$ac_dir/" in | |
601 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
602 | *) | |
603 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
604 | # Don't use installbsd from OSF since it installs stuff as root | |
605 | # by default. | |
606 | for ac_prog in ginstall scoinst install; do | |
607 | if test -f $ac_dir/$ac_prog; then | |
608 | if test $ac_prog = install && | |
609 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
610 | # AIX install. It has an incompatible calling convention. | |
611 | : | |
612 | else | |
613 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
614 | break 2 | |
615 | fi | |
616 | fi | |
617 | done | |
618 | ;; | |
619 | esac | |
620 | done | |
621 | IFS="$ac_save_IFS" | |
622 | ||
623 | fi | |
624 | if test "${ac_cv_path_install+set}" = set; then | |
625 | INSTALL="$ac_cv_path_install" | |
626 | else | |
627 | # As a last resort, use the slow shell script. We don't cache a | |
628 | # path for INSTALL within a source directory, because that will | |
629 | # break other packages using the cache if that directory is | |
630 | # removed, or if the path is relative. | |
631 | INSTALL="$ac_install_sh" | |
632 | fi | |
633 | fi | |
634 | echo "$ac_t""$INSTALL" 1>&6 | |
635 | ||
636 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
637 | # It thinks the first close brace ends the variable substitution. | |
638 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
639 | ||
640 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
641 | ||
642 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
643 | ||
644 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
786ab12c | 645 | echo "configure:646: checking whether build environment is sane" >&5 |
2efbc2a7 JJ |
646 | # Just in case |
647 | sleep 1 | |
648 | echo timestamp > conftestfile | |
649 | # Do `set' in a subshell so we don't clobber the current shell's | |
650 | # arguments. Must try -L first in case configure is actually a | |
651 | # symlink; some systems play weird games with the mod time of symlinks | |
652 | # (eg FreeBSD returns the mod time of the symlink's containing | |
653 | # directory). | |
654 | if ( | |
655 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
656 | if test "$*" = "X"; then | |
657 | # -L didn't work. | |
658 | set X `ls -t $srcdir/configure conftestfile` | |
659 | fi | |
660 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
661 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
662 | ||
663 | # If neither matched, then we have a broken ls. This can happen | |
664 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
665 | # broken ls alias from the environment. This has actually | |
666 | # happened. Such a system could not be considered "sane". | |
667 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
668 | alias in your environment" 1>&2; exit 1; } | |
669 | fi | |
670 | ||
671 | test "$2" = conftestfile | |
672 | ) | |
673 | then | |
674 | # Ok. | |
675 | : | |
676 | else | |
677 | { echo "configure: error: newly created file is older than distributed files! | |
678 | Check your system clock" 1>&2; exit 1; } | |
679 | fi | |
680 | rm -f conftest* | |
681 | echo "$ac_t""yes" 1>&6 | |
682 | if test "$program_transform_name" = s,x,x,; then | |
683 | program_transform_name= | |
684 | else | |
685 | # Double any \ or $. echo might interpret backslashes. | |
686 | cat <<\EOF_SED > conftestsed | |
687 | s,\\,\\\\,g; s,\$,$$,g | |
688 | EOF_SED | |
689 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
690 | rm -f conftestsed | |
691 | fi | |
692 | test "$program_prefix" != NONE && | |
693 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
694 | # Use a double $ so make ignores it. | |
695 | test "$program_suffix" != NONE && | |
696 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
697 | ||
698 | # sed with no file args requires a program. | |
699 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
700 | ||
701 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
786ab12c | 702 | echo "configure:703: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
2efbc2a7 JJ |
703 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
704 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
706 | else | |
707 | cat > conftestmake <<\EOF | |
708 | all: | |
709 | @echo 'ac_maketemp="${MAKE}"' | |
710 | EOF | |
711 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
712 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
713 | if test -n "$ac_maketemp"; then | |
714 | eval ac_cv_prog_make_${ac_make}_set=yes | |
715 | else | |
716 | eval ac_cv_prog_make_${ac_make}_set=no | |
717 | fi | |
718 | rm -f conftestmake | |
719 | fi | |
720 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
721 | echo "$ac_t""yes" 1>&6 | |
722 | SET_MAKE= | |
723 | else | |
724 | echo "$ac_t""no" 1>&6 | |
725 | SET_MAKE="MAKE=${MAKE-make}" | |
726 | fi | |
727 | ||
728 | if test $host != $build; then | |
729 | ac_tool_prefix=${host_alias}- | |
730 | else | |
731 | ac_tool_prefix= | |
732 | fi | |
733 | ||
734 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
786ab12c | 735 | echo "configure:736: checking for Cygwin environment" >&5 |
2efbc2a7 JJ |
736 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
738 | else | |
739 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 740 | #line 741 "configure" |
2efbc2a7 JJ |
741 | #include "confdefs.h" |
742 | ||
743 | int main() { | |
744 | ||
745 | #ifndef __CYGWIN__ | |
746 | #define __CYGWIN__ __CYGWIN32__ | |
747 | #endif | |
748 | return __CYGWIN__; | |
749 | ; return 0; } | |
750 | EOF | |
786ab12c | 751 | if { (eval echo configure:752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2efbc2a7 JJ |
752 | rm -rf conftest* |
753 | ac_cv_cygwin=yes | |
754 | else | |
755 | echo "configure: failed program was:" >&5 | |
756 | cat conftest.$ac_ext >&5 | |
757 | rm -rf conftest* | |
758 | ac_cv_cygwin=no | |
759 | fi | |
760 | rm -f conftest* | |
761 | rm -f conftest* | |
762 | fi | |
763 | ||
764 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
765 | CYGWIN= | |
766 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
767 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
786ab12c | 768 | echo "configure:769: checking for mingw32 environment" >&5 |
2efbc2a7 JJ |
769 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
771 | else | |
772 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 773 | #line 774 "configure" |
2efbc2a7 JJ |
774 | #include "confdefs.h" |
775 | ||
776 | int main() { | |
777 | return __MINGW32__; | |
778 | ; return 0; } | |
779 | EOF | |
786ab12c | 780 | if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2efbc2a7 JJ |
781 | rm -rf conftest* |
782 | ac_cv_mingw32=yes | |
783 | else | |
784 | echo "configure: failed program was:" >&5 | |
785 | cat conftest.$ac_ext >&5 | |
786 | rm -rf conftest* | |
787 | ac_cv_mingw32=no | |
788 | fi | |
789 | rm -f conftest* | |
790 | rm -f conftest* | |
791 | fi | |
792 | ||
793 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
794 | MINGW32= | |
795 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
796 | ||
797 | # Check whether --enable-multilib or --disable-multilib was given. | |
798 | if test "${enable_multilib+set}" = set; then | |
799 | enableval="$enable_multilib" | |
800 | case "${enableval}" in | |
801 | yes) multilib=yes ;; | |
802 | no) multilib=no ;; | |
803 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
804 | esac | |
805 | else | |
806 | multilib=yes | |
807 | fi | |
808 | ||
809 | # Check whether --enable-target-optspace or --disable-target-optspace was given. | |
810 | if test "${enable_target_optspace+set}" = set; then | |
811 | enableval="$enable_target_optspace" | |
812 | case "${enableval}" in | |
813 | yes) target_optspace=yes ;; | |
814 | no) target_optspace=no ;; | |
815 | *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; | |
816 | esac | |
817 | else | |
818 | target_optspace= | |
819 | fi | |
820 | ||
3ac6f3a7 JJ |
821 | # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. |
822 | if test "${enable_malloc_debugging+set}" = set; then | |
823 | enableval="$enable_malloc_debugging" | |
824 | case "${enableval}" in | |
825 | yes) malloc_debugging=yes ;; | |
826 | no) malloc_debugging=no ;; | |
827 | *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;; | |
828 | esac | |
829 | else | |
830 | malloc_debugging= | |
831 | fi | |
832 | ||
2efbc2a7 JJ |
833 | # Check whether --enable-newlib-mb or --disable-newlib-mb was given. |
834 | if test "${enable_newlib_mb+set}" = set; then | |
835 | enableval="$enable_newlib_mb" | |
836 | case "${enableval}" in | |
837 | yes) newlib_mb=yes ;; | |
838 | no) newlib_mb=no ;; | |
839 | *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; | |
840 | esac | |
841 | else | |
a8615092 | 842 | newlib_mb= |
2efbc2a7 JJ |
843 | fi |
844 | ||
786ab12c JJ |
845 | # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. |
846 | if test "${enable_newlib_iconv+set}" = set; then | |
847 | enableval="$enable_newlib_iconv" | |
848 | case "${enableval}" in | |
849 | yes) newlib_iconv=yes ;; | |
850 | no) newlib_iconv=no ;; | |
851 | *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;; | |
852 | esac | |
853 | else | |
854 | newlib_iconv= | |
855 | fi | |
856 | ||
857 | # Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given. | |
858 | if test "${enable_newlib_builtin_converters+set}" = set; then | |
859 | enableval="$enable_newlib_builtin_converters" | |
860 | if test x${enableval} = x; then | |
861 | { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; } | |
862 | fi | |
863 | builtin_converters=${enableval} | |
864 | ||
865 | else | |
866 | builtin_converters= | |
867 | fi | |
868 | ||
0c048a9a TF |
869 | # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. |
870 | if test "${enable_newlib_multithread+set}" = set; then | |
871 | enableval="$enable_newlib_multithread" | |
872 | case "${enableval}" in | |
873 | yes) newlib_multithread=yes ;; | |
874 | no) newlib_multithread=no ;; | |
875 | *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;; | |
876 | esac | |
877 | else | |
878 | newlib_multithread=yes | |
879 | fi | |
880 | ||
90b65e2d JJ |
881 | # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. |
882 | if test "${enable_newlib_elix_level+set}" = set; then | |
883 | enableval="$enable_newlib_elix_level" | |
884 | case "${enableval}" in | |
885 | 0) newlib_elix_level=0 ;; | |
886 | 1) newlib_elix_level=1 ;; | |
887 | 2) newlib_elix_level=2 ;; | |
888 | 3) newlib_elix_level=3 ;; | |
889 | 4) newlib_elix_level=4 ;; | |
890 | *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;; | |
891 | esac | |
892 | else | |
893 | newlib_elix_level=0 | |
894 | fi | |
895 | ||
afecf2fa JJ |
896 | # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. |
897 | if test "${enable_newlib_io_float+set}" = set; then | |
898 | enableval="$enable_newlib_io_float" | |
899 | case "${enableval}" in | |
900 | yes) newlib_io_float=yes ;; | |
901 | no) newlib_io_float=no ;; | |
902 | *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;; | |
903 | esac | |
904 | else | |
905 | newlib_io_float=yes | |
906 | fi | |
907 | ||
313f1349 JJ |
908 | # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. |
909 | if test "${enable_newlib_supplied_syscalls+set}" = set; then | |
910 | enableval="$enable_newlib_supplied_syscalls" | |
911 | case "${enableval}" in | |
912 | yes) newlib_may_supply_syscalls=yes ;; | |
913 | no) newlib_may_supply_syscalls=no ;; | |
914 | *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;; | |
915 | esac | |
916 | else | |
917 | newlib_may_supply_syscalls=yes | |
918 | fi | |
919 | ||
920 | ||
921 | ||
922 | if test x${newlib_may_supply_syscalls} = xyes; then | |
923 | MAY_SUPPLY_SYSCALLS_TRUE= | |
924 | MAY_SUPPLY_SYSCALLS_FALSE='#' | |
925 | else | |
926 | MAY_SUPPLY_SYSCALLS_TRUE='#' | |
927 | MAY_SUPPLY_SYSCALLS_FALSE= | |
928 | fi | |
afecf2fa | 929 | |
2efbc2a7 JJ |
930 | |
931 | test -z "${with_target_subdir}" && with_target_subdir=. | |
932 | ||
933 | if test "${srcdir}" = "."; then | |
934 | if test "${with_target_subdir}" != "."; then | |
935 | newlib_basedir="${srcdir}/${with_multisrctop}../../../.." | |
936 | else | |
937 | newlib_basedir="${srcdir}/${with_multisrctop}../../.." | |
938 | fi | |
939 | else | |
940 | newlib_basedir="${srcdir}/../../.." | |
941 | fi | |
942 | ||
943 | ||
944 | ||
eaa75b70 TF |
945 | # Do some error checking and defaulting for the host and target type. |
946 | # The inputs are: | |
947 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
948 | # | |
949 | # The rules are: | |
950 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
951 | # same time. | |
952 | # 2. Host defaults to nonopt. | |
953 | # 3. If nonopt is not specified, then host defaults to the current host, | |
954 | # as determined by config.guess. | |
955 | # 4. Target and build default to nonopt. | |
956 | # 5. If nonopt is not specified, then target and build default to host. | |
957 | ||
958 | # The aliases save the names the user supplied, while $host etc. | |
959 | # will get canonicalized. | |
960 | case $host---$target---$nonopt in | |
961 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
962 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
963 | esac | |
964 | ||
965 | ||
2efbc2a7 JJ |
966 | # Make sure we can run config.sub. |
967 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
968 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
969 | fi | |
970 | ||
971 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
786ab12c | 972 | echo "configure:973: checking host system type" >&5 |
2efbc2a7 JJ |
973 | |
974 | host_alias=$host | |
975 | case "$host_alias" in | |
976 | NONE) | |
977 | case $nonopt in | |
978 | NONE) | |
979 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
980 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
981 | fi ;; | |
982 | *) host_alias=$nonopt ;; | |
983 | esac ;; | |
984 | esac | |
985 | ||
986 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
987 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
988 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
989 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
990 | echo "$ac_t""$host" 1>&6 | |
991 | ||
eaa75b70 | 992 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
786ab12c | 993 | echo "configure:994: checking target system type" >&5 |
eaa75b70 TF |
994 | |
995 | target_alias=$target | |
996 | case "$target_alias" in | |
997 | NONE) | |
998 | case $nonopt in | |
999 | NONE) target_alias=$host_alias ;; | |
1000 | *) target_alias=$nonopt ;; | |
1001 | esac ;; | |
1002 | esac | |
1003 | ||
1004 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1005 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1006 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1007 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1008 | echo "$ac_t""$target" 1>&6 | |
1009 | ||
1010 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
786ab12c | 1011 | echo "configure:1012: checking build system type" >&5 |
eaa75b70 TF |
1012 | |
1013 | build_alias=$build | |
1014 | case "$build_alias" in | |
1015 | NONE) | |
1016 | case $nonopt in | |
1017 | NONE) build_alias=$host_alias ;; | |
1018 | *) build_alias=$nonopt ;; | |
1019 | esac ;; | |
1020 | esac | |
1021 | ||
1022 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1023 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1024 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1025 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1026 | echo "$ac_t""$build" 1>&6 | |
1027 | ||
1028 | test "$host_alias" != "$target_alias" && | |
1029 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1030 | NONENONEs,x,x, && | |
1031 | program_prefix=${target_alias}- | |
1032 | ||
2efbc2a7 JJ |
1033 | |
1034 | ||
1035 | PACKAGE=newlib | |
1036 | ||
60b0838f | 1037 | VERSION=1.11.0 |
2efbc2a7 JJ |
1038 | |
1039 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
1040 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
1041 | fi | |
1042 | cat >> confdefs.h <<EOF | |
1043 | #define PACKAGE "$PACKAGE" | |
1044 | EOF | |
1045 | ||
1046 | cat >> confdefs.h <<EOF | |
1047 | #define VERSION "$VERSION" | |
1048 | EOF | |
1049 | ||
1050 | ||
1051 | ||
1052 | missing_dir=`cd $ac_aux_dir && pwd` | |
1053 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
786ab12c | 1054 | echo "configure:1055: checking for working aclocal" >&5 |
2efbc2a7 JJ |
1055 | # Run test in a subshell; some versions of sh will print an error if |
1056 | # an executable is not found, even if stderr is redirected. | |
1057 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1058 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1059 | ACLOCAL=aclocal | |
1060 | echo "$ac_t""found" 1>&6 | |
1061 | else | |
1062 | ACLOCAL="$missing_dir/missing aclocal" | |
1063 | echo "$ac_t""missing" 1>&6 | |
1064 | fi | |
1065 | ||
1066 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
786ab12c | 1067 | echo "configure:1068: checking for working autoconf" >&5 |
2efbc2a7 JJ |
1068 | # Run test in a subshell; some versions of sh will print an error if |
1069 | # an executable is not found, even if stderr is redirected. | |
1070 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1071 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1072 | AUTOCONF=autoconf | |
1073 | echo "$ac_t""found" 1>&6 | |
1074 | else | |
1075 | AUTOCONF="$missing_dir/missing autoconf" | |
1076 | echo "$ac_t""missing" 1>&6 | |
1077 | fi | |
1078 | ||
1079 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
786ab12c | 1080 | echo "configure:1081: checking for working automake" >&5 |
2efbc2a7 JJ |
1081 | # Run test in a subshell; some versions of sh will print an error if |
1082 | # an executable is not found, even if stderr is redirected. | |
1083 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1084 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1085 | AUTOMAKE=automake | |
1086 | echo "$ac_t""found" 1>&6 | |
1087 | else | |
1088 | AUTOMAKE="$missing_dir/missing automake" | |
1089 | echo "$ac_t""missing" 1>&6 | |
1090 | fi | |
1091 | ||
1092 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
786ab12c | 1093 | echo "configure:1094: checking for working autoheader" >&5 |
2efbc2a7 JJ |
1094 | # Run test in a subshell; some versions of sh will print an error if |
1095 | # an executable is not found, even if stderr is redirected. | |
1096 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1097 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1098 | AUTOHEADER=autoheader | |
1099 | echo "$ac_t""found" 1>&6 | |
1100 | else | |
1101 | AUTOHEADER="$missing_dir/missing autoheader" | |
1102 | echo "$ac_t""missing" 1>&6 | |
1103 | fi | |
1104 | ||
1105 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
786ab12c | 1106 | echo "configure:1107: checking for working makeinfo" >&5 |
2efbc2a7 JJ |
1107 | # Run test in a subshell; some versions of sh will print an error if |
1108 | # an executable is not found, even if stderr is redirected. | |
1109 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1110 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1111 | MAKEINFO=makeinfo | |
1112 | echo "$ac_t""found" 1>&6 | |
1113 | else | |
1114 | MAKEINFO="$missing_dir/missing makeinfo" | |
1115 | echo "$ac_t""missing" 1>&6 | |
1116 | fi | |
1117 | ||
1118 | ||
1119 | ||
1120 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is | |
1121 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
1122 | # are probably using a cross compiler, which will not be able to fully | |
1123 | # link an executable. This should really be fixed in autoconf | |
1124 | # itself. | |
1125 | ||
1126 | ||
1127 | ||
1128 | # Extract the first word of "gcc", so it can be a program name with args. | |
1129 | set dummy gcc; ac_word=$2 | |
1130 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1131 | echo "configure:1132: checking for $ac_word" >&5 |
2efbc2a7 JJ |
1132 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1134 | else | |
1135 | if test -n "$CC"; then | |
1136 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1137 | else | |
1138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1139 | ac_dummy="$PATH" | |
1140 | for ac_dir in $ac_dummy; do | |
1141 | test -z "$ac_dir" && ac_dir=. | |
1142 | if test -f $ac_dir/$ac_word; then | |
1143 | ac_cv_prog_CC="gcc" | |
1144 | break | |
1145 | fi | |
1146 | done | |
1147 | IFS="$ac_save_ifs" | |
1148 | fi | |
1149 | fi | |
1150 | CC="$ac_cv_prog_CC" | |
1151 | if test -n "$CC"; then | |
1152 | echo "$ac_t""$CC" 1>&6 | |
1153 | else | |
1154 | echo "$ac_t""no" 1>&6 | |
1155 | fi | |
1156 | ||
1157 | if test -z "$CC"; then | |
1158 | # Extract the first word of "cc", so it can be a program name with args. | |
1159 | set dummy cc; ac_word=$2 | |
1160 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1161 | echo "configure:1162: checking for $ac_word" >&5 |
2efbc2a7 JJ |
1162 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1164 | else | |
1165 | if test -n "$CC"; then | |
1166 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1167 | else | |
1168 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1169 | ac_prog_rejected=no | |
1170 | ac_dummy="$PATH" | |
1171 | for ac_dir in $ac_dummy; do | |
1172 | test -z "$ac_dir" && ac_dir=. | |
1173 | if test -f $ac_dir/$ac_word; then | |
1174 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1175 | ac_prog_rejected=yes | |
1176 | continue | |
1177 | fi | |
1178 | ac_cv_prog_CC="cc" | |
1179 | break | |
1180 | fi | |
1181 | done | |
1182 | IFS="$ac_save_ifs" | |
1183 | if test $ac_prog_rejected = yes; then | |
1184 | # We found a bogon in the path, so make sure we never use it. | |
1185 | set dummy $ac_cv_prog_CC | |
1186 | shift | |
1187 | if test $# -gt 0; then | |
1188 | # We chose a different compiler from the bogus one. | |
1189 | # However, it has the same basename, so the bogon will be chosen | |
1190 | # first if we set CC to just the basename; use the full file name. | |
1191 | shift | |
1192 | set dummy "$ac_dir/$ac_word" "$@" | |
1193 | shift | |
1194 | ac_cv_prog_CC="$@" | |
1195 | fi | |
1196 | fi | |
1197 | fi | |
1198 | fi | |
1199 | CC="$ac_cv_prog_CC" | |
1200 | if test -n "$CC"; then | |
1201 | echo "$ac_t""$CC" 1>&6 | |
1202 | else | |
1203 | echo "$ac_t""no" 1>&6 | |
1204 | fi | |
1205 | ||
1206 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1207 | fi | |
1208 | ||
1209 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
786ab12c | 1210 | echo "configure:1211: checking whether we are using GNU C" >&5 |
2efbc2a7 JJ |
1211 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1213 | else | |
1214 | cat > conftest.c <<EOF | |
1215 | #ifdef __GNUC__ | |
1216 | yes; | |
1217 | #endif | |
1218 | EOF | |
786ab12c | 1219 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
2efbc2a7 JJ |
1220 | ac_cv_prog_gcc=yes |
1221 | else | |
1222 | ac_cv_prog_gcc=no | |
1223 | fi | |
1224 | fi | |
1225 | ||
1226 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1227 | ||
1228 | if test $ac_cv_prog_gcc = yes; then | |
1229 | GCC=yes | |
1230 | ac_test_CFLAGS="${CFLAGS+set}" | |
1231 | ac_save_CFLAGS="$CFLAGS" | |
1232 | CFLAGS= | |
1233 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
786ab12c | 1234 | echo "configure:1235: checking whether ${CC-cc} accepts -g" >&5 |
2efbc2a7 JJ |
1235 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1237 | else | |
1238 | echo 'void f(){}' > conftest.c | |
1239 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1240 | ac_cv_prog_cc_g=yes | |
1241 | else | |
1242 | ac_cv_prog_cc_g=no | |
1243 | fi | |
1244 | rm -f conftest* | |
1245 | ||
1246 | fi | |
1247 | ||
1248 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1249 | if test "$ac_test_CFLAGS" = set; then | |
1250 | CFLAGS="$ac_save_CFLAGS" | |
1251 | elif test $ac_cv_prog_cc_g = yes; then | |
1252 | CFLAGS="-g -O2" | |
1253 | else | |
1254 | CFLAGS="-O2" | |
1255 | fi | |
1256 | else | |
1257 | GCC= | |
1258 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1259 | fi | |
1260 | ||
1261 | ||
2efbc2a7 JJ |
1262 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
1263 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1265 | echo "configure:1266: checking for $ac_word" >&5 |
2efbc2a7 JJ |
1266 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1268 | else | |
1269 | if test -n "$AS"; then | |
1270 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1271 | else | |
1272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1273 | ac_dummy="$PATH" | |
1274 | for ac_dir in $ac_dummy; do | |
1275 | test -z "$ac_dir" && ac_dir=. | |
1276 | if test -f $ac_dir/$ac_word; then | |
1277 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1278 | break | |
1279 | fi | |
1280 | done | |
1281 | IFS="$ac_save_ifs" | |
1282 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
1283 | fi | |
1284 | fi | |
1285 | AS="$ac_cv_prog_AS" | |
1286 | if test -n "$AS"; then | |
1287 | echo "$ac_t""$AS" 1>&6 | |
1288 | else | |
1289 | echo "$ac_t""no" 1>&6 | |
1290 | fi | |
1291 | ||
1292 | ||
1293 | ||
1294 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1295 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1296 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1297 | echo "configure:1298: checking for $ac_word" >&5 |
2efbc2a7 JJ |
1298 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1300 | else | |
1301 | if test -n "$AR"; then | |
1302 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1303 | else | |
1304 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1305 | ac_dummy="$PATH" | |
1306 | for ac_dir in $ac_dummy; do | |
1307 | test -z "$ac_dir" && ac_dir=. | |
1308 | if test -f $ac_dir/$ac_word; then | |
1309 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1310 | break | |
1311 | fi | |
1312 | done | |
1313 | IFS="$ac_save_ifs" | |
1314 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1315 | fi | |
1316 | fi | |
1317 | AR="$ac_cv_prog_AR" | |
1318 | if test -n "$AR"; then | |
1319 | echo "$ac_t""$AR" 1>&6 | |
1320 | else | |
1321 | echo "$ac_t""no" 1>&6 | |
1322 | fi | |
1323 | ||
1324 | ||
1325 | ||
1326 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1327 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1328 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1329 | echo "configure:1330: checking for $ac_word" >&5 |
2efbc2a7 JJ |
1330 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1332 | else | |
1333 | if test -n "$RANLIB"; then | |
1334 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1335 | else | |
1336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1337 | ac_dummy="$PATH" | |
1338 | for ac_dir in $ac_dummy; do | |
1339 | test -z "$ac_dir" && ac_dir=. | |
1340 | if test -f $ac_dir/$ac_word; then | |
1341 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1342 | break | |
1343 | fi | |
1344 | done | |
1345 | IFS="$ac_save_ifs" | |
1346 | fi | |
1347 | fi | |
1348 | RANLIB="$ac_cv_prog_RANLIB" | |
1349 | if test -n "$RANLIB"; then | |
1350 | echo "$ac_t""$RANLIB" 1>&6 | |
1351 | else | |
1352 | echo "$ac_t""no" 1>&6 | |
1353 | fi | |
1354 | ||
1355 | ||
1356 | if test -z "$ac_cv_prog_RANLIB"; then | |
1357 | if test -n "$ac_tool_prefix"; then | |
1358 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1359 | set dummy ranlib; ac_word=$2 | |
1360 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1361 | echo "configure:1362: checking for $ac_word" >&5 |
2efbc2a7 JJ |
1362 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1364 | else | |
1365 | if test -n "$RANLIB"; then | |
1366 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1367 | else | |
1368 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1369 | ac_dummy="$PATH" | |
1370 | for ac_dir in $ac_dummy; do | |
1371 | test -z "$ac_dir" && ac_dir=. | |
1372 | if test -f $ac_dir/$ac_word; then | |
1373 | ac_cv_prog_RANLIB="ranlib" | |
1374 | break | |
1375 | fi | |
1376 | done | |
1377 | IFS="$ac_save_ifs" | |
1378 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1379 | fi | |
1380 | fi | |
1381 | RANLIB="$ac_cv_prog_RANLIB" | |
1382 | if test -n "$RANLIB"; then | |
1383 | echo "$ac_t""$RANLIB" 1>&6 | |
1384 | else | |
1385 | echo "$ac_t""no" 1>&6 | |
1386 | fi | |
1387 | ||
1388 | else | |
1389 | RANLIB=":" | |
1390 | fi | |
1391 | fi | |
1392 | ||
1393 | ||
1394 | # Find a good install program. We prefer a C program (faster), | |
1395 | # so one script is as good as another. But avoid the broken or | |
1396 | # incompatible versions: | |
1397 | # SysV /etc/install, /usr/sbin/install | |
1398 | # SunOS /usr/etc/install | |
1399 | # IRIX /sbin/install | |
1400 | # AIX /bin/install | |
1401 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1402 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1403 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1404 | # ./install, which can be erroneously created by make from ./install.sh. | |
1405 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
786ab12c | 1406 | echo "configure:1407: checking for a BSD compatible install" >&5 |
2efbc2a7 JJ |
1407 | if test -z "$INSTALL"; then |
1408 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1410 | else | |
1411 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1412 | for ac_dir in $PATH; do | |
1413 | # Account for people who put trailing slashes in PATH elements. | |
1414 | case "$ac_dir/" in | |
1415 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1416 | *) | |
1417 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1418 | # Don't use installbsd from OSF since it installs stuff as root | |
1419 | # by default. | |
1420 | for ac_prog in ginstall scoinst install; do | |
1421 | if test -f $ac_dir/$ac_prog; then | |
1422 | if test $ac_prog = install && | |
1423 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1424 | # AIX install. It has an incompatible calling convention. | |
1425 | : | |
1426 | else | |
1427 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1428 | break 2 | |
1429 | fi | |
1430 | fi | |
1431 | done | |
1432 | ;; | |
1433 | esac | |
1434 | done | |
1435 | IFS="$ac_save_IFS" | |
1436 | ||
1437 | fi | |
1438 | if test "${ac_cv_path_install+set}" = set; then | |
1439 | INSTALL="$ac_cv_path_install" | |
1440 | else | |
1441 | # As a last resort, use the slow shell script. We don't cache a | |
1442 | # path for INSTALL within a source directory, because that will | |
1443 | # break other packages using the cache if that directory is | |
1444 | # removed, or if the path is relative. | |
1445 | INSTALL="$ac_install_sh" | |
1446 | fi | |
1447 | fi | |
1448 | echo "$ac_t""$INSTALL" 1>&6 | |
1449 | ||
1450 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1451 | # It thinks the first close brace ends the variable substitution. | |
1452 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1453 | ||
1454 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1455 | ||
1456 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1457 | ||
1458 | ||
1459 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
786ab12c | 1460 | echo "configure:1461: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2efbc2a7 JJ |
1461 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1462 | if test "${enable_maintainer_mode+set}" = set; then | |
1463 | enableval="$enable_maintainer_mode" | |
1464 | USE_MAINTAINER_MODE=$enableval | |
1465 | else | |
1466 | USE_MAINTAINER_MODE=no | |
1467 | fi | |
1468 | ||
1469 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1470 | ||
1471 | ||
1472 | if test $USE_MAINTAINER_MODE = yes; then | |
1473 | MAINTAINER_MODE_TRUE= | |
1474 | MAINTAINER_MODE_FALSE='#' | |
1475 | else | |
1476 | MAINTAINER_MODE_TRUE='#' | |
1477 | MAINTAINER_MODE_FALSE= | |
1478 | fi | |
1479 | MAINT=$MAINTAINER_MODE_TRUE | |
1480 | ||
1481 | ||
1482 | ||
1483 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, | |
1484 | # at least currently, we never actually build a program, so we never | |
1485 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1486 | # fails, because we are probably configuring with a cross compiler | |
1487 | # which can't create executables. So we include AC_EXEEXT to keep | |
1488 | # automake happy, but we don't execute it, since we don't care about | |
1489 | # the result. | |
1490 | if false; then | |
1491 | ||
1492 | ||
1493 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
786ab12c | 1494 | echo "configure:1495: checking for executable suffix" >&5 |
2efbc2a7 JJ |
1495 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1497 | else | |
1498 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1499 | ac_cv_exeext=.exe | |
1500 | else | |
1501 | rm -f conftest* | |
1502 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1503 | ac_cv_exeext= | |
786ab12c | 1504 | if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
2efbc2a7 JJ |
1505 | for file in conftest.*; do |
1506 | case $file in | |
786ab12c | 1507 | *.c | *.o | *.obj) ;; |
2efbc2a7 JJ |
1508 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1509 | esac | |
1510 | done | |
1511 | else | |
1512 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1513 | fi | |
1514 | rm -f conftest* | |
1515 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1516 | fi | |
1517 | fi | |
1518 | ||
1519 | EXEEXT="" | |
1520 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1521 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1522 | ac_exeext=$EXEEXT | |
1523 | ||
1524 | fi | |
1525 | ||
1526 | . ${newlib_basedir}/configure.host | |
1527 | ||
2efbc2a7 JJ |
1528 | newlib_cflags="${newlib_cflags} -fno-builtin" |
1529 | ||
1530 | NEWLIB_CFLAGS=${newlib_cflags} | |
1531 | ||
1532 | ||
2e1a7175 TF |
1533 | LDFLAGS=${ldflags} |
1534 | ||
1535 | ||
1536 | ||
1537 | ||
90b65e2d JJ |
1538 | if test x${newlib_elix_level} = x0; then |
1539 | ELIX_LEVEL_0_TRUE= | |
1540 | ELIX_LEVEL_0_FALSE='#' | |
1541 | else | |
1542 | ELIX_LEVEL_0_TRUE='#' | |
1543 | ELIX_LEVEL_0_FALSE= | |
1544 | fi | |
1545 | ||
1546 | ||
1547 | if test x${newlib_elix_level} = x1; then | |
1548 | ELIX_LEVEL_1_TRUE= | |
1549 | ELIX_LEVEL_1_FALSE='#' | |
1550 | else | |
1551 | ELIX_LEVEL_1_TRUE='#' | |
1552 | ELIX_LEVEL_1_FALSE= | |
1553 | fi | |
1554 | ||
1555 | ||
1556 | if test x${newlib_elix_level} = x2; then | |
1557 | ELIX_LEVEL_2_TRUE= | |
1558 | ELIX_LEVEL_2_FALSE='#' | |
1559 | else | |
1560 | ELIX_LEVEL_2_TRUE='#' | |
1561 | ELIX_LEVEL_2_FALSE= | |
1562 | fi | |
1563 | ||
1564 | ||
1565 | if test x${newlib_elix_level} = x3; then | |
1566 | ELIX_LEVEL_3_TRUE= | |
1567 | ELIX_LEVEL_3_FALSE='#' | |
1568 | else | |
1569 | ELIX_LEVEL_3_TRUE='#' | |
1570 | ELIX_LEVEL_3_FALSE= | |
1571 | fi | |
1572 | ||
1573 | ||
1574 | if test x${newlib_elix_level} = x4; then | |
1575 | ELIX_LEVEL_4_TRUE= | |
1576 | ELIX_LEVEL_4_FALSE='#' | |
1577 | else | |
1578 | ELIX_LEVEL_4_TRUE='#' | |
1579 | ELIX_LEVEL_4_FALSE= | |
1580 | fi | |
1581 | ||
1582 | ||
1583 | ||
2e1a7175 TF |
1584 | if test x${use_libtool} = xyes; then |
1585 | USE_LIBTOOL_TRUE= | |
1586 | USE_LIBTOOL_FALSE='#' | |
1587 | else | |
1588 | USE_LIBTOOL_TRUE='#' | |
1589 | USE_LIBTOOL_FALSE= | |
1590 | fi | |
1591 | ||
0953fe64 TF |
1592 | # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we |
1593 | # use oext, which is set in configure.host based on the target platform. | |
1594 | OBJEXT=${oext} | |
1595 | ||
1596 | ||
1597 | ||
2e1a7175 TF |
1598 | |
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | ||
1604 | ||
1605 | ||
1606 | if test "${use_libtool}" = "yes"; then | |
1607 | ||
1608 | # Check whether --enable-shared or --disable-shared was given. | |
1609 | if test "${enable_shared+set}" = set; then | |
1610 | enableval="$enable_shared" | |
1611 | p=${PACKAGE-default} | |
0953fe64 | 1612 | case $enableval in |
2e1a7175 TF |
1613 | yes) enable_shared=yes ;; |
1614 | no) enable_shared=no ;; | |
1615 | *) | |
1616 | enable_shared=no | |
1617 | # Look at the argument we got. We use all the common list separators. | |
1618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1619 | for pkg in $enableval; do | |
1620 | if test "X$pkg" = "X$p"; then | |
1621 | enable_shared=yes | |
1622 | fi | |
1623 | done | |
1624 | IFS="$ac_save_ifs" | |
1625 | ;; | |
1626 | esac | |
1627 | else | |
1628 | enable_shared=yes | |
1629 | fi | |
1630 | ||
1631 | # Check whether --enable-static or --disable-static was given. | |
1632 | if test "${enable_static+set}" = set; then | |
1633 | enableval="$enable_static" | |
1634 | p=${PACKAGE-default} | |
0953fe64 | 1635 | case $enableval in |
2e1a7175 TF |
1636 | yes) enable_static=yes ;; |
1637 | no) enable_static=no ;; | |
1638 | *) | |
1639 | enable_static=no | |
1640 | # Look at the argument we got. We use all the common list separators. | |
1641 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1642 | for pkg in $enableval; do | |
1643 | if test "X$pkg" = "X$p"; then | |
1644 | enable_static=yes | |
1645 | fi | |
1646 | done | |
1647 | IFS="$ac_save_ifs" | |
1648 | ;; | |
1649 | esac | |
1650 | else | |
1651 | enable_static=yes | |
1652 | fi | |
1653 | ||
1654 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1655 | if test "${enable_fast_install+set}" = set; then | |
1656 | enableval="$enable_fast_install" | |
1657 | p=${PACKAGE-default} | |
0953fe64 | 1658 | case $enableval in |
2e1a7175 TF |
1659 | yes) enable_fast_install=yes ;; |
1660 | no) enable_fast_install=no ;; | |
1661 | *) | |
1662 | enable_fast_install=no | |
1663 | # Look at the argument we got. We use all the common list separators. | |
1664 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1665 | for pkg in $enableval; do | |
1666 | if test "X$pkg" = "X$p"; then | |
1667 | enable_fast_install=yes | |
1668 | fi | |
1669 | done | |
1670 | IFS="$ac_save_ifs" | |
1671 | ;; | |
1672 | esac | |
1673 | else | |
1674 | enable_fast_install=yes | |
1675 | fi | |
1676 | ||
2e1a7175 TF |
1677 | # Extract the first word of "gcc", so it can be a program name with args. |
1678 | set dummy gcc; ac_word=$2 | |
1679 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1680 | echo "configure:1681: checking for $ac_word" >&5 |
2e1a7175 TF |
1681 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1683 | else | |
1684 | if test -n "$CC"; then | |
1685 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1686 | else | |
1687 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1688 | ac_dummy="$PATH" | |
1689 | for ac_dir in $ac_dummy; do | |
1690 | test -z "$ac_dir" && ac_dir=. | |
1691 | if test -f $ac_dir/$ac_word; then | |
1692 | ac_cv_prog_CC="gcc" | |
1693 | break | |
1694 | fi | |
1695 | done | |
1696 | IFS="$ac_save_ifs" | |
1697 | fi | |
1698 | fi | |
1699 | CC="$ac_cv_prog_CC" | |
1700 | if test -n "$CC"; then | |
1701 | echo "$ac_t""$CC" 1>&6 | |
1702 | else | |
1703 | echo "$ac_t""no" 1>&6 | |
1704 | fi | |
1705 | ||
1706 | if test -z "$CC"; then | |
1707 | # Extract the first word of "cc", so it can be a program name with args. | |
1708 | set dummy cc; ac_word=$2 | |
1709 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1710 | echo "configure:1711: checking for $ac_word" >&5 |
2e1a7175 TF |
1711 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1713 | else | |
1714 | if test -n "$CC"; then | |
1715 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1716 | else | |
1717 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1718 | ac_prog_rejected=no | |
1719 | ac_dummy="$PATH" | |
1720 | for ac_dir in $ac_dummy; do | |
1721 | test -z "$ac_dir" && ac_dir=. | |
1722 | if test -f $ac_dir/$ac_word; then | |
1723 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1724 | ac_prog_rejected=yes | |
1725 | continue | |
1726 | fi | |
1727 | ac_cv_prog_CC="cc" | |
1728 | break | |
1729 | fi | |
1730 | done | |
1731 | IFS="$ac_save_ifs" | |
1732 | if test $ac_prog_rejected = yes; then | |
1733 | # We found a bogon in the path, so make sure we never use it. | |
1734 | set dummy $ac_cv_prog_CC | |
1735 | shift | |
1736 | if test $# -gt 0; then | |
1737 | # We chose a different compiler from the bogus one. | |
1738 | # However, it has the same basename, so the bogon will be chosen | |
1739 | # first if we set CC to just the basename; use the full file name. | |
1740 | shift | |
1741 | set dummy "$ac_dir/$ac_word" "$@" | |
1742 | shift | |
1743 | ac_cv_prog_CC="$@" | |
1744 | fi | |
1745 | fi | |
1746 | fi | |
1747 | fi | |
1748 | CC="$ac_cv_prog_CC" | |
1749 | if test -n "$CC"; then | |
1750 | echo "$ac_t""$CC" 1>&6 | |
1751 | else | |
1752 | echo "$ac_t""no" 1>&6 | |
1753 | fi | |
1754 | ||
1755 | if test -z "$CC"; then | |
1756 | case "`uname -s`" in | |
1757 | *win32* | *WIN32*) | |
1758 | # Extract the first word of "cl", so it can be a program name with args. | |
1759 | set dummy cl; ac_word=$2 | |
1760 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 1761 | echo "configure:1762: checking for $ac_word" >&5 |
2e1a7175 TF |
1762 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1764 | else | |
1765 | if test -n "$CC"; then | |
1766 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1767 | else | |
1768 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1769 | ac_dummy="$PATH" | |
1770 | for ac_dir in $ac_dummy; do | |
1771 | test -z "$ac_dir" && ac_dir=. | |
1772 | if test -f $ac_dir/$ac_word; then | |
1773 | ac_cv_prog_CC="cl" | |
1774 | break | |
1775 | fi | |
1776 | done | |
1777 | IFS="$ac_save_ifs" | |
1778 | fi | |
1779 | fi | |
1780 | CC="$ac_cv_prog_CC" | |
1781 | if test -n "$CC"; then | |
1782 | echo "$ac_t""$CC" 1>&6 | |
1783 | else | |
1784 | echo "$ac_t""no" 1>&6 | |
1785 | fi | |
1786 | ;; | |
1787 | esac | |
1788 | fi | |
1789 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1790 | fi | |
1791 | ||
1792 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
786ab12c | 1793 | echo "configure:1794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
2e1a7175 TF |
1794 | |
1795 | ac_ext=c | |
1796 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1797 | ac_cpp='$CPP $CPPFLAGS' | |
1798 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1799 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1800 | cross_compiling=$ac_cv_prog_cc_cross | |
1801 | ||
1802 | cat > conftest.$ac_ext << EOF | |
1803 | ||
786ab12c | 1804 | #line 1805 "configure" |
2e1a7175 TF |
1805 | #include "confdefs.h" |
1806 | ||
1807 | main(){return(0);} | |
1808 | EOF | |
786ab12c | 1809 | if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2e1a7175 TF |
1810 | ac_cv_prog_cc_works=yes |
1811 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1812 | if (./conftest; exit) 2>/dev/null; then | |
1813 | ac_cv_prog_cc_cross=no | |
1814 | else | |
1815 | ac_cv_prog_cc_cross=yes | |
1816 | fi | |
1817 | else | |
1818 | echo "configure: failed program was:" >&5 | |
1819 | cat conftest.$ac_ext >&5 | |
1820 | ac_cv_prog_cc_works=no | |
1821 | fi | |
1822 | rm -fr conftest* | |
1823 | ac_ext=c | |
1824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1825 | ac_cpp='$CPP $CPPFLAGS' | |
1826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1828 | cross_compiling=$ac_cv_prog_cc_cross | |
1829 | ||
1830 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1831 | if test $ac_cv_prog_cc_works = no; then | |
1832 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1833 | fi | |
1834 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
786ab12c | 1835 | echo "configure:1836: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
2e1a7175 TF |
1836 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1837 | cross_compiling=$ac_cv_prog_cc_cross | |
1838 | ||
1839 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
786ab12c | 1840 | echo "configure:1841: checking whether we are using GNU C" >&5 |
2e1a7175 TF |
1841 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1843 | else | |
1844 | cat > conftest.c <<EOF | |
1845 | #ifdef __GNUC__ | |
1846 | yes; | |
1847 | #endif | |
1848 | EOF | |
786ab12c | 1849 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
2e1a7175 TF |
1850 | ac_cv_prog_gcc=yes |
1851 | else | |
1852 | ac_cv_prog_gcc=no | |
1853 | fi | |
1854 | fi | |
1855 | ||
1856 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1857 | ||
1858 | if test $ac_cv_prog_gcc = yes; then | |
1859 | GCC=yes | |
1860 | else | |
1861 | GCC= | |
1862 | fi | |
1863 | ||
1864 | ac_test_CFLAGS="${CFLAGS+set}" | |
1865 | ac_save_CFLAGS="$CFLAGS" | |
1866 | CFLAGS= | |
1867 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
786ab12c | 1868 | echo "configure:1869: checking whether ${CC-cc} accepts -g" >&5 |
2e1a7175 TF |
1869 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1871 | else | |
1872 | echo 'void f(){}' > conftest.c | |
1873 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1874 | ac_cv_prog_cc_g=yes | |
1875 | else | |
1876 | ac_cv_prog_cc_g=no | |
1877 | fi | |
1878 | rm -f conftest* | |
2efbc2a7 | 1879 | |
2e1a7175 | 1880 | fi |
2efbc2a7 | 1881 | |
2e1a7175 TF |
1882 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1883 | if test "$ac_test_CFLAGS" = set; then | |
1884 | CFLAGS="$ac_save_CFLAGS" | |
1885 | elif test $ac_cv_prog_cc_g = yes; then | |
1886 | if test "$GCC" = yes; then | |
1887 | CFLAGS="-g -O2" | |
1888 | else | |
1889 | CFLAGS="-g" | |
1890 | fi | |
1891 | else | |
1892 | if test "$GCC" = yes; then | |
1893 | CFLAGS="-O2" | |
1894 | else | |
1895 | CFLAGS= | |
1896 | fi | |
1897 | fi | |
2efbc2a7 | 1898 | |
2e1a7175 TF |
1899 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1900 | if test "${with_gnu_ld+set}" = set; then | |
1901 | withval="$with_gnu_ld" | |
1902 | test "$withval" = no || with_gnu_ld=yes | |
1903 | else | |
1904 | with_gnu_ld=no | |
1905 | fi | |
1906 | ||
1907 | ac_prog=ld | |
0953fe64 | 1908 | if test "$GCC" = yes; then |
2e1a7175 TF |
1909 | # Check if gcc -print-prog-name=ld gives a path. |
1910 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
786ab12c | 1911 | echo "configure:1912: checking for ld used by GCC" >&5 |
0953fe64 TF |
1912 | case $host in |
1913 | *-*-mingw*) | |
1914 | # gcc leaves a trailing carriage return which upsets mingw | |
1915 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1916 | *) | |
1917 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1918 | esac | |
1919 | case $ac_prog in | |
2e1a7175 TF |
1920 | # Accept absolute paths. |
1921 | [\\/]* | [A-Za-z]:[\\/]*) | |
1922 | re_direlt='/[^/][^/]*/\.\./' | |
1923 | # Canonicalize the path of ld | |
1924 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1925 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1926 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1927 | done | |
1928 | test -z "$LD" && LD="$ac_prog" | |
1929 | ;; | |
1930 | "") | |
1931 | # If it fails, then pretend we aren't using GCC. | |
1932 | ac_prog=ld | |
1933 | ;; | |
1934 | *) | |
1935 | # If it is relative, then search for the first ld in PATH. | |
1936 | with_gnu_ld=unknown | |
1937 | ;; | |
1938 | esac | |
1939 | elif test "$with_gnu_ld" = yes; then | |
1940 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
786ab12c | 1941 | echo "configure:1942: checking for GNU ld" >&5 |
2e1a7175 TF |
1942 | else |
1943 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
786ab12c | 1944 | echo "configure:1945: checking for non-GNU ld" >&5 |
2e1a7175 | 1945 | fi |
0953fe64 | 1946 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
2e1a7175 TF |
1947 | echo $ac_n "(cached) $ac_c" 1>&6 |
1948 | else | |
1949 | if test -z "$LD"; then | |
1950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1951 | for ac_dir in $PATH; do | |
1952 | test -z "$ac_dir" && ac_dir=. | |
1953 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
0953fe64 | 1954 | lt_cv_path_LD="$ac_dir/$ac_prog" |
2e1a7175 TF |
1955 | # Check to see if the program is GNU ld. I'd rather use --version, |
1956 | # but apparently some GNU ld's only accept -v. | |
1957 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
0953fe64 | 1958 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
2e1a7175 TF |
1959 | test "$with_gnu_ld" != no && break |
1960 | else | |
1961 | test "$with_gnu_ld" != yes && break | |
1962 | fi | |
1963 | fi | |
1964 | done | |
1965 | IFS="$ac_save_ifs" | |
1966 | else | |
0953fe64 | 1967 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
2e1a7175 TF |
1968 | fi |
1969 | fi | |
1970 | ||
0953fe64 | 1971 | LD="$lt_cv_path_LD" |
2e1a7175 TF |
1972 | if test -n "$LD"; then |
1973 | echo "$ac_t""$LD" 1>&6 | |
1974 | else | |
1975 | echo "$ac_t""no" 1>&6 | |
1976 | fi | |
1977 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1978 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
786ab12c | 1979 | echo "configure:1980: checking if the linker ($LD) is GNU ld" >&5 |
0953fe64 | 1980 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
2e1a7175 TF |
1981 | echo $ac_n "(cached) $ac_c" 1>&6 |
1982 | else | |
1983 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1984 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
0953fe64 | 1985 | lt_cv_prog_gnu_ld=yes |
2e1a7175 | 1986 | else |
0953fe64 | 1987 | lt_cv_prog_gnu_ld=no |
2e1a7175 TF |
1988 | fi |
1989 | fi | |
1990 | ||
0953fe64 TF |
1991 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
1992 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
1993 | ||
1994 | ||
1995 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
786ab12c | 1996 | echo "configure:1997: checking for $LD option to reload object files" >&5 |
0953fe64 TF |
1997 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1999 | else | |
2000 | lt_cv_ld_reload_flag='-r' | |
2001 | fi | |
2e1a7175 | 2002 | |
0953fe64 TF |
2003 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
2004 | reload_flag=$lt_cv_ld_reload_flag | |
2005 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
2e1a7175 TF |
2006 | |
2007 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
786ab12c | 2008 | echo "configure:2009: checking for BSD-compatible nm" >&5 |
0953fe64 | 2009 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
2e1a7175 TF |
2010 | echo $ac_n "(cached) $ac_c" 1>&6 |
2011 | else | |
2012 | if test -n "$NM"; then | |
2013 | # Let the user override the test. | |
0953fe64 | 2014 | lt_cv_path_NM="$NM" |
2e1a7175 TF |
2015 | else |
2016 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
2017 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
2018 | test -z "$ac_dir" && ac_dir=. | |
0953fe64 TF |
2019 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
2020 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
2e1a7175 TF |
2021 | # Check to see if the nm accepts a BSD-compat flag. |
2022 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
2023 | # nm: unknown option "B" ignored | |
0953fe64 TF |
2024 | # Tru64's nm complains that /dev/null is an invalid object file |
2025 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
2026 | lt_cv_path_NM="$tmp_nm -B" | |
2e1a7175 | 2027 | break |
0953fe64 TF |
2028 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
2029 | lt_cv_path_NM="$tmp_nm -p" | |
2e1a7175 TF |
2030 | break |
2031 | else | |
0953fe64 | 2032 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
2e1a7175 TF |
2033 | continue # so that we can try to find one that supports BSD flags |
2034 | fi | |
2035 | fi | |
2036 | done | |
2037 | IFS="$ac_save_ifs" | |
0953fe64 | 2038 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2e1a7175 TF |
2039 | fi |
2040 | fi | |
2041 | ||
0953fe64 | 2042 | NM="$lt_cv_path_NM" |
2e1a7175 TF |
2043 | echo "$ac_t""$NM" 1>&6 |
2044 | ||
2045 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
786ab12c | 2046 | echo "configure:2047: checking whether ln -s works" >&5 |
2e1a7175 TF |
2047 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
2048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2049 | else | |
2050 | rm -f conftestdata | |
2051 | if ln -s X conftestdata 2>/dev/null | |
2052 | then | |
2053 | rm -f conftestdata | |
2054 | ac_cv_prog_LN_S="ln -s" | |
2055 | else | |
2056 | ac_cv_prog_LN_S=ln | |
2057 | fi | |
2058 | fi | |
2059 | LN_S="$ac_cv_prog_LN_S" | |
2060 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
2061 | echo "$ac_t""yes" 1>&6 | |
2062 | else | |
2063 | echo "$ac_t""no" 1>&6 | |
2064 | fi | |
2065 | ||
0953fe64 | 2066 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
786ab12c | 2067 | echo "configure:2068: checking how to recognise dependant libraries" >&5 |
0953fe64 TF |
2068 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
2069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2070 | else | |
2071 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
2072 | lt_cv_file_magic_test_file= | |
2073 | lt_cv_deplibs_check_method='unknown' | |
2074 | # Need to set the preceding variable on all platforms that support | |
2075 | # interlibrary dependencies. | |
2076 | # 'none' -- dependencies not supported. | |
2077 | # `unknown' -- same as none, but documents that we really don't know. | |
2078 | # 'pass_all' -- all dependencies passed with no checks. | |
2079 | # 'test_compile' -- check by making test program. | |
2080 | # 'file_magic [regex]' -- check by looking for files in library path | |
2081 | # which responds to the $file_magic_cmd with a given egrep regex. | |
2082 | # If you have `file' or equivalent on your system and you're not sure | |
2083 | # whether `pass_all' will *always* work, you probably want this one. | |
2084 | ||
2085 | case $host_os in | |
2086 | aix*) | |
2087 | lt_cv_deplibs_check_method=pass_all | |
2088 | ;; | |
2089 | ||
2090 | beos*) | |
2091 | lt_cv_deplibs_check_method=pass_all | |
2092 | ;; | |
2093 | ||
2094 | bsdi4*) | |
2095 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
2096 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2097 | lt_cv_file_magic_test_file=/shlib/libc.so | |
2098 | ;; | |
2099 | ||
2100 | cygwin* | mingw* |pw32*) | |
2101 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
2102 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
2103 | ;; | |
2104 | ||
2105 | darwin* | rhapsody*) | |
2106 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
2107 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2108 | case "$host_os" in | |
2109 | rhapsody* | darwin1.012) | |
2110 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
2111 | ;; | |
2112 | *) # Darwin 1.3 on | |
2113 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
2114 | ;; | |
2115 | esac | |
2116 | ;; | |
2117 | ||
2118 | freebsd* ) | |
2119 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
2120 | case $host_cpu in | |
2121 | i*86 ) | |
2122 | # Not sure whether the presence of OpenBSD here was a mistake. | |
2123 | # Let's accept both of them until this is cleared up. | |
2124 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
2125 | lt_cv_file_magic_cmd=/usr/bin/file | |
2126 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
2127 | ;; | |
2128 | esac | |
2129 | else | |
2130 | lt_cv_deplibs_check_method=pass_all | |
2131 | fi | |
2132 | ;; | |
2133 | ||
2134 | gnu*) | |
2135 | lt_cv_deplibs_check_method=pass_all | |
2136 | ;; | |
2137 | ||
2138 | hpux10.20*|hpux11*) | |
2139 | case $host_cpu in | |
2140 | hppa*) | |
2141 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
2142 | lt_cv_file_magic_cmd=/usr/bin/file | |
2143 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
2144 | ;; | |
2145 | ia64*) | |
2146 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
2147 | lt_cv_file_magic_cmd=/usr/bin/file | |
2148 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
2149 | ;; | |
2150 | esac | |
2151 | ;; | |
2152 | ||
2153 | irix5* | irix6*) | |
2154 | case $host_os in | |
2155 | irix5*) | |
2156 | # this will be overridden with pass_all, but let us keep it just in case | |
2157 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
2158 | ;; | |
2159 | *) | |
2160 | case $LD in | |
2161 | *-32|*"-32 ") libmagic=32-bit;; | |
2162 | *-n32|*"-n32 ") libmagic=N32;; | |
2163 | *-64|*"-64 ") libmagic=64-bit;; | |
2164 | *) libmagic=never-match;; | |
2165 | esac | |
2166 | # this will be overridden with pass_all, but let us keep it just in case | |
2167 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
2168 | ;; | |
2169 | esac | |
2170 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
2171 | lt_cv_deplibs_check_method=pass_all | |
2172 | ;; | |
2173 | ||
2174 | # This must be Linux ELF. | |
2175 | linux-gnu*) | |
2176 | case $host_cpu in | |
2177 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) | |
2178 | lt_cv_deplibs_check_method=pass_all ;; | |
2179 | *) | |
2180 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
2181 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
2182 | esac | |
2183 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
2184 | ;; | |
2185 | ||
2186 | netbsd*) | |
2187 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
2188 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
2189 | else | |
2190 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
2191 | fi | |
2192 | ;; | |
2193 | ||
2194 | newsos6) | |
2195 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
2196 | lt_cv_file_magic_cmd=/usr/bin/file | |
2197 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
2198 | ;; | |
2199 | ||
2200 | osf3* | osf4* | osf5*) | |
2201 | # this will be overridden with pass_all, but let us keep it just in case | |
2202 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
2203 | lt_cv_file_magic_test_file=/shlib/libc.so | |
2204 | lt_cv_deplibs_check_method=pass_all | |
2205 | ;; | |
2206 | ||
2207 | sco3.2v5*) | |
2208 | lt_cv_deplibs_check_method=pass_all | |
2209 | ;; | |
2210 | ||
2211 | solaris*) | |
2212 | lt_cv_deplibs_check_method=pass_all | |
2213 | lt_cv_file_magic_test_file=/lib/libc.so | |
2214 | ;; | |
2215 | ||
2216 | sysv5uw[78]* | sysv4*uw2*) | |
2217 | lt_cv_deplibs_check_method=pass_all | |
2218 | ;; | |
2219 | ||
2220 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
2221 | case $host_vendor in | |
2222 | ncr) | |
2223 | lt_cv_deplibs_check_method=pass_all | |
2224 | ;; | |
2225 | motorola) | |
2226 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
2227 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
2228 | ;; | |
2229 | esac | |
2230 | ;; | |
2231 | esac | |
2232 | ||
2233 | fi | |
2234 | ||
2235 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
2236 | file_magic_cmd=$lt_cv_file_magic_cmd | |
2237 | deplibs_check_method=$lt_cv_deplibs_check_method | |
2238 | ||
2239 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
786ab12c | 2240 | echo "configure:2241: checking for object suffix" >&5 |
0953fe64 TF |
2241 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
2242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2243 | else | |
2244 | rm -f conftest* | |
2245 | echo 'int i = 1;' > conftest.$ac_ext | |
786ab12c | 2246 | if { (eval echo configure:2247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0953fe64 TF |
2247 | for ac_file in conftest.*; do |
2248 | case $ac_file in | |
2249 | *.c) ;; | |
2250 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
2251 | esac | |
2252 | done | |
2253 | else | |
2254 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
2255 | fi | |
2256 | rm -f conftest* | |
2257 | fi | |
2258 | ||
2259 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
2260 | OBJEXT=$ac_cv_objext | |
2261 | ac_objext=$ac_cv_objext | |
2262 | ||
2263 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
2264 | ||
2265 | # Only perform the check for file, if the check method requires it | |
2266 | case $deplibs_check_method in | |
2267 | file_magic*) | |
2268 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
2269 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | |
786ab12c | 2270 | echo "configure:2271: checking for ${ac_tool_prefix}file" >&5 |
0953fe64 TF |
2271 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
2272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2273 | else | |
2274 | case $MAGIC_CMD in | |
2275 | /*) | |
2276 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
2277 | ;; | |
2278 | ?:/*) | |
2279 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
2280 | ;; | |
2281 | *) | |
2282 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
2283 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2284 | ac_dummy="/usr/bin:$PATH" | |
2285 | for ac_dir in $ac_dummy; do | |
2286 | test -z "$ac_dir" && ac_dir=. | |
2287 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
2288 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
2289 | if test -n "$file_magic_test_file"; then | |
2290 | case $deplibs_check_method in | |
2291 | "file_magic "*) | |
2292 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
2293 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
2294 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
2295 | egrep "$file_magic_regex" > /dev/null; then | |
2296 | : | |
2297 | else | |
2298 | cat <<EOF 1>&2 | |
2299 | ||
2300 | *** Warning: the command libtool uses to detect shared libraries, | |
2301 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2302 | *** The result is that libtool may fail to recognize shared libraries | |
2303 | *** as such. This will affect the creation of libtool libraries that | |
2304 | *** depend on shared libraries, but programs linked with such libtool | |
2305 | *** libraries will work regardless of this problem. Nevertheless, you | |
2306 | *** may want to report the problem to your system manager and/or to | |
2307 | *** bug-libtool@gnu.org | |
2308 | ||
2309 | EOF | |
2310 | fi ;; | |
2311 | esac | |
2312 | fi | |
2313 | break | |
2314 | fi | |
2315 | done | |
2316 | IFS="$ac_save_ifs" | |
2317 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
2318 | ;; | |
2319 | esac | |
2320 | fi | |
2321 | ||
2322 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
2323 | if test -n "$MAGIC_CMD"; then | |
2324 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
2325 | else | |
2326 | echo "$ac_t""no" 1>&6 | |
2327 | fi | |
2328 | ||
2329 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
2330 | if test -n "$ac_tool_prefix"; then | |
2331 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
786ab12c | 2332 | echo "configure:2333: checking for file" >&5 |
0953fe64 TF |
2333 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
2334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2335 | else | |
2336 | case $MAGIC_CMD in | |
2337 | /*) | |
2338 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
2339 | ;; | |
2340 | ?:/*) | |
2341 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
2342 | ;; | |
2343 | *) | |
2344 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
2345 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2346 | ac_dummy="/usr/bin:$PATH" | |
2347 | for ac_dir in $ac_dummy; do | |
2348 | test -z "$ac_dir" && ac_dir=. | |
2349 | if test -f $ac_dir/file; then | |
2350 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
2351 | if test -n "$file_magic_test_file"; then | |
2352 | case $deplibs_check_method in | |
2353 | "file_magic "*) | |
2354 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
2355 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
2356 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
2357 | egrep "$file_magic_regex" > /dev/null; then | |
2358 | : | |
2359 | else | |
2360 | cat <<EOF 1>&2 | |
2361 | ||
2362 | *** Warning: the command libtool uses to detect shared libraries, | |
2363 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2364 | *** The result is that libtool may fail to recognize shared libraries | |
2365 | *** as such. This will affect the creation of libtool libraries that | |
2366 | *** depend on shared libraries, but programs linked with such libtool | |
2367 | *** libraries will work regardless of this problem. Nevertheless, you | |
2368 | *** may want to report the problem to your system manager and/or to | |
2369 | *** bug-libtool@gnu.org | |
2370 | ||
2371 | EOF | |
2372 | fi ;; | |
2373 | esac | |
2374 | fi | |
2375 | break | |
2376 | fi | |
2377 | done | |
2378 | IFS="$ac_save_ifs" | |
2379 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
2380 | ;; | |
2381 | esac | |
2382 | fi | |
2383 | ||
2384 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
2385 | if test -n "$MAGIC_CMD"; then | |
2386 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
2387 | else | |
2388 | echo "$ac_t""no" 1>&6 | |
2389 | fi | |
2390 | ||
2391 | else | |
2392 | MAGIC_CMD=: | |
2393 | fi | |
2394 | fi | |
2395 | ||
2396 | fi | |
2397 | ;; | |
2398 | esac | |
2399 | ||
2400 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2401 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2402 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2403 | echo "configure:2404: checking for $ac_word" >&5 |
0953fe64 TF |
2404 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2406 | else | |
2407 | if test -n "$RANLIB"; then | |
2408 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2409 | else | |
2410 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2411 | ac_dummy="$PATH" | |
2412 | for ac_dir in $ac_dummy; do | |
2413 | test -z "$ac_dir" && ac_dir=. | |
2414 | if test -f $ac_dir/$ac_word; then | |
2415 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2416 | break | |
2417 | fi | |
2418 | done | |
2419 | IFS="$ac_save_ifs" | |
2420 | fi | |
2421 | fi | |
2422 | RANLIB="$ac_cv_prog_RANLIB" | |
2423 | if test -n "$RANLIB"; then | |
2424 | echo "$ac_t""$RANLIB" 1>&6 | |
2425 | else | |
2426 | echo "$ac_t""no" 1>&6 | |
2427 | fi | |
2428 | ||
2429 | ||
2430 | if test -z "$ac_cv_prog_RANLIB"; then | |
2431 | if test -n "$ac_tool_prefix"; then | |
2432 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2433 | set dummy ranlib; ac_word=$2 | |
2434 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2435 | echo "configure:2436: checking for $ac_word" >&5 |
0953fe64 TF |
2436 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2438 | else | |
2439 | if test -n "$RANLIB"; then | |
2440 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2441 | else | |
2442 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2443 | ac_dummy="$PATH" | |
2444 | for ac_dir in $ac_dummy; do | |
2445 | test -z "$ac_dir" && ac_dir=. | |
2446 | if test -f $ac_dir/$ac_word; then | |
2447 | ac_cv_prog_RANLIB="ranlib" | |
2448 | break | |
2449 | fi | |
2450 | done | |
2451 | IFS="$ac_save_ifs" | |
2452 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2453 | fi | |
2454 | fi | |
2455 | RANLIB="$ac_cv_prog_RANLIB" | |
2456 | if test -n "$RANLIB"; then | |
2457 | echo "$ac_t""$RANLIB" 1>&6 | |
2458 | else | |
2459 | echo "$ac_t""no" 1>&6 | |
2460 | fi | |
2461 | ||
2462 | else | |
2463 | RANLIB=":" | |
2464 | fi | |
2465 | fi | |
2466 | ||
2467 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2468 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2469 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2470 | echo "configure:2471: checking for $ac_word" >&5 |
0953fe64 TF |
2471 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2473 | else | |
2474 | if test -n "$STRIP"; then | |
2475 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2476 | else | |
2477 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2478 | ac_dummy="$PATH" | |
2479 | for ac_dir in $ac_dummy; do | |
2480 | test -z "$ac_dir" && ac_dir=. | |
2481 | if test -f $ac_dir/$ac_word; then | |
2482 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2483 | break | |
2484 | fi | |
2485 | done | |
2486 | IFS="$ac_save_ifs" | |
2487 | fi | |
2488 | fi | |
2489 | STRIP="$ac_cv_prog_STRIP" | |
2490 | if test -n "$STRIP"; then | |
2491 | echo "$ac_t""$STRIP" 1>&6 | |
2492 | else | |
2493 | echo "$ac_t""no" 1>&6 | |
2494 | fi | |
2495 | ||
2496 | ||
2497 | if test -z "$ac_cv_prog_STRIP"; then | |
2498 | if test -n "$ac_tool_prefix"; then | |
2499 | # Extract the first word of "strip", so it can be a program name with args. | |
2500 | set dummy strip; ac_word=$2 | |
2501 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2502 | echo "configure:2503: checking for $ac_word" >&5 |
0953fe64 TF |
2503 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
2504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2505 | else | |
2506 | if test -n "$STRIP"; then | |
2507 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2508 | else | |
2509 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2510 | ac_dummy="$PATH" | |
2511 | for ac_dir in $ac_dummy; do | |
2512 | test -z "$ac_dir" && ac_dir=. | |
2513 | if test -f $ac_dir/$ac_word; then | |
2514 | ac_cv_prog_STRIP="strip" | |
2515 | break | |
2516 | fi | |
2517 | done | |
2518 | IFS="$ac_save_ifs" | |
2519 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2520 | fi | |
2521 | fi | |
2522 | STRIP="$ac_cv_prog_STRIP" | |
2523 | if test -n "$STRIP"; then | |
2524 | echo "$ac_t""$STRIP" 1>&6 | |
2525 | else | |
2526 | echo "$ac_t""no" 1>&6 | |
2527 | fi | |
2528 | ||
2529 | else | |
2530 | STRIP=":" | |
2531 | fi | |
2532 | fi | |
2533 | ||
2e1a7175 TF |
2534 | |
2535 | # Check for any special flags to pass to ltconfig. | |
2536 | libtool_flags="--cache-file=$cache_file" | |
2537 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
2538 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
2539 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
0953fe64 TF |
2540 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
2541 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
2e1a7175 TF |
2542 | |
2543 | libtool_flags="$libtool_flags --enable-win32-dll" | |
2544 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2545 | if test "${enable_libtool_lock+set}" = set; then | |
2546 | enableval="$enable_libtool_lock" | |
2547 | : | |
2548 | fi | |
2549 | ||
2550 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2551 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2552 | ||
0953fe64 TF |
2553 | # Check whether --with-pic or --without-pic was given. |
2554 | if test "${with_pic+set}" = set; then | |
2555 | withval="$with_pic" | |
2556 | pic_mode="$withval" | |
2557 | else | |
2558 | pic_mode=default | |
2559 | fi | |
2560 | ||
2561 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2562 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2563 | ||
2e1a7175 TF |
2564 | # Some flags need to be propagated to the compiler or linker for good |
2565 | # libtool support. | |
0953fe64 | 2566 | case $host in |
2e1a7175 TF |
2567 | *-*-irix6*) |
2568 | # Find out which ABI we are using. | |
786ab12c JJ |
2569 | echo '#line 2570 "configure"' > conftest.$ac_ext |
2570 | if { (eval echo configure:2571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
0953fe64 | 2571 | case `/usr/bin/file conftest.$ac_objext` in |
2e1a7175 TF |
2572 | *32-bit*) |
2573 | LD="${LD-ld} -32" | |
2574 | ;; | |
2575 | *N32*) | |
2576 | LD="${LD-ld} -n32" | |
2577 | ;; | |
2578 | *64-bit*) | |
2579 | LD="${LD-ld} -64" | |
2580 | ;; | |
2581 | esac | |
2582 | fi | |
2583 | rm -rf conftest* | |
2584 | ;; | |
2585 | ||
0953fe64 TF |
2586 | ia64-*-hpux*) |
2587 | # Find out which ABI we are using. | |
2588 | echo 'int i;' > conftest.$ac_ext | |
786ab12c | 2589 | if { (eval echo configure:2590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0953fe64 TF |
2590 | case "`/usr/bin/file conftest.o`" in |
2591 | *ELF-32*) | |
2592 | HPUX_IA64_MODE="32" | |
2593 | ;; | |
2594 | *ELF-64*) | |
2595 | HPUX_IA64_MODE="64" | |
2596 | ;; | |
2597 | esac | |
2598 | fi | |
2599 | rm -rf conftest* | |
2600 | ;; | |
2601 | ||
2e1a7175 TF |
2602 | *-*-sco3.2v5*) |
2603 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2604 | SAVE_CFLAGS="$CFLAGS" | |
2605 | CFLAGS="$CFLAGS -belf" | |
2606 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
786ab12c | 2607 | echo "configure:2608: checking whether the C compiler needs -belf" >&5 |
2e1a7175 TF |
2608 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2610 | else | |
0953fe64 TF |
2611 | |
2612 | ac_ext=c | |
2613 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2614 | ac_cpp='$CPP $CPPFLAGS' | |
2615 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2616 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2617 | cross_compiling=$ac_cv_prog_cc_cross | |
2618 | ||
2619 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 2620 | #line 2621 "configure" |
2e1a7175 TF |
2621 | #include "confdefs.h" |
2622 | ||
2623 | int main() { | |
2624 | ||
2625 | ; return 0; } | |
2626 | EOF | |
786ab12c | 2627 | if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2e1a7175 TF |
2628 | rm -rf conftest* |
2629 | lt_cv_cc_needs_belf=yes | |
2630 | else | |
2631 | echo "configure: failed program was:" >&5 | |
2632 | cat conftest.$ac_ext >&5 | |
2633 | rm -rf conftest* | |
2634 | lt_cv_cc_needs_belf=no | |
2635 | fi | |
2636 | rm -f conftest* | |
0953fe64 TF |
2637 | ac_ext=c |
2638 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2639 | ac_cpp='$CPP $CPPFLAGS' | |
2640 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2641 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2642 | cross_compiling=$ac_cv_prog_cc_cross | |
2643 | ||
2e1a7175 TF |
2644 | fi |
2645 | ||
2646 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2647 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2648 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2649 | CFLAGS="$SAVE_CFLAGS" | |
2650 | fi | |
2651 | ;; | |
2652 | ||
0953fe64 | 2653 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
2e1a7175 TF |
2654 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
2655 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
2656 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2657 | echo "configure:2658: checking for $ac_word" >&5 |
2e1a7175 TF |
2658 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
2659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2660 | else | |
2661 | if test -n "$DLLTOOL"; then | |
2662 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
2663 | else | |
2664 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2665 | ac_dummy="$PATH" | |
2666 | for ac_dir in $ac_dummy; do | |
2667 | test -z "$ac_dir" && ac_dir=. | |
2668 | if test -f $ac_dir/$ac_word; then | |
2669 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
2670 | break | |
2671 | fi | |
2672 | done | |
2673 | IFS="$ac_save_ifs" | |
2674 | fi | |
2675 | fi | |
2676 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
2677 | if test -n "$DLLTOOL"; then | |
2678 | echo "$ac_t""$DLLTOOL" 1>&6 | |
2679 | else | |
2680 | echo "$ac_t""no" 1>&6 | |
2681 | fi | |
2682 | ||
2683 | ||
2684 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
2685 | if test -n "$ac_tool_prefix"; then | |
2686 | # Extract the first word of "dlltool", so it can be a program name with args. | |
2687 | set dummy dlltool; ac_word=$2 | |
2688 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2689 | echo "configure:2690: checking for $ac_word" >&5 |
2e1a7175 TF |
2690 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
2691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2692 | else | |
2693 | if test -n "$DLLTOOL"; then | |
2694 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
2695 | else | |
2696 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2697 | ac_dummy="$PATH" | |
2698 | for ac_dir in $ac_dummy; do | |
2699 | test -z "$ac_dir" && ac_dir=. | |
2700 | if test -f $ac_dir/$ac_word; then | |
2701 | ac_cv_prog_DLLTOOL="dlltool" | |
2702 | break | |
2703 | fi | |
2704 | done | |
2705 | IFS="$ac_save_ifs" | |
2706 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
2707 | fi | |
2708 | fi | |
2709 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
2710 | if test -n "$DLLTOOL"; then | |
2711 | echo "$ac_t""$DLLTOOL" 1>&6 | |
2712 | else | |
2713 | echo "$ac_t""no" 1>&6 | |
2714 | fi | |
2715 | ||
2716 | else | |
2717 | DLLTOOL="false" | |
2718 | fi | |
2719 | fi | |
2720 | ||
2721 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2722 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
2723 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2724 | echo "configure:2725: checking for $ac_word" >&5 |
2e1a7175 TF |
2725 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
2726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2727 | else | |
2728 | if test -n "$AS"; then | |
2729 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2730 | else | |
2731 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2732 | ac_dummy="$PATH" | |
2733 | for ac_dir in $ac_dummy; do | |
2734 | test -z "$ac_dir" && ac_dir=. | |
2735 | if test -f $ac_dir/$ac_word; then | |
2736 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
2737 | break | |
2738 | fi | |
2739 | done | |
2740 | IFS="$ac_save_ifs" | |
2741 | fi | |
2742 | fi | |
2743 | AS="$ac_cv_prog_AS" | |
2744 | if test -n "$AS"; then | |
2745 | echo "$ac_t""$AS" 1>&6 | |
2746 | else | |
2747 | echo "$ac_t""no" 1>&6 | |
2748 | fi | |
2749 | ||
2750 | ||
2751 | if test -z "$ac_cv_prog_AS"; then | |
2752 | if test -n "$ac_tool_prefix"; then | |
2753 | # Extract the first word of "as", so it can be a program name with args. | |
2754 | set dummy as; ac_word=$2 | |
2755 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2756 | echo "configure:2757: checking for $ac_word" >&5 |
2e1a7175 TF |
2757 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
2758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2759 | else | |
2760 | if test -n "$AS"; then | |
2761 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2762 | else | |
2763 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2764 | ac_dummy="$PATH" | |
2765 | for ac_dir in $ac_dummy; do | |
2766 | test -z "$ac_dir" && ac_dir=. | |
2767 | if test -f $ac_dir/$ac_word; then | |
2768 | ac_cv_prog_AS="as" | |
2769 | break | |
2770 | fi | |
2771 | done | |
2772 | IFS="$ac_save_ifs" | |
2773 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
2774 | fi | |
2775 | fi | |
2776 | AS="$ac_cv_prog_AS" | |
2777 | if test -n "$AS"; then | |
2778 | echo "$ac_t""$AS" 1>&6 | |
2779 | else | |
2780 | echo "$ac_t""no" 1>&6 | |
2781 | fi | |
2782 | ||
2783 | else | |
2784 | AS="false" | |
2785 | fi | |
2786 | fi | |
2787 | ||
2788 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
2789 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
2790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2791 | echo "configure:2792: checking for $ac_word" >&5 |
2e1a7175 TF |
2792 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then |
2793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2794 | else | |
2795 | if test -n "$OBJDUMP"; then | |
2796 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
2797 | else | |
2798 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2799 | ac_dummy="$PATH" | |
2800 | for ac_dir in $ac_dummy; do | |
2801 | test -z "$ac_dir" && ac_dir=. | |
2802 | if test -f $ac_dir/$ac_word; then | |
2803 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
2804 | break | |
2805 | fi | |
2806 | done | |
2807 | IFS="$ac_save_ifs" | |
2808 | fi | |
2809 | fi | |
2810 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
2811 | if test -n "$OBJDUMP"; then | |
2812 | echo "$ac_t""$OBJDUMP" 1>&6 | |
2813 | else | |
2814 | echo "$ac_t""no" 1>&6 | |
2815 | fi | |
2816 | ||
2817 | ||
2818 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
2819 | if test -n "$ac_tool_prefix"; then | |
2820 | # Extract the first word of "objdump", so it can be a program name with args. | |
2821 | set dummy objdump; ac_word=$2 | |
2822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 2823 | echo "configure:2824: checking for $ac_word" >&5 |
2e1a7175 TF |
2824 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then |
2825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2826 | else | |
2827 | if test -n "$OBJDUMP"; then | |
2828 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
2829 | else | |
2830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2831 | ac_dummy="$PATH" | |
2832 | for ac_dir in $ac_dummy; do | |
2833 | test -z "$ac_dir" && ac_dir=. | |
2834 | if test -f $ac_dir/$ac_word; then | |
2835 | ac_cv_prog_OBJDUMP="objdump" | |
2836 | break | |
2837 | fi | |
2838 | done | |
2839 | IFS="$ac_save_ifs" | |
2840 | test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false" | |
2841 | fi | |
2842 | fi | |
2843 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
2844 | if test -n "$OBJDUMP"; then | |
2845 | echo "$ac_t""$OBJDUMP" 1>&6 | |
2846 | else | |
2847 | echo "$ac_t""no" 1>&6 | |
2848 | fi | |
2849 | ||
2850 | else | |
2851 | OBJDUMP="false" | |
2852 | fi | |
2853 | fi | |
2854 | ||
2e1a7175 | 2855 | |
0953fe64 TF |
2856 | # recent cygwin and mingw systems supply a stub DllMain which the user |
2857 | # can override, but on older systems we have to supply one | |
2858 | echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6 | |
786ab12c | 2859 | echo "configure:2860: checking if libtool should supply DllMain function" >&5 |
0953fe64 TF |
2860 | if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then |
2861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2862 | else | |
2863 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 2864 | #line 2865 "configure" |
0953fe64 TF |
2865 | #include "confdefs.h" |
2866 | ||
2867 | int main() { | |
2868 | extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); | |
2869 | DllMain (0, 0, 0); | |
2870 | ; return 0; } | |
2871 | EOF | |
786ab12c | 2872 | if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0953fe64 TF |
2873 | rm -rf conftest* |
2874 | lt_cv_need_dllmain=no | |
2875 | else | |
2876 | echo "configure: failed program was:" >&5 | |
2877 | cat conftest.$ac_ext >&5 | |
2878 | rm -rf conftest* | |
2879 | lt_cv_need_dllmain=yes | |
2880 | fi | |
2881 | rm -f conftest* | |
2882 | fi | |
2883 | ||
2884 | echo "$ac_t""$lt_cv_need_dllmain" 1>&6 | |
2885 | ||
2886 | case $host/$CC in | |
2887 | *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) | |
2888 | # old mingw systems require "-dll" to link a DLL, while more recent ones | |
2889 | # require "-mdll" | |
2890 | SAVE_CFLAGS="$CFLAGS" | |
2891 | CFLAGS="$CFLAGS -mdll" | |
2892 | echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6 | |
786ab12c | 2893 | echo "configure:2894: checking how to link DLLs" >&5 |
0953fe64 TF |
2894 | if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then |
2895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2896 | else | |
2897 | cat > conftest.$ac_ext <<EOF | |
786ab12c | 2898 | #line 2899 "configure" |
0953fe64 TF |
2899 | #include "confdefs.h" |
2900 | ||
2901 | int main() { | |
2902 | ||
2903 | ; return 0; } | |
2904 | EOF | |
786ab12c | 2905 | if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0953fe64 TF |
2906 | rm -rf conftest* |
2907 | lt_cv_cc_dll_switch=-mdll | |
2908 | else | |
2909 | echo "configure: failed program was:" >&5 | |
2910 | cat conftest.$ac_ext >&5 | |
2911 | rm -rf conftest* | |
2912 | lt_cv_cc_dll_switch=-dll | |
2913 | fi | |
2914 | rm -f conftest* | |
2915 | fi | |
2916 | ||
2917 | echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6 | |
2918 | CFLAGS="$SAVE_CFLAGS" ;; | |
2919 | *-*-cygwin* | *-*-pw32*) | |
2920 | # cygwin systems need to pass --dll to the linker, and not link | |
2921 | # crt.o which will require a WinMain@16 definition. | |
2922 | lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; | |
2923 | esac | |
2924 | ;; | |
2925 | ||
2e1a7175 TF |
2926 | esac |
2927 | ||
2928 | ||
2929 | # Save cache, so that ltconfig can load it | |
2930 | cat > confcache <<\EOF | |
2931 | # This file is a shell script that caches the results of configure | |
2932 | # tests run on this system so they can be shared between configure | |
2933 | # scripts and configure runs. It is not useful on other systems. | |
2934 | # If it contains results you don't want to keep, you may remove or edit it. | |
2935 | # | |
2936 | # By default, configure uses ./config.cache as the cache file, | |
2937 | # creating it if it does not exist already. You can give configure | |
2938 | # the --cache-file=FILE option to use a different cache file; that is | |
2939 | # what configure does when it calls configure scripts in | |
2940 | # subdirectories, so they share the cache. | |
2941 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2942 | # config.status only pays attention to the cache file if you give it the | |
2943 | # --recheck option to rerun configure. | |
2944 | # | |
2945 | EOF | |
2946 | # The following way of writing the cache mishandles newlines in values, | |
2947 | # but we know of no workaround that is simple, portable, and efficient. | |
2948 | # So, don't put newlines in cache variables' values. | |
2949 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2950 | # and sets the high bit in the cache file unless we assign to the vars. | |
2951 | (set) 2>&1 | | |
2952 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2953 | *ac_space=\ *) | |
2954 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2955 | # turns \\\\ into \\, and sed turns \\ into \). | |
2956 | sed -n \ | |
2957 | -e "s/'/'\\\\''/g" \ | |
2958 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2959 | ;; | |
2960 | *) | |
2961 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2962 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2963 | ;; | |
2964 | esac >> confcache | |
2965 | if cmp -s $cache_file confcache; then | |
2966 | : | |
2967 | else | |
2968 | if test -w $cache_file; then | |
2969 | echo "updating cache $cache_file" | |
2970 | cat confcache > $cache_file | |
2971 | else | |
2972 | echo "not updating unwritable cache $cache_file" | |
2973 | fi | |
2974 | fi | |
2975 | rm -f confcache | |
2976 | ||
2977 | ||
2978 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
0953fe64 TF |
2979 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
2980 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
2981 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
2982 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2983 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2984 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
2e1a7175 | 2985 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
0953fe64 | 2986 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
2e1a7175 TF |
2987 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
2988 | ||
2989 | # Reload cache, that may have been modified by ltconfig | |
2990 | if test -r "$cache_file"; then | |
2991 | echo "loading cache $cache_file" | |
2992 | . $cache_file | |
2993 | else | |
2994 | echo "creating cache $cache_file" | |
2995 | > $cache_file | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | # This can be used to rebuild libtool when needed | |
0953fe64 | 3000 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
2e1a7175 TF |
3001 | |
3002 | # Always use our own libtool. | |
3003 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
3004 | ||
3005 | # Redirect the config.log output again, so that the ltconfig log is not | |
3006 | # clobbered by the next message. | |
3007 | exec 5>>./config.log | |
3008 | ||
0953fe64 TF |
3009 | |
3010 | ||
3011 | ||
3012 | ||
3013 | ||
2e1a7175 TF |
3014 | for ac_prog in mawk gawk nawk awk |
3015 | do | |
3016 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3017 | set dummy $ac_prog; ac_word=$2 | |
3018 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
786ab12c | 3019 | echo "configure:3020: checking for $ac_word" >&5 |
2e1a7175 TF |
3020 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
3021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3022 | else | |
3023 | if test -n "$AWK"; then | |
3024 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3025 | else | |
3026 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3027 | ac_dummy="$PATH" | |
3028 | for ac_dir in $ac_dummy; do | |
3029 | test -z "$ac_dir" && ac_dir=. | |
3030 | if test -f $ac_dir/$ac_word; then | |
3031 | ac_cv_prog_AWK="$ac_prog" | |
3032 | break | |
3033 | fi | |
3034 | done | |
3035 | IFS="$ac_save_ifs" | |
3036 | fi | |
3037 | fi | |
3038 | AWK="$ac_cv_prog_AWK" | |
3039 | if test -n "$AWK"; then | |
3040 | echo "$ac_t""$AWK" 1>&6 | |
3041 | else | |
3042 | echo "$ac_t""no" 1>&6 | |
3043 | fi | |
3044 | ||
3045 | test -n "$AWK" && break | |
3046 | done | |
3047 | ||
3048 | fi | |
2efbc2a7 | 3049 | |
fa4a16a1 JJ |
3050 | LINUX_MACH_LIB= |
3051 | if test -n "${machine_dir}"; then | |
3052 | if test "${use_libtool}" = "yes"; then | |
3053 | LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext} | |
3054 | else | |
3055 | LINUX_MACH_LIB=machine/lib.${aext} | |
3056 | fi | |
3057 | fi | |
3058 | ||
3059 | ||
d389acba JJ |
3060 | EXTRA_SUBDIRS= |
3061 | EXTRA_SUBLIBS= | |
9a292385 | 3062 | |
b359e82c JJ |
3063 | if test "${newlib_multithread}" = "yes"; then |
3064 | EXTRA_CONFIG_DIRS=linuxthreads | |
3065 | fi | |
3066 | if test "x${newlib_elix_level}" = "x1"; then | |
3067 | EXTRA_SUBDIRS=linuxthreads net | |
3068 | else | |
3069 | EXTRA_SUBDIRS="linuxthreads net intl stdlib iconv dl" | |
3070 | EXTRA_SUBLIBS="net/libnet.la intl/libintl.la stdlib/libstdlib.la iconv/libiconv.la dl/libdl.la" | |
3071 | fi | |
3072 | ||
3073 | ||
d389acba JJ |
3074 | |
3075 | ||
3076 | subdirs="machine $EXTRA_CONFIG_DIRS" | |
fa4a16a1 JJ |
3077 | |
3078 | ||
2efbc2a7 JJ |
3079 | trap '' 1 2 15 |
3080 | cat > confcache <<\EOF | |
3081 | # This file is a shell script that caches the results of configure | |
3082 | # tests run on this system so they can be shared between configure | |
3083 | # scripts and configure runs. It is not useful on other systems. | |
3084 | # If it contains results you don't want to keep, you may remove or edit it. | |
3085 | # | |
3086 | # By default, configure uses ./config.cache as the cache file, | |
3087 | # creating it if it does not exist already. You can give configure | |
3088 | # the --cache-file=FILE option to use a different cache file; that is | |
3089 | # what configure does when it calls configure scripts in | |
3090 | # subdirectories, so they share the cache. | |
3091 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
3092 | # config.status only pays attention to the cache file if you give it the | |
3093 | # --recheck option to rerun configure. | |
3094 | # | |
3095 | EOF | |
3096 | # The following way of writing the cache mishandles newlines in values, | |
3097 | # but we know of no workaround that is simple, portable, and efficient. | |
3098 | # So, don't put newlines in cache variables' values. | |
3099 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3100 | # and sets the high bit in the cache file unless we assign to the vars. | |
3101 | (set) 2>&1 | | |
3102 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3103 | *ac_space=\ *) | |
3104 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
3105 | # turns \\\\ into \\, and sed turns \\ into \). | |
3106 | sed -n \ | |
3107 | -e "s/'/'\\\\''/g" \ | |
3108 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
3109 | ;; | |
3110 | *) | |
3111 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3112 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
3113 | ;; | |
3114 | esac >> confcache | |
3115 | if cmp -s $cache_file confcache; then | |
3116 | : | |
3117 | else | |
3118 | if test -w $cache_file; then | |
3119 | echo "updating cache $cache_file" | |
3120 | cat confcache > $cache_file | |
3121 | else | |
3122 | echo "not updating unwritable cache $cache_file" | |
3123 | fi | |
3124 | fi | |
3125 | rm -f confcache | |
3126 | ||
3127 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3128 | ||
3129 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3130 | # Let make expand exec_prefix. | |
3131 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3132 | ||
3133 | # Any assignment to VPATH causes Sun make to only execute | |
3134 | # the first set of double-colon rules, so remove it if not needed. | |
3135 | # If there is a colon in the path, we need to keep it. | |
3136 | if test "x$srcdir" = x.; then | |
3137 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3138 | fi | |
3139 | ||
3140 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3141 | ||
3142 | # Transform confdefs.h into DEFS. | |
3143 | # Protect against shell expansion while executing Makefile rules. | |
3144 | # Protect against Makefile macro expansion. | |
3145 | cat > conftest.defs <<\EOF | |
3146 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
3147 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
3148 | s%\[%\\&%g | |
3149 | s%\]%\\&%g | |
3150 | s%\$%$$%g | |
3151 | EOF | |
3152 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
3153 | rm -f conftest.defs | |
3154 | ||
3155 | ||
3156 | # Without the "./", some shells look in PATH for config.status. | |
3157 | : ${CONFIG_STATUS=./config.status} | |
3158 | ||
3159 | echo creating $CONFIG_STATUS | |
3160 | rm -f $CONFIG_STATUS | |
3161 | cat > $CONFIG_STATUS <<EOF | |
3162 | #! /bin/sh | |
3163 | # Generated automatically by configure. | |
3164 | # Run this file to recreate the current configuration. | |
3165 | # This directory was configured as follows, | |
3166 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3167 | # | |
3168 | # $0 $ac_configure_args | |
3169 | # | |
3170 | # Compiler output produced by configure, useful for debugging | |
3171 | # configure, is in ./config.log if it exists. | |
3172 | ||
3173 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3174 | for ac_option | |
3175 | do | |
3176 | case "\$ac_option" in | |
3177 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3178 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3179 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3180 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
3181 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
3182 | exit 0 ;; | |
3183 | -help | --help | --hel | --he | --h) | |
3184 | echo "\$ac_cs_usage"; exit 0 ;; | |
3185 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3186 | esac | |
3187 | done | |
3188 | ||
3189 | ac_given_srcdir=$srcdir | |
3190 | ac_given_INSTALL="$INSTALL" | |
3191 | ||
b359e82c | 3192 | trap 'rm -fr `echo "Makefile intl/Makefile net/Makefile stdlib/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2efbc2a7 JJ |
3193 | EOF |
3194 | cat >> $CONFIG_STATUS <<EOF | |
3195 | ||
3196 | # Protect against being on the right side of a sed subst in config.status. | |
3197 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3198 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
3199 | $ac_vpsub | |
3200 | $extrasub | |
3201 | s%@SHELL@%$SHELL%g | |
3202 | s%@CFLAGS@%$CFLAGS%g | |
3203 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3204 | s%@CXXFLAGS@%$CXXFLAGS%g | |
3205 | s%@FFLAGS@%$FFLAGS%g | |
3206 | s%@DEFS@%$DEFS%g | |
3207 | s%@LDFLAGS@%$LDFLAGS%g | |
3208 | s%@LIBS@%$LIBS%g | |
3209 | s%@exec_prefix@%$exec_prefix%g | |
3210 | s%@prefix@%$prefix%g | |
3211 | s%@program_transform_name@%$program_transform_name%g | |
3212 | s%@bindir@%$bindir%g | |
3213 | s%@sbindir@%$sbindir%g | |
3214 | s%@libexecdir@%$libexecdir%g | |
3215 | s%@datadir@%$datadir%g | |
3216 | s%@sysconfdir@%$sysconfdir%g | |
3217 | s%@sharedstatedir@%$sharedstatedir%g | |
3218 | s%@localstatedir@%$localstatedir%g | |
3219 | s%@libdir@%$libdir%g | |
3220 | s%@includedir@%$includedir%g | |
3221 | s%@oldincludedir@%$oldincludedir%g | |
3222 | s%@infodir@%$infodir%g | |
3223 | s%@mandir@%$mandir%g | |
313f1349 JJ |
3224 | s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g |
3225 | s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g | |
2efbc2a7 JJ |
3226 | s%@newlib_basedir@%$newlib_basedir%g |
3227 | s%@host@%$host%g | |
3228 | s%@host_alias@%$host_alias%g | |
3229 | s%@host_cpu@%$host_cpu%g | |
3230 | s%@host_vendor@%$host_vendor%g | |
3231 | s%@host_os@%$host_os%g | |
eaa75b70 TF |
3232 | s%@target@%$target%g |
3233 | s%@target_alias@%$target_alias%g | |
3234 | s%@target_cpu@%$target_cpu%g | |
3235 | s%@target_vendor@%$target_vendor%g | |
3236 | s%@target_os@%$target_os%g | |
3237 | s%@build@%$build%g | |
3238 | s%@build_alias@%$build_alias%g | |
3239 | s%@build_cpu@%$build_cpu%g | |
3240 | s%@build_vendor@%$build_vendor%g | |
3241 | s%@build_os@%$build_os%g | |
2efbc2a7 JJ |
3242 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
3243 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
3244 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
3245 | s%@PACKAGE@%$PACKAGE%g | |
3246 | s%@VERSION@%$VERSION%g | |
3247 | s%@ACLOCAL@%$ACLOCAL%g | |
3248 | s%@AUTOCONF@%$AUTOCONF%g | |
3249 | s%@AUTOMAKE@%$AUTOMAKE%g | |
3250 | s%@AUTOHEADER@%$AUTOHEADER%g | |
3251 | s%@MAKEINFO@%$MAKEINFO%g | |
3252 | s%@SET_MAKE@%$SET_MAKE%g | |
3253 | s%@CC@%$CC%g | |
2efbc2a7 JJ |
3254 | s%@AS@%$AS%g |
3255 | s%@AR@%$AR%g | |
3256 | s%@RANLIB@%$RANLIB%g | |
3257 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
3258 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
3259 | s%@MAINT@%$MAINT%g | |
3260 | s%@EXEEXT@%$EXEEXT%g | |
3261 | s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g | |
90b65e2d JJ |
3262 | s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g |
3263 | s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g | |
3264 | s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g | |
3265 | s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g | |
3266 | s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g | |
3267 | s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g | |
3268 | s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g | |
3269 | s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g | |
3270 | s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g | |
3271 | s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g | |
2e1a7175 TF |
3272 | s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g |
3273 | s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g | |
0953fe64 | 3274 | s%@OBJEXT@%$OBJEXT%g |
2e1a7175 TF |
3275 | s%@oext@%$oext%g |
3276 | s%@aext@%$aext%g | |
3277 | s%@libm_machine_dir@%$libm_machine_dir%g | |
2efbc2a7 JJ |
3278 | s%@machine_dir@%$machine_dir%g |
3279 | s%@sys_dir@%$sys_dir%g | |
2e1a7175 | 3280 | s%@LN_S@%$LN_S%g |
0953fe64 | 3281 | s%@STRIP@%$STRIP%g |
2e1a7175 TF |
3282 | s%@DLLTOOL@%$DLLTOOL%g |
3283 | s%@OBJDUMP@%$OBJDUMP%g | |
3284 | s%@LIBTOOL@%$LIBTOOL%g | |
3285 | s%@AWK@%$AWK%g | |
fa4a16a1 | 3286 | s%@LINUX_MACH_LIB@%$LINUX_MACH_LIB%g |
d389acba JJ |
3287 | s%@EXTRA_SUBDIRS@%$EXTRA_SUBDIRS%g |
3288 | s%@EXTRA_SUBLIBS@%$EXTRA_SUBLIBS%g | |
fa4a16a1 | 3289 | s%@subdirs@%$subdirs%g |
2efbc2a7 JJ |
3290 | |
3291 | CEOF | |
3292 | EOF | |
3293 | ||
3294 | cat >> $CONFIG_STATUS <<\EOF | |
3295 | ||
3296 | # Split the substitutions into bite-sized pieces for seds with | |
3297 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
786ab12c | 3298 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
2efbc2a7 JJ |
3299 | ac_file=1 # Number of current file. |
3300 | ac_beg=1 # First line for current file. | |
3301 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
3302 | ac_more_lines=: | |
3303 | ac_sed_cmds="" | |
3304 | while $ac_more_lines; do | |
3305 | if test $ac_beg -gt 1; then | |
3306 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
3307 | else | |
3308 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
3309 | fi | |
3310 | if test ! -s conftest.s$ac_file; then | |
3311 | ac_more_lines=false | |
3312 | rm -f conftest.s$ac_file | |
3313 | else | |
3314 | if test -z "$ac_sed_cmds"; then | |
3315 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
3316 | else | |
3317 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
3318 | fi | |
3319 | ac_file=`expr $ac_file + 1` | |
3320 | ac_beg=$ac_end | |
3321 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3322 | fi | |
3323 | done | |
3324 | if test -z "$ac_sed_cmds"; then | |
3325 | ac_sed_cmds=cat | |
3326 | fi | |
3327 | EOF | |
3328 | ||
3329 | cat >> $CONFIG_STATUS <<EOF | |
3330 | ||
b359e82c | 3331 | CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile net/Makefile stdlib/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile"} |
2efbc2a7 JJ |
3332 | EOF |
3333 | cat >> $CONFIG_STATUS <<\EOF | |
3334 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
3335 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3336 | case "$ac_file" in | |
3337 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3338 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3339 | *) ac_file_in="${ac_file}.in" ;; | |
3340 | esac | |
3341 | ||
3342 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
3343 | ||
3344 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3345 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3346 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3347 | # The file is in a subdirectory. | |
3348 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3349 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3350 | # A "../" for each directory in $ac_dir_suffix. | |
3351 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3352 | else | |
3353 | ac_dir_suffix= ac_dots= | |
3354 | fi | |
3355 | ||
3356 | case "$ac_given_srcdir" in | |
3357 | .) srcdir=. | |
3358 | if test -z "$ac_dots"; then top_srcdir=. | |
3359 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3360 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3361 | *) # Relative path. | |
3362 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3363 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3364 | esac | |
3365 | ||
3366 | case "$ac_given_INSTALL" in | |
3367 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3368 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3369 | esac | |
3370 | ||
3371 | echo creating "$ac_file" | |
3372 | rm -f "$ac_file" | |
3373 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3374 | case "$ac_file" in | |
3375 | *Makefile*) ac_comsub="1i\\ | |
3376 | # $configure_input" ;; | |
3377 | *) ac_comsub= ;; | |
3378 | esac | |
3379 | ||
3380 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3381 | sed -e "$ac_comsub | |
3382 | s%@configure_input@%$configure_input%g | |
3383 | s%@srcdir@%$srcdir%g | |
3384 | s%@top_srcdir@%$top_srcdir%g | |
3385 | s%@INSTALL@%$INSTALL%g | |
3386 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
3387 | fi; done | |
3388 | rm -f conftest.s* | |
3389 | ||
3390 | EOF | |
3391 | cat >> $CONFIG_STATUS <<EOF | |
3392 | ||
3393 | EOF | |
3394 | cat >> $CONFIG_STATUS <<\EOF | |
3395 | ||
3396 | exit 0 | |
3397 | EOF | |
3398 | chmod +x $CONFIG_STATUS | |
3399 | rm -fr confdefs* $ac_clean_files | |
3400 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
3401 | ||
fa4a16a1 JJ |
3402 | if test "$no_recursion" != yes; then |
3403 | ||
3404 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
3405 | ac_sub_configure_args= | |
3406 | ac_prev= | |
3407 | for ac_arg in $ac_configure_args; do | |
3408 | if test -n "$ac_prev"; then | |
3409 | ac_prev= | |
3410 | continue | |
3411 | fi | |
3412 | case "$ac_arg" in | |
3413 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
3414 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
3415 | ac_prev=cache_file ;; | |
3416 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3417 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3418 | ;; | |
3419 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
3420 | ac_prev=srcdir ;; | |
3421 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3422 | ;; | |
3423 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
3424 | esac | |
3425 | done | |
3426 | ||
d389acba | 3427 | for ac_config_dir in machine $EXTRA_CONFIG_DIRS; do |
fa4a16a1 JJ |
3428 | |
3429 | # Do not complain, so a configure script can configure whichever | |
3430 | # parts of a large source tree are present. | |
3431 | if test ! -d $srcdir/$ac_config_dir; then | |
3432 | continue | |
3433 | fi | |
3434 | ||
3435 | echo configuring in $ac_config_dir | |
3436 | ||
3437 | case "$srcdir" in | |
3438 | .) ;; | |
3439 | *) | |
3440 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
3441 | else | |
3442 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
3443 | fi | |
3444 | ;; | |
3445 | esac | |
3446 | ||
3447 | ac_popdir=`pwd` | |
3448 | cd $ac_config_dir | |
3449 | ||
3450 | # A "../" for each directory in /$ac_config_dir. | |
3451 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
3452 | ||
3453 | case "$srcdir" in | |
3454 | .) # No --srcdir option. We are building in place. | |
3455 | ac_sub_srcdir=$srcdir ;; | |
3456 | /*) # Absolute path. | |
3457 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
3458 | *) # Relative path. | |
3459 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
3460 | esac | |
3461 | ||
3462 | # Check for guested configure; otherwise get Cygnus style configure. | |
3463 | if test -f $ac_sub_srcdir/configure; then | |
3464 | ac_sub_configure=$ac_sub_srcdir/configure | |
3465 | elif test -f $ac_sub_srcdir/configure.in; then | |
3466 | ac_sub_configure=$ac_configure | |
3467 | else | |
3468 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
3469 | ac_sub_configure= | |
3470 | fi | |
3471 | ||
3472 | # The recursion is here. | |
3473 | if test -n "$ac_sub_configure"; then | |
3474 | ||
3475 | # Make the cache file name correct relative to the subdirectory. | |
3476 | case "$cache_file" in | |
3477 | /*) ac_sub_cache_file=$cache_file ;; | |
3478 | *) # Relative path. | |
3479 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
3480 | esac | |
3481 | case "$ac_given_INSTALL" in | |
3482 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3483 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3484 | esac | |
3485 | ||
3486 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
3487 | # The eval makes quoting arguments work. | |
3488 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
3489 | then : | |
3490 | else | |
3491 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
3492 | fi | |
3493 | fi | |
3494 | ||
3495 | cd $ac_popdir | |
3496 | done | |
3497 | fi | |
3498 |