1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --with-target-subdir=DIR" |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
18 | (and sometimes confusing) to the casual installer" |
---|
19 | ac_help="$ac_help |
---|
20 | --enable-multiprocessing enable multiprocessing interface" |
---|
21 | ac_help="$ac_help |
---|
22 | --enable-posix enable posix interface" |
---|
23 | ac_help="$ac_help |
---|
24 | --enable-networking enable TCP/IP stack" |
---|
25 | ac_help="$ac_help |
---|
26 | --enable-rtems-inlines enable RTEMS inline functions |
---|
27 | (default:enabled, disable to use macros)" |
---|
28 | ac_help="$ac_help |
---|
29 | --enable-cxx enable C++ support, |
---|
30 | and build the rtems++ library" |
---|
31 | ac_help="$ac_help |
---|
32 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
33 | ac_help="$ac_help |
---|
34 | --enable-libcdir=directory set the directory for the C library" |
---|
35 | |
---|
36 | # Initialize some variables set by options. |
---|
37 | # The variables have the same names as the options, with |
---|
38 | # dashes changed to underlines. |
---|
39 | build=NONE |
---|
40 | cache_file=./config.cache |
---|
41 | exec_prefix=NONE |
---|
42 | host=NONE |
---|
43 | no_create= |
---|
44 | nonopt=NONE |
---|
45 | no_recursion= |
---|
46 | prefix=NONE |
---|
47 | program_prefix=NONE |
---|
48 | program_suffix=NONE |
---|
49 | program_transform_name=s,x,x, |
---|
50 | silent= |
---|
51 | site= |
---|
52 | srcdir= |
---|
53 | target=NONE |
---|
54 | verbose= |
---|
55 | x_includes=NONE |
---|
56 | x_libraries=NONE |
---|
57 | bindir='${exec_prefix}/bin' |
---|
58 | sbindir='${exec_prefix}/sbin' |
---|
59 | libexecdir='${exec_prefix}/libexec' |
---|
60 | datadir='${prefix}/share' |
---|
61 | sysconfdir='${prefix}/etc' |
---|
62 | sharedstatedir='${prefix}/com' |
---|
63 | localstatedir='${prefix}/var' |
---|
64 | libdir='${exec_prefix}/lib' |
---|
65 | includedir='${prefix}/include' |
---|
66 | oldincludedir='/usr/include' |
---|
67 | infodir='${prefix}/info' |
---|
68 | mandir='${prefix}/man' |
---|
69 | |
---|
70 | # Initialize some other variables. |
---|
71 | subdirs= |
---|
72 | MFLAGS= MAKEFLAGS= |
---|
73 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
74 | # Maximum number of lines to put in a shell here document. |
---|
75 | ac_max_here_lines=12 |
---|
76 | |
---|
77 | ac_prev= |
---|
78 | for ac_option |
---|
79 | do |
---|
80 | |
---|
81 | # If the previous option needs an argument, assign it. |
---|
82 | if test -n "$ac_prev"; then |
---|
83 | eval "$ac_prev=\$ac_option" |
---|
84 | ac_prev= |
---|
85 | continue |
---|
86 | fi |
---|
87 | |
---|
88 | case "$ac_option" in |
---|
89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
90 | *) ac_optarg= ;; |
---|
91 | esac |
---|
92 | |
---|
93 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
94 | |
---|
95 | case "$ac_option" in |
---|
96 | |
---|
97 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
98 | ac_prev=bindir ;; |
---|
99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
100 | bindir="$ac_optarg" ;; |
---|
101 | |
---|
102 | -build | --build | --buil | --bui | --bu) |
---|
103 | ac_prev=build ;; |
---|
104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
105 | build="$ac_optarg" ;; |
---|
106 | |
---|
107 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
109 | ac_prev=cache_file ;; |
---|
110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
112 | cache_file="$ac_optarg" ;; |
---|
113 | |
---|
114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
115 | ac_prev=datadir ;; |
---|
116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
117 | | --da=*) |
---|
118 | datadir="$ac_optarg" ;; |
---|
119 | |
---|
120 | -disable-* | --disable-*) |
---|
121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
122 | # Reject names that are not valid shell variable names. |
---|
123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
125 | fi |
---|
126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
127 | eval "enable_${ac_feature}=no" ;; |
---|
128 | |
---|
129 | -enable-* | --enable-*) |
---|
130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
131 | # Reject names that are not valid shell variable names. |
---|
132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
134 | fi |
---|
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
136 | case "$ac_option" in |
---|
137 | *=*) ;; |
---|
138 | *) ac_optarg=yes ;; |
---|
139 | esac |
---|
140 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
141 | |
---|
142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
144 | | --exec | --exe | --ex) |
---|
145 | ac_prev=exec_prefix ;; |
---|
146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
148 | | --exec=* | --exe=* | --ex=*) |
---|
149 | exec_prefix="$ac_optarg" ;; |
---|
150 | |
---|
151 | -gas | --gas | --ga | --g) |
---|
152 | # Obsolete; use --with-gas. |
---|
153 | with_gas=yes ;; |
---|
154 | |
---|
155 | -help | --help | --hel | --he) |
---|
156 | # Omit some internal or obsolete options to make the list less imposing. |
---|
157 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
158 | cat << EOF |
---|
159 | Usage: configure [options] [host] |
---|
160 | Options: [defaults in brackets after descriptions] |
---|
161 | Configuration: |
---|
162 | --cache-file=FILE cache test results in FILE |
---|
163 | --help print this message |
---|
164 | --no-create do not create output files |
---|
165 | --quiet, --silent do not print \`checking...' messages |
---|
166 | --version print the version of autoconf that created configure |
---|
167 | Directory and file names: |
---|
168 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
169 | [$ac_default_prefix] |
---|
170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
171 | [same as prefix] |
---|
172 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
175 | --datadir=DIR read-only architecture-independent data in DIR |
---|
176 | [PREFIX/share] |
---|
177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
179 | [PREFIX/com] |
---|
180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
182 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
184 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
185 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
186 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
187 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
188 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
189 | --program-transform-name=PROGRAM |
---|
190 | run sed PROGRAM on installed program names |
---|
191 | EOF |
---|
192 | cat << EOF |
---|
193 | Host type: |
---|
194 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
195 | --host=HOST configure for HOST [guessed] |
---|
196 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
197 | Features and packages: |
---|
198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
202 | --x-includes=DIR X include files are in DIR |
---|
203 | --x-libraries=DIR X library files are in DIR |
---|
204 | EOF |
---|
205 | if test -n "$ac_help"; then |
---|
206 | echo "--enable and --with options recognized:$ac_help" |
---|
207 | fi |
---|
208 | exit 0 ;; |
---|
209 | |
---|
210 | -host | --host | --hos | --ho) |
---|
211 | ac_prev=host ;; |
---|
212 | -host=* | --host=* | --hos=* | --ho=*) |
---|
213 | host="$ac_optarg" ;; |
---|
214 | |
---|
215 | -includedir | --includedir | --includedi | --included | --include \ |
---|
216 | | --includ | --inclu | --incl | --inc) |
---|
217 | ac_prev=includedir ;; |
---|
218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
219 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
220 | includedir="$ac_optarg" ;; |
---|
221 | |
---|
222 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
223 | ac_prev=infodir ;; |
---|
224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
225 | infodir="$ac_optarg" ;; |
---|
226 | |
---|
227 | -libdir | --libdir | --libdi | --libd) |
---|
228 | ac_prev=libdir ;; |
---|
229 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
230 | libdir="$ac_optarg" ;; |
---|
231 | |
---|
232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
233 | | --libexe | --libex | --libe) |
---|
234 | ac_prev=libexecdir ;; |
---|
235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
236 | | --libexe=* | --libex=* | --libe=*) |
---|
237 | libexecdir="$ac_optarg" ;; |
---|
238 | |
---|
239 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
240 | | --localstate | --localstat | --localsta | --localst \ |
---|
241 | | --locals | --local | --loca | --loc | --lo) |
---|
242 | ac_prev=localstatedir ;; |
---|
243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
246 | localstatedir="$ac_optarg" ;; |
---|
247 | |
---|
248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
249 | ac_prev=mandir ;; |
---|
250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
251 | mandir="$ac_optarg" ;; |
---|
252 | |
---|
253 | -nfp | --nfp | --nf) |
---|
254 | # Obsolete; use --without-fp. |
---|
255 | with_fp=no ;; |
---|
256 | |
---|
257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
258 | | --no-cr | --no-c) |
---|
259 | no_create=yes ;; |
---|
260 | |
---|
261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
263 | no_recursion=yes ;; |
---|
264 | |
---|
265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
267 | | --oldin | --oldi | --old | --ol | --o) |
---|
268 | ac_prev=oldincludedir ;; |
---|
269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
272 | oldincludedir="$ac_optarg" ;; |
---|
273 | |
---|
274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
275 | ac_prev=prefix ;; |
---|
276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
277 | prefix="$ac_optarg" ;; |
---|
278 | |
---|
279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
280 | | --program-pre | --program-pr | --program-p) |
---|
281 | ac_prev=program_prefix ;; |
---|
282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
284 | program_prefix="$ac_optarg" ;; |
---|
285 | |
---|
286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
287 | | --program-suf | --program-su | --program-s) |
---|
288 | ac_prev=program_suffix ;; |
---|
289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
291 | program_suffix="$ac_optarg" ;; |
---|
292 | |
---|
293 | -program-transform-name | --program-transform-name \ |
---|
294 | | --program-transform-nam | --program-transform-na \ |
---|
295 | | --program-transform-n | --program-transform- \ |
---|
296 | | --program-transform | --program-transfor \ |
---|
297 | | --program-transfo | --program-transf \ |
---|
298 | | --program-trans | --program-tran \ |
---|
299 | | --progr-tra | --program-tr | --program-t) |
---|
300 | ac_prev=program_transform_name ;; |
---|
301 | -program-transform-name=* | --program-transform-name=* \ |
---|
302 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
303 | | --program-transform-n=* | --program-transform-=* \ |
---|
304 | | --program-transform=* | --program-transfor=* \ |
---|
305 | | --program-transfo=* | --program-transf=* \ |
---|
306 | | --program-trans=* | --program-tran=* \ |
---|
307 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
308 | program_transform_name="$ac_optarg" ;; |
---|
309 | |
---|
310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
311 | | -silent | --silent | --silen | --sile | --sil) |
---|
312 | silent=yes ;; |
---|
313 | |
---|
314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
315 | ac_prev=sbindir ;; |
---|
316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
317 | | --sbi=* | --sb=*) |
---|
318 | sbindir="$ac_optarg" ;; |
---|
319 | |
---|
320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
322 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
323 | | --sha | --sh) |
---|
324 | ac_prev=sharedstatedir ;; |
---|
325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
328 | | --sha=* | --sh=*) |
---|
329 | sharedstatedir="$ac_optarg" ;; |
---|
330 | |
---|
331 | -site | --site | --sit) |
---|
332 | ac_prev=site ;; |
---|
333 | -site=* | --site=* | --sit=*) |
---|
334 | site="$ac_optarg" ;; |
---|
335 | |
---|
336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
337 | ac_prev=srcdir ;; |
---|
338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
339 | srcdir="$ac_optarg" ;; |
---|
340 | |
---|
341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
342 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
343 | ac_prev=sysconfdir ;; |
---|
344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
346 | sysconfdir="$ac_optarg" ;; |
---|
347 | |
---|
348 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
349 | ac_prev=target ;; |
---|
350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
351 | target="$ac_optarg" ;; |
---|
352 | |
---|
353 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
354 | verbose=yes ;; |
---|
355 | |
---|
356 | -version | --version | --versio | --versi | --vers) |
---|
357 | echo "configure generated by autoconf version 2.13" |
---|
358 | exit 0 ;; |
---|
359 | |
---|
360 | -with-* | --with-*) |
---|
361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
362 | # Reject names that are not valid shell variable names. |
---|
363 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
365 | fi |
---|
366 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
367 | case "$ac_option" in |
---|
368 | *=*) ;; |
---|
369 | *) ac_optarg=yes ;; |
---|
370 | esac |
---|
371 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
372 | |
---|
373 | -without-* | --without-*) |
---|
374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
375 | # Reject names that are not valid shell variable names. |
---|
376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
378 | fi |
---|
379 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
380 | eval "with_${ac_package}=no" ;; |
---|
381 | |
---|
382 | --x) |
---|
383 | # Obsolete; use --with-x. |
---|
384 | with_x=yes ;; |
---|
385 | |
---|
386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
387 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
388 | ac_prev=x_includes ;; |
---|
389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
391 | x_includes="$ac_optarg" ;; |
---|
392 | |
---|
393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
395 | ac_prev=x_libraries ;; |
---|
396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
398 | x_libraries="$ac_optarg" ;; |
---|
399 | |
---|
400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
401 | ;; |
---|
402 | |
---|
403 | *) |
---|
404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
405 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
406 | fi |
---|
407 | if test "x$nonopt" != xNONE; then |
---|
408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
409 | fi |
---|
410 | nonopt="$ac_option" |
---|
411 | ;; |
---|
412 | |
---|
413 | esac |
---|
414 | done |
---|
415 | |
---|
416 | if test -n "$ac_prev"; then |
---|
417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
418 | fi |
---|
419 | |
---|
420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
421 | |
---|
422 | # File descriptor usage: |
---|
423 | # 0 standard input |
---|
424 | # 1 file creation |
---|
425 | # 2 errors and warnings |
---|
426 | # 3 some systems may open it to /dev/tty |
---|
427 | # 4 used on the Kubota Titan |
---|
428 | # 6 checking for... messages and results |
---|
429 | # 5 compiler messages saved in config.log |
---|
430 | if test "$silent" = yes; then |
---|
431 | exec 6>/dev/null |
---|
432 | else |
---|
433 | exec 6>&1 |
---|
434 | fi |
---|
435 | exec 5>./config.log |
---|
436 | |
---|
437 | echo "\ |
---|
438 | This file contains any messages produced by compilers while |
---|
439 | running configure, to aid debugging if configure makes a mistake. |
---|
440 | " 1>&5 |
---|
441 | |
---|
442 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
443 | # Also quote any args containing shell metacharacters. |
---|
444 | ac_configure_args= |
---|
445 | for ac_arg |
---|
446 | do |
---|
447 | case "$ac_arg" in |
---|
448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
449 | | --no-cr | --no-c) ;; |
---|
450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
455 | esac |
---|
456 | done |
---|
457 | |
---|
458 | # NLS nuisances. |
---|
459 | # Only set these to C if already set. These must not be set unconditionally |
---|
460 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
461 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
462 | # Non-C LC_CTYPE values break the ctype check. |
---|
463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
464 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
465 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
466 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
467 | |
---|
468 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
469 | rm -rf conftest* confdefs.h |
---|
470 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
471 | echo > confdefs.h |
---|
472 | |
---|
473 | # A filename unique to this package, relative to the directory that |
---|
474 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
475 | ac_unique_file=score |
---|
476 | |
---|
477 | # Find the source files, if location was not specified. |
---|
478 | if test -z "$srcdir"; then |
---|
479 | ac_srcdir_defaulted=yes |
---|
480 | # Try the directory containing this script, then its parent. |
---|
481 | ac_prog=$0 |
---|
482 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
483 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
484 | srcdir=$ac_confdir |
---|
485 | if test ! -r $srcdir/$ac_unique_file; then |
---|
486 | srcdir=.. |
---|
487 | fi |
---|
488 | else |
---|
489 | ac_srcdir_defaulted=no |
---|
490 | fi |
---|
491 | if test ! -r $srcdir/$ac_unique_file; then |
---|
492 | if test "$ac_srcdir_defaulted" = yes; then |
---|
493 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
494 | else |
---|
495 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
496 | fi |
---|
497 | fi |
---|
498 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
499 | |
---|
500 | # Prefer explicitly selected file to automatically selected ones. |
---|
501 | if test -z "$CONFIG_SITE"; then |
---|
502 | if test "x$prefix" != xNONE; then |
---|
503 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
504 | else |
---|
505 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
506 | fi |
---|
507 | fi |
---|
508 | for ac_site_file in $CONFIG_SITE; do |
---|
509 | if test -r "$ac_site_file"; then |
---|
510 | echo "loading site script $ac_site_file" |
---|
511 | . "$ac_site_file" |
---|
512 | fi |
---|
513 | done |
---|
514 | |
---|
515 | if test -r "$cache_file"; then |
---|
516 | echo "loading cache $cache_file" |
---|
517 | . $cache_file |
---|
518 | else |
---|
519 | echo "creating cache $cache_file" |
---|
520 | > $cache_file |
---|
521 | fi |
---|
522 | |
---|
523 | ac_ext=c |
---|
524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
525 | ac_cpp='$CPP $CPPFLAGS' |
---|
526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
528 | cross_compiling=$ac_cv_prog_cc_cross |
---|
529 | |
---|
530 | ac_exeext= |
---|
531 | ac_objext=o |
---|
532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
533 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
535 | ac_n= ac_c=' |
---|
536 | ' ac_t=' ' |
---|
537 | else |
---|
538 | ac_n=-n ac_c= ac_t= |
---|
539 | fi |
---|
540 | else |
---|
541 | ac_n= ac_c='\c' ac_t= |
---|
542 | fi |
---|
543 | |
---|
544 | |
---|
545 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
546 | if test "${with_target_subdir+set}" = set; then |
---|
547 | withval="$with_target_subdir" |
---|
548 | TARGET_SUBDIR="$withval" |
---|
549 | else |
---|
550 | TARGET_SUBDIR="." |
---|
551 | fi |
---|
552 | |
---|
553 | |
---|
554 | RTEMS_TOPdir="../../.."; |
---|
555 | |
---|
556 | |
---|
557 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
558 | echo "configure:559: checking for RTEMS Version" >&5 |
---|
559 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
560 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
561 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
562 | else |
---|
563 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
564 | fi |
---|
565 | if test -z "$RTEMS_VERSION"; then |
---|
566 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
567 | fi |
---|
568 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
569 | |
---|
570 | ac_aux_dir= |
---|
571 | for ac_dir in ../../.. $srcdir/../../..; do |
---|
572 | if test -f $ac_dir/install-sh; then |
---|
573 | ac_aux_dir=$ac_dir |
---|
574 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
575 | break |
---|
576 | elif test -f $ac_dir/install.sh; then |
---|
577 | ac_aux_dir=$ac_dir |
---|
578 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
579 | break |
---|
580 | fi |
---|
581 | done |
---|
582 | if test -z "$ac_aux_dir"; then |
---|
583 | { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; } |
---|
584 | fi |
---|
585 | ac_config_guess=$ac_aux_dir/config.guess |
---|
586 | ac_config_sub=$ac_aux_dir/config.sub |
---|
587 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
588 | |
---|
589 | |
---|
590 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
591 | echo "configure:592: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
592 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
593 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
594 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
595 | else |
---|
596 | cat > conftestmake <<\EOF |
---|
597 | all: |
---|
598 | @echo 'ac_maketemp="${MAKE}"' |
---|
599 | EOF |
---|
600 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
601 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
602 | if test -n "$ac_maketemp"; then |
---|
603 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
604 | else |
---|
605 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
606 | fi |
---|
607 | rm -f conftestmake |
---|
608 | fi |
---|
609 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
610 | echo "$ac_t""yes" 1>&6 |
---|
611 | SET_MAKE= |
---|
612 | else |
---|
613 | echo "$ac_t""no" 1>&6 |
---|
614 | SET_MAKE="MAKE=${MAKE-make}" |
---|
615 | fi |
---|
616 | |
---|
617 | |
---|
618 | |
---|
619 | # Do some error checking and defaulting for the host and target type. |
---|
620 | # The inputs are: |
---|
621 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
622 | # |
---|
623 | # The rules are: |
---|
624 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
625 | # same time. |
---|
626 | # 2. Host defaults to nonopt. |
---|
627 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
628 | # as determined by config.guess. |
---|
629 | # 4. Target and build default to nonopt. |
---|
630 | # 5. If nonopt is not specified, then target and build default to host. |
---|
631 | |
---|
632 | # The aliases save the names the user supplied, while $host etc. |
---|
633 | # will get canonicalized. |
---|
634 | case $host---$target---$nonopt in |
---|
635 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
636 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
637 | esac |
---|
638 | |
---|
639 | |
---|
640 | # Make sure we can run config.sub. |
---|
641 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
642 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
643 | fi |
---|
644 | |
---|
645 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
646 | echo "configure:647: checking host system type" >&5 |
---|
647 | |
---|
648 | host_alias=$host |
---|
649 | case "$host_alias" in |
---|
650 | NONE) |
---|
651 | case $nonopt in |
---|
652 | NONE) |
---|
653 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
654 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
655 | fi ;; |
---|
656 | *) host_alias=$nonopt ;; |
---|
657 | esac ;; |
---|
658 | esac |
---|
659 | |
---|
660 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
661 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
662 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
663 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
664 | echo "$ac_t""$host" 1>&6 |
---|
665 | |
---|
666 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
667 | echo "configure:668: checking target system type" >&5 |
---|
668 | |
---|
669 | target_alias=$target |
---|
670 | case "$target_alias" in |
---|
671 | NONE) |
---|
672 | case $nonopt in |
---|
673 | NONE) target_alias=$host_alias ;; |
---|
674 | *) target_alias=$nonopt ;; |
---|
675 | esac ;; |
---|
676 | esac |
---|
677 | |
---|
678 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
679 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
680 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
681 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
682 | echo "$ac_t""$target" 1>&6 |
---|
683 | |
---|
684 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
685 | echo "configure:686: checking build system type" >&5 |
---|
686 | |
---|
687 | build_alias=$build |
---|
688 | case "$build_alias" in |
---|
689 | NONE) |
---|
690 | case $nonopt in |
---|
691 | NONE) build_alias=$host_alias ;; |
---|
692 | *) build_alias=$nonopt ;; |
---|
693 | esac ;; |
---|
694 | esac |
---|
695 | |
---|
696 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
697 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
698 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
699 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
700 | echo "$ac_t""$build" 1>&6 |
---|
701 | |
---|
702 | test "$host_alias" != "$target_alias" && |
---|
703 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
704 | NONENONEs,x,x, && |
---|
705 | program_prefix=${target_alias}- |
---|
706 | |
---|
707 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
708 | echo "configure:709: checking rtems target cpu" >&5 |
---|
709 | case "${target}" in |
---|
710 | # hpux unix port should go here |
---|
711 | i[3456]86-go32-rtems*) |
---|
712 | RTEMS_CPU=i386 |
---|
713 | ;; |
---|
714 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
715 | RTEMS_CPU=unix |
---|
716 | ;; |
---|
717 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
718 | RTEMS_CPU=unix |
---|
719 | ;; |
---|
720 | no_cpu-*rtems*) |
---|
721 | RTEMS_CPU=no_cpu |
---|
722 | ;; |
---|
723 | sparc-sun-solaris*) # unix "simulator" port |
---|
724 | RTEMS_CPU=unix |
---|
725 | ;; |
---|
726 | *) |
---|
727 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
728 | ;; |
---|
729 | esac |
---|
730 | |
---|
731 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
732 | |
---|
733 | |
---|
734 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
735 | echo "configure:736: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
736 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
737 | if test "${enable_maintainer_mode+set}" = set; then |
---|
738 | enableval="$enable_maintainer_mode" |
---|
739 | USE_MAINTAINER_MODE=$enableval |
---|
740 | else |
---|
741 | USE_MAINTAINER_MODE=no |
---|
742 | fi |
---|
743 | |
---|
744 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
745 | |
---|
746 | |
---|
747 | if test $USE_MAINTAINER_MODE = yes; then |
---|
748 | MAINTAINER_MODE_TRUE= |
---|
749 | MAINTAINER_MODE_FALSE='#' |
---|
750 | else |
---|
751 | MAINTAINER_MODE_TRUE='#' |
---|
752 | MAINTAINER_MODE_FALSE= |
---|
753 | fi |
---|
754 | MAINT=$MAINTAINER_MODE_TRUE |
---|
755 | |
---|
756 | |
---|
757 | |
---|
758 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
759 | if test "${enable_multiprocessing+set}" = set; then |
---|
760 | enableval="$enable_multiprocessing" |
---|
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 | |
---|
772 | # Check whether --enable-posix or --disable-posix was given. |
---|
773 | if test "${enable_posix+set}" = set; then |
---|
774 | enableval="$enable_posix" |
---|
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 | |
---|
786 | case "${target}" in |
---|
787 | # hpux unix port should go here |
---|
788 | i[3456]86-go32-rtems*) |
---|
789 | RTEMS_HAS_POSIX_API=no |
---|
790 | ;; |
---|
791 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
792 | RTEMS_HAS_POSIX_API=no |
---|
793 | ;; |
---|
794 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
795 | RTEMS_HAS_POSIX_API=no |
---|
796 | ;; |
---|
797 | no_cpu-*rtems*) |
---|
798 | RTEMS_HAS_POSIX_API=no |
---|
799 | ;; |
---|
800 | sparc-sun-solaris*) # unix "simulator" port |
---|
801 | RTEMS_HAS_POSIX_API=no |
---|
802 | ;; |
---|
803 | *) |
---|
804 | ;; |
---|
805 | esac |
---|
806 | |
---|
807 | |
---|
808 | |
---|
809 | # Check whether --enable-networking or --disable-networking was given. |
---|
810 | if test "${enable_networking+set}" = set; then |
---|
811 | enableval="$enable_networking" |
---|
812 | case "${enableval}" in |
---|
813 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
814 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
815 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
816 | esac |
---|
817 | else |
---|
818 | RTEMS_HAS_NETWORKING=yes |
---|
819 | fi |
---|
820 | |
---|
821 | |
---|
822 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
823 | if test "${enable_rtems_inlines+set}" = set; then |
---|
824 | enableval="$enable_rtems_inlines" |
---|
825 | case "${enableval}" in |
---|
826 | yes) RTEMS_USE_MACROS=no ;; |
---|
827 | no) RTEMS_USE_MACROS=yes ;; |
---|
828 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
829 | esac |
---|
830 | else |
---|
831 | RTEMS_USE_MACROS=no |
---|
832 | fi |
---|
833 | |
---|
834 | |
---|
835 | |
---|
836 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
837 | if test "${enable_cxx+set}" = set; then |
---|
838 | enableval="$enable_cxx" |
---|
839 | case "${enableval}" in |
---|
840 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
841 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
842 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
843 | esac |
---|
844 | else |
---|
845 | RTEMS_HAS_CPLUSPLUS=no |
---|
846 | fi |
---|
847 | |
---|
848 | |
---|
849 | |
---|
850 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
851 | if test "${enable_gcc28+set}" = set; then |
---|
852 | enableval="$enable_gcc28" |
---|
853 | case "${enableval}" in |
---|
854 | yes) RTEMS_USE_GCC272=no ;; |
---|
855 | no) RTEMS_USE_GCC272=yes ;; |
---|
856 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
857 | esac |
---|
858 | else |
---|
859 | RTEMS_USE_GCC272=no |
---|
860 | fi |
---|
861 | |
---|
862 | |
---|
863 | |
---|
864 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
865 | if test "${enable_libcdir+set}" = set; then |
---|
866 | enableval="$enable_libcdir" |
---|
867 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
868 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
869 | fi |
---|
870 | |
---|
871 | |
---|
872 | |
---|
873 | echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 |
---|
874 | echo "configure:875: checking for RTEMS_BSP" >&5 |
---|
875 | if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then |
---|
876 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
877 | else |
---|
878 | test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; |
---|
879 | |
---|
880 | fi |
---|
881 | if test -z "$rtems_cv_RTEMS_BSP"; then |
---|
882 | { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; } |
---|
883 | fi |
---|
884 | RTEMS_BSP="$rtems_cv_RTEMS_BSP" |
---|
885 | echo "$ac_t""${RTEMS_BSP}" 1>&6 |
---|
886 | |
---|
887 | |
---|
888 | |
---|
889 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
890 | echo "configure:891: checking whether ln -s works" >&5 |
---|
891 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
892 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
893 | else |
---|
894 | rm -f conftestdata |
---|
895 | if ln -s X conftestdata 2>/dev/null |
---|
896 | then |
---|
897 | rm -f conftestdata |
---|
898 | ac_cv_prog_LN_S="ln -s" |
---|
899 | else |
---|
900 | ac_cv_prog_LN_S=ln |
---|
901 | fi |
---|
902 | fi |
---|
903 | LN_S="$ac_cv_prog_LN_S" |
---|
904 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
905 | echo "$ac_t""yes" 1>&6 |
---|
906 | else |
---|
907 | echo "$ac_t""no" 1>&6 |
---|
908 | fi |
---|
909 | |
---|
910 | # Find a good install program. We prefer a C program (faster), |
---|
911 | # so one script is as good as another. But avoid the broken or |
---|
912 | # incompatible versions: |
---|
913 | # SysV /etc/install, /usr/sbin/install |
---|
914 | # SunOS /usr/etc/install |
---|
915 | # IRIX /sbin/install |
---|
916 | # AIX /bin/install |
---|
917 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
918 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
919 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
920 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
921 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
922 | echo "configure:923: checking for a BSD compatible install" >&5 |
---|
923 | if test -z "$INSTALL"; then |
---|
924 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
925 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
926 | else |
---|
927 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
928 | for ac_dir in $PATH; do |
---|
929 | # Account for people who put trailing slashes in PATH elements. |
---|
930 | case "$ac_dir/" in |
---|
931 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
932 | *) |
---|
933 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
934 | # Don't use installbsd from OSF since it installs stuff as root |
---|
935 | # by default. |
---|
936 | for ac_prog in ginstall scoinst install; do |
---|
937 | if test -f $ac_dir/$ac_prog; then |
---|
938 | if test $ac_prog = install && |
---|
939 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
940 | # AIX install. It has an incompatible calling convention. |
---|
941 | : |
---|
942 | else |
---|
943 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
944 | break 2 |
---|
945 | fi |
---|
946 | fi |
---|
947 | done |
---|
948 | ;; |
---|
949 | esac |
---|
950 | done |
---|
951 | IFS="$ac_save_IFS" |
---|
952 | |
---|
953 | fi |
---|
954 | if test "${ac_cv_path_install+set}" = set; then |
---|
955 | INSTALL="$ac_cv_path_install" |
---|
956 | else |
---|
957 | # As a last resort, use the slow shell script. We don't cache a |
---|
958 | # path for INSTALL within a source directory, because that will |
---|
959 | # break other packages using the cache if that directory is |
---|
960 | # removed, or if the path is relative. |
---|
961 | INSTALL="$ac_install_sh" |
---|
962 | fi |
---|
963 | fi |
---|
964 | echo "$ac_t""$INSTALL" 1>&6 |
---|
965 | |
---|
966 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
967 | # It thinks the first close brace ends the variable substitution. |
---|
968 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
969 | |
---|
970 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
971 | |
---|
972 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
973 | |
---|
974 | |
---|
975 | for ac_prog in bash ksh sh |
---|
976 | do |
---|
977 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
978 | set dummy $ac_prog; ac_word=$2 |
---|
979 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
980 | echo "configure:981: checking for $ac_word" >&5 |
---|
981 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
---|
982 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
983 | else |
---|
984 | case "$KSH" in |
---|
985 | /*) |
---|
986 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
---|
987 | ;; |
---|
988 | ?:/*) |
---|
989 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. |
---|
990 | ;; |
---|
991 | *) |
---|
992 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
993 | ac_dummy="$PATH" |
---|
994 | for ac_dir in $ac_dummy; do |
---|
995 | test -z "$ac_dir" && ac_dir=. |
---|
996 | if test -f $ac_dir/$ac_word; then |
---|
997 | ac_cv_path_KSH="$ac_dir/$ac_word" |
---|
998 | break |
---|
999 | fi |
---|
1000 | done |
---|
1001 | IFS="$ac_save_ifs" |
---|
1002 | ;; |
---|
1003 | esac |
---|
1004 | fi |
---|
1005 | KSH="$ac_cv_path_KSH" |
---|
1006 | if test -n "$KSH"; then |
---|
1007 | echo "$ac_t""$KSH" 1>&6 |
---|
1008 | else |
---|
1009 | echo "$ac_t""no" 1>&6 |
---|
1010 | fi |
---|
1011 | |
---|
1012 | test -n "$KSH" && break |
---|
1013 | done |
---|
1014 | |
---|
1015 | if test -z "$KSH"; then |
---|
1016 | { echo "configure: error: *** |
---|
1017 | Cannot determine a usable shell bash/ksh/sh |
---|
1018 | Please contact your system administrator " 1>&2; exit 1; }; |
---|
1019 | fi |
---|
1020 | |
---|
1021 | |
---|
1022 | |
---|
1023 | |
---|
1024 | # Is this a supported CPU? |
---|
1025 | echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 |
---|
1026 | echo "configure:1027: checking if cpu $RTEMS_CPU is supported" >&5 |
---|
1027 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
1028 | echo "$ac_t""yes" 1>&6 |
---|
1029 | else |
---|
1030 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
1031 | fi |
---|
1032 | |
---|
1033 | |
---|
1034 | RTEMS_HOST=$host_os |
---|
1035 | case "${target}" in |
---|
1036 | # hpux unix port should go here |
---|
1037 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
1038 | RTEMS_HOST=Linux |
---|
1039 | ;; |
---|
1040 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1041 | RTEMS_HOST=FreeBSD |
---|
1042 | ;; |
---|
1043 | sparc-sun-solaris*) # unix "simulator" port |
---|
1044 | RTEMS_HOST=Solaris |
---|
1045 | ;; |
---|
1046 | *) |
---|
1047 | ;; |
---|
1048 | esac |
---|
1049 | |
---|
1050 | |
---|
1051 | |
---|
1052 | |
---|
1053 | if test "$TARGET_SUBDIR" = "." ; then |
---|
1054 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
1055 | else |
---|
1056 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
1057 | fi |
---|
1058 | |
---|
1059 | |
---|
1060 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
1061 | |
---|
1062 | |
---|
1063 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
1064 | |
---|
1065 | |
---|
1066 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
1067 | |
---|
1068 | |
---|
1069 | |
---|
1070 | |
---|
1071 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
1072 | if [ "${target}" = "${host}" ] ; then |
---|
1073 | program_prefix= |
---|
1074 | else |
---|
1075 | program_prefix=${target}- |
---|
1076 | fi |
---|
1077 | fi |
---|
1078 | |
---|
1079 | |
---|
1080 | |
---|
1081 | |
---|
1082 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
1083 | do |
---|
1084 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1085 | set dummy $ac_prog; ac_word=$2 |
---|
1086 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1087 | echo "configure:1088: checking for $ac_word" >&5 |
---|
1088 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
1089 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1090 | else |
---|
1091 | case "$CC_FOR_TARGET" in |
---|
1092 | /*) |
---|
1093 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
1094 | ;; |
---|
1095 | ?:/*) |
---|
1096 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1097 | ;; |
---|
1098 | *) |
---|
1099 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1100 | ac_dummy="$PATH" |
---|
1101 | for ac_dir in $ac_dummy; do |
---|
1102 | test -z "$ac_dir" && ac_dir=. |
---|
1103 | if test -f $ac_dir/$ac_word; then |
---|
1104 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
1105 | break |
---|
1106 | fi |
---|
1107 | done |
---|
1108 | IFS="$ac_save_ifs" |
---|
1109 | ;; |
---|
1110 | esac |
---|
1111 | fi |
---|
1112 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
1113 | if test -n "$CC_FOR_TARGET"; then |
---|
1114 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
1115 | else |
---|
1116 | echo "$ac_t""no" 1>&6 |
---|
1117 | fi |
---|
1118 | |
---|
1119 | test -n "$CC_FOR_TARGET" && break |
---|
1120 | done |
---|
1121 | |
---|
1122 | test -z "$CC_FOR_TARGET" \ |
---|
1123 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1124 | |
---|
1125 | rtems_save_CC=$CC |
---|
1126 | rtems_save_CFLAGS=$CFLAGS |
---|
1127 | |
---|
1128 | CC=$CC_FOR_TARGET |
---|
1129 | |
---|
1130 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1131 | echo "configure:1132: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1132 | |
---|
1133 | ac_ext=c |
---|
1134 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1135 | ac_cpp='$CPP $CPPFLAGS' |
---|
1136 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1137 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1138 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1139 | |
---|
1140 | cat > conftest.$ac_ext << EOF |
---|
1141 | |
---|
1142 | #line 1143 "configure" |
---|
1143 | #include "confdefs.h" |
---|
1144 | |
---|
1145 | main(){return(0);} |
---|
1146 | EOF |
---|
1147 | if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1148 | ac_cv_prog_cc_works=yes |
---|
1149 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1150 | if (./conftest; exit) 2>/dev/null; then |
---|
1151 | ac_cv_prog_cc_cross=no |
---|
1152 | else |
---|
1153 | ac_cv_prog_cc_cross=yes |
---|
1154 | fi |
---|
1155 | else |
---|
1156 | echo "configure: failed program was:" >&5 |
---|
1157 | cat conftest.$ac_ext >&5 |
---|
1158 | ac_cv_prog_cc_works=no |
---|
1159 | fi |
---|
1160 | rm -fr conftest* |
---|
1161 | ac_ext=c |
---|
1162 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1163 | ac_cpp='$CPP $CPPFLAGS' |
---|
1164 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1165 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1166 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1167 | |
---|
1168 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1169 | if test $ac_cv_prog_cc_works = no; then |
---|
1170 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1171 | fi |
---|
1172 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1173 | echo "configure:1174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1174 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1175 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1176 | |
---|
1177 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1178 | echo "configure:1179: checking whether we are using GNU C" >&5 |
---|
1179 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1180 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1181 | else |
---|
1182 | cat > conftest.c <<EOF |
---|
1183 | #ifdef __GNUC__ |
---|
1184 | yes; |
---|
1185 | #endif |
---|
1186 | EOF |
---|
1187 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1188 | ac_cv_prog_gcc=yes |
---|
1189 | else |
---|
1190 | ac_cv_prog_gcc=no |
---|
1191 | fi |
---|
1192 | fi |
---|
1193 | |
---|
1194 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1195 | |
---|
1196 | if test $ac_cv_prog_gcc = yes; then |
---|
1197 | GCC=yes |
---|
1198 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1199 | ac_save_CFLAGS="$CFLAGS" |
---|
1200 | CFLAGS= |
---|
1201 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1202 | echo "configure:1203: checking whether ${CC-cc} accepts -g" >&5 |
---|
1203 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1204 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1205 | else |
---|
1206 | echo 'void f(){}' > conftest.c |
---|
1207 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1208 | ac_cv_prog_cc_g=yes |
---|
1209 | else |
---|
1210 | ac_cv_prog_cc_g=no |
---|
1211 | fi |
---|
1212 | rm -f conftest* |
---|
1213 | |
---|
1214 | fi |
---|
1215 | |
---|
1216 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1217 | if test "$ac_test_CFLAGS" = set; then |
---|
1218 | CFLAGS="$ac_save_CFLAGS" |
---|
1219 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1220 | CFLAGS="-g -O2" |
---|
1221 | else |
---|
1222 | CFLAGS="-O2" |
---|
1223 | fi |
---|
1224 | else |
---|
1225 | GCC= |
---|
1226 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
1227 | fi |
---|
1228 | |
---|
1229 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
1230 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
1231 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
1232 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
1233 | |
---|
1234 | CC=$rtems_save_CC |
---|
1235 | CFLAGS=$rtems_save_CFLAGS |
---|
1236 | |
---|
1237 | unset ac_cv_prog_gcc |
---|
1238 | unset ac_cv_prog_cc_g |
---|
1239 | unset ac_cv_prog_cc_works |
---|
1240 | unset ac_cv_prog_cc_cross |
---|
1241 | |
---|
1242 | |
---|
1243 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
1244 | echo "configure:1245: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
1245 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
1246 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1247 | else |
---|
1248 | |
---|
1249 | rtems_cv_gcc_specs=no |
---|
1250 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1251 | touch confspec |
---|
1252 | echo 'void f(){}' >conftest.c |
---|
1253 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
1254 | rtems_cv_gcc_specs=yes |
---|
1255 | fi |
---|
1256 | fi |
---|
1257 | rm -f confspec conftest* |
---|
1258 | |
---|
1259 | fi |
---|
1260 | |
---|
1261 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
1262 | |
---|
1263 | |
---|
1264 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
1265 | echo "configure:1266: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
1266 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
1267 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1268 | else |
---|
1269 | |
---|
1270 | rtems_cv_gcc_pipe=no |
---|
1271 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1272 | case "$host_os" in |
---|
1273 | cygwin*) |
---|
1274 | ;; |
---|
1275 | *) |
---|
1276 | echo 'void f(){}' >conftest.c |
---|
1277 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
1278 | rtems_cv_gcc_pipe=yes |
---|
1279 | fi |
---|
1280 | rm -f conftest* |
---|
1281 | ;; |
---|
1282 | esac |
---|
1283 | fi |
---|
1284 | |
---|
1285 | fi |
---|
1286 | |
---|
1287 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
1288 | |
---|
1289 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
1290 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
1291 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
1292 | RTEMS_USE_GCC272=yes |
---|
1293 | fi |
---|
1294 | fi |
---|
1295 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
1296 | |
---|
1297 | case $host_os in |
---|
1298 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
1299 | *) ;; |
---|
1300 | esac |
---|
1301 | |
---|
1302 | |
---|
1303 | |
---|
1304 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | for ac_prog in "$program_prefix"g++ "$program_prefix"c++ |
---|
1309 | do |
---|
1310 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1311 | set dummy $ac_prog; ac_word=$2 |
---|
1312 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1313 | echo "configure:1314: checking for $ac_word" >&5 |
---|
1314 | if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then |
---|
1315 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1316 | else |
---|
1317 | case "$CXX_FOR_TARGET" in |
---|
1318 | /*) |
---|
1319 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. |
---|
1320 | ;; |
---|
1321 | ?:/*) |
---|
1322 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1323 | ;; |
---|
1324 | *) |
---|
1325 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1326 | ac_dummy="$PATH" |
---|
1327 | for ac_dir in $ac_dummy; do |
---|
1328 | test -z "$ac_dir" && ac_dir=. |
---|
1329 | if test -f $ac_dir/$ac_word; then |
---|
1330 | ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" |
---|
1331 | break |
---|
1332 | fi |
---|
1333 | done |
---|
1334 | IFS="$ac_save_ifs" |
---|
1335 | ;; |
---|
1336 | esac |
---|
1337 | fi |
---|
1338 | CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" |
---|
1339 | if test -n "$CXX_FOR_TARGET"; then |
---|
1340 | echo "$ac_t""$CXX_FOR_TARGET" 1>&6 |
---|
1341 | else |
---|
1342 | echo "$ac_t""no" 1>&6 |
---|
1343 | fi |
---|
1344 | |
---|
1345 | test -n "$CXX_FOR_TARGET" && break |
---|
1346 | done |
---|
1347 | |
---|
1348 | test -z "$CXX_FOR_TARGET" \ |
---|
1349 | && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } |
---|
1350 | |
---|
1351 | rtems_save_CXX=$CXX |
---|
1352 | rtems_save_CXXFLAGS=$CXXFLAGS |
---|
1353 | |
---|
1354 | CXX=$CXX_FOR_TARGET |
---|
1355 | |
---|
1356 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1357 | echo "configure:1358: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
1358 | |
---|
1359 | ac_ext=C |
---|
1360 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1361 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1362 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1363 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1364 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1365 | |
---|
1366 | cat > conftest.$ac_ext << EOF |
---|
1367 | |
---|
1368 | #line 1369 "configure" |
---|
1369 | #include "confdefs.h" |
---|
1370 | |
---|
1371 | int main(){return(0);} |
---|
1372 | EOF |
---|
1373 | if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1374 | ac_cv_prog_cxx_works=yes |
---|
1375 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1376 | if (./conftest; exit) 2>/dev/null; then |
---|
1377 | ac_cv_prog_cxx_cross=no |
---|
1378 | else |
---|
1379 | ac_cv_prog_cxx_cross=yes |
---|
1380 | fi |
---|
1381 | else |
---|
1382 | echo "configure: failed program was:" >&5 |
---|
1383 | cat conftest.$ac_ext >&5 |
---|
1384 | ac_cv_prog_cxx_works=no |
---|
1385 | fi |
---|
1386 | rm -fr conftest* |
---|
1387 | ac_ext=c |
---|
1388 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1389 | ac_cpp='$CPP $CPPFLAGS' |
---|
1390 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1391 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1392 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1393 | |
---|
1394 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
1395 | if test $ac_cv_prog_cxx_works = no; then |
---|
1396 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
1397 | fi |
---|
1398 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1399 | echo "configure:1400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1400 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
1401 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1402 | |
---|
1403 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
1404 | echo "configure:1405: checking whether we are using GNU C++" >&5 |
---|
1405 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
1406 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1407 | else |
---|
1408 | cat > conftest.C <<EOF |
---|
1409 | #ifdef __GNUC__ |
---|
1410 | yes; |
---|
1411 | #endif |
---|
1412 | EOF |
---|
1413 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1414 | ac_cv_prog_gxx=yes |
---|
1415 | else |
---|
1416 | ac_cv_prog_gxx=no |
---|
1417 | fi |
---|
1418 | fi |
---|
1419 | |
---|
1420 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
1421 | |
---|
1422 | if test $ac_cv_prog_gxx = yes; then |
---|
1423 | GXX=yes |
---|
1424 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
1425 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
1426 | CXXFLAGS= |
---|
1427 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
1428 | echo "configure:1429: checking whether ${CXX-g++} accepts -g" >&5 |
---|
1429 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
1430 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1431 | else |
---|
1432 | echo 'void f(){}' > conftest.cc |
---|
1433 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
1434 | ac_cv_prog_cxx_g=yes |
---|
1435 | else |
---|
1436 | ac_cv_prog_cxx_g=no |
---|
1437 | fi |
---|
1438 | rm -f conftest* |
---|
1439 | |
---|
1440 | fi |
---|
1441 | |
---|
1442 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
1443 | if test "$ac_test_CXXFLAGS" = set; then |
---|
1444 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
1445 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
1446 | CXXFLAGS="-g -O2" |
---|
1447 | else |
---|
1448 | CXXFLAGS="-O2" |
---|
1449 | fi |
---|
1450 | else |
---|
1451 | GXX= |
---|
1452 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
1453 | fi |
---|
1454 | |
---|
1455 | rtems_cv_prog_gxx=$ac_cv_prog_gxx |
---|
1456 | rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g |
---|
1457 | rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works |
---|
1458 | rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross |
---|
1459 | |
---|
1460 | CXX=$rtems_save_CXX |
---|
1461 | CXXFLAGS=$rtems_save_CXXFLAGS |
---|
1462 | |
---|
1463 | unset ac_cv_prog_gxx |
---|
1464 | unset ac_cv_prog_cc_g |
---|
1465 | unset ac_cv_prog_cxx_works |
---|
1466 | unset ac_cv_prog_cxx_cross |
---|
1467 | |
---|
1468 | if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then |
---|
1469 | { echo "configure: error: *** |
---|
1470 | Inconsistency in compiler configuration: |
---|
1471 | Target C compiler and Target C++ compiler |
---|
1472 | must both either be cross compilers or native compilers |
---|
1473 | Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; } |
---|
1474 | fi |
---|
1475 | |
---|
1476 | fi |
---|
1477 | |
---|
1478 | |
---|
1479 | |
---|
1480 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
1481 | echo "configure:1482: checking target's ar" >&5 |
---|
1482 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
1483 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1484 | else |
---|
1485 | : |
---|
1486 | fi |
---|
1487 | |
---|
1488 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
1489 | |
---|
1490 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
1491 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
1492 | else |
---|
1493 | if test -z "$AR_FOR_TARGET" ; then |
---|
1494 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1495 | # We are using gcc, ask it about its tool |
---|
1496 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1497 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1498 | case $host_os in |
---|
1499 | *cygwin*) |
---|
1500 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
1501 | ;; |
---|
1502 | *) |
---|
1503 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
1504 | ;; |
---|
1505 | esac |
---|
1506 | |
---|
1507 | fi |
---|
1508 | else |
---|
1509 | # The user set an environment variable. |
---|
1510 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1511 | # will override the environment variable, which isn't what the user |
---|
1512 | # intends |
---|
1513 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1514 | echo "configure:1515: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
1515 | case "$AR_FOR_TARGET" in |
---|
1516 | /*) # valid |
---|
1517 | echo "$ac_t"""yes"" 1>&6 |
---|
1518 | ;; |
---|
1519 | *) # invalid for AC_PATH_PROG |
---|
1520 | echo "$ac_t"""no"" 1>&6 |
---|
1521 | { echo "configure: error: *** |
---|
1522 | Environment variable AR_FOR_TARGET should either |
---|
1523 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1524 | ;; |
---|
1525 | esac |
---|
1526 | fi |
---|
1527 | |
---|
1528 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
1529 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
1530 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1531 | echo "configure:1532: checking for $ac_word" >&5 |
---|
1532 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
1533 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1534 | else |
---|
1535 | case "$AR_FOR_TARGET" in |
---|
1536 | /*) |
---|
1537 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
1538 | ;; |
---|
1539 | ?:/*) |
---|
1540 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1541 | ;; |
---|
1542 | *) |
---|
1543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1544 | ac_dummy="$PATH" |
---|
1545 | for ac_dir in $ac_dummy; do |
---|
1546 | test -z "$ac_dir" && ac_dir=. |
---|
1547 | if test -f $ac_dir/$ac_word; then |
---|
1548 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
1549 | break |
---|
1550 | fi |
---|
1551 | done |
---|
1552 | IFS="$ac_save_ifs" |
---|
1553 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
1554 | ;; |
---|
1555 | esac |
---|
1556 | fi |
---|
1557 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
1558 | if test -n "$AR_FOR_TARGET"; then |
---|
1559 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
1560 | else |
---|
1561 | echo "$ac_t""no" 1>&6 |
---|
1562 | fi |
---|
1563 | |
---|
1564 | fi |
---|
1565 | |
---|
1566 | |
---|
1567 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
1568 | echo "configure:1569: checking target's as" >&5 |
---|
1569 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
1570 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1571 | else |
---|
1572 | : |
---|
1573 | fi |
---|
1574 | |
---|
1575 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
1576 | |
---|
1577 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
1578 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
1579 | else |
---|
1580 | if test -z "$AS_FOR_TARGET" ; then |
---|
1581 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1582 | # We are using gcc, ask it about its tool |
---|
1583 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1584 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1585 | case $host_os in |
---|
1586 | *cygwin*) |
---|
1587 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
1588 | ;; |
---|
1589 | *) |
---|
1590 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
1591 | ;; |
---|
1592 | esac |
---|
1593 | |
---|
1594 | fi |
---|
1595 | else |
---|
1596 | # The user set an environment variable. |
---|
1597 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1598 | # will override the environment variable, which isn't what the user |
---|
1599 | # intends |
---|
1600 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1601 | echo "configure:1602: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
1602 | case "$AS_FOR_TARGET" in |
---|
1603 | /*) # valid |
---|
1604 | echo "$ac_t"""yes"" 1>&6 |
---|
1605 | ;; |
---|
1606 | *) # invalid for AC_PATH_PROG |
---|
1607 | echo "$ac_t"""no"" 1>&6 |
---|
1608 | { echo "configure: error: *** |
---|
1609 | Environment variable AS_FOR_TARGET should either |
---|
1610 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1611 | ;; |
---|
1612 | esac |
---|
1613 | fi |
---|
1614 | |
---|
1615 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
1616 | set dummy "$program_prefix"as; ac_word=$2 |
---|
1617 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1618 | echo "configure:1619: checking for $ac_word" >&5 |
---|
1619 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
1620 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1621 | else |
---|
1622 | case "$AS_FOR_TARGET" in |
---|
1623 | /*) |
---|
1624 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
1625 | ;; |
---|
1626 | ?:/*) |
---|
1627 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1628 | ;; |
---|
1629 | *) |
---|
1630 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1631 | ac_dummy="$PATH" |
---|
1632 | for ac_dir in $ac_dummy; do |
---|
1633 | test -z "$ac_dir" && ac_dir=. |
---|
1634 | if test -f $ac_dir/$ac_word; then |
---|
1635 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
1636 | break |
---|
1637 | fi |
---|
1638 | done |
---|
1639 | IFS="$ac_save_ifs" |
---|
1640 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
1641 | ;; |
---|
1642 | esac |
---|
1643 | fi |
---|
1644 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
1645 | if test -n "$AS_FOR_TARGET"; then |
---|
1646 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
1647 | else |
---|
1648 | echo "$ac_t""no" 1>&6 |
---|
1649 | fi |
---|
1650 | |
---|
1651 | fi |
---|
1652 | |
---|
1653 | |
---|
1654 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
1655 | echo "configure:1656: checking target's ld" >&5 |
---|
1656 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
1657 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1658 | else |
---|
1659 | : |
---|
1660 | fi |
---|
1661 | |
---|
1662 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
1663 | |
---|
1664 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
1665 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
1666 | else |
---|
1667 | if test -z "$LD_FOR_TARGET" ; then |
---|
1668 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1669 | # We are using gcc, ask it about its tool |
---|
1670 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1671 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1672 | case $host_os in |
---|
1673 | *cygwin*) |
---|
1674 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
1675 | ;; |
---|
1676 | *) |
---|
1677 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
1678 | ;; |
---|
1679 | esac |
---|
1680 | |
---|
1681 | fi |
---|
1682 | else |
---|
1683 | # The user set an environment variable. |
---|
1684 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1685 | # will override the environment variable, which isn't what the user |
---|
1686 | # intends |
---|
1687 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1688 | echo "configure:1689: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
1689 | case "$LD_FOR_TARGET" in |
---|
1690 | /*) # valid |
---|
1691 | echo "$ac_t"""yes"" 1>&6 |
---|
1692 | ;; |
---|
1693 | *) # invalid for AC_PATH_PROG |
---|
1694 | echo "$ac_t"""no"" 1>&6 |
---|
1695 | { echo "configure: error: *** |
---|
1696 | Environment variable LD_FOR_TARGET should either |
---|
1697 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1698 | ;; |
---|
1699 | esac |
---|
1700 | fi |
---|
1701 | |
---|
1702 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
1703 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
1704 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1705 | echo "configure:1706: checking for $ac_word" >&5 |
---|
1706 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
1707 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1708 | else |
---|
1709 | case "$LD_FOR_TARGET" in |
---|
1710 | /*) |
---|
1711 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
1712 | ;; |
---|
1713 | ?:/*) |
---|
1714 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1715 | ;; |
---|
1716 | *) |
---|
1717 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1718 | ac_dummy="$PATH" |
---|
1719 | for ac_dir in $ac_dummy; do |
---|
1720 | test -z "$ac_dir" && ac_dir=. |
---|
1721 | if test -f $ac_dir/$ac_word; then |
---|
1722 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
1723 | break |
---|
1724 | fi |
---|
1725 | done |
---|
1726 | IFS="$ac_save_ifs" |
---|
1727 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
1728 | ;; |
---|
1729 | esac |
---|
1730 | fi |
---|
1731 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
1732 | if test -n "$LD_FOR_TARGET"; then |
---|
1733 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
1734 | else |
---|
1735 | echo "$ac_t""no" 1>&6 |
---|
1736 | fi |
---|
1737 | |
---|
1738 | fi |
---|
1739 | |
---|
1740 | |
---|
1741 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
1742 | echo "configure:1743: checking target's nm" >&5 |
---|
1743 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
1744 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1745 | else |
---|
1746 | : |
---|
1747 | fi |
---|
1748 | |
---|
1749 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
1750 | |
---|
1751 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
1752 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
1753 | else |
---|
1754 | if test -z "$NM_FOR_TARGET" ; then |
---|
1755 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1756 | # We are using gcc, ask it about its tool |
---|
1757 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1758 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1759 | case $host_os in |
---|
1760 | *cygwin*) |
---|
1761 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
1762 | ;; |
---|
1763 | *) |
---|
1764 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
1765 | ;; |
---|
1766 | esac |
---|
1767 | |
---|
1768 | fi |
---|
1769 | else |
---|
1770 | # The user set an environment variable. |
---|
1771 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1772 | # will override the environment variable, which isn't what the user |
---|
1773 | # intends |
---|
1774 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1775 | echo "configure:1776: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
1776 | case "$NM_FOR_TARGET" in |
---|
1777 | /*) # valid |
---|
1778 | echo "$ac_t"""yes"" 1>&6 |
---|
1779 | ;; |
---|
1780 | *) # invalid for AC_PATH_PROG |
---|
1781 | echo "$ac_t"""no"" 1>&6 |
---|
1782 | { echo "configure: error: *** |
---|
1783 | Environment variable NM_FOR_TARGET should either |
---|
1784 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1785 | ;; |
---|
1786 | esac |
---|
1787 | fi |
---|
1788 | |
---|
1789 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
1790 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
1791 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1792 | echo "configure:1793: checking for $ac_word" >&5 |
---|
1793 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
1794 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1795 | else |
---|
1796 | case "$NM_FOR_TARGET" in |
---|
1797 | /*) |
---|
1798 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
1799 | ;; |
---|
1800 | ?:/*) |
---|
1801 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1802 | ;; |
---|
1803 | *) |
---|
1804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1805 | ac_dummy="$PATH" |
---|
1806 | for ac_dir in $ac_dummy; do |
---|
1807 | test -z "$ac_dir" && ac_dir=. |
---|
1808 | if test -f $ac_dir/$ac_word; then |
---|
1809 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
1810 | break |
---|
1811 | fi |
---|
1812 | done |
---|
1813 | IFS="$ac_save_ifs" |
---|
1814 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
1815 | ;; |
---|
1816 | esac |
---|
1817 | fi |
---|
1818 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
1819 | if test -n "$NM_FOR_TARGET"; then |
---|
1820 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
1821 | else |
---|
1822 | echo "$ac_t""no" 1>&6 |
---|
1823 | fi |
---|
1824 | |
---|
1825 | fi |
---|
1826 | |
---|
1827 | |
---|
1828 | |
---|
1829 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
1830 | echo "configure:1831: checking target's ranlib" >&5 |
---|
1831 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
1832 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1833 | else |
---|
1834 | : |
---|
1835 | fi |
---|
1836 | |
---|
1837 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
1838 | |
---|
1839 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
1840 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
1841 | else |
---|
1842 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
1843 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1844 | # We are using gcc, ask it about its tool |
---|
1845 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1846 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1847 | case $host_os in |
---|
1848 | *cygwin*) |
---|
1849 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
1850 | ;; |
---|
1851 | *) |
---|
1852 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
1853 | ;; |
---|
1854 | esac |
---|
1855 | |
---|
1856 | fi |
---|
1857 | else |
---|
1858 | # The user set an environment variable. |
---|
1859 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1860 | # will override the environment variable, which isn't what the user |
---|
1861 | # intends |
---|
1862 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1863 | echo "configure:1864: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
1864 | case "$RANLIB_FOR_TARGET" in |
---|
1865 | /*) # valid |
---|
1866 | echo "$ac_t"""yes"" 1>&6 |
---|
1867 | ;; |
---|
1868 | *) # invalid for AC_PATH_PROG |
---|
1869 | echo "$ac_t"""no"" 1>&6 |
---|
1870 | { echo "configure: error: *** |
---|
1871 | Environment variable RANLIB_FOR_TARGET should either |
---|
1872 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1873 | ;; |
---|
1874 | esac |
---|
1875 | fi |
---|
1876 | |
---|
1877 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
1878 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
1879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1880 | echo "configure:1881: checking for $ac_word" >&5 |
---|
1881 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
1882 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1883 | else |
---|
1884 | case "$RANLIB_FOR_TARGET" in |
---|
1885 | /*) |
---|
1886 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
1887 | ;; |
---|
1888 | ?:/*) |
---|
1889 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1890 | ;; |
---|
1891 | *) |
---|
1892 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1893 | ac_dummy="$PATH" |
---|
1894 | for ac_dir in $ac_dummy; do |
---|
1895 | test -z "$ac_dir" && ac_dir=. |
---|
1896 | if test -f $ac_dir/$ac_word; then |
---|
1897 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
1898 | break |
---|
1899 | fi |
---|
1900 | done |
---|
1901 | IFS="$ac_save_ifs" |
---|
1902 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
1903 | ;; |
---|
1904 | esac |
---|
1905 | fi |
---|
1906 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
1907 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
1908 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
1909 | else |
---|
1910 | echo "$ac_t""no" 1>&6 |
---|
1911 | fi |
---|
1912 | |
---|
1913 | fi |
---|
1914 | |
---|
1915 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
1916 | # ranlib wasn't found; check if ar -s is available |
---|
1917 | |
---|
1918 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
1919 | echo "configure:1920: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
1920 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
1921 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1922 | else |
---|
1923 | |
---|
1924 | cat > conftest.$ac_ext <<EOF |
---|
1925 | int foo( int b ) |
---|
1926 | { return b; } |
---|
1927 | EOF |
---|
1928 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
1929 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
1930 | && test -s conftest.a ; \ |
---|
1931 | then |
---|
1932 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
1933 | else |
---|
1934 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
1935 | fi |
---|
1936 | rm -f conftest* |
---|
1937 | |
---|
1938 | fi |
---|
1939 | |
---|
1940 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
1941 | |
---|
1942 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
1943 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
1944 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
1945 | else |
---|
1946 | { echo "configure: error: *** |
---|
1947 | Can't figure out how to build a library index |
---|
1948 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
1949 | fi |
---|
1950 | fi |
---|
1951 | |
---|
1952 | |
---|
1953 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
1954 | echo "configure:1955: checking target's objcopy" >&5 |
---|
1955 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
1956 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1957 | else |
---|
1958 | : |
---|
1959 | fi |
---|
1960 | |
---|
1961 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
1962 | |
---|
1963 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
1964 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
1965 | else |
---|
1966 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
1967 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1968 | # We are using gcc, ask it about its tool |
---|
1969 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1970 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1971 | case $host_os in |
---|
1972 | *cygwin*) |
---|
1973 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
1974 | ;; |
---|
1975 | *) |
---|
1976 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
1977 | ;; |
---|
1978 | esac |
---|
1979 | |
---|
1980 | fi |
---|
1981 | else |
---|
1982 | # The user set an environment variable. |
---|
1983 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1984 | # will override the environment variable, which isn't what the user |
---|
1985 | # intends |
---|
1986 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1987 | echo "configure:1988: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
1988 | case "$OBJCOPY_FOR_TARGET" in |
---|
1989 | /*) # valid |
---|
1990 | echo "$ac_t"""yes"" 1>&6 |
---|
1991 | ;; |
---|
1992 | *) # invalid for AC_PATH_PROG |
---|
1993 | echo "$ac_t"""no"" 1>&6 |
---|
1994 | { echo "configure: error: *** |
---|
1995 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
1996 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1997 | ;; |
---|
1998 | esac |
---|
1999 | fi |
---|
2000 | |
---|
2001 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
2002 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
2003 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2004 | echo "configure:2005: checking for $ac_word" >&5 |
---|
2005 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
2006 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2007 | else |
---|
2008 | case "$OBJCOPY_FOR_TARGET" in |
---|
2009 | /*) |
---|
2010 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
2011 | ;; |
---|
2012 | ?:/*) |
---|
2013 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2014 | ;; |
---|
2015 | *) |
---|
2016 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2017 | ac_dummy="$PATH" |
---|
2018 | for ac_dir in $ac_dummy; do |
---|
2019 | test -z "$ac_dir" && ac_dir=. |
---|
2020 | if test -f $ac_dir/$ac_word; then |
---|
2021 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
2022 | break |
---|
2023 | fi |
---|
2024 | done |
---|
2025 | IFS="$ac_save_ifs" |
---|
2026 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
2027 | ;; |
---|
2028 | esac |
---|
2029 | fi |
---|
2030 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
2031 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
2032 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
2033 | else |
---|
2034 | echo "$ac_t""no" 1>&6 |
---|
2035 | fi |
---|
2036 | |
---|
2037 | fi |
---|
2038 | |
---|
2039 | |
---|
2040 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
2041 | echo "configure:2042: checking target's size" >&5 |
---|
2042 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
2043 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2044 | else |
---|
2045 | : |
---|
2046 | fi |
---|
2047 | |
---|
2048 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
2049 | |
---|
2050 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
2051 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
2052 | else |
---|
2053 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
2054 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2055 | # We are using gcc, ask it about its tool |
---|
2056 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2057 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2058 | case $host_os in |
---|
2059 | *cygwin*) |
---|
2060 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
2061 | ;; |
---|
2062 | *) |
---|
2063 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
2064 | ;; |
---|
2065 | esac |
---|
2066 | |
---|
2067 | fi |
---|
2068 | else |
---|
2069 | # The user set an environment variable. |
---|
2070 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2071 | # will override the environment variable, which isn't what the user |
---|
2072 | # intends |
---|
2073 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2074 | echo "configure:2075: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
2075 | case "$SIZE_FOR_TARGET" in |
---|
2076 | /*) # valid |
---|
2077 | echo "$ac_t"""yes"" 1>&6 |
---|
2078 | ;; |
---|
2079 | *) # invalid for AC_PATH_PROG |
---|
2080 | echo "$ac_t"""no"" 1>&6 |
---|
2081 | { echo "configure: error: *** |
---|
2082 | Environment variable SIZE_FOR_TARGET should either |
---|
2083 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2084 | ;; |
---|
2085 | esac |
---|
2086 | fi |
---|
2087 | |
---|
2088 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
2089 | set dummy "$program_prefix"size; ac_word=$2 |
---|
2090 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2091 | echo "configure:2092: checking for $ac_word" >&5 |
---|
2092 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
2093 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2094 | else |
---|
2095 | case "$SIZE_FOR_TARGET" in |
---|
2096 | /*) |
---|
2097 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
2098 | ;; |
---|
2099 | ?:/*) |
---|
2100 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2101 | ;; |
---|
2102 | *) |
---|
2103 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2104 | ac_dummy="$PATH" |
---|
2105 | for ac_dir in $ac_dummy; do |
---|
2106 | test -z "$ac_dir" && ac_dir=. |
---|
2107 | if test -f $ac_dir/$ac_word; then |
---|
2108 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
2109 | break |
---|
2110 | fi |
---|
2111 | done |
---|
2112 | IFS="$ac_save_ifs" |
---|
2113 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
2114 | ;; |
---|
2115 | esac |
---|
2116 | fi |
---|
2117 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
2118 | if test -n "$SIZE_FOR_TARGET"; then |
---|
2119 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
2120 | else |
---|
2121 | echo "$ac_t""no" 1>&6 |
---|
2122 | fi |
---|
2123 | |
---|
2124 | fi |
---|
2125 | |
---|
2126 | |
---|
2127 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
2128 | echo "configure:2129: checking target's strip" >&5 |
---|
2129 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
2130 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2131 | else |
---|
2132 | : |
---|
2133 | fi |
---|
2134 | |
---|
2135 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
2136 | |
---|
2137 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
2138 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
2139 | else |
---|
2140 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
2141 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
2142 | # We are using gcc, ask it about its tool |
---|
2143 | # NOTE: Necessary if gcc was configured to use the target's |
---|
2144 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
2145 | case $host_os in |
---|
2146 | *cygwin*) |
---|
2147 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
2148 | ;; |
---|
2149 | *) |
---|
2150 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
2151 | ;; |
---|
2152 | esac |
---|
2153 | |
---|
2154 | fi |
---|
2155 | else |
---|
2156 | # The user set an environment variable. |
---|
2157 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
2158 | # will override the environment variable, which isn't what the user |
---|
2159 | # intends |
---|
2160 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
2161 | echo "configure:2162: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
2162 | case "$STRIP_FOR_TARGET" in |
---|
2163 | /*) # valid |
---|
2164 | echo "$ac_t"""yes"" 1>&6 |
---|
2165 | ;; |
---|
2166 | *) # invalid for AC_PATH_PROG |
---|
2167 | echo "$ac_t"""no"" 1>&6 |
---|
2168 | { echo "configure: error: *** |
---|
2169 | Environment variable STRIP_FOR_TARGET should either |
---|
2170 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
2171 | ;; |
---|
2172 | esac |
---|
2173 | fi |
---|
2174 | |
---|
2175 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
2176 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
2177 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2178 | echo "configure:2179: checking for $ac_word" >&5 |
---|
2179 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
2180 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2181 | else |
---|
2182 | case "$STRIP_FOR_TARGET" in |
---|
2183 | /*) |
---|
2184 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
2185 | ;; |
---|
2186 | ?:/*) |
---|
2187 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
2188 | ;; |
---|
2189 | *) |
---|
2190 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2191 | ac_dummy="$PATH" |
---|
2192 | for ac_dir in $ac_dummy; do |
---|
2193 | test -z "$ac_dir" && ac_dir=. |
---|
2194 | if test -f $ac_dir/$ac_word; then |
---|
2195 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
2196 | break |
---|
2197 | fi |
---|
2198 | done |
---|
2199 | IFS="$ac_save_ifs" |
---|
2200 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
2201 | ;; |
---|
2202 | esac |
---|
2203 | fi |
---|
2204 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
2205 | if test -n "$STRIP_FOR_TARGET"; then |
---|
2206 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
2207 | else |
---|
2208 | echo "$ac_t""no" 1>&6 |
---|
2209 | fi |
---|
2210 | |
---|
2211 | fi |
---|
2212 | |
---|
2213 | |
---|
2214 | |
---|
2215 | if test "${target_cpu}" = "i386"; then |
---|
2216 | echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 |
---|
2217 | echo "configure:2218: checking for 16 bit mode assembler support" >&5 |
---|
2218 | if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then |
---|
2219 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2220 | else |
---|
2221 | cat > conftest.s << EOF |
---|
2222 | .code16 |
---|
2223 | data32 |
---|
2224 | addr32 |
---|
2225 | lgdt 0 |
---|
2226 | EOF |
---|
2227 | if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
2228 | rtems_cv_prog_gas_code16=yes |
---|
2229 | else |
---|
2230 | rtems_cv_prog_gas_code16=no |
---|
2231 | fi |
---|
2232 | fi |
---|
2233 | |
---|
2234 | echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6 |
---|
2235 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
---|
2236 | fi |
---|
2237 | |
---|
2238 | |
---|
2239 | |
---|
2240 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2241 | set dummy gcc; ac_word=$2 |
---|
2242 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2243 | echo "configure:2244: checking for $ac_word" >&5 |
---|
2244 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2245 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2246 | else |
---|
2247 | if test -n "$CC"; then |
---|
2248 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2249 | else |
---|
2250 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2251 | ac_dummy="$PATH" |
---|
2252 | for ac_dir in $ac_dummy; do |
---|
2253 | test -z "$ac_dir" && ac_dir=. |
---|
2254 | if test -f $ac_dir/$ac_word; then |
---|
2255 | ac_cv_prog_CC="gcc" |
---|
2256 | break |
---|
2257 | fi |
---|
2258 | done |
---|
2259 | IFS="$ac_save_ifs" |
---|
2260 | fi |
---|
2261 | fi |
---|
2262 | CC="$ac_cv_prog_CC" |
---|
2263 | if test -n "$CC"; then |
---|
2264 | echo "$ac_t""$CC" 1>&6 |
---|
2265 | else |
---|
2266 | echo "$ac_t""no" 1>&6 |
---|
2267 | fi |
---|
2268 | |
---|
2269 | if test -z "$CC"; then |
---|
2270 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2271 | set dummy cc; ac_word=$2 |
---|
2272 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2273 | echo "configure:2274: checking for $ac_word" >&5 |
---|
2274 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2275 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2276 | else |
---|
2277 | if test -n "$CC"; then |
---|
2278 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2279 | else |
---|
2280 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2281 | ac_prog_rejected=no |
---|
2282 | ac_dummy="$PATH" |
---|
2283 | for ac_dir in $ac_dummy; do |
---|
2284 | test -z "$ac_dir" && ac_dir=. |
---|
2285 | if test -f $ac_dir/$ac_word; then |
---|
2286 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
2287 | ac_prog_rejected=yes |
---|
2288 | continue |
---|
2289 | fi |
---|
2290 | ac_cv_prog_CC="cc" |
---|
2291 | break |
---|
2292 | fi |
---|
2293 | done |
---|
2294 | IFS="$ac_save_ifs" |
---|
2295 | if test $ac_prog_rejected = yes; then |
---|
2296 | # We found a bogon in the path, so make sure we never use it. |
---|
2297 | set dummy $ac_cv_prog_CC |
---|
2298 | shift |
---|
2299 | if test $# -gt 0; then |
---|
2300 | # We chose a different compiler from the bogus one. |
---|
2301 | # However, it has the same basename, so the bogon will be chosen |
---|
2302 | # first if we set CC to just the basename; use the full file name. |
---|
2303 | shift |
---|
2304 | set dummy "$ac_dir/$ac_word" "$@" |
---|
2305 | shift |
---|
2306 | ac_cv_prog_CC="$@" |
---|
2307 | fi |
---|
2308 | fi |
---|
2309 | fi |
---|
2310 | fi |
---|
2311 | CC="$ac_cv_prog_CC" |
---|
2312 | if test -n "$CC"; then |
---|
2313 | echo "$ac_t""$CC" 1>&6 |
---|
2314 | else |
---|
2315 | echo "$ac_t""no" 1>&6 |
---|
2316 | fi |
---|
2317 | |
---|
2318 | if test -z "$CC"; then |
---|
2319 | case "`uname -s`" in |
---|
2320 | *win32* | *WIN32*) |
---|
2321 | # Extract the first word of "cl", so it can be a program name with args. |
---|
2322 | set dummy cl; ac_word=$2 |
---|
2323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2324 | echo "configure:2325: checking for $ac_word" >&5 |
---|
2325 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
2326 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2327 | else |
---|
2328 | if test -n "$CC"; then |
---|
2329 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2330 | else |
---|
2331 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2332 | ac_dummy="$PATH" |
---|
2333 | for ac_dir in $ac_dummy; do |
---|
2334 | test -z "$ac_dir" && ac_dir=. |
---|
2335 | if test -f $ac_dir/$ac_word; then |
---|
2336 | ac_cv_prog_CC="cl" |
---|
2337 | break |
---|
2338 | fi |
---|
2339 | done |
---|
2340 | IFS="$ac_save_ifs" |
---|
2341 | fi |
---|
2342 | fi |
---|
2343 | CC="$ac_cv_prog_CC" |
---|
2344 | if test -n "$CC"; then |
---|
2345 | echo "$ac_t""$CC" 1>&6 |
---|
2346 | else |
---|
2347 | echo "$ac_t""no" 1>&6 |
---|
2348 | fi |
---|
2349 | ;; |
---|
2350 | esac |
---|
2351 | fi |
---|
2352 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
2353 | fi |
---|
2354 | |
---|
2355 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
2356 | echo "configure:2357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
2357 | |
---|
2358 | ac_ext=c |
---|
2359 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2360 | ac_cpp='$CPP $CPPFLAGS' |
---|
2361 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2362 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2363 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2364 | |
---|
2365 | cat > conftest.$ac_ext << EOF |
---|
2366 | |
---|
2367 | #line 2368 "configure" |
---|
2368 | #include "confdefs.h" |
---|
2369 | |
---|
2370 | main(){return(0);} |
---|
2371 | EOF |
---|
2372 | if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2373 | ac_cv_prog_cc_works=yes |
---|
2374 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
2375 | if (./conftest; exit) 2>/dev/null; then |
---|
2376 | ac_cv_prog_cc_cross=no |
---|
2377 | else |
---|
2378 | ac_cv_prog_cc_cross=yes |
---|
2379 | fi |
---|
2380 | else |
---|
2381 | echo "configure: failed program was:" >&5 |
---|
2382 | cat conftest.$ac_ext >&5 |
---|
2383 | ac_cv_prog_cc_works=no |
---|
2384 | fi |
---|
2385 | rm -fr conftest* |
---|
2386 | ac_ext=c |
---|
2387 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2388 | ac_cpp='$CPP $CPPFLAGS' |
---|
2389 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2390 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2391 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2392 | |
---|
2393 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
2394 | if test $ac_cv_prog_cc_works = no; then |
---|
2395 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
2396 | fi |
---|
2397 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
2398 | echo "configure:2399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
2399 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
2400 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2401 | |
---|
2402 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
2403 | echo "configure:2404: checking whether we are using GNU C" >&5 |
---|
2404 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
2405 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2406 | else |
---|
2407 | cat > conftest.c <<EOF |
---|
2408 | #ifdef __GNUC__ |
---|
2409 | yes; |
---|
2410 | #endif |
---|
2411 | EOF |
---|
2412 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
2413 | ac_cv_prog_gcc=yes |
---|
2414 | else |
---|
2415 | ac_cv_prog_gcc=no |
---|
2416 | fi |
---|
2417 | fi |
---|
2418 | |
---|
2419 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
2420 | |
---|
2421 | if test $ac_cv_prog_gcc = yes; then |
---|
2422 | GCC=yes |
---|
2423 | else |
---|
2424 | GCC= |
---|
2425 | fi |
---|
2426 | |
---|
2427 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
2428 | ac_save_CFLAGS="$CFLAGS" |
---|
2429 | CFLAGS= |
---|
2430 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
2431 | echo "configure:2432: checking whether ${CC-cc} accepts -g" >&5 |
---|
2432 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
2433 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2434 | else |
---|
2435 | echo 'void f(){}' > conftest.c |
---|
2436 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
2437 | ac_cv_prog_cc_g=yes |
---|
2438 | else |
---|
2439 | ac_cv_prog_cc_g=no |
---|
2440 | fi |
---|
2441 | rm -f conftest* |
---|
2442 | |
---|
2443 | fi |
---|
2444 | |
---|
2445 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
2446 | if test "$ac_test_CFLAGS" = set; then |
---|
2447 | CFLAGS="$ac_save_CFLAGS" |
---|
2448 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2449 | if test "$GCC" = yes; then |
---|
2450 | CFLAGS="-g -O2" |
---|
2451 | else |
---|
2452 | CFLAGS="-g" |
---|
2453 | fi |
---|
2454 | else |
---|
2455 | if test "$GCC" = yes; then |
---|
2456 | CFLAGS="-O2" |
---|
2457 | else |
---|
2458 | CFLAGS= |
---|
2459 | fi |
---|
2460 | fi |
---|
2461 | |
---|
2462 | |
---|
2463 | if test "$RTEMS_CPU" = "unix" ; then |
---|
2464 | |
---|
2465 | |
---|
2466 | echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 |
---|
2467 | echo "configure:2468: checking whether $RTEMS_HOST supports System V semaphores" >&5 |
---|
2468 | if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then |
---|
2469 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2470 | else |
---|
2471 | |
---|
2472 | if test "$cross_compiling" = yes; then |
---|
2473 | : |
---|
2474 | else |
---|
2475 | cat > conftest.$ac_ext <<EOF |
---|
2476 | #line 2477 "configure" |
---|
2477 | #include "confdefs.h" |
---|
2478 | |
---|
2479 | #include <sys/types.h> |
---|
2480 | #include <sys/ipc.h> |
---|
2481 | #include <sys/sem.h> |
---|
2482 | int main () { |
---|
2483 | #if !defined(sun) |
---|
2484 | union semun arg ; |
---|
2485 | #else |
---|
2486 | union semun { |
---|
2487 | int val; |
---|
2488 | struct semid_ds *buf; |
---|
2489 | ushort *array; |
---|
2490 | } arg; |
---|
2491 | #endif |
---|
2492 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
2493 | if (id == -1) |
---|
2494 | exit(1); |
---|
2495 | arg.val = 0; /* avoid implicit type cast to union */ |
---|
2496 | if (semctl(id, 0, IPC_RMID, arg) == -1) |
---|
2497 | exit(1); |
---|
2498 | exit(0); |
---|
2499 | } |
---|
2500 | |
---|
2501 | EOF |
---|
2502 | if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2503 | then |
---|
2504 | rtems_cv_sysv_sem="yes" |
---|
2505 | else |
---|
2506 | echo "configure: failed program was:" >&5 |
---|
2507 | cat conftest.$ac_ext >&5 |
---|
2508 | rm -fr conftest* |
---|
2509 | rtems_cv_sysv_sem="no" |
---|
2510 | fi |
---|
2511 | rm -fr conftest* |
---|
2512 | fi |
---|
2513 | |
---|
2514 | |
---|
2515 | fi |
---|
2516 | |
---|
2517 | echo "$ac_t""$rtems_cv_sysv_sem" 1>&6 |
---|
2518 | |
---|
2519 | if test "$rtems_cv_sysv_sem" != "yes" ; then |
---|
2520 | { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; } |
---|
2521 | fi |
---|
2522 | |
---|
2523 | |
---|
2524 | echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 |
---|
2525 | echo "configure:2526: checking whether $RTEMS_HOST supports System V shared memory" >&5 |
---|
2526 | if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then |
---|
2527 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2528 | else |
---|
2529 | |
---|
2530 | if test "$cross_compiling" = yes; then |
---|
2531 | : |
---|
2532 | else |
---|
2533 | cat > conftest.$ac_ext <<EOF |
---|
2534 | #line 2535 "configure" |
---|
2535 | #include "confdefs.h" |
---|
2536 | |
---|
2537 | #include <sys/types.h> |
---|
2538 | #include <sys/ipc.h> |
---|
2539 | #include <sys/shm.h> |
---|
2540 | int main () { |
---|
2541 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
2542 | if (id == -1) |
---|
2543 | exit(1); |
---|
2544 | if (shmctl(id, IPC_RMID, 0) == -1) |
---|
2545 | exit(1); |
---|
2546 | exit(0); |
---|
2547 | } |
---|
2548 | |
---|
2549 | EOF |
---|
2550 | if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2551 | then |
---|
2552 | rtems_cv_sysv_shm="yes" |
---|
2553 | else |
---|
2554 | echo "configure: failed program was:" >&5 |
---|
2555 | cat conftest.$ac_ext >&5 |
---|
2556 | rm -fr conftest* |
---|
2557 | rtems_cv_sysv_shm="no" |
---|
2558 | fi |
---|
2559 | rm -fr conftest* |
---|
2560 | fi |
---|
2561 | |
---|
2562 | |
---|
2563 | fi |
---|
2564 | |
---|
2565 | echo "$ac_t""$rtems_cv_sysv_shm" 1>&6 |
---|
2566 | |
---|
2567 | if test "$rtems_cv_sysv_shm" != "yes" ; then |
---|
2568 | { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; } |
---|
2569 | fi |
---|
2570 | |
---|
2571 | |
---|
2572 | echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 |
---|
2573 | echo "configure:2574: checking whether $RTEMS_HOST supports System V messages" >&5 |
---|
2574 | if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then |
---|
2575 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2576 | else |
---|
2577 | |
---|
2578 | if test "$cross_compiling" = yes; then |
---|
2579 | : |
---|
2580 | else |
---|
2581 | cat > conftest.$ac_ext <<EOF |
---|
2582 | #line 2583 "configure" |
---|
2583 | #include "confdefs.h" |
---|
2584 | |
---|
2585 | #include <sys/types.h> |
---|
2586 | #include <sys/ipc.h> |
---|
2587 | #include <sys/msg.h> |
---|
2588 | int main () { |
---|
2589 | int id=msgget(IPC_PRIVATE,IPC_CREAT|0400); |
---|
2590 | if (id == -1) |
---|
2591 | exit(1); |
---|
2592 | if (msgctl(id, IPC_RMID, 0) == -1) |
---|
2593 | exit(1); |
---|
2594 | exit(0); |
---|
2595 | } |
---|
2596 | |
---|
2597 | EOF |
---|
2598 | if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2599 | then |
---|
2600 | rtems_cv_sysv_msg="yes" |
---|
2601 | else |
---|
2602 | echo "configure: failed program was:" >&5 |
---|
2603 | cat conftest.$ac_ext >&5 |
---|
2604 | rm -fr conftest* |
---|
2605 | rtems_cv_sysv_msg="no" |
---|
2606 | fi |
---|
2607 | rm -fr conftest* |
---|
2608 | fi |
---|
2609 | |
---|
2610 | |
---|
2611 | fi |
---|
2612 | |
---|
2613 | echo "$ac_t""$rtems_cv_sysv_msg" 1>&6 |
---|
2614 | |
---|
2615 | if test "$rtems_cv_sysv_msg" != "yes" ; then |
---|
2616 | { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; } |
---|
2617 | fi |
---|
2618 | fi |
---|
2619 | |
---|
2620 | |
---|
2621 | echo $ac_n "checking for newlib""... $ac_c" 1>&6 |
---|
2622 | echo "configure:2623: checking for newlib" >&5 |
---|
2623 | if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then |
---|
2624 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2625 | else |
---|
2626 | |
---|
2627 | rtems_save_CC=$CC |
---|
2628 | CC=$CC_FOR_TARGET |
---|
2629 | |
---|
2630 | cat > conftest.$ac_ext <<EOF |
---|
2631 | #line 2632 "configure" |
---|
2632 | #include "confdefs.h" |
---|
2633 | extern int not_required_by_rtems() ; |
---|
2634 | int main() { |
---|
2635 | not_required_by_rtems() |
---|
2636 | ; return 0; } |
---|
2637 | EOF |
---|
2638 | if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2639 | rm -rf conftest* |
---|
2640 | rtems_cv_use_newlib="yes" |
---|
2641 | else |
---|
2642 | echo "configure: failed program was:" >&5 |
---|
2643 | cat conftest.$ac_ext >&5 |
---|
2644 | fi |
---|
2645 | rm -f conftest* |
---|
2646 | |
---|
2647 | if test -z "$rtems_cv_use_newlib"; then |
---|
2648 | cat > conftest.$ac_ext <<EOF |
---|
2649 | #line 2650 "configure" |
---|
2650 | #include "confdefs.h" |
---|
2651 | extern int rtems_provides_crt0 ; |
---|
2652 | int main() { |
---|
2653 | rtems_provides_crt0 = 0 |
---|
2654 | ; return 0; } |
---|
2655 | EOF |
---|
2656 | if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2657 | rm -rf conftest* |
---|
2658 | rtems_cv_use_newlib="yes" |
---|
2659 | else |
---|
2660 | echo "configure: failed program was:" >&5 |
---|
2661 | cat conftest.$ac_ext >&5 |
---|
2662 | rm -rf conftest* |
---|
2663 | rtems_cv_use_newlib="no" |
---|
2664 | fi |
---|
2665 | rm -f conftest* |
---|
2666 | fi |
---|
2667 | CC=$rtems_save_CC |
---|
2668 | fi |
---|
2669 | |
---|
2670 | echo "$ac_t""$rtems_cv_use_newlib" 1>&6 |
---|
2671 | RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" |
---|
2672 | |
---|
2673 | |
---|
2674 | |
---|
2675 | # Check if there is custom/*.cfg for this BSP |
---|
2676 | echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 |
---|
2677 | echo "configure:2678: checking for make/custom/$RTEMS_BSP.cfg" >&5 |
---|
2678 | if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then |
---|
2679 | echo "$ac_t""yes" 1>&6 |
---|
2680 | else |
---|
2681 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
2682 | fi |
---|
2683 | |
---|
2684 | |
---|
2685 | echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 |
---|
2686 | echo "configure:2687: checking whether BSP supports multiprocessing" >&5 |
---|
2687 | if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then |
---|
2688 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2689 | else |
---|
2690 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then |
---|
2691 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
2692 | rtems_cv_HAS_MP="yes" ; |
---|
2693 | else |
---|
2694 | rtems_cv_HAS_MP="disabled"; |
---|
2695 | fi |
---|
2696 | else |
---|
2697 | rtems_cv_HAS_MP="no"; |
---|
2698 | fi |
---|
2699 | |
---|
2700 | fi |
---|
2701 | |
---|
2702 | echo "$ac_t""$rtems_cv_HAS_MP" 1>&6 |
---|
2703 | if test "$rtems_cv_HAS_MP" = "yes"; then |
---|
2704 | HAS_MP="yes" |
---|
2705 | else |
---|
2706 | HAS_MP="no" |
---|
2707 | fi |
---|
2708 | |
---|
2709 | |
---|
2710 | |
---|
2711 | # find all the Executive Makefiles |
---|
2712 | |
---|
2713 | echo $ac_n "checking for Makefile.in in score/cpu/$RTEMS_CPU""... $ac_c" 1>&6 |
---|
2714 | echo "configure:2715: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5 |
---|
2715 | if test -d $srcdir/score/cpu/$RTEMS_CPU; then |
---|
2716 | rtems_av_save_dir=`pwd`; |
---|
2717 | cd $srcdir; |
---|
2718 | rtems_av_tmp=`find score/cpu/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
2719 | makefiles="$makefiles $rtems_av_tmp"; |
---|
2720 | cd $rtems_av_save_dir; |
---|
2721 | echo "$ac_t""done" 1>&6 |
---|
2722 | else |
---|
2723 | echo "$ac_t""no" 1>&6 |
---|
2724 | fi |
---|
2725 | |
---|
2726 | |
---|
2727 | |
---|
2728 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
2729 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
2730 | inline_dir="macros" |
---|
2731 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
2732 | # The problem is that there is currently no code in posix/macros :) |
---|
2733 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
2734 | fi |
---|
2735 | else |
---|
2736 | inline_dir="inline" |
---|
2737 | fi |
---|
2738 | |
---|
2739 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
2740 | makefiles="$makefiles posix/Makefile" |
---|
2741 | makefiles="$makefiles posix/src/Makefile" |
---|
2742 | makefiles="$makefiles posix/include/Makefile" |
---|
2743 | makefiles="$makefiles posix/include/sys/Makefile" |
---|
2744 | makefiles="$makefiles posix/include/rtems/Makefile" |
---|
2745 | makefiles="$makefiles posix/include/rtems/posix/Makefile" |
---|
2746 | makefiles="$makefiles posix/include/wrap/Makefile" |
---|
2747 | makefiles="$makefiles posix/optman/Makefile" |
---|
2748 | makefiles="$makefiles wrapup/posix/Makefile" |
---|
2749 | |
---|
2750 | makefiles="$makefiles posix/${inline_dir}/Makefile" |
---|
2751 | makefiles="$makefiles posix/${inline_dir}/rtems/Makefile" |
---|
2752 | makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile" |
---|
2753 | fi |
---|
2754 | |
---|
2755 | |
---|
2756 | |
---|
2757 | |
---|
2758 | |
---|
2759 | |
---|
2760 | |
---|
2761 | |
---|
2762 | |
---|
2763 | |
---|
2764 | |
---|
2765 | |
---|
2766 | # Try to explicitly list a Makefile here |
---|
2767 | trap '' 1 2 15 |
---|
2768 | cat > confcache <<\EOF |
---|
2769 | # This file is a shell script that caches the results of configure |
---|
2770 | # tests run on this system so they can be shared between configure |
---|
2771 | # scripts and configure runs. It is not useful on other systems. |
---|
2772 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
2773 | # |
---|
2774 | # By default, configure uses ./config.cache as the cache file, |
---|
2775 | # creating it if it does not exist already. You can give configure |
---|
2776 | # the --cache-file=FILE option to use a different cache file; that is |
---|
2777 | # what configure does when it calls configure scripts in |
---|
2778 | # subdirectories, so they share the cache. |
---|
2779 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
2780 | # config.status only pays attention to the cache file if you give it the |
---|
2781 | # --recheck option to rerun configure. |
---|
2782 | # |
---|
2783 | EOF |
---|
2784 | # The following way of writing the cache mishandles newlines in values, |
---|
2785 | # but we know of no workaround that is simple, portable, and efficient. |
---|
2786 | # So, don't put newlines in cache variables' values. |
---|
2787 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
2788 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
2789 | (set) 2>&1 | |
---|
2790 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
2791 | *ac_space=\ *) |
---|
2792 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
2793 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
2794 | sed -n \ |
---|
2795 | -e "s/'/'\\\\''/g" \ |
---|
2796 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
2797 | ;; |
---|
2798 | *) |
---|
2799 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
2800 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
2801 | ;; |
---|
2802 | esac >> confcache |
---|
2803 | if cmp -s $cache_file confcache; then |
---|
2804 | : |
---|
2805 | else |
---|
2806 | if test -w $cache_file; then |
---|
2807 | echo "updating cache $cache_file" |
---|
2808 | cat confcache > $cache_file |
---|
2809 | else |
---|
2810 | echo "not updating unwritable cache $cache_file" |
---|
2811 | fi |
---|
2812 | fi |
---|
2813 | rm -f confcache |
---|
2814 | |
---|
2815 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
2816 | |
---|
2817 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
2818 | # Let make expand exec_prefix. |
---|
2819 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
2820 | |
---|
2821 | # Any assignment to VPATH causes Sun make to only execute |
---|
2822 | # the first set of double-colon rules, so remove it if not needed. |
---|
2823 | # If there is a colon in the path, we need to keep it. |
---|
2824 | if test "x$srcdir" = x.; then |
---|
2825 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
2826 | fi |
---|
2827 | |
---|
2828 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
2829 | |
---|
2830 | # Transform confdefs.h into DEFS. |
---|
2831 | # Protect against shell expansion while executing Makefile rules. |
---|
2832 | # Protect against Makefile macro expansion. |
---|
2833 | cat > conftest.defs <<\EOF |
---|
2834 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
2835 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
2836 | s%\[%\\&%g |
---|
2837 | s%\]%\\&%g |
---|
2838 | s%\$%$$%g |
---|
2839 | EOF |
---|
2840 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
2841 | rm -f conftest.defs |
---|
2842 | |
---|
2843 | |
---|
2844 | # Without the "./", some shells look in PATH for config.status. |
---|
2845 | : ${CONFIG_STATUS=./config.status} |
---|
2846 | |
---|
2847 | echo creating $CONFIG_STATUS |
---|
2848 | rm -f $CONFIG_STATUS |
---|
2849 | cat > $CONFIG_STATUS <<EOF |
---|
2850 | #! /bin/sh |
---|
2851 | # Generated automatically by configure. |
---|
2852 | # Run this file to recreate the current configuration. |
---|
2853 | # This directory was configured as follows, |
---|
2854 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
2855 | # |
---|
2856 | # $0 $ac_configure_args |
---|
2857 | # |
---|
2858 | # Compiler output produced by configure, useful for debugging |
---|
2859 | # configure, is in ./config.log if it exists. |
---|
2860 | |
---|
2861 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
2862 | for ac_option |
---|
2863 | do |
---|
2864 | case "\$ac_option" in |
---|
2865 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
2866 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
2867 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
2868 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
2869 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
2870 | exit 0 ;; |
---|
2871 | -help | --help | --hel | --he | --h) |
---|
2872 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
2873 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
2874 | esac |
---|
2875 | done |
---|
2876 | |
---|
2877 | ac_given_srcdir=$srcdir |
---|
2878 | ac_given_INSTALL="$INSTALL" |
---|
2879 | |
---|
2880 | trap 'rm -fr `echo "Makefile |
---|
2881 | rtems/Makefile |
---|
2882 | rtems/src/Makefile |
---|
2883 | rtems/include/Makefile |
---|
2884 | rtems/include/wrap/Makefile |
---|
2885 | rtems/include/rtems/Makefile |
---|
2886 | rtems/include/rtems/rtems/Makefile |
---|
2887 | rtems/optman/Makefile |
---|
2888 | rtems/${inline_dir}/Makefile |
---|
2889 | rtems/${inline_dir}/rtems/Makefile |
---|
2890 | rtems/${inline_dir}/rtems/rtems/Makefile |
---|
2891 | sapi/Makefile |
---|
2892 | sapi/src/Makefile |
---|
2893 | sapi/include/Makefile |
---|
2894 | sapi/include/wrap/Makefile |
---|
2895 | sapi/include/rtems/Makefile |
---|
2896 | sapi/include/rtems/sptables.h |
---|
2897 | sapi/${inline_dir}/Makefile |
---|
2898 | sapi/${inline_dir}/rtems/Makefile |
---|
2899 | sapi/optman/Makefile |
---|
2900 | score/Makefile |
---|
2901 | score/cpu/Makefile |
---|
2902 | score/include/Makefile |
---|
2903 | score/include/rtems/Makefile |
---|
2904 | score/include/rtems/wrap/Makefile |
---|
2905 | score/include/rtems/score/Makefile |
---|
2906 | score/${inline_dir}/Makefile |
---|
2907 | score/${inline_dir}/rtems/Makefile |
---|
2908 | score/${inline_dir}/rtems/score/Makefile |
---|
2909 | score/src/Makefile |
---|
2910 | wrapup/Makefile |
---|
2911 | wrapup/rtems/Makefile |
---|
2912 | $makefiles |
---|
2913 | " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
2914 | EOF |
---|
2915 | cat >> $CONFIG_STATUS <<EOF |
---|
2916 | |
---|
2917 | # Protect against being on the right side of a sed subst in config.status. |
---|
2918 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
2919 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
2920 | $ac_vpsub |
---|
2921 | $extrasub |
---|
2922 | s%@SHELL@%$SHELL%g |
---|
2923 | s%@CFLAGS@%$CFLAGS%g |
---|
2924 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
2925 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
2926 | s%@FFLAGS@%$FFLAGS%g |
---|
2927 | s%@DEFS@%$DEFS%g |
---|
2928 | s%@LDFLAGS@%$LDFLAGS%g |
---|
2929 | s%@LIBS@%$LIBS%g |
---|
2930 | s%@exec_prefix@%$exec_prefix%g |
---|
2931 | s%@prefix@%$prefix%g |
---|
2932 | s%@program_transform_name@%$program_transform_name%g |
---|
2933 | s%@bindir@%$bindir%g |
---|
2934 | s%@sbindir@%$sbindir%g |
---|
2935 | s%@libexecdir@%$libexecdir%g |
---|
2936 | s%@datadir@%$datadir%g |
---|
2937 | s%@sysconfdir@%$sysconfdir%g |
---|
2938 | s%@sharedstatedir@%$sharedstatedir%g |
---|
2939 | s%@localstatedir@%$localstatedir%g |
---|
2940 | s%@libdir@%$libdir%g |
---|
2941 | s%@includedir@%$includedir%g |
---|
2942 | s%@oldincludedir@%$oldincludedir%g |
---|
2943 | s%@infodir@%$infodir%g |
---|
2944 | s%@mandir@%$mandir%g |
---|
2945 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
2946 | s%@SET_MAKE@%$SET_MAKE%g |
---|
2947 | s%@host@%$host%g |
---|
2948 | s%@host_alias@%$host_alias%g |
---|
2949 | s%@host_cpu@%$host_cpu%g |
---|
2950 | s%@host_vendor@%$host_vendor%g |
---|
2951 | s%@host_os@%$host_os%g |
---|
2952 | s%@target@%$target%g |
---|
2953 | s%@target_alias@%$target_alias%g |
---|
2954 | s%@target_cpu@%$target_cpu%g |
---|
2955 | s%@target_vendor@%$target_vendor%g |
---|
2956 | s%@target_os@%$target_os%g |
---|
2957 | s%@build@%$build%g |
---|
2958 | s%@build_alias@%$build_alias%g |
---|
2959 | s%@build_cpu@%$build_cpu%g |
---|
2960 | s%@build_vendor@%$build_vendor%g |
---|
2961 | s%@build_os@%$build_os%g |
---|
2962 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
2963 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
2964 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
2965 | s%@MAINT@%$MAINT%g |
---|
2966 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
2967 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
2968 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
2969 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
2970 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
2971 | s%@RTEMS_BSP@%$RTEMS_BSP%g |
---|
2972 | s%@LN_S@%$LN_S%g |
---|
2973 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
2974 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
2975 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
2976 | s%@KSH@%$KSH%g |
---|
2977 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
2978 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
2979 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
2980 | s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g |
---|
2981 | s%@PACKHEX@%$PACKHEX%g |
---|
2982 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
2983 | s%@GCCSED@%$GCCSED%g |
---|
2984 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
---|
2985 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
2986 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
2987 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
2988 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
2989 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
2990 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
2991 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
2992 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
2993 | s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g |
---|
2994 | s%@CC@%$CC%g |
---|
2995 | s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g |
---|
2996 | s%@HAS_MP@%$HAS_MP%g |
---|
2997 | s%@RTEMS_VERSION@%$RTEMS_VERSION%g |
---|
2998 | s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g |
---|
2999 | s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g |
---|
3000 | s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g |
---|
3001 | s%@program_prefix@%$program_prefix%g |
---|
3002 | s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g |
---|
3003 | s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g |
---|
3004 | s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g |
---|
3005 | s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g |
---|
3006 | |
---|
3007 | CEOF |
---|
3008 | EOF |
---|
3009 | |
---|
3010 | cat >> $CONFIG_STATUS <<\EOF |
---|
3011 | |
---|
3012 | # Split the substitutions into bite-sized pieces for seds with |
---|
3013 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
3014 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
3015 | ac_file=1 # Number of current file. |
---|
3016 | ac_beg=1 # First line for current file. |
---|
3017 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
3018 | ac_more_lines=: |
---|
3019 | ac_sed_cmds="" |
---|
3020 | while $ac_more_lines; do |
---|
3021 | if test $ac_beg -gt 1; then |
---|
3022 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
3023 | else |
---|
3024 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
3025 | fi |
---|
3026 | if test ! -s conftest.s$ac_file; then |
---|
3027 | ac_more_lines=false |
---|
3028 | rm -f conftest.s$ac_file |
---|
3029 | else |
---|
3030 | if test -z "$ac_sed_cmds"; then |
---|
3031 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
3032 | else |
---|
3033 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
3034 | fi |
---|
3035 | ac_file=`expr $ac_file + 1` |
---|
3036 | ac_beg=$ac_end |
---|
3037 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
3038 | fi |
---|
3039 | done |
---|
3040 | if test -z "$ac_sed_cmds"; then |
---|
3041 | ac_sed_cmds=cat |
---|
3042 | fi |
---|
3043 | EOF |
---|
3044 | |
---|
3045 | cat >> $CONFIG_STATUS <<EOF |
---|
3046 | |
---|
3047 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
3048 | rtems/Makefile |
---|
3049 | rtems/src/Makefile |
---|
3050 | rtems/include/Makefile |
---|
3051 | rtems/include/wrap/Makefile |
---|
3052 | rtems/include/rtems/Makefile |
---|
3053 | rtems/include/rtems/rtems/Makefile |
---|
3054 | rtems/optman/Makefile |
---|
3055 | rtems/${inline_dir}/Makefile |
---|
3056 | rtems/${inline_dir}/rtems/Makefile |
---|
3057 | rtems/${inline_dir}/rtems/rtems/Makefile |
---|
3058 | sapi/Makefile |
---|
3059 | sapi/src/Makefile |
---|
3060 | sapi/include/Makefile |
---|
3061 | sapi/include/wrap/Makefile |
---|
3062 | sapi/include/rtems/Makefile |
---|
3063 | sapi/include/rtems/sptables.h |
---|
3064 | sapi/${inline_dir}/Makefile |
---|
3065 | sapi/${inline_dir}/rtems/Makefile |
---|
3066 | sapi/optman/Makefile |
---|
3067 | score/Makefile |
---|
3068 | score/cpu/Makefile |
---|
3069 | score/include/Makefile |
---|
3070 | score/include/rtems/Makefile |
---|
3071 | score/include/rtems/wrap/Makefile |
---|
3072 | score/include/rtems/score/Makefile |
---|
3073 | score/${inline_dir}/Makefile |
---|
3074 | score/${inline_dir}/rtems/Makefile |
---|
3075 | score/${inline_dir}/rtems/score/Makefile |
---|
3076 | score/src/Makefile |
---|
3077 | wrapup/Makefile |
---|
3078 | wrapup/rtems/Makefile |
---|
3079 | $makefiles |
---|
3080 | "} |
---|
3081 | EOF |
---|
3082 | cat >> $CONFIG_STATUS <<\EOF |
---|
3083 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
3084 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
3085 | case "$ac_file" in |
---|
3086 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
3087 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
3088 | *) ac_file_in="${ac_file}.in" ;; |
---|
3089 | esac |
---|
3090 | |
---|
3091 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
3092 | |
---|
3093 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
3094 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
3095 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
3096 | # The file is in a subdirectory. |
---|
3097 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
3098 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
3099 | # A "../" for each directory in $ac_dir_suffix. |
---|
3100 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
3101 | else |
---|
3102 | ac_dir_suffix= ac_dots= |
---|
3103 | fi |
---|
3104 | |
---|
3105 | case "$ac_given_srcdir" in |
---|
3106 | .) srcdir=. |
---|
3107 | if test -z "$ac_dots"; then top_srcdir=. |
---|
3108 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
3109 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
3110 | *) # Relative path. |
---|
3111 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
3112 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
3113 | esac |
---|
3114 | |
---|
3115 | case "$ac_given_INSTALL" in |
---|
3116 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
3117 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
3118 | esac |
---|
3119 | |
---|
3120 | echo creating "$ac_file" |
---|
3121 | rm -f "$ac_file" |
---|
3122 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
3123 | case "$ac_file" in |
---|
3124 | *Makefile*) ac_comsub="1i\\ |
---|
3125 | # $configure_input" ;; |
---|
3126 | *) ac_comsub= ;; |
---|
3127 | esac |
---|
3128 | |
---|
3129 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
3130 | sed -e "$ac_comsub |
---|
3131 | s%@configure_input@%$configure_input%g |
---|
3132 | s%@srcdir@%$srcdir%g |
---|
3133 | s%@top_srcdir@%$top_srcdir%g |
---|
3134 | s%@INSTALL@%$INSTALL%g |
---|
3135 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
3136 | fi; done |
---|
3137 | rm -f conftest.s* |
---|
3138 | |
---|
3139 | EOF |
---|
3140 | cat >> $CONFIG_STATUS <<EOF |
---|
3141 | |
---|
3142 | EOF |
---|
3143 | cat >> $CONFIG_STATUS <<\EOF |
---|
3144 | |
---|
3145 | exit 0 |
---|
3146 | EOF |
---|
3147 | chmod +x $CONFIG_STATUS |
---|
3148 | rm -fr confdefs* $ac_clean_files |
---|
3149 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
3150 | |
---|
3151 | |
---|