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