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