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