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 | --with-target-subdir=DIR" |
---|
16 | ac_help="$ac_help |
---|
17 | --with-cross-host=HOST host (cygnus)" |
---|
18 | ac_help="$ac_help |
---|
19 | --enable-gmake-print-directory enable GNU Make's print directory" |
---|
20 | ac_help="$ac_help |
---|
21 | --enable-multiprocessing enable multiprocessing interface" |
---|
22 | ac_help="$ac_help |
---|
23 | --enable-posix enable posix interface" |
---|
24 | ac_help="$ac_help |
---|
25 | --enable-networking enable TCP/IP stack" |
---|
26 | ac_help="$ac_help |
---|
27 | --enable-rdbg enable remote debugger" |
---|
28 | ac_help="$ac_help |
---|
29 | --enable-rtems-inlines enable RTEMS inline functions |
---|
30 | (default:enabled, disable to use macros)" |
---|
31 | ac_help="$ac_help |
---|
32 | --enable-cxx enable C++ support, |
---|
33 | and build the rtems++ library" |
---|
34 | ac_help="$ac_help |
---|
35 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
36 | ac_help="$ac_help |
---|
37 | --enable-libcdir=directory set the directory for the C library" |
---|
38 | ac_help="$ac_help |
---|
39 | --enable-bare-cpu-cflags specify a particular cpu cflag |
---|
40 | (bare bsp specific)" |
---|
41 | ac_help="$ac_help |
---|
42 | --enable-bare-cpu-model specify a particular cpu model |
---|
43 | (bare bsp specific)" |
---|
44 | ac_help="$ac_help |
---|
45 | \ |
---|
46 | --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build" |
---|
47 | ac_help="$ac_help |
---|
48 | --enable-tests enable tests (default:disabled)" |
---|
49 | ac_help="$ac_help |
---|
50 | \ |
---|
51 | --enable-hwapi enable hardware API library" |
---|
52 | |
---|
53 | # Initialize some variables set by options. |
---|
54 | # The variables have the same names as the options, with |
---|
55 | # dashes changed to underlines. |
---|
56 | build=NONE |
---|
57 | cache_file=./config.cache |
---|
58 | exec_prefix=NONE |
---|
59 | host=NONE |
---|
60 | no_create= |
---|
61 | nonopt=NONE |
---|
62 | no_recursion= |
---|
63 | prefix=NONE |
---|
64 | program_prefix=NONE |
---|
65 | program_suffix=NONE |
---|
66 | program_transform_name=s,x,x, |
---|
67 | silent= |
---|
68 | site= |
---|
69 | srcdir= |
---|
70 | target=NONE |
---|
71 | verbose= |
---|
72 | x_includes=NONE |
---|
73 | x_libraries=NONE |
---|
74 | bindir='${exec_prefix}/bin' |
---|
75 | sbindir='${exec_prefix}/sbin' |
---|
76 | libexecdir='${exec_prefix}/libexec' |
---|
77 | datadir='${prefix}/share' |
---|
78 | sysconfdir='${prefix}/etc' |
---|
79 | sharedstatedir='${prefix}/com' |
---|
80 | localstatedir='${prefix}/var' |
---|
81 | libdir='${exec_prefix}/lib' |
---|
82 | includedir='${prefix}/include' |
---|
83 | oldincludedir='/usr/include' |
---|
84 | infodir='${prefix}/info' |
---|
85 | mandir='${prefix}/man' |
---|
86 | |
---|
87 | # Initialize some other variables. |
---|
88 | subdirs= |
---|
89 | MFLAGS= MAKEFLAGS= |
---|
90 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
91 | # Maximum number of lines to put in a shell here document. |
---|
92 | ac_max_here_lines=12 |
---|
93 | |
---|
94 | ac_prev= |
---|
95 | for ac_option |
---|
96 | do |
---|
97 | |
---|
98 | # If the previous option needs an argument, assign it. |
---|
99 | if test -n "$ac_prev"; then |
---|
100 | eval "$ac_prev=\$ac_option" |
---|
101 | ac_prev= |
---|
102 | continue |
---|
103 | fi |
---|
104 | |
---|
105 | case "$ac_option" in |
---|
106 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
107 | *) ac_optarg= ;; |
---|
108 | esac |
---|
109 | |
---|
110 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
111 | |
---|
112 | case "$ac_option" in |
---|
113 | |
---|
114 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
115 | ac_prev=bindir ;; |
---|
116 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
117 | bindir="$ac_optarg" ;; |
---|
118 | |
---|
119 | -build | --build | --buil | --bui | --bu) |
---|
120 | ac_prev=build ;; |
---|
121 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
122 | build="$ac_optarg" ;; |
---|
123 | |
---|
124 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
125 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
126 | ac_prev=cache_file ;; |
---|
127 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
128 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
129 | cache_file="$ac_optarg" ;; |
---|
130 | |
---|
131 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
132 | ac_prev=datadir ;; |
---|
133 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
134 | | --da=*) |
---|
135 | datadir="$ac_optarg" ;; |
---|
136 | |
---|
137 | -disable-* | --disable-*) |
---|
138 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
139 | # Reject names that are not valid shell variable names. |
---|
140 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
142 | fi |
---|
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
144 | eval "enable_${ac_feature}=no" ;; |
---|
145 | |
---|
146 | -enable-* | --enable-*) |
---|
147 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
148 | # Reject names that are not valid shell variable names. |
---|
149 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
150 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
151 | fi |
---|
152 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
153 | case "$ac_option" in |
---|
154 | *=*) ;; |
---|
155 | *) ac_optarg=yes ;; |
---|
156 | esac |
---|
157 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
158 | |
---|
159 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
160 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
161 | | --exec | --exe | --ex) |
---|
162 | ac_prev=exec_prefix ;; |
---|
163 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
164 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
165 | | --exec=* | --exe=* | --ex=*) |
---|
166 | exec_prefix="$ac_optarg" ;; |
---|
167 | |
---|
168 | -gas | --gas | --ga | --g) |
---|
169 | # Obsolete; use --with-gas. |
---|
170 | with_gas=yes ;; |
---|
171 | |
---|
172 | -help | --help | --hel | --he) |
---|
173 | # Omit some internal or obsolete options to make the list less imposing. |
---|
174 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
175 | cat << EOF |
---|
176 | Usage: configure [options] [host] |
---|
177 | Options: [defaults in brackets after descriptions] |
---|
178 | Configuration: |
---|
179 | --cache-file=FILE cache test results in FILE |
---|
180 | --help print this message |
---|
181 | --no-create do not create output files |
---|
182 | --quiet, --silent do not print \`checking...' messages |
---|
183 | --version print the version of autoconf that created configure |
---|
184 | Directory and file names: |
---|
185 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
186 | [$ac_default_prefix] |
---|
187 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
188 | [same as prefix] |
---|
189 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
190 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
191 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
192 | --datadir=DIR read-only architecture-independent data in DIR |
---|
193 | [PREFIX/share] |
---|
194 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
195 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
196 | [PREFIX/com] |
---|
197 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
198 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
199 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
200 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
201 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
202 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
203 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
204 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
205 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
206 | --program-transform-name=PROGRAM |
---|
207 | run sed PROGRAM on installed program names |
---|
208 | EOF |
---|
209 | cat << EOF |
---|
210 | Host type: |
---|
211 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
212 | --host=HOST configure for HOST [guessed] |
---|
213 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
214 | Features and packages: |
---|
215 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
216 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
217 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
218 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
219 | --x-includes=DIR X include files are in DIR |
---|
220 | --x-libraries=DIR X library files are in DIR |
---|
221 | EOF |
---|
222 | if test -n "$ac_help"; then |
---|
223 | echo "--enable and --with options recognized:$ac_help" |
---|
224 | fi |
---|
225 | exit 0 ;; |
---|
226 | |
---|
227 | -host | --host | --hos | --ho) |
---|
228 | ac_prev=host ;; |
---|
229 | -host=* | --host=* | --hos=* | --ho=*) |
---|
230 | host="$ac_optarg" ;; |
---|
231 | |
---|
232 | -includedir | --includedir | --includedi | --included | --include \ |
---|
233 | | --includ | --inclu | --incl | --inc) |
---|
234 | ac_prev=includedir ;; |
---|
235 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
236 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
237 | includedir="$ac_optarg" ;; |
---|
238 | |
---|
239 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
240 | ac_prev=infodir ;; |
---|
241 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
242 | infodir="$ac_optarg" ;; |
---|
243 | |
---|
244 | -libdir | --libdir | --libdi | --libd) |
---|
245 | ac_prev=libdir ;; |
---|
246 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
247 | libdir="$ac_optarg" ;; |
---|
248 | |
---|
249 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
250 | | --libexe | --libex | --libe) |
---|
251 | ac_prev=libexecdir ;; |
---|
252 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
253 | | --libexe=* | --libex=* | --libe=*) |
---|
254 | libexecdir="$ac_optarg" ;; |
---|
255 | |
---|
256 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
257 | | --localstate | --localstat | --localsta | --localst \ |
---|
258 | | --locals | --local | --loca | --loc | --lo) |
---|
259 | ac_prev=localstatedir ;; |
---|
260 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
261 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
262 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
263 | localstatedir="$ac_optarg" ;; |
---|
264 | |
---|
265 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
266 | ac_prev=mandir ;; |
---|
267 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
268 | mandir="$ac_optarg" ;; |
---|
269 | |
---|
270 | -nfp | --nfp | --nf) |
---|
271 | # Obsolete; use --without-fp. |
---|
272 | with_fp=no ;; |
---|
273 | |
---|
274 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
275 | | --no-cr | --no-c) |
---|
276 | no_create=yes ;; |
---|
277 | |
---|
278 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
279 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
280 | no_recursion=yes ;; |
---|
281 | |
---|
282 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
283 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
284 | | --oldin | --oldi | --old | --ol | --o) |
---|
285 | ac_prev=oldincludedir ;; |
---|
286 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
287 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
288 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
289 | oldincludedir="$ac_optarg" ;; |
---|
290 | |
---|
291 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
292 | ac_prev=prefix ;; |
---|
293 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
294 | prefix="$ac_optarg" ;; |
---|
295 | |
---|
296 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
297 | | --program-pre | --program-pr | --program-p) |
---|
298 | ac_prev=program_prefix ;; |
---|
299 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
300 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
301 | program_prefix="$ac_optarg" ;; |
---|
302 | |
---|
303 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
304 | | --program-suf | --program-su | --program-s) |
---|
305 | ac_prev=program_suffix ;; |
---|
306 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
307 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
308 | program_suffix="$ac_optarg" ;; |
---|
309 | |
---|
310 | -program-transform-name | --program-transform-name \ |
---|
311 | | --program-transform-nam | --program-transform-na \ |
---|
312 | | --program-transform-n | --program-transform- \ |
---|
313 | | --program-transform | --program-transfor \ |
---|
314 | | --program-transfo | --program-transf \ |
---|
315 | | --program-trans | --program-tran \ |
---|
316 | | --progr-tra | --program-tr | --program-t) |
---|
317 | ac_prev=program_transform_name ;; |
---|
318 | -program-transform-name=* | --program-transform-name=* \ |
---|
319 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
320 | | --program-transform-n=* | --program-transform-=* \ |
---|
321 | | --program-transform=* | --program-transfor=* \ |
---|
322 | | --program-transfo=* | --program-transf=* \ |
---|
323 | | --program-trans=* | --program-tran=* \ |
---|
324 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
325 | program_transform_name="$ac_optarg" ;; |
---|
326 | |
---|
327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
328 | | -silent | --silent | --silen | --sile | --sil) |
---|
329 | silent=yes ;; |
---|
330 | |
---|
331 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
332 | ac_prev=sbindir ;; |
---|
333 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
334 | | --sbi=* | --sb=*) |
---|
335 | sbindir="$ac_optarg" ;; |
---|
336 | |
---|
337 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
338 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
339 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
340 | | --sha | --sh) |
---|
341 | ac_prev=sharedstatedir ;; |
---|
342 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
343 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
344 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
345 | | --sha=* | --sh=*) |
---|
346 | sharedstatedir="$ac_optarg" ;; |
---|
347 | |
---|
348 | -site | --site | --sit) |
---|
349 | ac_prev=site ;; |
---|
350 | -site=* | --site=* | --sit=*) |
---|
351 | site="$ac_optarg" ;; |
---|
352 | |
---|
353 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
354 | ac_prev=srcdir ;; |
---|
355 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
356 | srcdir="$ac_optarg" ;; |
---|
357 | |
---|
358 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
359 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
360 | ac_prev=sysconfdir ;; |
---|
361 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
362 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
363 | sysconfdir="$ac_optarg" ;; |
---|
364 | |
---|
365 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
366 | ac_prev=target ;; |
---|
367 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
368 | target="$ac_optarg" ;; |
---|
369 | |
---|
370 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
371 | verbose=yes ;; |
---|
372 | |
---|
373 | -version | --version | --versio | --versi | --vers) |
---|
374 | echo "configure generated by autoconf version 2.13" |
---|
375 | exit 0 ;; |
---|
376 | |
---|
377 | -with-* | --with-*) |
---|
378 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
379 | # Reject names that are not valid shell variable names. |
---|
380 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
381 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
382 | fi |
---|
383 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
384 | case "$ac_option" in |
---|
385 | *=*) ;; |
---|
386 | *) ac_optarg=yes ;; |
---|
387 | esac |
---|
388 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
389 | |
---|
390 | -without-* | --without-*) |
---|
391 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
392 | # Reject names that are not valid shell variable names. |
---|
393 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
394 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
395 | fi |
---|
396 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
397 | eval "with_${ac_package}=no" ;; |
---|
398 | |
---|
399 | --x) |
---|
400 | # Obsolete; use --with-x. |
---|
401 | with_x=yes ;; |
---|
402 | |
---|
403 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
404 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
405 | ac_prev=x_includes ;; |
---|
406 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
407 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
408 | x_includes="$ac_optarg" ;; |
---|
409 | |
---|
410 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
411 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
412 | ac_prev=x_libraries ;; |
---|
413 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
414 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
415 | x_libraries="$ac_optarg" ;; |
---|
416 | |
---|
417 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
418 | ;; |
---|
419 | |
---|
420 | *) |
---|
421 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
422 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
423 | fi |
---|
424 | if test "x$nonopt" != xNONE; then |
---|
425 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
426 | fi |
---|
427 | nonopt="$ac_option" |
---|
428 | ;; |
---|
429 | |
---|
430 | esac |
---|
431 | done |
---|
432 | |
---|
433 | if test -n "$ac_prev"; then |
---|
434 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
435 | fi |
---|
436 | |
---|
437 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
438 | |
---|
439 | # File descriptor usage: |
---|
440 | # 0 standard input |
---|
441 | # 1 file creation |
---|
442 | # 2 errors and warnings |
---|
443 | # 3 some systems may open it to /dev/tty |
---|
444 | # 4 used on the Kubota Titan |
---|
445 | # 6 checking for... messages and results |
---|
446 | # 5 compiler messages saved in config.log |
---|
447 | if test "$silent" = yes; then |
---|
448 | exec 6>/dev/null |
---|
449 | else |
---|
450 | exec 6>&1 |
---|
451 | fi |
---|
452 | exec 5>./config.log |
---|
453 | |
---|
454 | echo "\ |
---|
455 | This file contains any messages produced by compilers while |
---|
456 | running configure, to aid debugging if configure makes a mistake. |
---|
457 | " 1>&5 |
---|
458 | |
---|
459 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
460 | # Also quote any args containing shell metacharacters. |
---|
461 | ac_configure_args= |
---|
462 | for ac_arg |
---|
463 | do |
---|
464 | case "$ac_arg" in |
---|
465 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
466 | | --no-cr | --no-c) ;; |
---|
467 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
468 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
469 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
470 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
471 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
472 | esac |
---|
473 | done |
---|
474 | |
---|
475 | # NLS nuisances. |
---|
476 | # Only set these to C if already set. These must not be set unconditionally |
---|
477 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
478 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
479 | # Non-C LC_CTYPE values break the ctype check. |
---|
480 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
481 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
482 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
483 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
484 | |
---|
485 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
486 | rm -rf conftest* confdefs.h |
---|
487 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
488 | echo > confdefs.h |
---|
489 | |
---|
490 | # A filename unique to this package, relative to the directory that |
---|
491 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
492 | ac_unique_file=README |
---|
493 | |
---|
494 | # Find the source files, if location was not specified. |
---|
495 | if test -z "$srcdir"; then |
---|
496 | ac_srcdir_defaulted=yes |
---|
497 | # Try the directory containing this script, then its parent. |
---|
498 | ac_prog=$0 |
---|
499 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
500 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
501 | srcdir=$ac_confdir |
---|
502 | if test ! -r $srcdir/$ac_unique_file; then |
---|
503 | srcdir=.. |
---|
504 | fi |
---|
505 | else |
---|
506 | ac_srcdir_defaulted=no |
---|
507 | fi |
---|
508 | if test ! -r $srcdir/$ac_unique_file; then |
---|
509 | if test "$ac_srcdir_defaulted" = yes; then |
---|
510 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
511 | else |
---|
512 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
513 | fi |
---|
514 | fi |
---|
515 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
516 | |
---|
517 | # Prefer explicitly selected file to automatically selected ones. |
---|
518 | if test -z "$CONFIG_SITE"; then |
---|
519 | if test "x$prefix" != xNONE; then |
---|
520 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
521 | else |
---|
522 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
523 | fi |
---|
524 | fi |
---|
525 | for ac_site_file in $CONFIG_SITE; do |
---|
526 | if test -r "$ac_site_file"; then |
---|
527 | echo "loading site script $ac_site_file" |
---|
528 | . "$ac_site_file" |
---|
529 | fi |
---|
530 | done |
---|
531 | |
---|
532 | if test -r "$cache_file"; then |
---|
533 | echo "loading cache $cache_file" |
---|
534 | . $cache_file |
---|
535 | else |
---|
536 | echo "creating cache $cache_file" |
---|
537 | > $cache_file |
---|
538 | fi |
---|
539 | |
---|
540 | ac_ext=c |
---|
541 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
542 | ac_cpp='$CPP $CPPFLAGS' |
---|
543 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
544 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
545 | cross_compiling=$ac_cv_prog_cc_cross |
---|
546 | |
---|
547 | ac_exeext= |
---|
548 | ac_objext=o |
---|
549 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
550 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
551 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
552 | ac_n= ac_c=' |
---|
553 | ' ac_t=' ' |
---|
554 | else |
---|
555 | ac_n=-n ac_c= ac_t= |
---|
556 | fi |
---|
557 | else |
---|
558 | ac_n= ac_c='\c' ac_t= |
---|
559 | fi |
---|
560 | |
---|
561 | |
---|
562 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
563 | if test "${with_target_subdir+set}" = set; then |
---|
564 | withval="$with_target_subdir" |
---|
565 | TARGET_SUBDIR="$withval" |
---|
566 | else |
---|
567 | TARGET_SUBDIR="." |
---|
568 | fi |
---|
569 | |
---|
570 | |
---|
571 | RTEMS_TOPdir="."; |
---|
572 | |
---|
573 | |
---|
574 | PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; |
---|
575 | test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.." |
---|
576 | |
---|
577 | |
---|
578 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
579 | echo "configure:580: checking for RTEMS Version" >&5 |
---|
580 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
581 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
582 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
583 | else |
---|
584 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
585 | fi |
---|
586 | if test -z "$RTEMS_VERSION"; then |
---|
587 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
588 | fi |
---|
589 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
590 | |
---|
591 | RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir; |
---|
592 | |
---|
593 | |
---|
594 | |
---|
595 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
596 | echo "configure:597: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
597 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
598 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
599 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
600 | else |
---|
601 | cat > conftestmake <<\EOF |
---|
602 | all: |
---|
603 | @echo 'ac_maketemp="${MAKE}"' |
---|
604 | EOF |
---|
605 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
606 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
607 | if test -n "$ac_maketemp"; then |
---|
608 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
609 | else |
---|
610 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
611 | fi |
---|
612 | rm -f conftestmake |
---|
613 | fi |
---|
614 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
615 | echo "$ac_t""yes" 1>&6 |
---|
616 | SET_MAKE= |
---|
617 | else |
---|
618 | echo "$ac_t""no" 1>&6 |
---|
619 | SET_MAKE="MAKE=${MAKE-make}" |
---|
620 | fi |
---|
621 | |
---|
622 | ac_aux_dir= |
---|
623 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
624 | if test -f $ac_dir/install-sh; then |
---|
625 | ac_aux_dir=$ac_dir |
---|
626 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
627 | break |
---|
628 | elif test -f $ac_dir/install.sh; then |
---|
629 | ac_aux_dir=$ac_dir |
---|
630 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
631 | break |
---|
632 | fi |
---|
633 | done |
---|
634 | if test -z "$ac_aux_dir"; then |
---|
635 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
636 | fi |
---|
637 | ac_config_guess=$ac_aux_dir/config.guess |
---|
638 | ac_config_sub=$ac_aux_dir/config.sub |
---|
639 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
640 | |
---|
641 | |
---|
642 | # Do some error checking and defaulting for the host and target type. |
---|
643 | # The inputs are: |
---|
644 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
645 | # |
---|
646 | # The rules are: |
---|
647 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
648 | # same time. |
---|
649 | # 2. Host defaults to nonopt. |
---|
650 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
651 | # as determined by config.guess. |
---|
652 | # 4. Target and build default to nonopt. |
---|
653 | # 5. If nonopt is not specified, then target and build default to host. |
---|
654 | |
---|
655 | # The aliases save the names the user supplied, while $host etc. |
---|
656 | # will get canonicalized. |
---|
657 | case $host---$target---$nonopt in |
---|
658 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
659 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
660 | esac |
---|
661 | |
---|
662 | |
---|
663 | # Make sure we can run config.sub. |
---|
664 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
665 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
666 | fi |
---|
667 | |
---|
668 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
669 | echo "configure:670: checking host system type" >&5 |
---|
670 | |
---|
671 | host_alias=$host |
---|
672 | case "$host_alias" in |
---|
673 | NONE) |
---|
674 | case $nonopt in |
---|
675 | NONE) |
---|
676 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
677 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
678 | fi ;; |
---|
679 | *) host_alias=$nonopt ;; |
---|
680 | esac ;; |
---|
681 | esac |
---|
682 | |
---|
683 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
684 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
685 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
686 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
687 | echo "$ac_t""$host" 1>&6 |
---|
688 | |
---|
689 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
690 | echo "configure:691: checking target system type" >&5 |
---|
691 | |
---|
692 | target_alias=$target |
---|
693 | case "$target_alias" in |
---|
694 | NONE) |
---|
695 | case $nonopt in |
---|
696 | NONE) target_alias=$host_alias ;; |
---|
697 | *) target_alias=$nonopt ;; |
---|
698 | esac ;; |
---|
699 | esac |
---|
700 | |
---|
701 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
702 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
703 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
704 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
705 | echo "$ac_t""$target" 1>&6 |
---|
706 | |
---|
707 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
708 | echo "configure:709: checking build system type" >&5 |
---|
709 | |
---|
710 | build_alias=$build |
---|
711 | case "$build_alias" in |
---|
712 | NONE) |
---|
713 | case $nonopt in |
---|
714 | NONE) build_alias=$host_alias ;; |
---|
715 | *) build_alias=$nonopt ;; |
---|
716 | esac ;; |
---|
717 | esac |
---|
718 | |
---|
719 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
720 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
721 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
722 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
723 | echo "$ac_t""$build" 1>&6 |
---|
724 | |
---|
725 | test "$host_alias" != "$target_alias" && |
---|
726 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
727 | NONENONEs,x,x, && |
---|
728 | program_prefix=${target_alias}- |
---|
729 | |
---|
730 | |
---|
731 | # Check whether --with-cross-host or --without-cross-host was given. |
---|
732 | if test "${with_cross_host+set}" = set; then |
---|
733 | withval="$with_cross_host" |
---|
734 | \ |
---|
735 | host=$withval |
---|
736 | fi |
---|
737 | |
---|
738 | |
---|
739 | |
---|
740 | # Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given. |
---|
741 | if test "${enable_gmake_print_directory+set}" = set; then |
---|
742 | enableval="$enable_gmake_print_directory" |
---|
743 | case "${enableval}" in |
---|
744 | yes) RTEMS_USE_OWN_PDIR=no ;; |
---|
745 | no) RTEMS_USE_OWN_PDIR=yes ;; |
---|
746 | *) { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } |
---|
747 | ;; |
---|
748 | esac |
---|
749 | else |
---|
750 | RTEMS_USE_OWN_PDIR=yes |
---|
751 | fi |
---|
752 | |
---|
753 | |
---|
754 | |
---|
755 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
756 | if test "${enable_multiprocessing+set}" = set; then |
---|
757 | enableval="$enable_multiprocessing" |
---|
758 | case "${enableval}" in |
---|
759 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
760 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
761 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
762 | esac |
---|
763 | else |
---|
764 | RTEMS_HAS_MULTIPROCESSING=no |
---|
765 | fi |
---|
766 | |
---|
767 | |
---|
768 | |
---|
769 | # Check whether --enable-posix or --disable-posix was given. |
---|
770 | if test "${enable_posix+set}" = set; then |
---|
771 | enableval="$enable_posix" |
---|
772 | case "${enableval}" in |
---|
773 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
774 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
775 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
776 | esac |
---|
777 | else |
---|
778 | RTEMS_HAS_POSIX_API=yes |
---|
779 | fi |
---|
780 | |
---|
781 | |
---|
782 | |
---|
783 | case "${target}" in |
---|
784 | # hpux unix port should go here |
---|
785 | i[3456]86-go32-rtems*) |
---|
786 | RTEMS_HAS_POSIX_API=no |
---|
787 | ;; |
---|
788 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
789 | RTEMS_HAS_POSIX_API=no |
---|
790 | ;; |
---|
791 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
792 | RTEMS_HAS_POSIX_API=no |
---|
793 | ;; |
---|
794 | no_cpu-*rtems*) |
---|
795 | RTEMS_HAS_POSIX_API=no |
---|
796 | ;; |
---|
797 | sparc-sun-solaris*) # unix "simulator" port |
---|
798 | RTEMS_HAS_POSIX_API=no |
---|
799 | ;; |
---|
800 | *) |
---|
801 | ;; |
---|
802 | esac |
---|
803 | |
---|
804 | |
---|
805 | |
---|
806 | # Check whether --enable-networking or --disable-networking was given. |
---|
807 | if test "${enable_networking+set}" = set; then |
---|
808 | enableval="$enable_networking" |
---|
809 | case "${enableval}" in |
---|
810 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
811 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
812 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
813 | esac |
---|
814 | else |
---|
815 | RTEMS_HAS_NETWORKING=yes |
---|
816 | fi |
---|
817 | |
---|
818 | |
---|
819 | |
---|
820 | # Check whether --enable-rdbg or --disable-rdbg was given. |
---|
821 | if test "${enable_rdbg+set}" = set; then |
---|
822 | enableval="$enable_rdbg" |
---|
823 | case "${enableval}" in |
---|
824 | yes) RTEMS_HAS_RDBG=yes ;; |
---|
825 | no) RTEMS_HAS_RDBG=no ;; |
---|
826 | *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;; |
---|
827 | esac |
---|
828 | else |
---|
829 | RTEMS_HAS_RDBG=no |
---|
830 | fi |
---|
831 | |
---|
832 | |
---|
833 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
834 | if test "${enable_rtems_inlines+set}" = set; then |
---|
835 | enableval="$enable_rtems_inlines" |
---|
836 | case "${enableval}" in |
---|
837 | yes) RTEMS_USE_MACROS=no ;; |
---|
838 | no) RTEMS_USE_MACROS=yes ;; |
---|
839 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
840 | esac |
---|
841 | else |
---|
842 | RTEMS_USE_MACROS=no |
---|
843 | fi |
---|
844 | |
---|
845 | |
---|
846 | |
---|
847 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
848 | if test "${enable_cxx+set}" = set; then |
---|
849 | enableval="$enable_cxx" |
---|
850 | case "${enableval}" in |
---|
851 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
852 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
853 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
854 | esac |
---|
855 | else |
---|
856 | RTEMS_HAS_CPLUSPLUS=no |
---|
857 | fi |
---|
858 | |
---|
859 | |
---|
860 | |
---|
861 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
862 | if test "${enable_gcc28+set}" = set; then |
---|
863 | enableval="$enable_gcc28" |
---|
864 | case "${enableval}" in |
---|
865 | yes) RTEMS_USE_GCC272=no ;; |
---|
866 | no) RTEMS_USE_GCC272=yes ;; |
---|
867 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
868 | esac |
---|
869 | else |
---|
870 | RTEMS_USE_GCC272=no |
---|
871 | fi |
---|
872 | |
---|
873 | |
---|
874 | |
---|
875 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
876 | if test "${enable_libcdir+set}" = set; then |
---|
877 | enableval="$enable_libcdir" |
---|
878 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
879 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
880 | fi |
---|
881 | |
---|
882 | |
---|
883 | |
---|
884 | # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given. |
---|
885 | if test "${enable_bare_cpu_cflags+set}" = set; then |
---|
886 | enableval="$enable_bare_cpu_cflags" |
---|
887 | case "${enableval}" in |
---|
888 | no) BARE_CPU_CFLAGS="" ;; |
---|
889 | *) BARE_CPU_CFLAGS="${enableval}" ;; |
---|
890 | esac |
---|
891 | else |
---|
892 | BARE_CPU_CFLAGS="" |
---|
893 | fi |
---|
894 | |
---|
895 | |
---|
896 | # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given. |
---|
897 | if test "${enable_bare_cpu_model+set}" = set; then |
---|
898 | enableval="$enable_bare_cpu_model" |
---|
899 | case "${enableval}" in |
---|
900 | no) BARE_CPU_MODEL="" ;; |
---|
901 | *) BARE_CPU_MODEL="${enableval}" ;; |
---|
902 | esac |
---|
903 | else |
---|
904 | BARE_CPU_MODEL="" |
---|
905 | fi |
---|
906 | |
---|
907 | |
---|
908 | |
---|
909 | RTEMS_PREFIX=${target_cpu}-${target_vendor} |
---|
910 | |
---|
911 | |
---|
912 | # Extract the first word of "cat", so it can be a program name with args. |
---|
913 | set dummy cat; ac_word=$2 |
---|
914 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
915 | echo "configure:916: checking for $ac_word" >&5 |
---|
916 | if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then |
---|
917 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
918 | else |
---|
919 | case "$CAT" in |
---|
920 | /*) |
---|
921 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
---|
922 | ;; |
---|
923 | ?:/*) |
---|
924 | ac_cv_path_CAT="$CAT" # Let the user override the test with a dos path. |
---|
925 | ;; |
---|
926 | *) |
---|
927 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
928 | ac_dummy="$PATH" |
---|
929 | for ac_dir in $ac_dummy; do |
---|
930 | test -z "$ac_dir" && ac_dir=. |
---|
931 | if test -f $ac_dir/$ac_word; then |
---|
932 | ac_cv_path_CAT="$ac_dir/$ac_word" |
---|
933 | break |
---|
934 | fi |
---|
935 | done |
---|
936 | IFS="$ac_save_ifs" |
---|
937 | ;; |
---|
938 | esac |
---|
939 | fi |
---|
940 | CAT="$ac_cv_path_CAT" |
---|
941 | if test -n "$CAT"; then |
---|
942 | echo "$ac_t""$CAT" 1>&6 |
---|
943 | else |
---|
944 | echo "$ac_t""no" 1>&6 |
---|
945 | fi |
---|
946 | |
---|
947 | # Extract the first word of "rm", so it can be a program name with args. |
---|
948 | set dummy rm; ac_word=$2 |
---|
949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
950 | echo "configure:951: checking for $ac_word" >&5 |
---|
951 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
---|
952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
953 | else |
---|
954 | case "$RM" in |
---|
955 | /*) |
---|
956 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
---|
957 | ;; |
---|
958 | ?:/*) |
---|
959 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
---|
960 | ;; |
---|
961 | *) |
---|
962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
963 | ac_dummy="$PATH" |
---|
964 | for ac_dir in $ac_dummy; do |
---|
965 | test -z "$ac_dir" && ac_dir=. |
---|
966 | if test -f $ac_dir/$ac_word; then |
---|
967 | ac_cv_path_RM="$ac_dir/$ac_word" |
---|
968 | break |
---|
969 | fi |
---|
970 | done |
---|
971 | IFS="$ac_save_ifs" |
---|
972 | ;; |
---|
973 | esac |
---|
974 | fi |
---|
975 | RM="$ac_cv_path_RM" |
---|
976 | if test -n "$RM"; then |
---|
977 | echo "$ac_t""$RM" 1>&6 |
---|
978 | else |
---|
979 | echo "$ac_t""no" 1>&6 |
---|
980 | fi |
---|
981 | |
---|
982 | # Extract the first word of "cp", so it can be a program name with args. |
---|
983 | set dummy cp; ac_word=$2 |
---|
984 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
985 | echo "configure:986: checking for $ac_word" >&5 |
---|
986 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
---|
987 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
988 | else |
---|
989 | case "$CP" in |
---|
990 | /*) |
---|
991 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
---|
992 | ;; |
---|
993 | ?:/*) |
---|
994 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
---|
995 | ;; |
---|
996 | *) |
---|
997 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
998 | ac_dummy="$PATH" |
---|
999 | for ac_dir in $ac_dummy; do |
---|
1000 | test -z "$ac_dir" && ac_dir=. |
---|
1001 | if test -f $ac_dir/$ac_word; then |
---|
1002 | ac_cv_path_CP="$ac_dir/$ac_word" |
---|
1003 | break |
---|
1004 | fi |
---|
1005 | done |
---|
1006 | IFS="$ac_save_ifs" |
---|
1007 | ;; |
---|
1008 | esac |
---|
1009 | fi |
---|
1010 | CP="$ac_cv_path_CP" |
---|
1011 | if test -n "$CP"; then |
---|
1012 | echo "$ac_t""$CP" 1>&6 |
---|
1013 | else |
---|
1014 | echo "$ac_t""no" 1>&6 |
---|
1015 | fi |
---|
1016 | |
---|
1017 | # Extract the first word of "mv", so it can be a program name with args. |
---|
1018 | set dummy mv; ac_word=$2 |
---|
1019 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1020 | echo "configure:1021: checking for $ac_word" >&5 |
---|
1021 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
---|
1022 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1023 | else |
---|
1024 | case "$MV" in |
---|
1025 | /*) |
---|
1026 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
---|
1027 | ;; |
---|
1028 | ?:/*) |
---|
1029 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
---|
1030 | ;; |
---|
1031 | *) |
---|
1032 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1033 | ac_dummy="$PATH" |
---|
1034 | for ac_dir in $ac_dummy; do |
---|
1035 | test -z "$ac_dir" && ac_dir=. |
---|
1036 | if test -f $ac_dir/$ac_word; then |
---|
1037 | ac_cv_path_MV="$ac_dir/$ac_word" |
---|
1038 | break |
---|
1039 | fi |
---|
1040 | done |
---|
1041 | IFS="$ac_save_ifs" |
---|
1042 | ;; |
---|
1043 | esac |
---|
1044 | fi |
---|
1045 | MV="$ac_cv_path_MV" |
---|
1046 | if test -n "$MV"; then |
---|
1047 | echo "$ac_t""$MV" 1>&6 |
---|
1048 | else |
---|
1049 | echo "$ac_t""no" 1>&6 |
---|
1050 | fi |
---|
1051 | |
---|
1052 | # Extract the first word of "ln", so it can be a program name with args. |
---|
1053 | set dummy ln; ac_word=$2 |
---|
1054 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1055 | echo "configure:1056: checking for $ac_word" >&5 |
---|
1056 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
---|
1057 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1058 | else |
---|
1059 | case "$LN" in |
---|
1060 | /*) |
---|
1061 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
---|
1062 | ;; |
---|
1063 | ?:/*) |
---|
1064 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
---|
1065 | ;; |
---|
1066 | *) |
---|
1067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1068 | ac_dummy="$PATH" |
---|
1069 | for ac_dir in $ac_dummy; do |
---|
1070 | test -z "$ac_dir" && ac_dir=. |
---|
1071 | if test -f $ac_dir/$ac_word; then |
---|
1072 | ac_cv_path_LN="$ac_dir/$ac_word" |
---|
1073 | break |
---|
1074 | fi |
---|
1075 | done |
---|
1076 | IFS="$ac_save_ifs" |
---|
1077 | ;; |
---|
1078 | esac |
---|
1079 | fi |
---|
1080 | LN="$ac_cv_path_LN" |
---|
1081 | if test -n "$LN"; then |
---|
1082 | echo "$ac_t""$LN" 1>&6 |
---|
1083 | else |
---|
1084 | echo "$ac_t""no" 1>&6 |
---|
1085 | fi |
---|
1086 | |
---|
1087 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1088 | echo "configure:1089: checking whether ln -s works" >&5 |
---|
1089 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1090 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1091 | else |
---|
1092 | rm -f conftestdata |
---|
1093 | if ln -s X conftestdata 2>/dev/null |
---|
1094 | then |
---|
1095 | rm -f conftestdata |
---|
1096 | ac_cv_prog_LN_S="ln -s" |
---|
1097 | else |
---|
1098 | ac_cv_prog_LN_S=ln |
---|
1099 | fi |
---|
1100 | fi |
---|
1101 | LN_S="$ac_cv_prog_LN_S" |
---|
1102 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1103 | echo "$ac_t""yes" 1>&6 |
---|
1104 | else |
---|
1105 | echo "$ac_t""no" 1>&6 |
---|
1106 | fi |
---|
1107 | |
---|
1108 | # Extract the first word of "chmod", so it can be a program name with args. |
---|
1109 | set dummy chmod; ac_word=$2 |
---|
1110 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1111 | echo "configure:1112: checking for $ac_word" >&5 |
---|
1112 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
---|
1113 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1114 | else |
---|
1115 | case "$CHMOD" in |
---|
1116 | /*) |
---|
1117 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
---|
1118 | ;; |
---|
1119 | ?:/*) |
---|
1120 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
---|
1121 | ;; |
---|
1122 | *) |
---|
1123 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1124 | ac_dummy="$PATH" |
---|
1125 | for ac_dir in $ac_dummy; do |
---|
1126 | test -z "$ac_dir" && ac_dir=. |
---|
1127 | if test -f $ac_dir/$ac_word; then |
---|
1128 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
---|
1129 | break |
---|
1130 | fi |
---|
1131 | done |
---|
1132 | IFS="$ac_save_ifs" |
---|
1133 | ;; |
---|
1134 | esac |
---|
1135 | fi |
---|
1136 | CHMOD="$ac_cv_path_CHMOD" |
---|
1137 | if test -n "$CHMOD"; then |
---|
1138 | echo "$ac_t""$CHMOD" 1>&6 |
---|
1139 | else |
---|
1140 | echo "$ac_t""no" 1>&6 |
---|
1141 | fi |
---|
1142 | |
---|
1143 | # Extract the first word of "sort", so it can be a program name with args. |
---|
1144 | set dummy sort; ac_word=$2 |
---|
1145 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1146 | echo "configure:1147: checking for $ac_word" >&5 |
---|
1147 | if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then |
---|
1148 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1149 | else |
---|
1150 | case "$SORT" in |
---|
1151 | /*) |
---|
1152 | ac_cv_path_SORT="$SORT" # Let the user override the test with a path. |
---|
1153 | ;; |
---|
1154 | ?:/*) |
---|
1155 | ac_cv_path_SORT="$SORT" # Let the user override the test with a dos path. |
---|
1156 | ;; |
---|
1157 | *) |
---|
1158 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1159 | ac_dummy="$PATH" |
---|
1160 | for ac_dir in $ac_dummy; do |
---|
1161 | test -z "$ac_dir" && ac_dir=. |
---|
1162 | if test -f $ac_dir/$ac_word; then |
---|
1163 | ac_cv_path_SORT="$ac_dir/$ac_word" |
---|
1164 | break |
---|
1165 | fi |
---|
1166 | done |
---|
1167 | IFS="$ac_save_ifs" |
---|
1168 | ;; |
---|
1169 | esac |
---|
1170 | fi |
---|
1171 | SORT="$ac_cv_path_SORT" |
---|
1172 | if test -n "$SORT"; then |
---|
1173 | echo "$ac_t""$SORT" 1>&6 |
---|
1174 | else |
---|
1175 | echo "$ac_t""no" 1>&6 |
---|
1176 | fi |
---|
1177 | |
---|
1178 | # Find a good install program. We prefer a C program (faster), |
---|
1179 | # so one script is as good as another. But avoid the broken or |
---|
1180 | # incompatible versions: |
---|
1181 | # SysV /etc/install, /usr/sbin/install |
---|
1182 | # SunOS /usr/etc/install |
---|
1183 | # IRIX /sbin/install |
---|
1184 | # AIX /bin/install |
---|
1185 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1186 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1187 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1188 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1189 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1190 | echo "configure:1191: checking for a BSD compatible install" >&5 |
---|
1191 | if test -z "$INSTALL"; then |
---|
1192 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1193 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1194 | else |
---|
1195 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
1196 | for ac_dir in $PATH; do |
---|
1197 | # Account for people who put trailing slashes in PATH elements. |
---|
1198 | case "$ac_dir/" in |
---|
1199 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1200 | *) |
---|
1201 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1202 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1203 | # by default. |
---|
1204 | for ac_prog in ginstall scoinst install; do |
---|
1205 | if test -f $ac_dir/$ac_prog; then |
---|
1206 | if test $ac_prog = install && |
---|
1207 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1208 | # AIX install. It has an incompatible calling convention. |
---|
1209 | : |
---|
1210 | else |
---|
1211 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1212 | break 2 |
---|
1213 | fi |
---|
1214 | fi |
---|
1215 | done |
---|
1216 | ;; |
---|
1217 | esac |
---|
1218 | done |
---|
1219 | IFS="$ac_save_IFS" |
---|
1220 | |
---|
1221 | fi |
---|
1222 | if test "${ac_cv_path_install+set}" = set; then |
---|
1223 | INSTALL="$ac_cv_path_install" |
---|
1224 | else |
---|
1225 | # As a last resort, use the slow shell script. We don't cache a |
---|
1226 | # path for INSTALL within a source directory, because that will |
---|
1227 | # break other packages using the cache if that directory is |
---|
1228 | # removed, or if the path is relative. |
---|
1229 | INSTALL="$ac_install_sh" |
---|
1230 | fi |
---|
1231 | fi |
---|
1232 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1233 | |
---|
1234 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1235 | # It thinks the first close brace ends the variable substitution. |
---|
1236 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1237 | |
---|
1238 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
1239 | |
---|
1240 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1241 | |
---|
1242 | |
---|
1243 | # Extract the first word of "perl", so it can be a program name with args. |
---|
1244 | set dummy perl; ac_word=$2 |
---|
1245 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1246 | echo "configure:1247: checking for $ac_word" >&5 |
---|
1247 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
---|
1248 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1249 | else |
---|
1250 | case "$PERL" in |
---|
1251 | /*) |
---|
1252 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
---|
1253 | ;; |
---|
1254 | ?:/*) |
---|
1255 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
---|
1256 | ;; |
---|
1257 | *) |
---|
1258 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1259 | ac_dummy="$PATH" |
---|
1260 | for ac_dir in $ac_dummy; do |
---|
1261 | test -z "$ac_dir" && ac_dir=. |
---|
1262 | if test -f $ac_dir/$ac_word; then |
---|
1263 | ac_cv_path_PERL="$ac_dir/$ac_word" |
---|
1264 | break |
---|
1265 | fi |
---|
1266 | done |
---|
1267 | IFS="$ac_save_ifs" |
---|
1268 | ;; |
---|
1269 | esac |
---|
1270 | fi |
---|
1271 | PERL="$ac_cv_path_PERL" |
---|
1272 | if test -n "$PERL"; then |
---|
1273 | echo "$ac_t""$PERL" 1>&6 |
---|
1274 | else |
---|
1275 | echo "$ac_t""no" 1>&6 |
---|
1276 | fi |
---|
1277 | |
---|
1278 | if test -z "$PERL" ; then |
---|
1279 | echo "configure: warning: *** |
---|
1280 | perl was not found |
---|
1281 | Note: Some tools will not be built." 1>&2 |
---|
1282 | fi |
---|
1283 | |
---|
1284 | |
---|
1285 | # Extract the first word of "mkdir", so it can be a program name with args. |
---|
1286 | set dummy mkdir; ac_word=$2 |
---|
1287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1288 | echo "configure:1289: checking for $ac_word" >&5 |
---|
1289 | if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then |
---|
1290 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1291 | else |
---|
1292 | case "$MKDIR" in |
---|
1293 | /*) |
---|
1294 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
---|
1295 | ;; |
---|
1296 | ?:/*) |
---|
1297 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path. |
---|
1298 | ;; |
---|
1299 | *) |
---|
1300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1301 | ac_dummy="$PATH" |
---|
1302 | for ac_dir in $ac_dummy; do |
---|
1303 | test -z "$ac_dir" && ac_dir=. |
---|
1304 | if test -f $ac_dir/$ac_word; then |
---|
1305 | ac_cv_path_MKDIR="$ac_dir/$ac_word" |
---|
1306 | break |
---|
1307 | fi |
---|
1308 | done |
---|
1309 | IFS="$ac_save_ifs" |
---|
1310 | ;; |
---|
1311 | esac |
---|
1312 | fi |
---|
1313 | MKDIR="$ac_cv_path_MKDIR" |
---|
1314 | if test -n "$MKDIR"; then |
---|
1315 | echo "$ac_t""$MKDIR" 1>&6 |
---|
1316 | else |
---|
1317 | echo "$ac_t""no" 1>&6 |
---|
1318 | fi |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6 |
---|
1324 | echo "configure:1325: checking for working $MKDIR -m 0755" >&5 |
---|
1325 | if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then |
---|
1326 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1327 | else |
---|
1328 | rm -rf conftestdata |
---|
1329 | if $MKDIR -m 0775 conftestdata 2>/dev/null; then |
---|
1330 | rtems_cv_prog_MKDIR_M="yes" |
---|
1331 | else |
---|
1332 | rtems_cv_prog_MKDIR_M="no" |
---|
1333 | fi |
---|
1334 | fi |
---|
1335 | rm -rf conftestdata |
---|
1336 | echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6 |
---|
1337 | |
---|
1338 | |
---|
1339 | |
---|
1340 | echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6 |
---|
1341 | echo "configure:1342: checking for working $MKDIR -p" >&5 |
---|
1342 | if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then |
---|
1343 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1344 | else |
---|
1345 | rm -rf conftestdata |
---|
1346 | if $MKDIR -p conftestdata 2>/dev/null ;then |
---|
1347 | rtems_cv_prog_MKDIR_P="yes" |
---|
1348 | else |
---|
1349 | rtems_cv_prog_MKDIR_P="no" |
---|
1350 | fi |
---|
1351 | fi |
---|
1352 | rm -rf conftestdata |
---|
1353 | echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6 |
---|
1354 | |
---|
1355 | test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p" |
---|
1356 | #test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755" |
---|
1357 | |
---|
1358 | # Extract the first word of "touch", so it can be a program name with args. |
---|
1359 | set dummy touch; ac_word=$2 |
---|
1360 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1361 | echo "configure:1362: checking for $ac_word" >&5 |
---|
1362 | if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then |
---|
1363 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1364 | else |
---|
1365 | case "$TOUCH" in |
---|
1366 | /*) |
---|
1367 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. |
---|
1368 | ;; |
---|
1369 | ?:/*) |
---|
1370 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a dos path. |
---|
1371 | ;; |
---|
1372 | *) |
---|
1373 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1374 | ac_dummy="$PATH" |
---|
1375 | for ac_dir in $ac_dummy; do |
---|
1376 | test -z "$ac_dir" && ac_dir=. |
---|
1377 | if test -f $ac_dir/$ac_word; then |
---|
1378 | ac_cv_path_TOUCH="$ac_dir/$ac_word" |
---|
1379 | break |
---|
1380 | fi |
---|
1381 | done |
---|
1382 | IFS="$ac_save_ifs" |
---|
1383 | ;; |
---|
1384 | esac |
---|
1385 | fi |
---|
1386 | TOUCH="$ac_cv_path_TOUCH" |
---|
1387 | if test -n "$TOUCH"; then |
---|
1388 | echo "$ac_t""$TOUCH" 1>&6 |
---|
1389 | else |
---|
1390 | echo "$ac_t""no" 1>&6 |
---|
1391 | fi |
---|
1392 | |
---|
1393 | # Extract the first word of "cmp", so it can be a program name with args. |
---|
1394 | set dummy cmp; ac_word=$2 |
---|
1395 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1396 | echo "configure:1397: checking for $ac_word" >&5 |
---|
1397 | if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then |
---|
1398 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1399 | else |
---|
1400 | case "$CMP" in |
---|
1401 | /*) |
---|
1402 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
---|
1403 | ;; |
---|
1404 | ?:/*) |
---|
1405 | ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path. |
---|
1406 | ;; |
---|
1407 | *) |
---|
1408 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1409 | ac_dummy="$PATH" |
---|
1410 | for ac_dir in $ac_dummy; do |
---|
1411 | test -z "$ac_dir" && ac_dir=. |
---|
1412 | if test -f $ac_dir/$ac_word; then |
---|
1413 | ac_cv_path_CMP="$ac_dir/$ac_word" |
---|
1414 | break |
---|
1415 | fi |
---|
1416 | done |
---|
1417 | IFS="$ac_save_ifs" |
---|
1418 | ;; |
---|
1419 | esac |
---|
1420 | fi |
---|
1421 | CMP="$ac_cv_path_CMP" |
---|
1422 | if test -n "$CMP"; then |
---|
1423 | echo "$ac_t""$CMP" 1>&6 |
---|
1424 | else |
---|
1425 | echo "$ac_t""no" 1>&6 |
---|
1426 | fi |
---|
1427 | |
---|
1428 | |
---|
1429 | # Extract the first word of "sed", so it can be a program name with args. |
---|
1430 | set dummy sed; ac_word=$2 |
---|
1431 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1432 | echo "configure:1433: checking for $ac_word" >&5 |
---|
1433 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
---|
1434 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1435 | else |
---|
1436 | case "$SED" in |
---|
1437 | /*) |
---|
1438 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
---|
1439 | ;; |
---|
1440 | ?:/*) |
---|
1441 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
---|
1442 | ;; |
---|
1443 | *) |
---|
1444 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1445 | ac_dummy="$PATH" |
---|
1446 | for ac_dir in $ac_dummy; do |
---|
1447 | test -z "$ac_dir" && ac_dir=. |
---|
1448 | if test -f $ac_dir/$ac_word; then |
---|
1449 | ac_cv_path_SED="$ac_dir/$ac_word" |
---|
1450 | break |
---|
1451 | fi |
---|
1452 | done |
---|
1453 | IFS="$ac_save_ifs" |
---|
1454 | ;; |
---|
1455 | esac |
---|
1456 | fi |
---|
1457 | SED="$ac_cv_path_SED" |
---|
1458 | if test -n "$SED"; then |
---|
1459 | echo "$ac_t""$SED" 1>&6 |
---|
1460 | else |
---|
1461 | echo "$ac_t""no" 1>&6 |
---|
1462 | fi |
---|
1463 | |
---|
1464 | for ac_prog in gm4 m4 |
---|
1465 | do |
---|
1466 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1467 | set dummy $ac_prog; ac_word=$2 |
---|
1468 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1469 | echo "configure:1470: checking for $ac_word" >&5 |
---|
1470 | if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then |
---|
1471 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1472 | else |
---|
1473 | case "$M4" in |
---|
1474 | /*) |
---|
1475 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
---|
1476 | ;; |
---|
1477 | ?:/*) |
---|
1478 | ac_cv_path_M4="$M4" # Let the user override the test with a dos path. |
---|
1479 | ;; |
---|
1480 | *) |
---|
1481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1482 | ac_dummy="$PATH" |
---|
1483 | for ac_dir in $ac_dummy; do |
---|
1484 | test -z "$ac_dir" && ac_dir=. |
---|
1485 | if test -f $ac_dir/$ac_word; then |
---|
1486 | ac_cv_path_M4="$ac_dir/$ac_word" |
---|
1487 | break |
---|
1488 | fi |
---|
1489 | done |
---|
1490 | IFS="$ac_save_ifs" |
---|
1491 | ;; |
---|
1492 | esac |
---|
1493 | fi |
---|
1494 | M4="$ac_cv_path_M4" |
---|
1495 | if test -n "$M4"; then |
---|
1496 | echo "$ac_t""$M4" 1>&6 |
---|
1497 | else |
---|
1498 | echo "$ac_t""no" 1>&6 |
---|
1499 | fi |
---|
1500 | |
---|
1501 | test -n "$M4" && break |
---|
1502 | done |
---|
1503 | |
---|
1504 | |
---|
1505 | |
---|
1506 | for ac_prog in bash ksh sh |
---|
1507 | do |
---|
1508 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1509 | set dummy $ac_prog; ac_word=$2 |
---|
1510 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1511 | echo "configure:1512: checking for $ac_word" >&5 |
---|
1512 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
---|
1513 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1514 | else |
---|
1515 | case "$KSH" in |
---|
1516 | /*) |
---|
1517 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
---|
1518 | ;; |
---|
1519 | ?:/*) |
---|
1520 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. |
---|
1521 | ;; |
---|
1522 | *) |
---|
1523 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1524 | ac_dummy="$PATH" |
---|
1525 | for ac_dir in $ac_dummy; do |
---|
1526 | test -z "$ac_dir" && ac_dir=. |
---|
1527 | if test -f $ac_dir/$ac_word; then |
---|
1528 | ac_cv_path_KSH="$ac_dir/$ac_word" |
---|
1529 | break |
---|
1530 | fi |
---|
1531 | done |
---|
1532 | IFS="$ac_save_ifs" |
---|
1533 | ;; |
---|
1534 | esac |
---|
1535 | fi |
---|
1536 | KSH="$ac_cv_path_KSH" |
---|
1537 | if test -n "$KSH"; then |
---|
1538 | echo "$ac_t""$KSH" 1>&6 |
---|
1539 | else |
---|
1540 | echo "$ac_t""no" 1>&6 |
---|
1541 | fi |
---|
1542 | |
---|
1543 | test -n "$KSH" && break |
---|
1544 | done |
---|
1545 | |
---|
1546 | if test -z "$KSH"; then |
---|
1547 | { echo "configure: error: *** |
---|
1548 | Cannot determine a usable shell bash/ksh/sh |
---|
1549 | Please contact your system administrator " 1>&2; exit 1; }; |
---|
1550 | fi |
---|
1551 | |
---|
1552 | |
---|
1553 | |
---|
1554 | |
---|
1555 | |
---|
1556 | |
---|
1557 | |
---|
1558 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
1559 | echo "configure:1560: checking rtems target cpu" >&5 |
---|
1560 | case "${target}" in |
---|
1561 | # hpux unix port should go here |
---|
1562 | i[3456]86-go32-rtems*) |
---|
1563 | target_cpu=i386 |
---|
1564 | ;; |
---|
1565 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
1566 | target_cpu=unix |
---|
1567 | ;; |
---|
1568 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1569 | target_cpu=unix |
---|
1570 | ;; |
---|
1571 | no_cpu-*rtems*) |
---|
1572 | target_cpu=no_cpu |
---|
1573 | ;; |
---|
1574 | ppc*-*rtems*) |
---|
1575 | target_cpu=powerpc |
---|
1576 | ;; |
---|
1577 | sparc-sun-solaris*) # unix "simulator" port |
---|
1578 | target_cpu=unix |
---|
1579 | ;; |
---|
1580 | *) |
---|
1581 | target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
1582 | ;; |
---|
1583 | esac |
---|
1584 | echo "$ac_t""$target_cpu" 1>&6 |
---|
1585 | |
---|
1586 | |
---|
1587 | |
---|
1588 | # Is this a supported CPU? |
---|
1589 | echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6 |
---|
1590 | echo "configure:1591: checking if cpu $target_cpu is supported" >&5 |
---|
1591 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then |
---|
1592 | echo "$ac_t""yes" 1>&6 |
---|
1593 | else |
---|
1594 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
1595 | fi |
---|
1596 | |
---|
1597 | |
---|
1598 | RTEMS_HOST=$host_os |
---|
1599 | case "${target}" in |
---|
1600 | # hpux unix port should go here |
---|
1601 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
1602 | RTEMS_HOST=Linux |
---|
1603 | ;; |
---|
1604 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1605 | RTEMS_HOST=FreeBSD |
---|
1606 | ;; |
---|
1607 | sparc-sun-solaris*) # unix "simulator" port |
---|
1608 | RTEMS_HOST=Solaris |
---|
1609 | ;; |
---|
1610 | *) |
---|
1611 | ;; |
---|
1612 | esac |
---|
1613 | |
---|
1614 | |
---|
1615 | |
---|
1616 | case "${target}" in |
---|
1617 | i[3456]86-go32-rtems*) |
---|
1618 | rtems_bsp="go32 go32_p5" |
---|
1619 | skip_startfiles="yes" |
---|
1620 | ;; |
---|
1621 | *) |
---|
1622 | ;; |
---|
1623 | esac |
---|
1624 | |
---|
1625 | # Override the set of BSPs to be built. |
---|
1626 | # Check whether --enable-rtemsbsp or --disable-rtemsbsp was given. |
---|
1627 | if test "${enable_rtemsbsp+set}" = set; then |
---|
1628 | enableval="$enable_rtemsbsp" |
---|
1629 | \ |
---|
1630 | rtems_bsp=$enableval \ |
---|
1631 | |
---|
1632 | fi |
---|
1633 | |
---|
1634 | |
---|
1635 | |
---|
1636 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
1637 | if [ "${target}" = "${host}" ] ; then |
---|
1638 | program_prefix= |
---|
1639 | else |
---|
1640 | program_prefix=${target}- |
---|
1641 | fi |
---|
1642 | fi |
---|
1643 | |
---|
1644 | |
---|
1645 | |
---|
1646 | |
---|
1647 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
1648 | do |
---|
1649 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1650 | set dummy $ac_prog; ac_word=$2 |
---|
1651 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1652 | echo "configure:1653: checking for $ac_word" >&5 |
---|
1653 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
1654 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1655 | else |
---|
1656 | case "$CC_FOR_TARGET" in |
---|
1657 | /*) |
---|
1658 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
1659 | ;; |
---|
1660 | ?:/*) |
---|
1661 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1662 | ;; |
---|
1663 | *) |
---|
1664 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1665 | ac_dummy="$PATH" |
---|
1666 | for ac_dir in $ac_dummy; do |
---|
1667 | test -z "$ac_dir" && ac_dir=. |
---|
1668 | if test -f $ac_dir/$ac_word; then |
---|
1669 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
1670 | break |
---|
1671 | fi |
---|
1672 | done |
---|
1673 | IFS="$ac_save_ifs" |
---|
1674 | ;; |
---|
1675 | esac |
---|
1676 | fi |
---|
1677 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
1678 | if test -n "$CC_FOR_TARGET"; then |
---|
1679 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
1680 | else |
---|
1681 | echo "$ac_t""no" 1>&6 |
---|
1682 | fi |
---|
1683 | |
---|
1684 | test -n "$CC_FOR_TARGET" && break |
---|
1685 | done |
---|
1686 | |
---|
1687 | test -z "$CC_FOR_TARGET" \ |
---|
1688 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1689 | |
---|
1690 | rtems_save_CC=$CC |
---|
1691 | rtems_save_CFLAGS=$CFLAGS |
---|
1692 | |
---|
1693 | CC=$CC_FOR_TARGET |
---|
1694 | |
---|
1695 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1696 | echo "configure:1697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1697 | |
---|
1698 | ac_ext=c |
---|
1699 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1700 | ac_cpp='$CPP $CPPFLAGS' |
---|
1701 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1702 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1703 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1704 | |
---|
1705 | cat > conftest.$ac_ext << EOF |
---|
1706 | |
---|
1707 | #line 1708 "configure" |
---|
1708 | #include "confdefs.h" |
---|
1709 | |
---|
1710 | main(){return(0);} |
---|
1711 | EOF |
---|
1712 | if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1713 | ac_cv_prog_cc_works=yes |
---|
1714 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1715 | if (./conftest; exit) 2>/dev/null; then |
---|
1716 | ac_cv_prog_cc_cross=no |
---|
1717 | else |
---|
1718 | ac_cv_prog_cc_cross=yes |
---|
1719 | fi |
---|
1720 | else |
---|
1721 | echo "configure: failed program was:" >&5 |
---|
1722 | cat conftest.$ac_ext >&5 |
---|
1723 | ac_cv_prog_cc_works=no |
---|
1724 | fi |
---|
1725 | rm -fr conftest* |
---|
1726 | ac_ext=c |
---|
1727 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1728 | ac_cpp='$CPP $CPPFLAGS' |
---|
1729 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1730 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1731 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1732 | |
---|
1733 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1734 | if test $ac_cv_prog_cc_works = no; then |
---|
1735 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1736 | fi |
---|
1737 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1738 | echo "configure:1739: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1739 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1740 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1741 | |
---|
1742 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1743 | echo "configure:1744: checking whether we are using GNU C" >&5 |
---|
1744 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1745 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1746 | else |
---|
1747 | cat > conftest.c <<EOF |
---|
1748 | #ifdef __GNUC__ |
---|
1749 | yes; |
---|
1750 | #endif |
---|
1751 | EOF |
---|
1752 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1753 | ac_cv_prog_gcc=yes |
---|
1754 | else |
---|
1755 | ac_cv_prog_gcc=no |
---|
1756 | fi |
---|
1757 | fi |
---|
1758 | |
---|
1759 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1760 | |
---|
1761 | if test $ac_cv_prog_gcc = yes; then |
---|
1762 | GCC=yes |
---|
1763 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1764 | ac_save_CFLAGS="$CFLAGS" |
---|
1765 | CFLAGS= |
---|
1766 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1767 | echo "configure:1768: checking whether ${CC-cc} accepts -g" >&5 |
---|
1768 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1769 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1770 | else |
---|
1771 | echo 'void f(){}' > conftest.c |
---|
1772 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1773 | ac_cv_prog_cc_g=yes |
---|
1774 | else |
---|
1775 | ac_cv_prog_cc_g=no |
---|
1776 | fi |
---|
1777 | rm -f conftest* |
---|
1778 | |
---|
1779 | fi |
---|
1780 | |
---|
1781 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1782 | if test "$ac_test_CFLAGS" = set; then |
---|
1783 | CFLAGS="$ac_save_CFLAGS" |
---|
1784 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1785 | CFLAGS="-g -O2" |
---|
1786 | else |
---|
1787 | CFLAGS="-O2" |
---|
1788 | fi |
---|
1789 | else |
---|
1790 | GCC= |
---|
1791 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
1792 | fi |
---|
1793 | |
---|
1794 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
1795 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
1796 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
1797 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
1798 | |
---|
1799 | CC=$rtems_save_CC |
---|
1800 | CFLAGS=$rtems_save_CFLAGS |
---|
1801 | |
---|
1802 | unset ac_cv_prog_gcc |
---|
1803 | unset ac_cv_prog_cc_g |
---|
1804 | unset ac_cv_prog_cc_works |
---|
1805 | unset ac_cv_prog_cc_cross |
---|
1806 | |
---|
1807 | |
---|
1808 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
1809 | echo "configure:1810: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
1810 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
1811 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1812 | else |
---|
1813 | |
---|
1814 | rtems_cv_gcc_specs=no |
---|
1815 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1816 | touch confspec |
---|
1817 | echo 'void f(){}' >conftest.c |
---|
1818 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
1819 | rtems_cv_gcc_specs=yes |
---|
1820 | fi |
---|
1821 | fi |
---|
1822 | rm -f confspec conftest* |
---|
1823 | |
---|
1824 | fi |
---|
1825 | |
---|
1826 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
1827 | |
---|
1828 | |
---|
1829 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
1830 | echo "configure:1831: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
1831 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
1832 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1833 | else |
---|
1834 | |
---|
1835 | rtems_cv_gcc_pipe=no |
---|
1836 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1837 | case "$host_os" in |
---|
1838 | cygwin32*) |
---|
1839 | ;; |
---|
1840 | *) |
---|
1841 | echo 'void f(){}' >conftest.c |
---|
1842 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
1843 | rtems_cv_gcc_pipe=yes |
---|
1844 | fi |
---|
1845 | rm -f conftest* |
---|
1846 | ;; |
---|
1847 | esac |
---|
1848 | fi |
---|
1849 | |
---|
1850 | fi |
---|
1851 | |
---|
1852 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
1853 | |
---|
1854 | |
---|
1855 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
1856 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
1857 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
1858 | RTEMS_USE_GCC272=yes |
---|
1859 | fi |
---|
1860 | fi |
---|
1861 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
1862 | |
---|
1863 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
1864 | |
---|
1865 | |
---|
1866 | for ac_prog in "$program_prefix"g++ "$program_prefix"c++ |
---|
1867 | do |
---|
1868 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1869 | set dummy $ac_prog; ac_word=$2 |
---|
1870 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1871 | echo "configure:1872: checking for $ac_word" >&5 |
---|
1872 | if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then |
---|
1873 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1874 | else |
---|
1875 | case "$CXX_FOR_TARGET" in |
---|
1876 | /*) |
---|
1877 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. |
---|
1878 | ;; |
---|
1879 | ?:/*) |
---|
1880 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1881 | ;; |
---|
1882 | *) |
---|
1883 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1884 | ac_dummy="$PATH" |
---|
1885 | for ac_dir in $ac_dummy; do |
---|
1886 | test -z "$ac_dir" && ac_dir=. |
---|
1887 | if test -f $ac_dir/$ac_word; then |
---|
1888 | ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" |
---|
1889 | break |
---|
1890 | fi |
---|
1891 | done |
---|
1892 | IFS="$ac_save_ifs" |
---|
1893 | ;; |
---|
1894 | esac |
---|
1895 | fi |
---|
1896 | CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" |
---|
1897 | if test -n "$CXX_FOR_TARGET"; then |
---|
1898 | echo "$ac_t""$CXX_FOR_TARGET" 1>&6 |
---|
1899 | else |
---|
1900 | echo "$ac_t""no" 1>&6 |
---|
1901 | fi |
---|
1902 | |
---|
1903 | test -n "$CXX_FOR_TARGET" && break |
---|
1904 | done |
---|
1905 | |
---|
1906 | test -z "$CXX_FOR_TARGET" \ |
---|
1907 | && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } |
---|
1908 | |
---|
1909 | rtems_save_CXX=$CXX |
---|
1910 | rtems_save_CXXFLAGS=$CXXFLAGS |
---|
1911 | |
---|
1912 | CXX=$CXX_FOR_TARGET |
---|
1913 | |
---|
1914 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1915 | echo "configure:1916: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
1916 | |
---|
1917 | ac_ext=C |
---|
1918 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1919 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1920 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1921 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1922 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1923 | |
---|
1924 | cat > conftest.$ac_ext << EOF |
---|
1925 | |
---|
1926 | #line 1927 "configure" |
---|
1927 | #include "confdefs.h" |
---|
1928 | |
---|
1929 | int main(){return(0);} |
---|
1930 | EOF |
---|
1931 | if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1932 | ac_cv_prog_cxx_works=yes |
---|
1933 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1934 | if (./conftest; exit) 2>/dev/null; then |
---|
1935 | ac_cv_prog_cxx_cross=no |
---|
1936 | else |
---|
1937 | ac_cv_prog_cxx_cross=yes |
---|
1938 | fi |
---|
1939 | else |
---|
1940 | echo "configure: failed program was:" >&5 |
---|
1941 | cat conftest.$ac_ext >&5 |
---|
1942 | ac_cv_prog_cxx_works=no |
---|
1943 | fi |
---|
1944 | rm -fr conftest* |
---|
1945 | ac_ext=c |
---|
1946 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1947 | ac_cpp='$CPP $CPPFLAGS' |
---|
1948 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1949 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1950 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1951 | |
---|
1952 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
1953 | if test $ac_cv_prog_cxx_works = no; then |
---|
1954 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
1955 | fi |
---|
1956 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1957 | echo "configure:1958: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1958 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
1959 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1960 | |
---|
1961 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
1962 | echo "configure:1963: checking whether we are using GNU C++" >&5 |
---|
1963 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
1964 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1965 | else |
---|
1966 | cat > conftest.C <<EOF |
---|
1967 | #ifdef __GNUC__ |
---|
1968 | yes; |
---|
1969 | #endif |
---|
1970 | EOF |
---|
1971 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1972 | ac_cv_prog_gxx=yes |
---|
1973 | else |
---|
1974 | ac_cv_prog_gxx=no |
---|
1975 | fi |
---|
1976 | fi |
---|
1977 | |
---|
1978 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
1979 | |
---|
1980 | if test $ac_cv_prog_gxx = yes; then |
---|
1981 | GXX=yes |
---|
1982 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
1983 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
1984 | CXXFLAGS= |
---|
1985 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
1986 | echo "configure:1987: checking whether ${CXX-g++} accepts -g" >&5 |
---|
1987 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
1988 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1989 | else |
---|
1990 | echo 'void f(){}' > conftest.cc |
---|
1991 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
1992 | ac_cv_prog_cxx_g=yes |
---|
1993 | else |
---|
1994 | ac_cv_prog_cxx_g=no |
---|
1995 | fi |
---|
1996 | rm -f conftest* |
---|
1997 | |
---|
1998 | fi |
---|
1999 | |
---|
2000 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
2001 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2002 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
2003 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2004 | CXXFLAGS="-g -O2" |
---|
2005 | else |
---|
2006 | CXXFLAGS="-O2" |
---|
2007 | fi |
---|
2008 | else |
---|
2009 | GXX= |
---|
2010 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
2011 | fi |
---|
2012 | |
---|
2013 | rtems_cv_prog_gxx=$ac_cv_prog_gxx |
---|
2014 | rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g |
---|
2015 | rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works |
---|
2016 | rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross |
---|
2017 | |
---|
2018 | CXX=$rtems_save_CXX |
---|
2019 | CXXFLAGS=$rtems_save_CXXFLAGS |
---|
2020 | |
---|
2021 | unset ac_cv_prog_gxx |
---|
2022 | unset ac_cv_prog_cc_g |
---|
2023 | unset ac_cv_prog_cxx_works |
---|
2024 | unset ac_cv_prog_cxx_cross |
---|
2025 | |
---|
2026 | if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then |
---|
2027 | { echo "configure: error: *** |
---|
2028 | Inconsistency in compiler configuration: |
---|
2029 | Target C compiler and Target C++ compiler |
---|
2030 | must both either be cross compilers or native compilers |
---|
2031 | Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; } |
---|
2032 | fi |
---|
2033 | else |
---|
2034 | CXX_FOR_TARGET="no" |
---|
2035 | fi |
---|
2036 | |
---|
2037 | |
---|
2038 | |
---|
2039 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
2040 | echo "configure:2041: checking target's ar" >&5 |
---|
2041 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
2042 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2043 | else |
---|
2044 | : |
---|
2045 | fi |
---|
2046 | |
---|
2047 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
2048 | |
---|
2049 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
2050 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
2051 | else |
---|
2052 | if test -z "$AR_FOR_TARGET" ; then |
---|
2053 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2054 | # We are using gcc, ask it about its tool |
---|
2055 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2056 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2057 | case $host_os in |
---|
2058 | *cygwin32*) |
---|
2059 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
2060 | ;; |
---|
2061 | *) |
---|
2062 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
2063 | ;; |
---|
2064 | esac |
---|
2065 | |
---|
2066 | fi |
---|
2067 | else |
---|
2068 | # The user set an environment variable. |
---|
2069 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2070 | # will override the environment variable, which isn't what the user |
---|
2071 | # intends |
---|
2072 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2073 | echo "configure:2074: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
2074 | case "$AR_FOR_TARGET" in |
---|
2075 | /*) # valid |
---|
2076 | echo "$ac_t"""yes"" 1>&6 |
---|
2077 | ;; |
---|
2078 | *) # invalid for AC_PATH_PROG |
---|
2079 | echo "$ac_t"""no"" 1>&6 |
---|
2080 | { echo "configure: error: *** |
---|
2081 | Environment variable AR_FOR_TARGET should either |
---|
2082 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2083 | ;; |
---|
2084 | esac |
---|
2085 | fi |
---|
2086 | |
---|
2087 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
2088 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
2089 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2090 | echo "configure:2091: checking for $ac_word" >&5 |
---|
2091 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
2092 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2093 | else |
---|
2094 | case "$AR_FOR_TARGET" in |
---|
2095 | /*) |
---|
2096 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
2097 | ;; |
---|
2098 | ?:/*) |
---|
2099 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2100 | ;; |
---|
2101 | *) |
---|
2102 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2103 | ac_dummy="$PATH" |
---|
2104 | for ac_dir in $ac_dummy; do |
---|
2105 | test -z "$ac_dir" && ac_dir=. |
---|
2106 | if test -f $ac_dir/$ac_word; then |
---|
2107 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
2108 | break |
---|
2109 | fi |
---|
2110 | done |
---|
2111 | IFS="$ac_save_ifs" |
---|
2112 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
2113 | ;; |
---|
2114 | esac |
---|
2115 | fi |
---|
2116 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
2117 | if test -n "$AR_FOR_TARGET"; then |
---|
2118 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
2119 | else |
---|
2120 | echo "$ac_t""no" 1>&6 |
---|
2121 | fi |
---|
2122 | |
---|
2123 | fi |
---|
2124 | |
---|
2125 | |
---|
2126 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
2127 | echo "configure:2128: checking target's as" >&5 |
---|
2128 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
2129 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2130 | else |
---|
2131 | : |
---|
2132 | fi |
---|
2133 | |
---|
2134 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
2135 | |
---|
2136 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
2137 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
2138 | else |
---|
2139 | if test -z "$AS_FOR_TARGET" ; then |
---|
2140 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2141 | # We are using gcc, ask it about its tool |
---|
2142 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2143 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2144 | case $host_os in |
---|
2145 | *cygwin32*) |
---|
2146 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
2147 | ;; |
---|
2148 | *) |
---|
2149 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
2150 | ;; |
---|
2151 | esac |
---|
2152 | |
---|
2153 | fi |
---|
2154 | else |
---|
2155 | # The user set an environment variable. |
---|
2156 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2157 | # will override the environment variable, which isn't what the user |
---|
2158 | # intends |
---|
2159 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2160 | echo "configure:2161: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
2161 | case "$AS_FOR_TARGET" in |
---|
2162 | /*) # valid |
---|
2163 | echo "$ac_t"""yes"" 1>&6 |
---|
2164 | ;; |
---|
2165 | *) # invalid for AC_PATH_PROG |
---|
2166 | echo "$ac_t"""no"" 1>&6 |
---|
2167 | { echo "configure: error: *** |
---|
2168 | Environment variable AS_FOR_TARGET should either |
---|
2169 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2170 | ;; |
---|
2171 | esac |
---|
2172 | fi |
---|
2173 | |
---|
2174 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
2175 | set dummy "$program_prefix"as; ac_word=$2 |
---|
2176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2177 | echo "configure:2178: checking for $ac_word" >&5 |
---|
2178 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
2179 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2180 | else |
---|
2181 | case "$AS_FOR_TARGET" in |
---|
2182 | /*) |
---|
2183 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
2184 | ;; |
---|
2185 | ?:/*) |
---|
2186 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2187 | ;; |
---|
2188 | *) |
---|
2189 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2190 | ac_dummy="$PATH" |
---|
2191 | for ac_dir in $ac_dummy; do |
---|
2192 | test -z "$ac_dir" && ac_dir=. |
---|
2193 | if test -f $ac_dir/$ac_word; then |
---|
2194 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
2195 | break |
---|
2196 | fi |
---|
2197 | done |
---|
2198 | IFS="$ac_save_ifs" |
---|
2199 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
2200 | ;; |
---|
2201 | esac |
---|
2202 | fi |
---|
2203 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
2204 | if test -n "$AS_FOR_TARGET"; then |
---|
2205 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
2206 | else |
---|
2207 | echo "$ac_t""no" 1>&6 |
---|
2208 | fi |
---|
2209 | |
---|
2210 | fi |
---|
2211 | |
---|
2212 | |
---|
2213 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
2214 | echo "configure:2215: checking target's ld" >&5 |
---|
2215 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
2216 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2217 | else |
---|
2218 | : |
---|
2219 | fi |
---|
2220 | |
---|
2221 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
2222 | |
---|
2223 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
2224 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
2225 | else |
---|
2226 | if test -z "$LD_FOR_TARGET" ; then |
---|
2227 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2228 | # We are using gcc, ask it about its tool |
---|
2229 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2230 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2231 | case $host_os in |
---|
2232 | *cygwin32*) |
---|
2233 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
2234 | ;; |
---|
2235 | *) |
---|
2236 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
2237 | ;; |
---|
2238 | esac |
---|
2239 | |
---|
2240 | fi |
---|
2241 | else |
---|
2242 | # The user set an environment variable. |
---|
2243 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2244 | # will override the environment variable, which isn't what the user |
---|
2245 | # intends |
---|
2246 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2247 | echo "configure:2248: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
2248 | case "$LD_FOR_TARGET" in |
---|
2249 | /*) # valid |
---|
2250 | echo "$ac_t"""yes"" 1>&6 |
---|
2251 | ;; |
---|
2252 | *) # invalid for AC_PATH_PROG |
---|
2253 | echo "$ac_t"""no"" 1>&6 |
---|
2254 | { echo "configure: error: *** |
---|
2255 | Environment variable LD_FOR_TARGET should either |
---|
2256 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2257 | ;; |
---|
2258 | esac |
---|
2259 | fi |
---|
2260 | |
---|
2261 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
2262 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
2263 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2264 | echo "configure:2265: checking for $ac_word" >&5 |
---|
2265 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
2266 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2267 | else |
---|
2268 | case "$LD_FOR_TARGET" in |
---|
2269 | /*) |
---|
2270 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
2271 | ;; |
---|
2272 | ?:/*) |
---|
2273 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2274 | ;; |
---|
2275 | *) |
---|
2276 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2277 | ac_dummy="$PATH" |
---|
2278 | for ac_dir in $ac_dummy; do |
---|
2279 | test -z "$ac_dir" && ac_dir=. |
---|
2280 | if test -f $ac_dir/$ac_word; then |
---|
2281 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
2282 | break |
---|
2283 | fi |
---|
2284 | done |
---|
2285 | IFS="$ac_save_ifs" |
---|
2286 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
2287 | ;; |
---|
2288 | esac |
---|
2289 | fi |
---|
2290 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
2291 | if test -n "$LD_FOR_TARGET"; then |
---|
2292 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
2293 | else |
---|
2294 | echo "$ac_t""no" 1>&6 |
---|
2295 | fi |
---|
2296 | |
---|
2297 | fi |
---|
2298 | |
---|
2299 | |
---|
2300 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
2301 | echo "configure:2302: checking target's nm" >&5 |
---|
2302 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
2303 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2304 | else |
---|
2305 | : |
---|
2306 | fi |
---|
2307 | |
---|
2308 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
2309 | |
---|
2310 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
2311 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
2312 | else |
---|
2313 | if test -z "$NM_FOR_TARGET" ; then |
---|
2314 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2315 | # We are using gcc, ask it about its tool |
---|
2316 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2317 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2318 | case $host_os in |
---|
2319 | *cygwin32*) |
---|
2320 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
2321 | ;; |
---|
2322 | *) |
---|
2323 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
2324 | ;; |
---|
2325 | esac |
---|
2326 | |
---|
2327 | fi |
---|
2328 | else |
---|
2329 | # The user set an environment variable. |
---|
2330 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2331 | # will override the environment variable, which isn't what the user |
---|
2332 | # intends |
---|
2333 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2334 | echo "configure:2335: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
2335 | case "$NM_FOR_TARGET" in |
---|
2336 | /*) # valid |
---|
2337 | echo "$ac_t"""yes"" 1>&6 |
---|
2338 | ;; |
---|
2339 | *) # invalid for AC_PATH_PROG |
---|
2340 | echo "$ac_t"""no"" 1>&6 |
---|
2341 | { echo "configure: error: *** |
---|
2342 | Environment variable NM_FOR_TARGET should either |
---|
2343 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2344 | ;; |
---|
2345 | esac |
---|
2346 | fi |
---|
2347 | |
---|
2348 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
2349 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
2350 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2351 | echo "configure:2352: checking for $ac_word" >&5 |
---|
2352 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
2353 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2354 | else |
---|
2355 | case "$NM_FOR_TARGET" in |
---|
2356 | /*) |
---|
2357 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
2358 | ;; |
---|
2359 | ?:/*) |
---|
2360 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2361 | ;; |
---|
2362 | *) |
---|
2363 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2364 | ac_dummy="$PATH" |
---|
2365 | for ac_dir in $ac_dummy; do |
---|
2366 | test -z "$ac_dir" && ac_dir=. |
---|
2367 | if test -f $ac_dir/$ac_word; then |
---|
2368 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
2369 | break |
---|
2370 | fi |
---|
2371 | done |
---|
2372 | IFS="$ac_save_ifs" |
---|
2373 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
2374 | ;; |
---|
2375 | esac |
---|
2376 | fi |
---|
2377 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
2378 | if test -n "$NM_FOR_TARGET"; then |
---|
2379 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
2380 | else |
---|
2381 | echo "$ac_t""no" 1>&6 |
---|
2382 | fi |
---|
2383 | |
---|
2384 | fi |
---|
2385 | |
---|
2386 | |
---|
2387 | |
---|
2388 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
2389 | echo "configure:2390: checking target's ranlib" >&5 |
---|
2390 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
2391 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2392 | else |
---|
2393 | : |
---|
2394 | fi |
---|
2395 | |
---|
2396 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
2397 | |
---|
2398 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
2399 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
2400 | else |
---|
2401 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
2402 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2403 | # We are using gcc, ask it about its tool |
---|
2404 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2405 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2406 | case $host_os in |
---|
2407 | *cygwin32*) |
---|
2408 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
2409 | ;; |
---|
2410 | *) |
---|
2411 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
2412 | ;; |
---|
2413 | esac |
---|
2414 | |
---|
2415 | fi |
---|
2416 | else |
---|
2417 | # The user set an environment variable. |
---|
2418 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2419 | # will override the environment variable, which isn't what the user |
---|
2420 | # intends |
---|
2421 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2422 | echo "configure:2423: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
2423 | case "$RANLIB_FOR_TARGET" in |
---|
2424 | /*) # valid |
---|
2425 | echo "$ac_t"""yes"" 1>&6 |
---|
2426 | ;; |
---|
2427 | *) # invalid for AC_PATH_PROG |
---|
2428 | echo "$ac_t"""no"" 1>&6 |
---|
2429 | { echo "configure: error: *** |
---|
2430 | Environment variable RANLIB_FOR_TARGET should either |
---|
2431 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2432 | ;; |
---|
2433 | esac |
---|
2434 | fi |
---|
2435 | |
---|
2436 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
2437 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
2438 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2439 | echo "configure:2440: checking for $ac_word" >&5 |
---|
2440 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
2441 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2442 | else |
---|
2443 | case "$RANLIB_FOR_TARGET" in |
---|
2444 | /*) |
---|
2445 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
2446 | ;; |
---|
2447 | ?:/*) |
---|
2448 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2449 | ;; |
---|
2450 | *) |
---|
2451 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2452 | ac_dummy="$PATH" |
---|
2453 | for ac_dir in $ac_dummy; do |
---|
2454 | test -z "$ac_dir" && ac_dir=. |
---|
2455 | if test -f $ac_dir/$ac_word; then |
---|
2456 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
2457 | break |
---|
2458 | fi |
---|
2459 | done |
---|
2460 | IFS="$ac_save_ifs" |
---|
2461 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
2462 | ;; |
---|
2463 | esac |
---|
2464 | fi |
---|
2465 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
2466 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
2467 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
2468 | else |
---|
2469 | echo "$ac_t""no" 1>&6 |
---|
2470 | fi |
---|
2471 | |
---|
2472 | fi |
---|
2473 | |
---|
2474 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
2475 | # ranlib wasn't found; check if ar -s is available |
---|
2476 | |
---|
2477 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
2478 | echo "configure:2479: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
2479 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
2480 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2481 | else |
---|
2482 | |
---|
2483 | cat > conftest.$ac_ext <<EOF |
---|
2484 | int foo( int b ) |
---|
2485 | { return b; } |
---|
2486 | EOF |
---|
2487 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
2488 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
2489 | && test -s conftest.a ; \ |
---|
2490 | then |
---|
2491 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
2492 | else |
---|
2493 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
2494 | fi |
---|
2495 | rm -f conftest* |
---|
2496 | |
---|
2497 | fi |
---|
2498 | |
---|
2499 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
2500 | |
---|
2501 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
2502 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
2503 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
2504 | else |
---|
2505 | { echo "configure: error: *** |
---|
2506 | Can't figure out how to build a library index |
---|
2507 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
2508 | fi |
---|
2509 | fi |
---|
2510 | |
---|
2511 | |
---|
2512 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
2513 | echo "configure:2514: checking target's objcopy" >&5 |
---|
2514 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
2515 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2516 | else |
---|
2517 | : |
---|
2518 | fi |
---|
2519 | |
---|
2520 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
2521 | |
---|
2522 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
2523 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
2524 | else |
---|
2525 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
2526 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2527 | # We are using gcc, ask it about its tool |
---|
2528 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2529 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2530 | case $host_os in |
---|
2531 | *cygwin32*) |
---|
2532 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
2533 | ;; |
---|
2534 | *) |
---|
2535 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
2536 | ;; |
---|
2537 | esac |
---|
2538 | |
---|
2539 | fi |
---|
2540 | else |
---|
2541 | # The user set an environment variable. |
---|
2542 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2543 | # will override the environment variable, which isn't what the user |
---|
2544 | # intends |
---|
2545 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2546 | echo "configure:2547: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
2547 | case "$OBJCOPY_FOR_TARGET" in |
---|
2548 | /*) # valid |
---|
2549 | echo "$ac_t"""yes"" 1>&6 |
---|
2550 | ;; |
---|
2551 | *) # invalid for AC_PATH_PROG |
---|
2552 | echo "$ac_t"""no"" 1>&6 |
---|
2553 | { echo "configure: error: *** |
---|
2554 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
2555 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2556 | ;; |
---|
2557 | esac |
---|
2558 | fi |
---|
2559 | |
---|
2560 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
2561 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
2562 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2563 | echo "configure:2564: checking for $ac_word" >&5 |
---|
2564 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
2565 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2566 | else |
---|
2567 | case "$OBJCOPY_FOR_TARGET" in |
---|
2568 | /*) |
---|
2569 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
2570 | ;; |
---|
2571 | ?:/*) |
---|
2572 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2573 | ;; |
---|
2574 | *) |
---|
2575 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2576 | ac_dummy="$PATH" |
---|
2577 | for ac_dir in $ac_dummy; do |
---|
2578 | test -z "$ac_dir" && ac_dir=. |
---|
2579 | if test -f $ac_dir/$ac_word; then |
---|
2580 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
2581 | break |
---|
2582 | fi |
---|
2583 | done |
---|
2584 | IFS="$ac_save_ifs" |
---|
2585 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
2586 | ;; |
---|
2587 | esac |
---|
2588 | fi |
---|
2589 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
2590 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
2591 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
2592 | else |
---|
2593 | echo "$ac_t""no" 1>&6 |
---|
2594 | fi |
---|
2595 | |
---|
2596 | fi |
---|
2597 | |
---|
2598 | |
---|
2599 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
2600 | echo "configure:2601: checking target's size" >&5 |
---|
2601 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
2602 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2603 | else |
---|
2604 | : |
---|
2605 | fi |
---|
2606 | |
---|
2607 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
2608 | |
---|
2609 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
2610 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
2611 | else |
---|
2612 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
2613 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2614 | # We are using gcc, ask it about its tool |
---|
2615 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2616 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2617 | case $host_os in |
---|
2618 | *cygwin32*) |
---|
2619 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
2620 | ;; |
---|
2621 | *) |
---|
2622 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
2623 | ;; |
---|
2624 | esac |
---|
2625 | |
---|
2626 | fi |
---|
2627 | else |
---|
2628 | # The user set an environment variable. |
---|
2629 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2630 | # will override the environment variable, which isn't what the user |
---|
2631 | # intends |
---|
2632 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2633 | echo "configure:2634: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
2634 | case "$SIZE_FOR_TARGET" in |
---|
2635 | /*) # valid |
---|
2636 | echo "$ac_t"""yes"" 1>&6 |
---|
2637 | ;; |
---|
2638 | *) # invalid for AC_PATH_PROG |
---|
2639 | echo "$ac_t"""no"" 1>&6 |
---|
2640 | { echo "configure: error: *** |
---|
2641 | Environment variable SIZE_FOR_TARGET should either |
---|
2642 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2643 | ;; |
---|
2644 | esac |
---|
2645 | fi |
---|
2646 | |
---|
2647 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
2648 | set dummy "$program_prefix"size; ac_word=$2 |
---|
2649 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2650 | echo "configure:2651: checking for $ac_word" >&5 |
---|
2651 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
2652 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2653 | else |
---|
2654 | case "$SIZE_FOR_TARGET" in |
---|
2655 | /*) |
---|
2656 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
2657 | ;; |
---|
2658 | ?:/*) |
---|
2659 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2660 | ;; |
---|
2661 | *) |
---|
2662 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2663 | ac_dummy="$PATH" |
---|
2664 | for ac_dir in $ac_dummy; do |
---|
2665 | test -z "$ac_dir" && ac_dir=. |
---|
2666 | if test -f $ac_dir/$ac_word; then |
---|
2667 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
2668 | break |
---|
2669 | fi |
---|
2670 | done |
---|
2671 | IFS="$ac_save_ifs" |
---|
2672 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
2673 | ;; |
---|
2674 | esac |
---|
2675 | fi |
---|
2676 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
2677 | if test -n "$SIZE_FOR_TARGET"; then |
---|
2678 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
2679 | else |
---|
2680 | echo "$ac_t""no" 1>&6 |
---|
2681 | fi |
---|
2682 | |
---|
2683 | fi |
---|
2684 | |
---|
2685 | |
---|
2686 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
2687 | echo "configure:2688: checking target's strip" >&5 |
---|
2688 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
2689 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2690 | else |
---|
2691 | : |
---|
2692 | fi |
---|
2693 | |
---|
2694 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
2695 | |
---|
2696 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
2697 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
2698 | else |
---|
2699 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
2700 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2701 | # We are using gcc, ask it about its tool |
---|
2702 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2703 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2704 | case $host_os in |
---|
2705 | *cygwin32*) |
---|
2706 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
2707 | ;; |
---|
2708 | *) |
---|
2709 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
2710 | ;; |
---|
2711 | esac |
---|
2712 | |
---|
2713 | fi |
---|
2714 | else |
---|
2715 | # The user set an environment variable. |
---|
2716 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2717 | # will override the environment variable, which isn't what the user |
---|
2718 | # intends |
---|
2719 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2720 | echo "configure:2721: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
2721 | case "$STRIP_FOR_TARGET" in |
---|
2722 | /*) # valid |
---|
2723 | echo "$ac_t"""yes"" 1>&6 |
---|
2724 | ;; |
---|
2725 | *) # invalid for AC_PATH_PROG |
---|
2726 | echo "$ac_t"""no"" 1>&6 |
---|
2727 | { echo "configure: error: *** |
---|
2728 | Environment variable STRIP_FOR_TARGET should either |
---|
2729 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2730 | ;; |
---|
2731 | esac |
---|
2732 | fi |
---|
2733 | |
---|
2734 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
2735 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
2736 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2737 | echo "configure:2738: checking for $ac_word" >&5 |
---|
2738 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
2739 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2740 | else |
---|
2741 | case "$STRIP_FOR_TARGET" in |
---|
2742 | /*) |
---|
2743 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
2744 | ;; |
---|
2745 | ?:/*) |
---|
2746 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2747 | ;; |
---|
2748 | *) |
---|
2749 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2750 | ac_dummy="$PATH" |
---|
2751 | for ac_dir in $ac_dummy; do |
---|
2752 | test -z "$ac_dir" && ac_dir=. |
---|
2753 | if test -f $ac_dir/$ac_word; then |
---|
2754 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
2755 | break |
---|
2756 | fi |
---|
2757 | done |
---|
2758 | IFS="$ac_save_ifs" |
---|
2759 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
2760 | ;; |
---|
2761 | esac |
---|
2762 | fi |
---|
2763 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
2764 | if test -n "$STRIP_FOR_TARGET"; then |
---|
2765 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
2766 | else |
---|
2767 | echo "$ac_t""no" 1>&6 |
---|
2768 | fi |
---|
2769 | |
---|
2770 | fi |
---|
2771 | |
---|
2772 | |
---|
2773 | |
---|
2774 | if test "${target_cpu}" = "i386"; then |
---|
2775 | echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 |
---|
2776 | echo "configure:2777: checking for 16 bit mode assembler support" >&5 |
---|
2777 | if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then |
---|
2778 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2779 | else |
---|
2780 | cat > conftest.s << EOF |
---|
2781 | .code16 |
---|
2782 | data32 |
---|
2783 | addr32 |
---|
2784 | lgdt 0 |
---|
2785 | EOF |
---|
2786 | if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
2787 | rtems_cv_prog_gas_code16=yes |
---|
2788 | else |
---|
2789 | rtems_cv_prog_gas_code16=no |
---|
2790 | fi |
---|
2791 | fi |
---|
2792 | |
---|
2793 | echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6 |
---|
2794 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
---|
2795 | fi |
---|
2796 | |
---|
2797 | |
---|
2798 | |
---|
2799 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2800 | set dummy gcc; ac_word=$2 |
---|
2801 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2802 | echo "configure:2803: checking for $ac_word" >&5 |
---|
2803 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2804 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2805 | else |
---|
2806 | if test -n "$CC"; then |
---|
2807 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2808 | else |
---|
2809 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2810 | ac_dummy="$PATH" |
---|
2811 | for ac_dir in $ac_dummy; do |
---|
2812 | test -z "$ac_dir" && ac_dir=. |
---|
2813 | if test -f $ac_dir/$ac_word; then |
---|
2814 | ac_cv_prog_CC="gcc" |
---|
2815 | break |
---|
2816 | fi |
---|
2817 | done |
---|
2818 | IFS="$ac_save_ifs" |
---|
2819 | fi |
---|
2820 | fi |
---|
2821 | CC="$ac_cv_prog_CC" |
---|
2822 | if test -n "$CC"; then |
---|
2823 | echo "$ac_t""$CC" 1>&6 |
---|
2824 | else |
---|
2825 | echo "$ac_t""no" 1>&6 |
---|
2826 | fi |
---|
2827 | |
---|
2828 | if test -z "$CC"; then |
---|
2829 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2830 | set dummy cc; ac_word=$2 |
---|
2831 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2832 | echo "configure:2833: checking for $ac_word" >&5 |
---|
2833 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2834 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2835 | else |
---|
2836 | if test -n "$CC"; then |
---|
2837 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2838 | else |
---|
2839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2840 | ac_prog_rejected=no |
---|
2841 | ac_dummy="$PATH" |
---|
2842 | for ac_dir in $ac_dummy; do |
---|
2843 | test -z "$ac_dir" && ac_dir=. |
---|
2844 | if test -f $ac_dir/$ac_word; then |
---|
2845 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
2846 | ac_prog_rejected=yes |
---|
2847 | continue |
---|
2848 | fi |
---|
2849 | ac_cv_prog_CC="cc" |
---|
2850 | break |
---|
2851 | fi |
---|
2852 | done |
---|
2853 | IFS="$ac_save_ifs" |
---|
2854 | if test $ac_prog_rejected = yes; then |
---|
2855 | # We found a bogon in the path, so make sure we never use it. |
---|
2856 | set dummy $ac_cv_prog_CC |
---|
2857 | shift |
---|
2858 | if test $# -gt 0; then |
---|
2859 | # We chose a different compiler from the bogus one. |
---|
2860 | # However, it has the same basename, so the bogon will be chosen |
---|
2861 | # first if we set CC to just the basename; use the full file name. |
---|
2862 | shift |
---|
2863 | set dummy "$ac_dir/$ac_word" "$@" |
---|
2864 | shift |
---|
2865 | ac_cv_prog_CC="$@" |
---|
2866 | fi |
---|
2867 | fi |
---|
2868 | fi |
---|
2869 | fi |
---|
2870 | CC="$ac_cv_prog_CC" |
---|
2871 | if test -n "$CC"; then |
---|
2872 | echo "$ac_t""$CC" 1>&6 |
---|
2873 | else |
---|
2874 | echo "$ac_t""no" 1>&6 |
---|
2875 | fi |
---|
2876 | |
---|
2877 | if test -z "$CC"; then |
---|
2878 | case "`uname -s`" in |
---|
2879 | *win32* | *WIN32*) |
---|
2880 | # Extract the first word of "cl", so it can be a program name with args. |
---|
2881 | set dummy cl; ac_word=$2 |
---|
2882 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2883 | echo "configure:2884: checking for $ac_word" >&5 |
---|
2884 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2885 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2886 | else |
---|
2887 | if test -n "$CC"; then |
---|
2888 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2889 | else |
---|
2890 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2891 | ac_dummy="$PATH" |
---|
2892 | for ac_dir in $ac_dummy; do |
---|
2893 | test -z "$ac_dir" && ac_dir=. |
---|
2894 | if test -f $ac_dir/$ac_word; then |
---|
2895 | ac_cv_prog_CC="cl" |
---|
2896 | break |
---|
2897 | fi |
---|
2898 | done |
---|
2899 | IFS="$ac_save_ifs" |
---|
2900 | fi |
---|
2901 | fi |
---|
2902 | CC="$ac_cv_prog_CC" |
---|
2903 | if test -n "$CC"; then |
---|
2904 | echo "$ac_t""$CC" 1>&6 |
---|
2905 | else |
---|
2906 | echo "$ac_t""no" 1>&6 |
---|
2907 | fi |
---|
2908 | ;; |
---|
2909 | esac |
---|
2910 | fi |
---|
2911 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
2912 | fi |
---|
2913 | |
---|
2914 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
2915 | echo "configure:2916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
2916 | |
---|
2917 | ac_ext=c |
---|
2918 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2919 | ac_cpp='$CPP $CPPFLAGS' |
---|
2920 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2921 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2922 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2923 | |
---|
2924 | cat > conftest.$ac_ext << EOF |
---|
2925 | |
---|
2926 | #line 2927 "configure" |
---|
2927 | #include "confdefs.h" |
---|
2928 | |
---|
2929 | main(){return(0);} |
---|
2930 | EOF |
---|
2931 | if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2932 | ac_cv_prog_cc_works=yes |
---|
2933 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
2934 | if (./conftest; exit) 2>/dev/null; then |
---|
2935 | ac_cv_prog_cc_cross=no |
---|
2936 | else |
---|
2937 | ac_cv_prog_cc_cross=yes |
---|
2938 | fi |
---|
2939 | else |
---|
2940 | echo "configure: failed program was:" >&5 |
---|
2941 | cat conftest.$ac_ext >&5 |
---|
2942 | ac_cv_prog_cc_works=no |
---|
2943 | fi |
---|
2944 | rm -fr conftest* |
---|
2945 | ac_ext=c |
---|
2946 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2947 | ac_cpp='$CPP $CPPFLAGS' |
---|
2948 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2949 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2950 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2951 | |
---|
2952 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
2953 | if test $ac_cv_prog_cc_works = no; then |
---|
2954 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
2955 | fi |
---|
2956 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
2957 | echo "configure:2958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
2958 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
2959 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2960 | |
---|
2961 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
2962 | echo "configure:2963: checking whether we are using GNU C" >&5 |
---|
2963 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
2964 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2965 | else |
---|
2966 | cat > conftest.c <<EOF |
---|
2967 | #ifdef __GNUC__ |
---|
2968 | yes; |
---|
2969 | #endif |
---|
2970 | EOF |
---|
2971 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
2972 | ac_cv_prog_gcc=yes |
---|
2973 | else |
---|
2974 | ac_cv_prog_gcc=no |
---|
2975 | fi |
---|
2976 | fi |
---|
2977 | |
---|
2978 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
2979 | |
---|
2980 | if test $ac_cv_prog_gcc = yes; then |
---|
2981 | GCC=yes |
---|
2982 | else |
---|
2983 | GCC= |
---|
2984 | fi |
---|
2985 | |
---|
2986 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
2987 | ac_save_CFLAGS="$CFLAGS" |
---|
2988 | CFLAGS= |
---|
2989 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
2990 | echo "configure:2991: checking whether ${CC-cc} accepts -g" >&5 |
---|
2991 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
2992 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2993 | else |
---|
2994 | echo 'void f(){}' > conftest.c |
---|
2995 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
2996 | ac_cv_prog_cc_g=yes |
---|
2997 | else |
---|
2998 | ac_cv_prog_cc_g=no |
---|
2999 | fi |
---|
3000 | rm -f conftest* |
---|
3001 | |
---|
3002 | fi |
---|
3003 | |
---|
3004 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
3005 | if test "$ac_test_CFLAGS" = set; then |
---|
3006 | CFLAGS="$ac_save_CFLAGS" |
---|
3007 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3008 | if test "$GCC" = yes; then |
---|
3009 | CFLAGS="-g -O2" |
---|
3010 | else |
---|
3011 | CFLAGS="-g" |
---|
3012 | fi |
---|
3013 | else |
---|
3014 | if test "$GCC" = yes; then |
---|
3015 | CFLAGS="-O2" |
---|
3016 | else |
---|
3017 | CFLAGS= |
---|
3018 | fi |
---|
3019 | fi |
---|
3020 | |
---|
3021 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
---|
3022 | echo "configure:3023: checking for Cygwin environment" >&5 |
---|
3023 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
---|
3024 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3025 | else |
---|
3026 | cat > conftest.$ac_ext <<EOF |
---|
3027 | #line 3028 "configure" |
---|
3028 | #include "confdefs.h" |
---|
3029 | |
---|
3030 | int main() { |
---|
3031 | |
---|
3032 | #ifndef __CYGWIN__ |
---|
3033 | #define __CYGWIN__ __CYGWIN32__ |
---|
3034 | #endif |
---|
3035 | return __CYGWIN__; |
---|
3036 | ; return 0; } |
---|
3037 | EOF |
---|
3038 | if { (eval echo configure:3039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3039 | rm -rf conftest* |
---|
3040 | ac_cv_cygwin=yes |
---|
3041 | else |
---|
3042 | echo "configure: failed program was:" >&5 |
---|
3043 | cat conftest.$ac_ext >&5 |
---|
3044 | rm -rf conftest* |
---|
3045 | ac_cv_cygwin=no |
---|
3046 | fi |
---|
3047 | rm -f conftest* |
---|
3048 | rm -f conftest* |
---|
3049 | fi |
---|
3050 | |
---|
3051 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
---|
3052 | CYGWIN= |
---|
3053 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
---|
3054 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
---|
3055 | echo "configure:3056: checking for mingw32 environment" >&5 |
---|
3056 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
---|
3057 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3058 | else |
---|
3059 | cat > conftest.$ac_ext <<EOF |
---|
3060 | #line 3061 "configure" |
---|
3061 | #include "confdefs.h" |
---|
3062 | |
---|
3063 | int main() { |
---|
3064 | return __MINGW32__; |
---|
3065 | ; return 0; } |
---|
3066 | EOF |
---|
3067 | if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3068 | rm -rf conftest* |
---|
3069 | ac_cv_mingw32=yes |
---|
3070 | else |
---|
3071 | echo "configure: failed program was:" >&5 |
---|
3072 | cat conftest.$ac_ext >&5 |
---|
3073 | rm -rf conftest* |
---|
3074 | ac_cv_mingw32=no |
---|
3075 | fi |
---|
3076 | rm -f conftest* |
---|
3077 | rm -f conftest* |
---|
3078 | fi |
---|
3079 | |
---|
3080 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
---|
3081 | MINGW32= |
---|
3082 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
---|
3083 | |
---|
3084 | |
---|
3085 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
---|
3086 | echo "configure:3087: checking for executable suffix" >&5 |
---|
3087 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
---|
3088 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3089 | else |
---|
3090 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
---|
3091 | ac_cv_exeext=.exe |
---|
3092 | else |
---|
3093 | rm -f conftest* |
---|
3094 | echo 'int main () { return 0; }' > conftest.$ac_ext |
---|
3095 | ac_cv_exeext= |
---|
3096 | if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
3097 | for file in conftest.*; do |
---|
3098 | case $file in |
---|
3099 | *.c | *.o | *.obj) ;; |
---|
3100 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
---|
3101 | esac |
---|
3102 | done |
---|
3103 | else |
---|
3104 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
---|
3105 | fi |
---|
3106 | rm -f conftest* |
---|
3107 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
---|
3108 | fi |
---|
3109 | fi |
---|
3110 | |
---|
3111 | EXEEXT="" |
---|
3112 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
---|
3113 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
---|
3114 | ac_exeext=$EXEEXT |
---|
3115 | |
---|
3116 | |
---|
3117 | case $host_os in |
---|
3118 | *cygwin32*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
3119 | *) ;; |
---|
3120 | esac |
---|
3121 | |
---|
3122 | |
---|
3123 | if test "$ac_cv_prog_gcc" = "yes"; then |
---|
3124 | CC_CFLAGS_DEFAULT=-Wall |
---|
3125 | CC_CFLAGS_PROFILE_V=${CC_CFLAGS_PROFILE_V-"-pg"} |
---|
3126 | CC_LDFLAGS_PROFILE_V=${CC_LDFLAGS_PROFILE_V-$CC_CFLAGS_PROFILE_V} |
---|
3127 | fi |
---|
3128 | |
---|
3129 | test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"} |
---|
3130 | |
---|
3131 | if test "$target_cpu" = "unix" ; then |
---|
3132 | |
---|
3133 | |
---|
3134 | echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 |
---|
3135 | echo "configure:3136: checking whether $RTEMS_HOST supports System V semaphores" >&5 |
---|
3136 | if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then |
---|
3137 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3138 | else |
---|
3139 | |
---|
3140 | if test "$cross_compiling" = yes; then |
---|
3141 | : |
---|
3142 | else |
---|
3143 | cat > conftest.$ac_ext <<EOF |
---|
3144 | #line 3145 "configure" |
---|
3145 | #include "confdefs.h" |
---|
3146 | |
---|
3147 | #include <sys/types.h> |
---|
3148 | #include <sys/ipc.h> |
---|
3149 | #include <sys/sem.h> |
---|
3150 | int main () { |
---|
3151 | #if !defined(sun) |
---|
3152 | union semun arg ; |
---|
3153 | #else |
---|
3154 | union semun { |
---|
3155 | int val; |
---|
3156 | struct semid_ds *buf; |
---|
3157 | ushort *array; |
---|
3158 | } arg; |
---|
3159 | #endif |
---|
3160 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
3161 | if (id == -1) |
---|
3162 | exit(1); |
---|
3163 | arg.val = 0; /* avoid implicit type cast to union */ |
---|
3164 | if (semctl(id, 0, IPC_RMID, arg) == -1) |
---|
3165 | exit(1); |
---|
3166 | exit(0); |
---|
3167 | } |
---|
3168 | |
---|
3169 | EOF |
---|
3170 | if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3171 | then |
---|
3172 | rtems_cv_sysv_sem="yes" |
---|
3173 | else |
---|
3174 | echo "configure: failed program was:" >&5 |
---|
3175 | cat conftest.$ac_ext >&5 |
---|
3176 | rm -fr conftest* |
---|
3177 | rtems_cv_sysv_sem="no" |
---|
3178 | fi |
---|
3179 | rm -fr conftest* |
---|
3180 | fi |
---|
3181 | |
---|
3182 | |
---|
3183 | fi |
---|
3184 | |
---|
3185 | echo "$ac_t""$rtems_cv_sysv_sem" 1>&6 |
---|
3186 | |
---|
3187 | if test "$rtems_cv_sysv_sem" != "yes" ; then |
---|
3188 | { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; } |
---|
3189 | fi |
---|
3190 | |
---|
3191 | |
---|
3192 | echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 |
---|
3193 | echo "configure:3194: checking whether $RTEMS_HOST supports System V shared memory" >&5 |
---|
3194 | if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then |
---|
3195 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3196 | else |
---|
3197 | |
---|
3198 | if test "$cross_compiling" = yes; then |
---|
3199 | : |
---|
3200 | else |
---|
3201 | cat > conftest.$ac_ext <<EOF |
---|
3202 | #line 3203 "configure" |
---|
3203 | #include "confdefs.h" |
---|
3204 | |
---|
3205 | #include <sys/types.h> |
---|
3206 | #include <sys/ipc.h> |
---|
3207 | #include <sys/shm.h> |
---|
3208 | int main () { |
---|
3209 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
3210 | if (id == -1) |
---|
3211 | exit(1); |
---|
3212 | if (shmctl(id, IPC_RMID, 0) == -1) |
---|
3213 | exit(1); |
---|
3214 | exit(0); |
---|
3215 | } |
---|
3216 | |
---|
3217 | EOF |
---|
3218 | if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3219 | then |
---|
3220 | rtems_cv_sysv_shm="yes" |
---|
3221 | else |
---|
3222 | echo "configure: failed program was:" >&5 |
---|
3223 | cat conftest.$ac_ext >&5 |
---|
3224 | rm -fr conftest* |
---|
3225 | rtems_cv_sysv_shm="no" |
---|
3226 | fi |
---|
3227 | rm -fr conftest* |
---|
3228 | fi |
---|
3229 | |
---|
3230 | |
---|
3231 | fi |
---|
3232 | |
---|
3233 | echo "$ac_t""$rtems_cv_sysv_shm" 1>&6 |
---|
3234 | |
---|
3235 | if test "$rtems_cv_sysv_shm" != "yes" ; then |
---|
3236 | { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; } |
---|
3237 | fi |
---|
3238 | |
---|
3239 | |
---|
3240 | echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 |
---|
3241 | echo "configure:3242: checking whether $RTEMS_HOST supports System V messages" >&5 |
---|
3242 | if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then |
---|
3243 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3244 | else |
---|
3245 | |
---|
3246 | if test "$cross_compiling" = yes; then |
---|
3247 | : |
---|
3248 | else |
---|
3249 | cat > conftest.$ac_ext <<EOF |
---|
3250 | #line 3251 "configure" |
---|
3251 | #include "confdefs.h" |
---|
3252 | |
---|
3253 | #include <sys/types.h> |
---|
3254 | #include <sys/ipc.h> |
---|
3255 | #include <sys/msg.h> |
---|
3256 | int main () { |
---|
3257 | int id=msgget(IPC_PRIVATE,IPC_CREAT|0400); |
---|
3258 | if (id == -1) |
---|
3259 | exit(1); |
---|
3260 | if (msgctl(id, IPC_RMID, 0) == -1) |
---|
3261 | exit(1); |
---|
3262 | exit(0); |
---|
3263 | } |
---|
3264 | |
---|
3265 | EOF |
---|
3266 | if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3267 | then |
---|
3268 | rtems_cv_sysv_msg="yes" |
---|
3269 | else |
---|
3270 | echo "configure: failed program was:" >&5 |
---|
3271 | cat conftest.$ac_ext >&5 |
---|
3272 | rm -fr conftest* |
---|
3273 | rtems_cv_sysv_msg="no" |
---|
3274 | fi |
---|
3275 | rm -fr conftest* |
---|
3276 | fi |
---|
3277 | |
---|
3278 | |
---|
3279 | fi |
---|
3280 | |
---|
3281 | echo "$ac_t""$rtems_cv_sysv_msg" 1>&6 |
---|
3282 | |
---|
3283 | if test "$rtems_cv_sysv_msg" != "yes" ; then |
---|
3284 | { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; } |
---|
3285 | fi |
---|
3286 | fi |
---|
3287 | |
---|
3288 | # Collect config subdirs for exec/score/tools |
---|
3289 | t="c/src/exec/score/tools" |
---|
3290 | scoretools_cfgdirs="$t/generic" |
---|
3291 | if test -d $srcdir/$t/$target_cpu; then |
---|
3292 | scoretools_cfgdirs="$scoretools_cfgdirs $t/$target_cpu" |
---|
3293 | fi |
---|
3294 | |
---|
3295 | # find all the Executive Makefiles |
---|
3296 | |
---|
3297 | echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 |
---|
3298 | echo "configure:3299: checking for Makefile.in in c/src/exec/rtems" >&5 |
---|
3299 | if test -d $srcdir/c/src/exec/rtems; then |
---|
3300 | rtems_av_save_dir=`pwd`; |
---|
3301 | cd $srcdir; |
---|
3302 | rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3303 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3304 | cd $rtems_av_save_dir; |
---|
3305 | echo "$ac_t""done" 1>&6 |
---|
3306 | else |
---|
3307 | echo "$ac_t""no" 1>&6 |
---|
3308 | fi |
---|
3309 | |
---|
3310 | |
---|
3311 | |
---|
3312 | echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 |
---|
3313 | echo "configure:3314: checking for Makefile.in in c/src/exec/sapi" >&5 |
---|
3314 | if test -d $srcdir/c/src/exec/sapi; then |
---|
3315 | rtems_av_save_dir=`pwd`; |
---|
3316 | cd $srcdir; |
---|
3317 | rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3318 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3319 | cd $rtems_av_save_dir; |
---|
3320 | echo "$ac_t""done" 1>&6 |
---|
3321 | else |
---|
3322 | echo "$ac_t""no" 1>&6 |
---|
3323 | fi |
---|
3324 | |
---|
3325 | |
---|
3326 | |
---|
3327 | echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6 |
---|
3328 | echo "configure:3329: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5 |
---|
3329 | if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then |
---|
3330 | rtems_av_save_dir=`pwd`; |
---|
3331 | cd $srcdir; |
---|
3332 | rtems_av_tmp=`find c/src/exec/score/cpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3333 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3334 | cd $rtems_av_save_dir; |
---|
3335 | echo "$ac_t""done" 1>&6 |
---|
3336 | else |
---|
3337 | echo "$ac_t""no" 1>&6 |
---|
3338 | fi |
---|
3339 | |
---|
3340 | |
---|
3341 | |
---|
3342 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
3343 | |
---|
3344 | echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 |
---|
3345 | echo "configure:3346: checking for Makefile.in in c/src/exec/posix" >&5 |
---|
3346 | if test -d $srcdir/c/src/exec/posix; then |
---|
3347 | rtems_av_save_dir=`pwd`; |
---|
3348 | cd $srcdir; |
---|
3349 | rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3350 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3351 | cd $rtems_av_save_dir; |
---|
3352 | echo "$ac_t""done" 1>&6 |
---|
3353 | else |
---|
3354 | echo "$ac_t""no" 1>&6 |
---|
3355 | fi |
---|
3356 | |
---|
3357 | |
---|
3358 | makefiles="$makefiles c/src/exec/wrapup/posix/Makefile" |
---|
3359 | fi |
---|
3360 | |
---|
3361 | # find all the Makefiles for the BSPs |
---|
3362 | if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then |
---|
3363 | makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile" |
---|
3364 | |
---|
3365 | if test -z "$rtems_bsp"; then |
---|
3366 | echo $ac_n "checking for bsps""... $ac_c" 1>&6 |
---|
3367 | echo "configure:3368: checking for bsps" >&5 |
---|
3368 | files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` |
---|
3369 | for file in $files; do |
---|
3370 | case $file in |
---|
3371 | shared*);; |
---|
3372 | Makefile*);; |
---|
3373 | READ*);; |
---|
3374 | CVS*);; |
---|
3375 | pxfl*);; |
---|
3376 | go32*);; # so the i386 port can pick up the other Makefiles |
---|
3377 | # Now account for BSPs with build variants |
---|
3378 | gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";; |
---|
3379 | p4000) rtems_bsp="$rtems_bsp p4600 p4650";; |
---|
3380 | mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";; |
---|
3381 | *) rtems_bsp="$rtems_bsp $file";; |
---|
3382 | esac; |
---|
3383 | done |
---|
3384 | |
---|
3385 | makefiles="$makefiles c/src/lib/libbsp/bare/Makefile" |
---|
3386 | |
---|
3387 | echo "$ac_t""$rtems_bsp done" 1>&6 |
---|
3388 | fi |
---|
3389 | |
---|
3390 | # collect makefiles for each bsp |
---|
3391 | for i in $rtems_bsp; do |
---|
3392 | # make sure there is a make/custom file for the bsp |
---|
3393 | if test ! -r "$srcdir/make/custom/${i}.cfg"; then |
---|
3394 | { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; } |
---|
3395 | fi |
---|
3396 | |
---|
3397 | # account for "aliased" bsps which share source code |
---|
3398 | case $i in |
---|
3399 | mvme162lx) bspdir=mvme162 ;; # mvme162 board variant |
---|
3400 | gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode |
---|
3401 | go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU |
---|
3402 | p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 |
---|
3403 | p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 |
---|
3404 | *) bspdir=$i;; |
---|
3405 | esac |
---|
3406 | |
---|
3407 | # Is there code where there should be for this BSP? |
---|
3408 | # The bare bsp is a special case as it is not under the target_cpu path |
---|
3409 | case $i in |
---|
3410 | bare) |
---|
3411 | bspcpudir= |
---|
3412 | if test "X${BARE_CPU_CFLAGS}" = "X" ; then |
---|
3413 | { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; } |
---|
3414 | fi |
---|
3415 | if test "X${BARE_CPU_MODEL}" = "X" ; then |
---|
3416 | { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; } |
---|
3417 | fi |
---|
3418 | ;; |
---|
3419 | *) |
---|
3420 | bspcpudir=$target_cpu/ |
---|
3421 | ;; |
---|
3422 | esac |
---|
3423 | |
---|
3424 | if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then |
---|
3425 | RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i" |
---|
3426 | # make sure the Makefiles in a bsp directory are only done once |
---|
3427 | echo $bspdirs | grep $bspdir >/dev/null 2>&1 |
---|
3428 | if test $? -ne 0 ; then |
---|
3429 | bspdirs="$bspdirs $bspdir" |
---|
3430 | |
---|
3431 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6 |
---|
3432 | echo "configure:3433: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5 |
---|
3433 | if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then |
---|
3434 | rtems_av_save_dir=`pwd`; |
---|
3435 | cd $srcdir; |
---|
3436 | rtems_av_tmp=`find c/src/lib/libbsp/$bspcpudir$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3437 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3438 | cd $rtems_av_save_dir; |
---|
3439 | echo "$ac_t""done" 1>&6 |
---|
3440 | else |
---|
3441 | echo "$ac_t""no" 1>&6 |
---|
3442 | fi |
---|
3443 | |
---|
3444 | |
---|
3445 | |
---|
3446 | echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6 |
---|
3447 | echo "configure:3448: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5 |
---|
3448 | if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then |
---|
3449 | rtems_av_save_dir=`pwd`; |
---|
3450 | cd $srcdir; |
---|
3451 | rtems_av_tmp=`find c/src/lib/libbsp/${bspcpudir}shared -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3452 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3453 | cd $rtems_av_save_dir; |
---|
3454 | echo "$ac_t""done" 1>&6 |
---|
3455 | else |
---|
3456 | echo "$ac_t""no" 1>&6 |
---|
3457 | fi |
---|
3458 | |
---|
3459 | |
---|
3460 | |
---|
3461 | # HACK: sed out bsp-tools from makefiles |
---|
3462 | t="c/src/lib/libbsp/$bspcpudir$bspdir/tools" |
---|
3463 | if test -d "$srcdir/$t"; then |
---|
3464 | bsptools_cfgdirs="$bsptools_cfgdirs $t" |
---|
3465 | makefiles=`echo "$makefiles" | sed -e "s%$t/Makefile%%g"` |
---|
3466 | fi |
---|
3467 | fi |
---|
3468 | else |
---|
3469 | { echo "configure: error: unable to find libbsp directory ($bspdir) for $i" 1>&2; exit 1; } |
---|
3470 | fi |
---|
3471 | done |
---|
3472 | fi |
---|
3473 | |
---|
3474 | # find all the CPU dependent library Makefiles |
---|
3475 | |
---|
3476 | echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 |
---|
3477 | echo "configure:3478: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 |
---|
3478 | if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then |
---|
3479 | rtems_av_save_dir=`pwd`; |
---|
3480 | cd $srcdir; |
---|
3481 | rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3482 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3483 | cd $rtems_av_save_dir; |
---|
3484 | echo "$ac_t""done" 1>&6 |
---|
3485 | else |
---|
3486 | echo "$ac_t""no" 1>&6 |
---|
3487 | fi |
---|
3488 | |
---|
3489 | |
---|
3490 | |
---|
3491 | if test "$skip_startfiles" != "yes"; then |
---|
3492 | |
---|
3493 | echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 |
---|
3494 | echo "configure:3495: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 |
---|
3495 | if test -d $srcdir/c/src/lib/start/$target_cpu; then |
---|
3496 | rtems_av_save_dir=`pwd`; |
---|
3497 | cd $srcdir; |
---|
3498 | rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3499 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3500 | cd $rtems_av_save_dir; |
---|
3501 | echo "$ac_t""done" 1>&6 |
---|
3502 | else |
---|
3503 | echo "$ac_t""no" 1>&6 |
---|
3504 | fi |
---|
3505 | |
---|
3506 | |
---|
3507 | fi |
---|
3508 | |
---|
3509 | |
---|
3510 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
3511 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
3512 | inline_dir=macros |
---|
3513 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
3514 | # The problem is that there is currently no code in posix/macros :) |
---|
3515 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
3516 | fi |
---|
3517 | else |
---|
3518 | inline_dir=inline |
---|
3519 | fi |
---|
3520 | |
---|
3521 | # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles |
---|
3522 | echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6 |
---|
3523 | echo "configure:3524: checking if networking is enabled? " >&5 |
---|
3524 | echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6 |
---|
3525 | if test "$RTEMS_HAS_NETWORKING" = "yes"; then |
---|
3526 | |
---|
3527 | echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6 |
---|
3528 | echo "configure:3529: checking for Makefile.in in c/src/lib/libnetworking" >&5 |
---|
3529 | if test -d $srcdir/c/src/lib/libnetworking; then |
---|
3530 | rtems_av_save_dir=`pwd`; |
---|
3531 | cd $srcdir; |
---|
3532 | rtems_av_tmp=`find c/src/lib/libnetworking -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3533 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3534 | cd $rtems_av_save_dir; |
---|
3535 | echo "$ac_t""done" 1>&6 |
---|
3536 | else |
---|
3537 | echo "$ac_t""no" 1>&6 |
---|
3538 | fi |
---|
3539 | |
---|
3540 | |
---|
3541 | |
---|
3542 | echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6 |
---|
3543 | echo "configure:3544: checking for Makefile.in in c/src/lib/librpc" >&5 |
---|
3544 | if test -d $srcdir/c/src/lib/librpc; then |
---|
3545 | rtems_av_save_dir=`pwd`; |
---|
3546 | cd $srcdir; |
---|
3547 | rtems_av_tmp=`find c/src/lib/librpc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3548 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3549 | cd $rtems_av_save_dir; |
---|
3550 | echo "$ac_t""done" 1>&6 |
---|
3551 | else |
---|
3552 | echo "$ac_t""no" 1>&6 |
---|
3553 | fi |
---|
3554 | |
---|
3555 | |
---|
3556 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
3557 | echo $ac_n "checking whether cpu supports rdbg? ""... $ac_c" 1>&6 |
---|
3558 | echo "configure:3559: checking whether cpu supports rdbg? " >&5 |
---|
3559 | test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ; |
---|
3560 | echo "$ac_t""$RTEMS_HAS_RDBG" 1>&6 |
---|
3561 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
3562 | # Extract the first word of "rpcgen", so it can be a program name with args. |
---|
3563 | set dummy rpcgen; ac_word=$2 |
---|
3564 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3565 | echo "configure:3566: checking for $ac_word" >&5 |
---|
3566 | if eval "test \"`echo '$''{'ac_cv_path_RPCGEN'+set}'`\" = set"; then |
---|
3567 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3568 | else |
---|
3569 | case "$RPCGEN" in |
---|
3570 | /*) |
---|
3571 | ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path. |
---|
3572 | ;; |
---|
3573 | ?:/*) |
---|
3574 | ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a dos path. |
---|
3575 | ;; |
---|
3576 | *) |
---|
3577 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3578 | ac_dummy="$PATH" |
---|
3579 | for ac_dir in $ac_dummy; do |
---|
3580 | test -z "$ac_dir" && ac_dir=. |
---|
3581 | if test -f $ac_dir/$ac_word; then |
---|
3582 | ac_cv_path_RPCGEN="$ac_dir/$ac_word" |
---|
3583 | break |
---|
3584 | fi |
---|
3585 | done |
---|
3586 | IFS="$ac_save_ifs" |
---|
3587 | ;; |
---|
3588 | esac |
---|
3589 | fi |
---|
3590 | RPCGEN="$ac_cv_path_RPCGEN" |
---|
3591 | if test -n "$RPCGEN"; then |
---|
3592 | echo "$ac_t""$RPCGEN" 1>&6 |
---|
3593 | else |
---|
3594 | echo "$ac_t""no" 1>&6 |
---|
3595 | fi |
---|
3596 | |
---|
3597 | test -z "$RPCGEN" && RTEMS_HAS_RDBG="no" |
---|
3598 | fi |
---|
3599 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
3600 | for ac_prog in mawk gawk nawk awk |
---|
3601 | do |
---|
3602 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3603 | set dummy $ac_prog; ac_word=$2 |
---|
3604 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3605 | echo "configure:3606: checking for $ac_word" >&5 |
---|
3606 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
---|
3607 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3608 | else |
---|
3609 | if test -n "$AWK"; then |
---|
3610 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3611 | else |
---|
3612 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3613 | ac_dummy="$PATH" |
---|
3614 | for ac_dir in $ac_dummy; do |
---|
3615 | test -z "$ac_dir" && ac_dir=. |
---|
3616 | if test -f $ac_dir/$ac_word; then |
---|
3617 | ac_cv_prog_AWK="$ac_prog" |
---|
3618 | break |
---|
3619 | fi |
---|
3620 | done |
---|
3621 | IFS="$ac_save_ifs" |
---|
3622 | fi |
---|
3623 | fi |
---|
3624 | AWK="$ac_cv_prog_AWK" |
---|
3625 | if test -n "$AWK"; then |
---|
3626 | echo "$ac_t""$AWK" 1>&6 |
---|
3627 | else |
---|
3628 | echo "$ac_t""no" 1>&6 |
---|
3629 | fi |
---|
3630 | |
---|
3631 | test -n "$AWK" && break |
---|
3632 | done |
---|
3633 | |
---|
3634 | test -z "$AWK" && RTEMS_HAS_RDBG="no" |
---|
3635 | fi |
---|
3636 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
3637 | |
---|
3638 | echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6 |
---|
3639 | echo "configure:3640: checking for Makefile.in in c/src/lib/librdbg" >&5 |
---|
3640 | if test -d $srcdir/c/src/lib/librdbg; then |
---|
3641 | rtems_av_save_dir=`pwd`; |
---|
3642 | cd $srcdir; |
---|
3643 | rtems_av_tmp=`find c/src/lib/librdbg -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3644 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3645 | cd $rtems_av_save_dir; |
---|
3646 | echo "$ac_t""done" 1>&6 |
---|
3647 | else |
---|
3648 | echo "$ac_t""no" 1>&6 |
---|
3649 | fi |
---|
3650 | |
---|
3651 | |
---|
3652 | else |
---|
3653 | echo "configure: warning: *** warning disabling --enable-rdbg" 1>&2 |
---|
3654 | fi |
---|
3655 | fi |
---|
3656 | fi |
---|
3657 | |
---|
3658 | # If the C++ support is enabled, then include the Makefiles |
---|
3659 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
3660 | makefiles="$makefiles c/src/lib/librtems++/Makefile" |
---|
3661 | fi |
---|
3662 | |
---|
3663 | |
---|
3664 | # If the tests are enabled, then find all the test suite Makefiles |
---|
3665 | echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 |
---|
3666 | echo "configure:3667: checking if the test suites are enabled? " >&5 |
---|
3667 | # Check whether --enable-tests or --disable-tests was given. |
---|
3668 | if test "${enable_tests+set}" = set; then |
---|
3669 | enableval="$enable_tests" |
---|
3670 | case "${enableval}" in |
---|
3671 | yes) tests_enabled=yes ;; |
---|
3672 | no) tests_enabled=no ;; |
---|
3673 | *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; |
---|
3674 | esac |
---|
3675 | else |
---|
3676 | tests_enabled=no |
---|
3677 | fi |
---|
3678 | |
---|
3679 | echo "$ac_t""$tests_enabled" 1>&6 |
---|
3680 | |
---|
3681 | |
---|
3682 | # always build the test tools |
---|
3683 | testtools_cfgdirs="c/src/tests/tools/generic" |
---|
3684 | if test "$tests_enabled" = "yes"; then |
---|
3685 | |
---|
3686 | echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 |
---|
3687 | echo "configure:3688: checking for Makefile.in in c/src/tests/libtests" >&5 |
---|
3688 | if test -d $srcdir/c/src/tests/libtests; then |
---|
3689 | rtems_av_save_dir=`pwd`; |
---|
3690 | cd $srcdir; |
---|
3691 | rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3692 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3693 | cd $rtems_av_save_dir; |
---|
3694 | echo "$ac_t""done" 1>&6 |
---|
3695 | else |
---|
3696 | echo "$ac_t""no" 1>&6 |
---|
3697 | fi |
---|
3698 | |
---|
3699 | |
---|
3700 | |
---|
3701 | echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 |
---|
3702 | echo "configure:3703: checking for Makefile.in in c/src/tests/sptests" >&5 |
---|
3703 | if test -d $srcdir/c/src/tests/sptests; then |
---|
3704 | rtems_av_save_dir=`pwd`; |
---|
3705 | cd $srcdir; |
---|
3706 | rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3707 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3708 | cd $rtems_av_save_dir; |
---|
3709 | echo "$ac_t""done" 1>&6 |
---|
3710 | else |
---|
3711 | echo "$ac_t""no" 1>&6 |
---|
3712 | fi |
---|
3713 | |
---|
3714 | |
---|
3715 | |
---|
3716 | echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 |
---|
3717 | echo "configure:3718: checking for Makefile.in in c/src/tests/tmtests" >&5 |
---|
3718 | if test -d $srcdir/c/src/tests/tmtests; then |
---|
3719 | rtems_av_save_dir=`pwd`; |
---|
3720 | cd $srcdir; |
---|
3721 | rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3722 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3723 | cd $rtems_av_save_dir; |
---|
3724 | echo "$ac_t""done" 1>&6 |
---|
3725 | else |
---|
3726 | echo "$ac_t""no" 1>&6 |
---|
3727 | fi |
---|
3728 | |
---|
3729 | |
---|
3730 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
3731 | |
---|
3732 | echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 |
---|
3733 | echo "configure:3734: checking for Makefile.in in c/src/tests/mptests" >&5 |
---|
3734 | if test -d $srcdir/c/src/tests/mptests; then |
---|
3735 | rtems_av_save_dir=`pwd`; |
---|
3736 | cd $srcdir; |
---|
3737 | rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3738 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3739 | cd $rtems_av_save_dir; |
---|
3740 | echo "$ac_t""done" 1>&6 |
---|
3741 | else |
---|
3742 | echo "$ac_t""no" 1>&6 |
---|
3743 | fi |
---|
3744 | |
---|
3745 | |
---|
3746 | fi |
---|
3747 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
3748 | |
---|
3749 | echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 |
---|
3750 | echo "configure:3751: checking for Makefile.in in c/src/tests/psxtests" >&5 |
---|
3751 | if test -d $srcdir/c/src/tests/psxtests; then |
---|
3752 | rtems_av_save_dir=`pwd`; |
---|
3753 | cd $srcdir; |
---|
3754 | rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3755 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3756 | cd $rtems_av_save_dir; |
---|
3757 | echo "$ac_t""done" 1>&6 |
---|
3758 | else |
---|
3759 | echo "$ac_t""no" 1>&6 |
---|
3760 | fi |
---|
3761 | |
---|
3762 | |
---|
3763 | fi |
---|
3764 | if test -d "$srcdir/c/src/tests/tools/$target_cpu"; then |
---|
3765 | testtools_cfgdirs="$testtools_cfgdirs c/src/tests/tools/$target_cpu" |
---|
3766 | fi |
---|
3767 | fi |
---|
3768 | |
---|
3769 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
3770 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
3771 | if test "${enable_hwapi+set}" = set; then |
---|
3772 | enableval="$enable_hwapi" |
---|
3773 | case "${enableval}" in |
---|
3774 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
3775 | no) RTEMS_HAS_HWAPI=no ;; |
---|
3776 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
3777 | esac |
---|
3778 | else |
---|
3779 | RTEMS_HAS_HWAPI=no |
---|
3780 | fi |
---|
3781 | |
---|
3782 | |
---|
3783 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
3784 | echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 |
---|
3785 | echo "configure:3786: checking whether libwapi is present" >&5 |
---|
3786 | if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then |
---|
3787 | echo "$ac_t""yes" 1>&6 |
---|
3788 | makefiles="$makefiles c/src/lib/libhwapi/Makefile" |
---|
3789 | |
---|
3790 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6 |
---|
3791 | echo "configure:3792: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5 |
---|
3792 | if test -d $srcdir/c/src/lib/libhwapi/analog; then |
---|
3793 | rtems_av_save_dir=`pwd`; |
---|
3794 | cd $srcdir; |
---|
3795 | rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3796 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3797 | cd $rtems_av_save_dir; |
---|
3798 | echo "$ac_t""done" 1>&6 |
---|
3799 | else |
---|
3800 | echo "$ac_t""no" 1>&6 |
---|
3801 | fi |
---|
3802 | |
---|
3803 | |
---|
3804 | |
---|
3805 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6 |
---|
3806 | echo "configure:3807: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5 |
---|
3807 | if test -d $srcdir/c/src/lib/libhwapi/discrete; then |
---|
3808 | rtems_av_save_dir=`pwd`; |
---|
3809 | cd $srcdir; |
---|
3810 | rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3811 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3812 | cd $rtems_av_save_dir; |
---|
3813 | echo "$ac_t""done" 1>&6 |
---|
3814 | else |
---|
3815 | echo "$ac_t""no" 1>&6 |
---|
3816 | fi |
---|
3817 | |
---|
3818 | |
---|
3819 | |
---|
3820 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6 |
---|
3821 | echo "configure:3822: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5 |
---|
3822 | if test -d $srcdir/c/src/lib/libhwapi/drivers; then |
---|
3823 | rtems_av_save_dir=`pwd`; |
---|
3824 | cd $srcdir; |
---|
3825 | rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3826 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3827 | cd $rtems_av_save_dir; |
---|
3828 | echo "$ac_t""done" 1>&6 |
---|
3829 | else |
---|
3830 | echo "$ac_t""no" 1>&6 |
---|
3831 | fi |
---|
3832 | |
---|
3833 | |
---|
3834 | |
---|
3835 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6 |
---|
3836 | echo "configure:3837: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5 |
---|
3837 | if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then |
---|
3838 | rtems_av_save_dir=`pwd`; |
---|
3839 | cd $srcdir; |
---|
3840 | rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3841 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3842 | cd $rtems_av_save_dir; |
---|
3843 | echo "$ac_t""done" 1>&6 |
---|
3844 | else |
---|
3845 | echo "$ac_t""no" 1>&6 |
---|
3846 | fi |
---|
3847 | |
---|
3848 | |
---|
3849 | |
---|
3850 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6 |
---|
3851 | echo "configure:3852: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5 |
---|
3852 | if test -d $srcdir/c/src/lib/libhwapi/serial; then |
---|
3853 | rtems_av_save_dir=`pwd`; |
---|
3854 | cd $srcdir; |
---|
3855 | rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3856 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3857 | cd $rtems_av_save_dir; |
---|
3858 | echo "$ac_t""done" 1>&6 |
---|
3859 | else |
---|
3860 | echo "$ac_t""no" 1>&6 |
---|
3861 | fi |
---|
3862 | |
---|
3863 | |
---|
3864 | |
---|
3865 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6 |
---|
3866 | echo "configure:3867: checking for Makefile.in in c/src/lib/libhwapi/support" >&5 |
---|
3867 | if test -d $srcdir/c/src/lib/libhwapi/support; then |
---|
3868 | rtems_av_save_dir=`pwd`; |
---|
3869 | cd $srcdir; |
---|
3870 | rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3871 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3872 | cd $rtems_av_save_dir; |
---|
3873 | echo "$ac_t""done" 1>&6 |
---|
3874 | else |
---|
3875 | echo "$ac_t""no" 1>&6 |
---|
3876 | fi |
---|
3877 | |
---|
3878 | |
---|
3879 | |
---|
3880 | echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6 |
---|
3881 | echo "configure:3882: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5 |
---|
3882 | if test -d $srcdir/c/src/lib/libhwapi/wrapup; then |
---|
3883 | rtems_av_save_dir=`pwd`; |
---|
3884 | cd $srcdir; |
---|
3885 | rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3886 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3887 | cd $rtems_av_save_dir; |
---|
3888 | echo "$ac_t""done" 1>&6 |
---|
3889 | else |
---|
3890 | echo "$ac_t""no" 1>&6 |
---|
3891 | fi |
---|
3892 | |
---|
3893 | |
---|
3894 | else |
---|
3895 | { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } |
---|
3896 | fi |
---|
3897 | fi |
---|
3898 | |
---|
3899 | |
---|
3900 | |
---|
3901 | |
---|
3902 | |
---|
3903 | |
---|
3904 | |
---|
3905 | |
---|
3906 | |
---|
3907 | |
---|
3908 | |
---|
3909 | |
---|
3910 | |
---|
3911 | # pick up all the Makefiles in required parts of the tree |
---|
3912 | |
---|
3913 | echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6 |
---|
3914 | echo "configure:3915: checking for Makefile.in in make" >&5 |
---|
3915 | if test -d $srcdir/make; then |
---|
3916 | rtems_av_save_dir=`pwd`; |
---|
3917 | cd $srcdir; |
---|
3918 | rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3919 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3920 | cd $rtems_av_save_dir; |
---|
3921 | echo "$ac_t""done" 1>&6 |
---|
3922 | else |
---|
3923 | echo "$ac_t""no" 1>&6 |
---|
3924 | fi |
---|
3925 | |
---|
3926 | |
---|
3927 | |
---|
3928 | echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6 |
---|
3929 | echo "configure:3930: checking for Makefile.in in c/src/lib/libchip" >&5 |
---|
3930 | if test -d $srcdir/c/src/lib/libchip; then |
---|
3931 | rtems_av_save_dir=`pwd`; |
---|
3932 | cd $srcdir; |
---|
3933 | rtems_av_tmp=`find c/src/lib/libchip -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3934 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3935 | cd $rtems_av_save_dir; |
---|
3936 | echo "$ac_t""done" 1>&6 |
---|
3937 | else |
---|
3938 | echo "$ac_t""no" 1>&6 |
---|
3939 | fi |
---|
3940 | |
---|
3941 | |
---|
3942 | |
---|
3943 | echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 |
---|
3944 | echo "configure:3945: checking for Makefile.in in c/src/lib/libmisc" >&5 |
---|
3945 | if test -d $srcdir/c/src/lib/libmisc; then |
---|
3946 | rtems_av_save_dir=`pwd`; |
---|
3947 | cd $srcdir; |
---|
3948 | rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3949 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3950 | cd $rtems_av_save_dir; |
---|
3951 | echo "$ac_t""done" 1>&6 |
---|
3952 | else |
---|
3953 | echo "$ac_t""no" 1>&6 |
---|
3954 | fi |
---|
3955 | |
---|
3956 | |
---|
3957 | |
---|
3958 | echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 |
---|
3959 | echo "configure:3960: checking for Makefile.in in c/src/tests/samples" >&5 |
---|
3960 | if test -d $srcdir/c/src/tests/samples; then |
---|
3961 | rtems_av_save_dir=`pwd`; |
---|
3962 | cd $srcdir; |
---|
3963 | rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
3964 | makefiles="$makefiles $rtems_av_tmp"; |
---|
3965 | cd $rtems_av_save_dir; |
---|
3966 | echo "$ac_t""done" 1>&6 |
---|
3967 | else |
---|
3968 | echo "$ac_t""no" 1>&6 |
---|
3969 | fi |
---|
3970 | |
---|
3971 | |
---|
3972 | |
---|
3973 | subdirs="c/build-tools" |
---|
3974 | |
---|
3975 | subdirs="c/build-tools c/update-tools" |
---|
3976 | |
---|
3977 | subdirs="c/build-tools c/update-tools $scoretools_cfgdirs" |
---|
3978 | |
---|
3979 | subdirs="c/build-tools c/update-tools $scoretools_cfgdirs $bsptools_cfgdirs" |
---|
3980 | |
---|
3981 | subdirs="c/build-tools c/update-tools $scoretools_cfgdirs $bsptools_cfgdirs $testtools_cfgdirs" |
---|
3982 | |
---|
3983 | |
---|
3984 | # FIXME: libhwapi needs a separate configure.in in future ;- |
---|
3985 | # AC_CONFIG_SUBDIRS(c/src/lib/libhwapi) |
---|
3986 | |
---|
3987 | # try not to explicitly list a Makefile here |
---|
3988 | trap '' 1 2 15 |
---|
3989 | cat > confcache <<\EOF |
---|
3990 | # This file is a shell script that caches the results of configure |
---|
3991 | # tests run on this system so they can be shared between configure |
---|
3992 | # scripts and configure runs. It is not useful on other systems. |
---|
3993 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
3994 | # |
---|
3995 | # By default, configure uses ./config.cache as the cache file, |
---|
3996 | # creating it if it does not exist already. You can give configure |
---|
3997 | # the --cache-file=FILE option to use a different cache file; that is |
---|
3998 | # what configure does when it calls configure scripts in |
---|
3999 | # subdirectories, so they share the cache. |
---|
4000 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
4001 | # config.status only pays attention to the cache file if you give it the |
---|
4002 | # --recheck option to rerun configure. |
---|
4003 | # |
---|
4004 | EOF |
---|
4005 | # The following way of writing the cache mishandles newlines in values, |
---|
4006 | # but we know of no workaround that is simple, portable, and efficient. |
---|
4007 | # So, don't put newlines in cache variables' values. |
---|
4008 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
4009 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
4010 | (set) 2>&1 | |
---|
4011 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
4012 | *ac_space=\ *) |
---|
4013 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
4014 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
4015 | sed -n \ |
---|
4016 | -e "s/'/'\\\\''/g" \ |
---|
4017 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
4018 | ;; |
---|
4019 | *) |
---|
4020 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
4021 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
4022 | ;; |
---|
4023 | esac >> confcache |
---|
4024 | if cmp -s $cache_file confcache; then |
---|
4025 | : |
---|
4026 | else |
---|
4027 | if test -w $cache_file; then |
---|
4028 | echo "updating cache $cache_file" |
---|
4029 | cat confcache > $cache_file |
---|
4030 | else |
---|
4031 | echo "not updating unwritable cache $cache_file" |
---|
4032 | fi |
---|
4033 | fi |
---|
4034 | rm -f confcache |
---|
4035 | |
---|
4036 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
4037 | |
---|
4038 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
4039 | # Let make expand exec_prefix. |
---|
4040 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
4041 | |
---|
4042 | # Any assignment to VPATH causes Sun make to only execute |
---|
4043 | # the first set of double-colon rules, so remove it if not needed. |
---|
4044 | # If there is a colon in the path, we need to keep it. |
---|
4045 | if test "x$srcdir" = x.; then |
---|
4046 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
4047 | fi |
---|
4048 | |
---|
4049 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
4050 | |
---|
4051 | # Transform confdefs.h into DEFS. |
---|
4052 | # Protect against shell expansion while executing Makefile rules. |
---|
4053 | # Protect against Makefile macro expansion. |
---|
4054 | cat > conftest.defs <<\EOF |
---|
4055 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
4056 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
4057 | s%\[%\\&%g |
---|
4058 | s%\]%\\&%g |
---|
4059 | s%\$%$$%g |
---|
4060 | EOF |
---|
4061 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
4062 | rm -f conftest.defs |
---|
4063 | |
---|
4064 | |
---|
4065 | # Without the "./", some shells look in PATH for config.status. |
---|
4066 | : ${CONFIG_STATUS=./config.status} |
---|
4067 | |
---|
4068 | echo creating $CONFIG_STATUS |
---|
4069 | rm -f $CONFIG_STATUS |
---|
4070 | cat > $CONFIG_STATUS <<EOF |
---|
4071 | #! /bin/sh |
---|
4072 | # Generated automatically by configure. |
---|
4073 | # Run this file to recreate the current configuration. |
---|
4074 | # This directory was configured as follows, |
---|
4075 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
4076 | # |
---|
4077 | # $0 $ac_configure_args |
---|
4078 | # |
---|
4079 | # Compiler output produced by configure, useful for debugging |
---|
4080 | # configure, is in ./config.log if it exists. |
---|
4081 | |
---|
4082 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
4083 | for ac_option |
---|
4084 | do |
---|
4085 | case "\$ac_option" in |
---|
4086 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4087 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
4088 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
4089 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
4090 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
4091 | exit 0 ;; |
---|
4092 | -help | --help | --hel | --he | --h) |
---|
4093 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
4094 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
4095 | esac |
---|
4096 | done |
---|
4097 | |
---|
4098 | ac_given_srcdir=$srcdir |
---|
4099 | ac_given_INSTALL="$INSTALL" |
---|
4100 | |
---|
4101 | trap 'rm -fr `echo "Makefile |
---|
4102 | make/host.cfg |
---|
4103 | make/target.cfg |
---|
4104 | make/Templates/Makefile.inc |
---|
4105 | make/compilers/gcc.cfg |
---|
4106 | c/Makefile |
---|
4107 | c/src/Makefile |
---|
4108 | c/src/exec/Makefile |
---|
4109 | c/src/exec/score/Makefile |
---|
4110 | c/src/exec/score/cpu/Makefile |
---|
4111 | c/src/exec/score/include/Makefile |
---|
4112 | c/src/exec/score/include/rtems/Makefile |
---|
4113 | c/src/exec/score/include/rtems/wrap/Makefile |
---|
4114 | c/src/exec/score/include/rtems/score/Makefile |
---|
4115 | c/src/exec/score/${inline_dir}/Makefile |
---|
4116 | c/src/exec/score/${inline_dir}/rtems/Makefile |
---|
4117 | c/src/exec/score/${inline_dir}/rtems/score/Makefile |
---|
4118 | c/src/exec/score/src/Makefile |
---|
4119 | c/src/exec/score/tools/Makefile |
---|
4120 | c/src/exec/wrapup/Makefile |
---|
4121 | c/src/exec/wrapup/rtems/Makefile |
---|
4122 | c/src/lib/Makefile |
---|
4123 | c/src/lib/include/Makefile |
---|
4124 | c/src/lib/libbsp/Makefile |
---|
4125 | c/src/lib/libbsp/shmdr/Makefile |
---|
4126 | c/src/lib/libc/Makefile |
---|
4127 | c/src/lib/libcpu/Makefile |
---|
4128 | c/src/lib/start/Makefile |
---|
4129 | c/src/lib/wrapup/Makefile |
---|
4130 | c/src/tests/Makefile |
---|
4131 | c/src/tests/support/Makefile |
---|
4132 | c/src/tests/support/include/Makefile |
---|
4133 | c/src/tests/support/stubdr/Makefile |
---|
4134 | c/src/tests/support/wrapup/Makefile |
---|
4135 | c/src/tests/tools/Makefile |
---|
4136 | $makefiles" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
4137 | EOF |
---|
4138 | cat >> $CONFIG_STATUS <<EOF |
---|
4139 | |
---|
4140 | # Protect against being on the right side of a sed subst in config.status. |
---|
4141 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
4142 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
4143 | $ac_vpsub |
---|
4144 | $extrasub |
---|
4145 | s%@SHELL@%$SHELL%g |
---|
4146 | s%@CFLAGS@%$CFLAGS%g |
---|
4147 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
4148 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
4149 | s%@FFLAGS@%$FFLAGS%g |
---|
4150 | s%@DEFS@%$DEFS%g |
---|
4151 | s%@LDFLAGS@%$LDFLAGS%g |
---|
4152 | s%@LIBS@%$LIBS%g |
---|
4153 | s%@exec_prefix@%$exec_prefix%g |
---|
4154 | s%@prefix@%$prefix%g |
---|
4155 | s%@program_transform_name@%$program_transform_name%g |
---|
4156 | s%@bindir@%$bindir%g |
---|
4157 | s%@sbindir@%$sbindir%g |
---|
4158 | s%@libexecdir@%$libexecdir%g |
---|
4159 | s%@datadir@%$datadir%g |
---|
4160 | s%@sysconfdir@%$sysconfdir%g |
---|
4161 | s%@sharedstatedir@%$sharedstatedir%g |
---|
4162 | s%@localstatedir@%$localstatedir%g |
---|
4163 | s%@libdir@%$libdir%g |
---|
4164 | s%@includedir@%$includedir%g |
---|
4165 | s%@oldincludedir@%$oldincludedir%g |
---|
4166 | s%@infodir@%$infodir%g |
---|
4167 | s%@mandir@%$mandir%g |
---|
4168 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
4169 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
4170 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
4171 | s%@SET_MAKE@%$SET_MAKE%g |
---|
4172 | s%@host@%$host%g |
---|
4173 | s%@host_alias@%$host_alias%g |
---|
4174 | s%@host_cpu@%$host_cpu%g |
---|
4175 | s%@host_vendor@%$host_vendor%g |
---|
4176 | s%@host_os@%$host_os%g |
---|
4177 | s%@target@%$target%g |
---|
4178 | s%@target_alias@%$target_alias%g |
---|
4179 | s%@target_cpu@%$target_cpu%g |
---|
4180 | s%@target_vendor@%$target_vendor%g |
---|
4181 | s%@target_os@%$target_os%g |
---|
4182 | s%@build@%$build%g |
---|
4183 | s%@build_alias@%$build_alias%g |
---|
4184 | s%@build_cpu@%$build_cpu%g |
---|
4185 | s%@build_vendor@%$build_vendor%g |
---|
4186 | s%@build_os@%$build_os%g |
---|
4187 | s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g |
---|
4188 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
4189 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
4190 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
4191 | s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g |
---|
4192 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
4193 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
4194 | s%@CAT@%$CAT%g |
---|
4195 | s%@RM@%$RM%g |
---|
4196 | s%@CP@%$CP%g |
---|
4197 | s%@MV@%$MV%g |
---|
4198 | s%@LN@%$LN%g |
---|
4199 | s%@LN_S@%$LN_S%g |
---|
4200 | s%@CHMOD@%$CHMOD%g |
---|
4201 | s%@SORT@%$SORT%g |
---|
4202 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
4203 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
4204 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
4205 | s%@PERL@%$PERL%g |
---|
4206 | s%@MKDIR@%$MKDIR%g |
---|
4207 | s%@TOUCH@%$TOUCH%g |
---|
4208 | s%@CMP@%$CMP%g |
---|
4209 | s%@SED@%$SED%g |
---|
4210 | s%@M4@%$M4%g |
---|
4211 | s%@KSH@%$KSH%g |
---|
4212 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
4213 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
4214 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
---|
4215 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
4216 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
4217 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
4218 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
4219 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
4220 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
4221 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
4222 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
4223 | s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g |
---|
4224 | s%@CC@%$CC%g |
---|
4225 | s%@EXEEXT@%$EXEEXT%g |
---|
4226 | s%@GCCSED@%$GCCSED%g |
---|
4227 | s%@RPCGEN@%$RPCGEN%g |
---|
4228 | s%@AWK@%$AWK%g |
---|
4229 | s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g |
---|
4230 | s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g |
---|
4231 | s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g |
---|
4232 | s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g |
---|
4233 | s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g |
---|
4234 | s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g |
---|
4235 | s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g |
---|
4236 | s%@program_prefix@%$program_prefix%g |
---|
4237 | s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g |
---|
4238 | s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g |
---|
4239 | s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g |
---|
4240 | s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g |
---|
4241 | s%@subdirs@%$subdirs%g |
---|
4242 | |
---|
4243 | CEOF |
---|
4244 | EOF |
---|
4245 | |
---|
4246 | cat >> $CONFIG_STATUS <<\EOF |
---|
4247 | |
---|
4248 | # Split the substitutions into bite-sized pieces for seds with |
---|
4249 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4250 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
4251 | ac_file=1 # Number of current file. |
---|
4252 | ac_beg=1 # First line for current file. |
---|
4253 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
4254 | ac_more_lines=: |
---|
4255 | ac_sed_cmds="" |
---|
4256 | while $ac_more_lines; do |
---|
4257 | if test $ac_beg -gt 1; then |
---|
4258 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4259 | else |
---|
4260 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4261 | fi |
---|
4262 | if test ! -s conftest.s$ac_file; then |
---|
4263 | ac_more_lines=false |
---|
4264 | rm -f conftest.s$ac_file |
---|
4265 | else |
---|
4266 | if test -z "$ac_sed_cmds"; then |
---|
4267 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
4268 | else |
---|
4269 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
4270 | fi |
---|
4271 | ac_file=`expr $ac_file + 1` |
---|
4272 | ac_beg=$ac_end |
---|
4273 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
4274 | fi |
---|
4275 | done |
---|
4276 | if test -z "$ac_sed_cmds"; then |
---|
4277 | ac_sed_cmds=cat |
---|
4278 | fi |
---|
4279 | EOF |
---|
4280 | |
---|
4281 | cat >> $CONFIG_STATUS <<EOF |
---|
4282 | |
---|
4283 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
4284 | make/host.cfg |
---|
4285 | make/target.cfg |
---|
4286 | make/Templates/Makefile.inc |
---|
4287 | make/compilers/gcc.cfg |
---|
4288 | c/Makefile |
---|
4289 | c/src/Makefile |
---|
4290 | c/src/exec/Makefile |
---|
4291 | c/src/exec/score/Makefile |
---|
4292 | c/src/exec/score/cpu/Makefile |
---|
4293 | c/src/exec/score/include/Makefile |
---|
4294 | c/src/exec/score/include/rtems/Makefile |
---|
4295 | c/src/exec/score/include/rtems/wrap/Makefile |
---|
4296 | c/src/exec/score/include/rtems/score/Makefile |
---|
4297 | c/src/exec/score/${inline_dir}/Makefile |
---|
4298 | c/src/exec/score/${inline_dir}/rtems/Makefile |
---|
4299 | c/src/exec/score/${inline_dir}/rtems/score/Makefile |
---|
4300 | c/src/exec/score/src/Makefile |
---|
4301 | c/src/exec/score/tools/Makefile |
---|
4302 | c/src/exec/wrapup/Makefile |
---|
4303 | c/src/exec/wrapup/rtems/Makefile |
---|
4304 | c/src/lib/Makefile |
---|
4305 | c/src/lib/include/Makefile |
---|
4306 | c/src/lib/libbsp/Makefile |
---|
4307 | c/src/lib/libbsp/shmdr/Makefile |
---|
4308 | c/src/lib/libc/Makefile |
---|
4309 | c/src/lib/libcpu/Makefile |
---|
4310 | c/src/lib/start/Makefile |
---|
4311 | c/src/lib/wrapup/Makefile |
---|
4312 | c/src/tests/Makefile |
---|
4313 | c/src/tests/support/Makefile |
---|
4314 | c/src/tests/support/include/Makefile |
---|
4315 | c/src/tests/support/stubdr/Makefile |
---|
4316 | c/src/tests/support/wrapup/Makefile |
---|
4317 | c/src/tests/tools/Makefile |
---|
4318 | $makefiles"} |
---|
4319 | EOF |
---|
4320 | cat >> $CONFIG_STATUS <<\EOF |
---|
4321 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
4322 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4323 | case "$ac_file" in |
---|
4324 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4325 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4326 | *) ac_file_in="${ac_file}.in" ;; |
---|
4327 | esac |
---|
4328 | |
---|
4329 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
4330 | |
---|
4331 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4332 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4333 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4334 | # The file is in a subdirectory. |
---|
4335 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4336 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
4337 | # A "../" for each directory in $ac_dir_suffix. |
---|
4338 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
4339 | else |
---|
4340 | ac_dir_suffix= ac_dots= |
---|
4341 | fi |
---|
4342 | |
---|
4343 | case "$ac_given_srcdir" in |
---|
4344 | .) srcdir=. |
---|
4345 | if test -z "$ac_dots"; then top_srcdir=. |
---|
4346 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
4347 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
4348 | *) # Relative path. |
---|
4349 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
4350 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
4351 | esac |
---|
4352 | |
---|
4353 | case "$ac_given_INSTALL" in |
---|
4354 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
4355 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
4356 | esac |
---|
4357 | |
---|
4358 | echo creating "$ac_file" |
---|
4359 | rm -f "$ac_file" |
---|
4360 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
4361 | case "$ac_file" in |
---|
4362 | *Makefile*) ac_comsub="1i\\ |
---|
4363 | # $configure_input" ;; |
---|
4364 | *) ac_comsub= ;; |
---|
4365 | esac |
---|
4366 | |
---|
4367 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4368 | sed -e "$ac_comsub |
---|
4369 | s%@configure_input@%$configure_input%g |
---|
4370 | s%@srcdir@%$srcdir%g |
---|
4371 | s%@top_srcdir@%$top_srcdir%g |
---|
4372 | s%@INSTALL@%$INSTALL%g |
---|
4373 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
4374 | fi; done |
---|
4375 | rm -f conftest.s* |
---|
4376 | |
---|
4377 | EOF |
---|
4378 | cat >> $CONFIG_STATUS <<EOF |
---|
4379 | |
---|
4380 | EOF |
---|
4381 | cat >> $CONFIG_STATUS <<\EOF |
---|
4382 | |
---|
4383 | exit 0 |
---|
4384 | EOF |
---|
4385 | chmod +x $CONFIG_STATUS |
---|
4386 | rm -fr confdefs* $ac_clean_files |
---|
4387 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
4388 | |
---|
4389 | if test "$no_recursion" != yes; then |
---|
4390 | |
---|
4391 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
4392 | ac_sub_configure_args= |
---|
4393 | ac_prev= |
---|
4394 | for ac_arg in $ac_configure_args; do |
---|
4395 | if test -n "$ac_prev"; then |
---|
4396 | ac_prev= |
---|
4397 | continue |
---|
4398 | fi |
---|
4399 | case "$ac_arg" in |
---|
4400 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
4401 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
4402 | ac_prev=cache_file ;; |
---|
4403 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
4404 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
4405 | ;; |
---|
4406 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
4407 | ac_prev=srcdir ;; |
---|
4408 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
4409 | ;; |
---|
4410 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
4411 | esac |
---|
4412 | done |
---|
4413 | |
---|
4414 | for ac_config_dir in c/build-tools c/update-tools $scoretools_cfgdirs $bsptools_cfgdirs $testtools_cfgdirs; do |
---|
4415 | |
---|
4416 | # Do not complain, so a configure script can configure whichever |
---|
4417 | # parts of a large source tree are present. |
---|
4418 | if test ! -d $srcdir/$ac_config_dir; then |
---|
4419 | continue |
---|
4420 | fi |
---|
4421 | |
---|
4422 | echo configuring in $ac_config_dir |
---|
4423 | |
---|
4424 | case "$srcdir" in |
---|
4425 | .) ;; |
---|
4426 | *) |
---|
4427 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
4428 | else |
---|
4429 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
4430 | fi |
---|
4431 | ;; |
---|
4432 | esac |
---|
4433 | |
---|
4434 | ac_popdir=`pwd` |
---|
4435 | cd $ac_config_dir |
---|
4436 | |
---|
4437 | # A "../" for each directory in /$ac_config_dir. |
---|
4438 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
4439 | |
---|
4440 | case "$srcdir" in |
---|
4441 | .) # No --srcdir option. We are building in place. |
---|
4442 | ac_sub_srcdir=$srcdir ;; |
---|
4443 | /*) # Absolute path. |
---|
4444 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
4445 | *) # Relative path. |
---|
4446 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
4447 | esac |
---|
4448 | |
---|
4449 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
4450 | if test -f $ac_sub_srcdir/configure; then |
---|
4451 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
4452 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
4453 | ac_sub_configure=$ac_configure |
---|
4454 | else |
---|
4455 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
4456 | ac_sub_configure= |
---|
4457 | fi |
---|
4458 | |
---|
4459 | # The recursion is here. |
---|
4460 | if test -n "$ac_sub_configure"; then |
---|
4461 | |
---|
4462 | # Make the cache file name correct relative to the subdirectory. |
---|
4463 | case "$cache_file" in |
---|
4464 | /*) ac_sub_cache_file=$cache_file ;; |
---|
4465 | *) # Relative path. |
---|
4466 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
4467 | esac |
---|
4468 | case "$ac_given_INSTALL" in |
---|
4469 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
4470 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
4471 | esac |
---|
4472 | |
---|
4473 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
4474 | # The eval makes quoting arguments work. |
---|
4475 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
4476 | then : |
---|
4477 | else |
---|
4478 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
4479 | fi |
---|
4480 | fi |
---|
4481 | |
---|
4482 | cd $ac_popdir |
---|
4483 | done |
---|
4484 | fi |
---|
4485 | |
---|
4486 | |
---|
4487 | echo |
---|
4488 | echo target architecture: $target_cpu. |
---|
4489 | echo available BSPs: $rtems_bsp. |
---|
4490 | echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST. |
---|
4491 | echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\' |
---|
4492 | echo |
---|