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