1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --with-target-subdir=DIR" |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
18 | (and sometimes confusing) to the casual installer" |
---|
19 | ac_help="$ac_help |
---|
20 | --enable-multiprocessing enable multiprocessing interface" |
---|
21 | ac_help="$ac_help |
---|
22 | --enable-posix enable posix interface" |
---|
23 | ac_help="$ac_help |
---|
24 | --enable-networking enable TCP/IP stack" |
---|
25 | ac_help="$ac_help |
---|
26 | --enable-rdbg enable remote debugger" |
---|
27 | ac_help="$ac_help |
---|
28 | --enable-rtems-inlines enable RTEMS inline functions |
---|
29 | (default:enabled, disable to use macros)" |
---|
30 | ac_help="$ac_help |
---|
31 | --enable-cxx enable C++ support, |
---|
32 | and build the rtems++ library" |
---|
33 | ac_help="$ac_help |
---|
34 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
35 | ac_help="$ac_help |
---|
36 | --enable-libcdir=directory set the directory for the C library" |
---|
37 | ac_help="$ac_help |
---|
38 | --enable-tests enable tests (default:disabled)" |
---|
39 | ac_help="$ac_help |
---|
40 | \ |
---|
41 | --enable-hwapi enable hardware API library" |
---|
42 | |
---|
43 | # Initialize some variables set by options. |
---|
44 | # The variables have the same names as the options, with |
---|
45 | # dashes changed to underlines. |
---|
46 | build=NONE |
---|
47 | cache_file=./config.cache |
---|
48 | exec_prefix=NONE |
---|
49 | host=NONE |
---|
50 | no_create= |
---|
51 | nonopt=NONE |
---|
52 | no_recursion= |
---|
53 | prefix=NONE |
---|
54 | program_prefix=NONE |
---|
55 | program_suffix=NONE |
---|
56 | program_transform_name=s,x,x, |
---|
57 | silent= |
---|
58 | site= |
---|
59 | srcdir= |
---|
60 | target=NONE |
---|
61 | verbose= |
---|
62 | x_includes=NONE |
---|
63 | x_libraries=NONE |
---|
64 | bindir='${exec_prefix}/bin' |
---|
65 | sbindir='${exec_prefix}/sbin' |
---|
66 | libexecdir='${exec_prefix}/libexec' |
---|
67 | datadir='${prefix}/share' |
---|
68 | sysconfdir='${prefix}/etc' |
---|
69 | sharedstatedir='${prefix}/com' |
---|
70 | localstatedir='${prefix}/var' |
---|
71 | libdir='${exec_prefix}/lib' |
---|
72 | includedir='${prefix}/include' |
---|
73 | oldincludedir='/usr/include' |
---|
74 | infodir='${prefix}/info' |
---|
75 | mandir='${prefix}/man' |
---|
76 | |
---|
77 | # Initialize some other variables. |
---|
78 | subdirs= |
---|
79 | MFLAGS= MAKEFLAGS= |
---|
80 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
81 | # Maximum number of lines to put in a shell here document. |
---|
82 | ac_max_here_lines=12 |
---|
83 | |
---|
84 | ac_prev= |
---|
85 | for ac_option |
---|
86 | do |
---|
87 | |
---|
88 | # If the previous option needs an argument, assign it. |
---|
89 | if test -n "$ac_prev"; then |
---|
90 | eval "$ac_prev=\$ac_option" |
---|
91 | ac_prev= |
---|
92 | continue |
---|
93 | fi |
---|
94 | |
---|
95 | case "$ac_option" in |
---|
96 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
97 | *) ac_optarg= ;; |
---|
98 | esac |
---|
99 | |
---|
100 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
101 | |
---|
102 | case "$ac_option" in |
---|
103 | |
---|
104 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
105 | ac_prev=bindir ;; |
---|
106 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
107 | bindir="$ac_optarg" ;; |
---|
108 | |
---|
109 | -build | --build | --buil | --bui | --bu) |
---|
110 | ac_prev=build ;; |
---|
111 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
112 | build="$ac_optarg" ;; |
---|
113 | |
---|
114 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
115 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
116 | ac_prev=cache_file ;; |
---|
117 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
118 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
119 | cache_file="$ac_optarg" ;; |
---|
120 | |
---|
121 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
122 | ac_prev=datadir ;; |
---|
123 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
124 | | --da=*) |
---|
125 | datadir="$ac_optarg" ;; |
---|
126 | |
---|
127 | -disable-* | --disable-*) |
---|
128 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
129 | # Reject names that are not valid shell variable names. |
---|
130 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
132 | fi |
---|
133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
134 | eval "enable_${ac_feature}=no" ;; |
---|
135 | |
---|
136 | -enable-* | --enable-*) |
---|
137 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
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 | case "$ac_option" in |
---|
144 | *=*) ;; |
---|
145 | *) ac_optarg=yes ;; |
---|
146 | esac |
---|
147 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
148 | |
---|
149 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
150 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
151 | | --exec | --exe | --ex) |
---|
152 | ac_prev=exec_prefix ;; |
---|
153 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
154 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
155 | | --exec=* | --exe=* | --ex=*) |
---|
156 | exec_prefix="$ac_optarg" ;; |
---|
157 | |
---|
158 | -gas | --gas | --ga | --g) |
---|
159 | # Obsolete; use --with-gas. |
---|
160 | with_gas=yes ;; |
---|
161 | |
---|
162 | -help | --help | --hel | --he) |
---|
163 | # Omit some internal or obsolete options to make the list less imposing. |
---|
164 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
165 | cat << EOF |
---|
166 | Usage: configure [options] [host] |
---|
167 | Options: [defaults in brackets after descriptions] |
---|
168 | Configuration: |
---|
169 | --cache-file=FILE cache test results in FILE |
---|
170 | --help print this message |
---|
171 | --no-create do not create output files |
---|
172 | --quiet, --silent do not print \`checking...' messages |
---|
173 | --version print the version of autoconf that created configure |
---|
174 | Directory and file names: |
---|
175 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
176 | [$ac_default_prefix] |
---|
177 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
178 | [same as prefix] |
---|
179 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
180 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
181 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
182 | --datadir=DIR read-only architecture-independent data in DIR |
---|
183 | [PREFIX/share] |
---|
184 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
185 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
186 | [PREFIX/com] |
---|
187 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
188 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
189 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
190 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
191 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
192 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
193 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
194 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
195 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
196 | --program-transform-name=PROGRAM |
---|
197 | run sed PROGRAM on installed program names |
---|
198 | EOF |
---|
199 | cat << EOF |
---|
200 | Host type: |
---|
201 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
202 | --host=HOST configure for HOST [guessed] |
---|
203 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
204 | Features and packages: |
---|
205 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
206 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
207 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
208 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
209 | --x-includes=DIR X include files are in DIR |
---|
210 | --x-libraries=DIR X library files are in DIR |
---|
211 | EOF |
---|
212 | if test -n "$ac_help"; then |
---|
213 | echo "--enable and --with options recognized:$ac_help" |
---|
214 | fi |
---|
215 | exit 0 ;; |
---|
216 | |
---|
217 | -host | --host | --hos | --ho) |
---|
218 | ac_prev=host ;; |
---|
219 | -host=* | --host=* | --hos=* | --ho=*) |
---|
220 | host="$ac_optarg" ;; |
---|
221 | |
---|
222 | -includedir | --includedir | --includedi | --included | --include \ |
---|
223 | | --includ | --inclu | --incl | --inc) |
---|
224 | ac_prev=includedir ;; |
---|
225 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
226 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
227 | includedir="$ac_optarg" ;; |
---|
228 | |
---|
229 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
230 | ac_prev=infodir ;; |
---|
231 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
232 | infodir="$ac_optarg" ;; |
---|
233 | |
---|
234 | -libdir | --libdir | --libdi | --libd) |
---|
235 | ac_prev=libdir ;; |
---|
236 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
237 | libdir="$ac_optarg" ;; |
---|
238 | |
---|
239 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
240 | | --libexe | --libex | --libe) |
---|
241 | ac_prev=libexecdir ;; |
---|
242 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
243 | | --libexe=* | --libex=* | --libe=*) |
---|
244 | libexecdir="$ac_optarg" ;; |
---|
245 | |
---|
246 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
247 | | --localstate | --localstat | --localsta | --localst \ |
---|
248 | | --locals | --local | --loca | --loc | --lo) |
---|
249 | ac_prev=localstatedir ;; |
---|
250 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
251 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
252 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
253 | localstatedir="$ac_optarg" ;; |
---|
254 | |
---|
255 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
256 | ac_prev=mandir ;; |
---|
257 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
258 | mandir="$ac_optarg" ;; |
---|
259 | |
---|
260 | -nfp | --nfp | --nf) |
---|
261 | # Obsolete; use --without-fp. |
---|
262 | with_fp=no ;; |
---|
263 | |
---|
264 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
265 | | --no-cr | --no-c) |
---|
266 | no_create=yes ;; |
---|
267 | |
---|
268 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
269 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
270 | no_recursion=yes ;; |
---|
271 | |
---|
272 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
273 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
274 | | --oldin | --oldi | --old | --ol | --o) |
---|
275 | ac_prev=oldincludedir ;; |
---|
276 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
277 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
278 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
279 | oldincludedir="$ac_optarg" ;; |
---|
280 | |
---|
281 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
282 | ac_prev=prefix ;; |
---|
283 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
284 | prefix="$ac_optarg" ;; |
---|
285 | |
---|
286 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
287 | | --program-pre | --program-pr | --program-p) |
---|
288 | ac_prev=program_prefix ;; |
---|
289 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
290 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
291 | program_prefix="$ac_optarg" ;; |
---|
292 | |
---|
293 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
294 | | --program-suf | --program-su | --program-s) |
---|
295 | ac_prev=program_suffix ;; |
---|
296 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
297 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
298 | program_suffix="$ac_optarg" ;; |
---|
299 | |
---|
300 | -program-transform-name | --program-transform-name \ |
---|
301 | | --program-transform-nam | --program-transform-na \ |
---|
302 | | --program-transform-n | --program-transform- \ |
---|
303 | | --program-transform | --program-transfor \ |
---|
304 | | --program-transfo | --program-transf \ |
---|
305 | | --program-trans | --program-tran \ |
---|
306 | | --progr-tra | --program-tr | --program-t) |
---|
307 | ac_prev=program_transform_name ;; |
---|
308 | -program-transform-name=* | --program-transform-name=* \ |
---|
309 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
310 | | --program-transform-n=* | --program-transform-=* \ |
---|
311 | | --program-transform=* | --program-transfor=* \ |
---|
312 | | --program-transfo=* | --program-transf=* \ |
---|
313 | | --program-trans=* | --program-tran=* \ |
---|
314 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
315 | program_transform_name="$ac_optarg" ;; |
---|
316 | |
---|
317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
318 | | -silent | --silent | --silen | --sile | --sil) |
---|
319 | silent=yes ;; |
---|
320 | |
---|
321 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
322 | ac_prev=sbindir ;; |
---|
323 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
324 | | --sbi=* | --sb=*) |
---|
325 | sbindir="$ac_optarg" ;; |
---|
326 | |
---|
327 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
328 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
329 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
330 | | --sha | --sh) |
---|
331 | ac_prev=sharedstatedir ;; |
---|
332 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
333 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
334 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
335 | | --sha=* | --sh=*) |
---|
336 | sharedstatedir="$ac_optarg" ;; |
---|
337 | |
---|
338 | -site | --site | --sit) |
---|
339 | ac_prev=site ;; |
---|
340 | -site=* | --site=* | --sit=*) |
---|
341 | site="$ac_optarg" ;; |
---|
342 | |
---|
343 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
344 | ac_prev=srcdir ;; |
---|
345 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
346 | srcdir="$ac_optarg" ;; |
---|
347 | |
---|
348 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
349 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
350 | ac_prev=sysconfdir ;; |
---|
351 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
352 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
353 | sysconfdir="$ac_optarg" ;; |
---|
354 | |
---|
355 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
356 | ac_prev=target ;; |
---|
357 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
358 | target="$ac_optarg" ;; |
---|
359 | |
---|
360 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
361 | verbose=yes ;; |
---|
362 | |
---|
363 | -version | --version | --versio | --versi | --vers) |
---|
364 | echo "configure generated by autoconf version 2.13" |
---|
365 | exit 0 ;; |
---|
366 | |
---|
367 | -with-* | --with-*) |
---|
368 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
369 | # Reject names that are not valid shell variable names. |
---|
370 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
371 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
372 | fi |
---|
373 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
374 | case "$ac_option" in |
---|
375 | *=*) ;; |
---|
376 | *) ac_optarg=yes ;; |
---|
377 | esac |
---|
378 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
379 | |
---|
380 | -without-* | --without-*) |
---|
381 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
382 | # Reject names that are not valid shell variable names. |
---|
383 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
384 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
385 | fi |
---|
386 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
387 | eval "with_${ac_package}=no" ;; |
---|
388 | |
---|
389 | --x) |
---|
390 | # Obsolete; use --with-x. |
---|
391 | with_x=yes ;; |
---|
392 | |
---|
393 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
394 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
395 | ac_prev=x_includes ;; |
---|
396 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
397 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
398 | x_includes="$ac_optarg" ;; |
---|
399 | |
---|
400 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
401 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
402 | ac_prev=x_libraries ;; |
---|
403 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
404 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
405 | x_libraries="$ac_optarg" ;; |
---|
406 | |
---|
407 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
408 | ;; |
---|
409 | |
---|
410 | *) |
---|
411 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
412 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
413 | fi |
---|
414 | if test "x$nonopt" != xNONE; then |
---|
415 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
416 | fi |
---|
417 | nonopt="$ac_option" |
---|
418 | ;; |
---|
419 | |
---|
420 | esac |
---|
421 | done |
---|
422 | |
---|
423 | if test -n "$ac_prev"; then |
---|
424 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
425 | fi |
---|
426 | |
---|
427 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
428 | |
---|
429 | # File descriptor usage: |
---|
430 | # 0 standard input |
---|
431 | # 1 file creation |
---|
432 | # 2 errors and warnings |
---|
433 | # 3 some systems may open it to /dev/tty |
---|
434 | # 4 used on the Kubota Titan |
---|
435 | # 6 checking for... messages and results |
---|
436 | # 5 compiler messages saved in config.log |
---|
437 | if test "$silent" = yes; then |
---|
438 | exec 6>/dev/null |
---|
439 | else |
---|
440 | exec 6>&1 |
---|
441 | fi |
---|
442 | exec 5>./config.log |
---|
443 | |
---|
444 | echo "\ |
---|
445 | This file contains any messages produced by compilers while |
---|
446 | running configure, to aid debugging if configure makes a mistake. |
---|
447 | " 1>&5 |
---|
448 | |
---|
449 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
450 | # Also quote any args containing shell metacharacters. |
---|
451 | ac_configure_args= |
---|
452 | for ac_arg |
---|
453 | do |
---|
454 | case "$ac_arg" in |
---|
455 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
456 | | --no-cr | --no-c) ;; |
---|
457 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
458 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
459 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
460 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
461 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
462 | esac |
---|
463 | done |
---|
464 | |
---|
465 | # NLS nuisances. |
---|
466 | # Only set these to C if already set. These must not be set unconditionally |
---|
467 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
468 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
469 | # Non-C LC_CTYPE values break the ctype check. |
---|
470 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
471 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
472 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
473 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
474 | |
---|
475 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
476 | rm -rf conftest* confdefs.h |
---|
477 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
478 | echo > confdefs.h |
---|
479 | |
---|
480 | # A filename unique to this package, relative to the directory that |
---|
481 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
482 | ac_unique_file=README |
---|
483 | |
---|
484 | # Find the source files, if location was not specified. |
---|
485 | if test -z "$srcdir"; then |
---|
486 | ac_srcdir_defaulted=yes |
---|
487 | # Try the directory containing this script, then its parent. |
---|
488 | ac_prog=$0 |
---|
489 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
490 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
491 | srcdir=$ac_confdir |
---|
492 | if test ! -r $srcdir/$ac_unique_file; then |
---|
493 | srcdir=.. |
---|
494 | fi |
---|
495 | else |
---|
496 | ac_srcdir_defaulted=no |
---|
497 | fi |
---|
498 | if test ! -r $srcdir/$ac_unique_file; then |
---|
499 | if test "$ac_srcdir_defaulted" = yes; then |
---|
500 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
501 | else |
---|
502 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
503 | fi |
---|
504 | fi |
---|
505 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
506 | |
---|
507 | # Prefer explicitly selected file to automatically selected ones. |
---|
508 | if test -z "$CONFIG_SITE"; then |
---|
509 | if test "x$prefix" != xNONE; then |
---|
510 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
511 | else |
---|
512 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
513 | fi |
---|
514 | fi |
---|
515 | for ac_site_file in $CONFIG_SITE; do |
---|
516 | if test -r "$ac_site_file"; then |
---|
517 | echo "loading site script $ac_site_file" |
---|
518 | . "$ac_site_file" |
---|
519 | fi |
---|
520 | done |
---|
521 | |
---|
522 | if test -r "$cache_file"; then |
---|
523 | echo "loading cache $cache_file" |
---|
524 | . $cache_file |
---|
525 | else |
---|
526 | echo "creating cache $cache_file" |
---|
527 | > $cache_file |
---|
528 | fi |
---|
529 | |
---|
530 | ac_ext=c |
---|
531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
532 | ac_cpp='$CPP $CPPFLAGS' |
---|
533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
534 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
535 | cross_compiling=$ac_cv_prog_cc_cross |
---|
536 | |
---|
537 | ac_exeext= |
---|
538 | ac_objext=o |
---|
539 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
540 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
541 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
542 | ac_n= ac_c=' |
---|
543 | ' ac_t=' ' |
---|
544 | else |
---|
545 | ac_n=-n ac_c= ac_t= |
---|
546 | fi |
---|
547 | else |
---|
548 | ac_n= ac_c='\c' ac_t= |
---|
549 | fi |
---|
550 | |
---|
551 | |
---|
552 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
553 | if test "${with_target_subdir+set}" = set; then |
---|
554 | withval="$with_target_subdir" |
---|
555 | TARGET_SUBDIR="$withval" |
---|
556 | else |
---|
557 | TARGET_SUBDIR="." |
---|
558 | fi |
---|
559 | |
---|
560 | |
---|
561 | RTEMS_TOPdir="."; |
---|
562 | |
---|
563 | |
---|
564 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
565 | echo "configure:566: checking for RTEMS Version" >&5 |
---|
566 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
567 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
568 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
569 | else |
---|
570 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
571 | fi |
---|
572 | if test -z "$RTEMS_VERSION"; then |
---|
573 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
574 | fi |
---|
575 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
576 | |
---|
577 | |
---|
578 | ac_aux_dir= |
---|
579 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
580 | if test -f $ac_dir/install-sh; then |
---|
581 | ac_aux_dir=$ac_dir |
---|
582 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
583 | break |
---|
584 | elif test -f $ac_dir/install.sh; then |
---|
585 | ac_aux_dir=$ac_dir |
---|
586 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
587 | break |
---|
588 | fi |
---|
589 | done |
---|
590 | if test -z "$ac_aux_dir"; then |
---|
591 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
592 | fi |
---|
593 | ac_config_guess=$ac_aux_dir/config.guess |
---|
594 | ac_config_sub=$ac_aux_dir/config.sub |
---|
595 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
596 | |
---|
597 | |
---|
598 | |
---|
599 | # Do some error checking and defaulting for the host and target type. |
---|
600 | # The inputs are: |
---|
601 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
602 | # |
---|
603 | # The rules are: |
---|
604 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
605 | # same time. |
---|
606 | # 2. Host defaults to nonopt. |
---|
607 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
608 | # as determined by config.guess. |
---|
609 | # 4. Target and build default to nonopt. |
---|
610 | # 5. If nonopt is not specified, then target and build default to host. |
---|
611 | |
---|
612 | # The aliases save the names the user supplied, while $host etc. |
---|
613 | # will get canonicalized. |
---|
614 | case $host---$target---$nonopt in |
---|
615 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
616 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
617 | esac |
---|
618 | |
---|
619 | |
---|
620 | # Make sure we can run config.sub. |
---|
621 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
622 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
623 | fi |
---|
624 | |
---|
625 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
626 | echo "configure:627: checking host system type" >&5 |
---|
627 | |
---|
628 | host_alias=$host |
---|
629 | case "$host_alias" in |
---|
630 | NONE) |
---|
631 | case $nonopt in |
---|
632 | NONE) |
---|
633 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
634 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
635 | fi ;; |
---|
636 | *) host_alias=$nonopt ;; |
---|
637 | esac ;; |
---|
638 | esac |
---|
639 | |
---|
640 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
641 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
642 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
643 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
644 | echo "$ac_t""$host" 1>&6 |
---|
645 | |
---|
646 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
647 | echo "configure:648: checking target system type" >&5 |
---|
648 | |
---|
649 | target_alias=$target |
---|
650 | case "$target_alias" in |
---|
651 | NONE) |
---|
652 | case $nonopt in |
---|
653 | NONE) target_alias=$host_alias ;; |
---|
654 | *) target_alias=$nonopt ;; |
---|
655 | esac ;; |
---|
656 | esac |
---|
657 | |
---|
658 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
659 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
660 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
661 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
662 | echo "$ac_t""$target" 1>&6 |
---|
663 | |
---|
664 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
665 | echo "configure:666: checking build system type" >&5 |
---|
666 | |
---|
667 | build_alias=$build |
---|
668 | case "$build_alias" in |
---|
669 | NONE) |
---|
670 | case $nonopt in |
---|
671 | NONE) build_alias=$host_alias ;; |
---|
672 | *) build_alias=$nonopt ;; |
---|
673 | esac ;; |
---|
674 | esac |
---|
675 | |
---|
676 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
677 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
678 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
679 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
680 | echo "$ac_t""$build" 1>&6 |
---|
681 | |
---|
682 | test "$host_alias" != "$target_alias" && |
---|
683 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
684 | NONENONEs,x,x, && |
---|
685 | program_prefix=${target_alias}- |
---|
686 | |
---|
687 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
688 | echo "configure:689: checking rtems target cpu" >&5 |
---|
689 | case "${target}" in |
---|
690 | # hpux unix port should go here |
---|
691 | i[3456]86-go32-rtems*) |
---|
692 | RTEMS_CPU=i386 |
---|
693 | ;; |
---|
694 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
695 | RTEMS_CPU=unix |
---|
696 | ;; |
---|
697 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
698 | RTEMS_CPU=unix |
---|
699 | ;; |
---|
700 | no_cpu-*rtems*) |
---|
701 | RTEMS_CPU=no_cpu |
---|
702 | ;; |
---|
703 | sparc-sun-solaris*) # unix "simulator" port |
---|
704 | RTEMS_CPU=unix |
---|
705 | ;; |
---|
706 | *) |
---|
707 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
708 | ;; |
---|
709 | esac |
---|
710 | |
---|
711 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
712 | |
---|
713 | # Find a good install program. We prefer a C program (faster), |
---|
714 | # so one script is as good as another. But avoid the broken or |
---|
715 | # incompatible versions: |
---|
716 | # SysV /etc/install, /usr/sbin/install |
---|
717 | # SunOS /usr/etc/install |
---|
718 | # IRIX /sbin/install |
---|
719 | # AIX /bin/install |
---|
720 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
721 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
722 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
723 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
724 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
725 | echo "configure:726: checking for a BSD compatible install" >&5 |
---|
726 | if test -z "$INSTALL"; then |
---|
727 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
728 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
729 | else |
---|
730 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
731 | for ac_dir in $PATH; do |
---|
732 | # Account for people who put trailing slashes in PATH elements. |
---|
733 | case "$ac_dir/" in |
---|
734 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
735 | *) |
---|
736 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
737 | # Don't use installbsd from OSF since it installs stuff as root |
---|
738 | # by default. |
---|
739 | for ac_prog in ginstall scoinst install; do |
---|
740 | if test -f $ac_dir/$ac_prog; then |
---|
741 | if test $ac_prog = install && |
---|
742 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
743 | # AIX install. It has an incompatible calling convention. |
---|
744 | : |
---|
745 | else |
---|
746 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
747 | break 2 |
---|
748 | fi |
---|
749 | fi |
---|
750 | done |
---|
751 | ;; |
---|
752 | esac |
---|
753 | done |
---|
754 | IFS="$ac_save_IFS" |
---|
755 | |
---|
756 | fi |
---|
757 | if test "${ac_cv_path_install+set}" = set; then |
---|
758 | INSTALL="$ac_cv_path_install" |
---|
759 | else |
---|
760 | # As a last resort, use the slow shell script. We don't cache a |
---|
761 | # path for INSTALL within a source directory, because that will |
---|
762 | # break other packages using the cache if that directory is |
---|
763 | # removed, or if the path is relative. |
---|
764 | INSTALL="$ac_install_sh" |
---|
765 | fi |
---|
766 | fi |
---|
767 | echo "$ac_t""$INSTALL" 1>&6 |
---|
768 | |
---|
769 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
770 | # It thinks the first close brace ends the variable substitution. |
---|
771 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
772 | |
---|
773 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
774 | |
---|
775 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
776 | |
---|
777 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
778 | echo "configure:779: checking whether build environment is sane" >&5 |
---|
779 | # Just in case |
---|
780 | sleep 1 |
---|
781 | echo timestamp > conftestfile |
---|
782 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
783 | # arguments. Must try -L first in case configure is actually a |
---|
784 | # symlink; some systems play weird games with the mod time of symlinks |
---|
785 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
786 | # directory). |
---|
787 | if ( |
---|
788 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
789 | if test "$*" = "X"; then |
---|
790 | # -L didn't work. |
---|
791 | set X `ls -t $srcdir/configure conftestfile` |
---|
792 | fi |
---|
793 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
794 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
795 | |
---|
796 | # If neither matched, then we have a broken ls. This can happen |
---|
797 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
798 | # broken ls alias from the environment. This has actually |
---|
799 | # happened. Such a system could not be considered "sane". |
---|
800 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
801 | alias in your environment" 1>&2; exit 1; } |
---|
802 | fi |
---|
803 | |
---|
804 | test "$2" = conftestfile |
---|
805 | ) |
---|
806 | then |
---|
807 | # Ok. |
---|
808 | : |
---|
809 | else |
---|
810 | { echo "configure: error: newly created file is older than distributed files! |
---|
811 | Check your system clock" 1>&2; exit 1; } |
---|
812 | fi |
---|
813 | rm -f conftest* |
---|
814 | echo "$ac_t""yes" 1>&6 |
---|
815 | if test "$program_transform_name" = s,x,x,; then |
---|
816 | program_transform_name= |
---|
817 | else |
---|
818 | # Double any \ or $. echo might interpret backslashes. |
---|
819 | cat <<\EOF_SED > conftestsed |
---|
820 | s,\\,\\\\,g; s,\$,$$,g |
---|
821 | EOF_SED |
---|
822 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
823 | rm -f conftestsed |
---|
824 | fi |
---|
825 | test "$program_prefix" != NONE && |
---|
826 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
827 | # Use a double $ so make ignores it. |
---|
828 | test "$program_suffix" != NONE && |
---|
829 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
830 | |
---|
831 | # sed with no file args requires a program. |
---|
832 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
833 | |
---|
834 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
835 | echo "configure:836: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
836 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
837 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
838 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
839 | else |
---|
840 | cat > conftestmake <<\EOF |
---|
841 | all: |
---|
842 | @echo 'ac_maketemp="${MAKE}"' |
---|
843 | EOF |
---|
844 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
845 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
846 | if test -n "$ac_maketemp"; then |
---|
847 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
848 | else |
---|
849 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
850 | fi |
---|
851 | rm -f conftestmake |
---|
852 | fi |
---|
853 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
854 | echo "$ac_t""yes" 1>&6 |
---|
855 | SET_MAKE= |
---|
856 | else |
---|
857 | echo "$ac_t""no" 1>&6 |
---|
858 | SET_MAKE="MAKE=${MAKE-make}" |
---|
859 | fi |
---|
860 | |
---|
861 | |
---|
862 | PACKAGE=rtems |
---|
863 | |
---|
864 | VERSION=$RTEMS_VERSION |
---|
865 | |
---|
866 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
867 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
868 | fi |
---|
869 | |
---|
870 | |
---|
871 | |
---|
872 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
873 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
874 | echo "configure:875: checking for working aclocal" >&5 |
---|
875 | # Run test in a subshell; some versions of sh will print an error if |
---|
876 | # an executable is not found, even if stderr is redirected. |
---|
877 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
878 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
879 | ACLOCAL=aclocal |
---|
880 | echo "$ac_t""found" 1>&6 |
---|
881 | else |
---|
882 | ACLOCAL="$missing_dir/missing aclocal" |
---|
883 | echo "$ac_t""missing" 1>&6 |
---|
884 | fi |
---|
885 | |
---|
886 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
887 | echo "configure:888: checking for working autoconf" >&5 |
---|
888 | # Run test in a subshell; some versions of sh will print an error if |
---|
889 | # an executable is not found, even if stderr is redirected. |
---|
890 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
891 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
892 | AUTOCONF=autoconf |
---|
893 | echo "$ac_t""found" 1>&6 |
---|
894 | else |
---|
895 | AUTOCONF="$missing_dir/missing autoconf" |
---|
896 | echo "$ac_t""missing" 1>&6 |
---|
897 | fi |
---|
898 | |
---|
899 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
900 | echo "configure:901: checking for working automake" >&5 |
---|
901 | # Run test in a subshell; some versions of sh will print an error if |
---|
902 | # an executable is not found, even if stderr is redirected. |
---|
903 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
904 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
905 | AUTOMAKE=automake |
---|
906 | echo "$ac_t""found" 1>&6 |
---|
907 | else |
---|
908 | AUTOMAKE="$missing_dir/missing automake" |
---|
909 | echo "$ac_t""missing" 1>&6 |
---|
910 | fi |
---|
911 | |
---|
912 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
913 | echo "configure:914: checking for working autoheader" >&5 |
---|
914 | # Run test in a subshell; some versions of sh will print an error if |
---|
915 | # an executable is not found, even if stderr is redirected. |
---|
916 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
917 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
918 | AUTOHEADER=autoheader |
---|
919 | echo "$ac_t""found" 1>&6 |
---|
920 | else |
---|
921 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
922 | echo "$ac_t""missing" 1>&6 |
---|
923 | fi |
---|
924 | |
---|
925 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
926 | echo "configure:927: checking for working makeinfo" >&5 |
---|
927 | # Run test in a subshell; some versions of sh will print an error if |
---|
928 | # an executable is not found, even if stderr is redirected. |
---|
929 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
930 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
931 | MAKEINFO=makeinfo |
---|
932 | echo "$ac_t""found" 1>&6 |
---|
933 | else |
---|
934 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
935 | echo "$ac_t""missing" 1>&6 |
---|
936 | fi |
---|
937 | |
---|
938 | |
---|
939 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
940 | echo "configure:941: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
941 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
942 | if test "${enable_maintainer_mode+set}" = set; then |
---|
943 | enableval="$enable_maintainer_mode" |
---|
944 | USE_MAINTAINER_MODE=$enableval |
---|
945 | else |
---|
946 | USE_MAINTAINER_MODE=no |
---|
947 | fi |
---|
948 | |
---|
949 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
950 | |
---|
951 | |
---|
952 | if test $USE_MAINTAINER_MODE = yes; then |
---|
953 | MAINTAINER_MODE_TRUE= |
---|
954 | MAINTAINER_MODE_FALSE='#' |
---|
955 | else |
---|
956 | MAINTAINER_MODE_TRUE='#' |
---|
957 | MAINTAINER_MODE_FALSE= |
---|
958 | fi |
---|
959 | MAINT=$MAINTAINER_MODE_TRUE |
---|
960 | |
---|
961 | |
---|
962 | |
---|
963 | |
---|
964 | |
---|
965 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
966 | if test "${enable_multiprocessing+set}" = set; then |
---|
967 | enableval="$enable_multiprocessing" |
---|
968 | case "${enableval}" in |
---|
969 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
970 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
971 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
972 | esac |
---|
973 | else |
---|
974 | RTEMS_HAS_MULTIPROCESSING=no |
---|
975 | fi |
---|
976 | |
---|
977 | |
---|
978 | |
---|
979 | # Check whether --enable-posix or --disable-posix was given. |
---|
980 | if test "${enable_posix+set}" = set; then |
---|
981 | enableval="$enable_posix" |
---|
982 | case "${enableval}" in |
---|
983 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
984 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
985 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
986 | esac |
---|
987 | else |
---|
988 | RTEMS_HAS_POSIX_API=yes |
---|
989 | fi |
---|
990 | |
---|
991 | |
---|
992 | |
---|
993 | case "${target}" in |
---|
994 | # hpux unix port should go here |
---|
995 | i[3456]86-go32-rtems*) |
---|
996 | RTEMS_HAS_POSIX_API=no |
---|
997 | ;; |
---|
998 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
999 | RTEMS_HAS_POSIX_API=no |
---|
1000 | ;; |
---|
1001 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1002 | RTEMS_HAS_POSIX_API=no |
---|
1003 | ;; |
---|
1004 | no_cpu-*rtems*) |
---|
1005 | RTEMS_HAS_POSIX_API=no |
---|
1006 | ;; |
---|
1007 | sparc-sun-solaris*) # unix "simulator" port |
---|
1008 | RTEMS_HAS_POSIX_API=no |
---|
1009 | ;; |
---|
1010 | *) |
---|
1011 | ;; |
---|
1012 | esac |
---|
1013 | |
---|
1014 | |
---|
1015 | |
---|
1016 | # Check whether --enable-networking or --disable-networking was given. |
---|
1017 | if test "${enable_networking+set}" = set; then |
---|
1018 | enableval="$enable_networking" |
---|
1019 | case "${enableval}" in |
---|
1020 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
1021 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
1022 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
1023 | esac |
---|
1024 | else |
---|
1025 | RTEMS_HAS_NETWORKING=yes |
---|
1026 | fi |
---|
1027 | |
---|
1028 | |
---|
1029 | |
---|
1030 | # Check whether --enable-rdbg or --disable-rdbg was given. |
---|
1031 | if test "${enable_rdbg+set}" = set; then |
---|
1032 | enableval="$enable_rdbg" |
---|
1033 | case "${enableval}" in |
---|
1034 | yes) RTEMS_HAS_RDBG=yes ;; |
---|
1035 | no) RTEMS_HAS_RDBG=no ;; |
---|
1036 | *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;; |
---|
1037 | esac |
---|
1038 | else |
---|
1039 | RTEMS_HAS_RDBG=no |
---|
1040 | fi |
---|
1041 | |
---|
1042 | |
---|
1043 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
1044 | if test "${enable_rtems_inlines+set}" = set; then |
---|
1045 | enableval="$enable_rtems_inlines" |
---|
1046 | case "${enableval}" in |
---|
1047 | yes) RTEMS_USE_MACROS=no ;; |
---|
1048 | no) RTEMS_USE_MACROS=yes ;; |
---|
1049 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
1050 | esac |
---|
1051 | else |
---|
1052 | RTEMS_USE_MACROS=no |
---|
1053 | fi |
---|
1054 | |
---|
1055 | |
---|
1056 | |
---|
1057 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
1058 | if test "${enable_cxx+set}" = set; then |
---|
1059 | enableval="$enable_cxx" |
---|
1060 | case "${enableval}" in |
---|
1061 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
1062 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
1063 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
1064 | esac |
---|
1065 | else |
---|
1066 | RTEMS_HAS_CPLUSPLUS=no |
---|
1067 | fi |
---|
1068 | |
---|
1069 | |
---|
1070 | |
---|
1071 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
1072 | if test "${enable_gcc28+set}" = set; then |
---|
1073 | enableval="$enable_gcc28" |
---|
1074 | case "${enableval}" in |
---|
1075 | yes) RTEMS_USE_GCC272=no ;; |
---|
1076 | no) RTEMS_USE_GCC272=yes ;; |
---|
1077 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
1078 | esac |
---|
1079 | else |
---|
1080 | RTEMS_USE_GCC272=no |
---|
1081 | fi |
---|
1082 | |
---|
1083 | |
---|
1084 | |
---|
1085 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
1086 | if test "${enable_libcdir+set}" = set; then |
---|
1087 | enableval="$enable_libcdir" |
---|
1088 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
1089 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
1090 | fi |
---|
1091 | |
---|
1092 | |
---|
1093 | |
---|
1094 | # If the tests are enabled, then find all the test suite Makefiles |
---|
1095 | echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 |
---|
1096 | echo "configure:1097: checking if the test suites are enabled? " >&5 |
---|
1097 | # Check whether --enable-tests or --disable-tests was given. |
---|
1098 | if test "${enable_tests+set}" = set; then |
---|
1099 | enableval="$enable_tests" |
---|
1100 | case "${enableval}" in |
---|
1101 | yes) tests_enabled=yes ;; |
---|
1102 | no) tests_enabled=no ;; |
---|
1103 | *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; |
---|
1104 | esac |
---|
1105 | else |
---|
1106 | tests_enabled=no |
---|
1107 | fi |
---|
1108 | |
---|
1109 | echo "$ac_t""$tests_enabled" 1>&6 |
---|
1110 | |
---|
1111 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
1112 | if test "${enable_hwapi+set}" = set; then |
---|
1113 | enableval="$enable_hwapi" |
---|
1114 | case "${enableval}" in |
---|
1115 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
1116 | no) RTEMS_HAS_HWAPI=no ;; |
---|
1117 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
1118 | esac |
---|
1119 | else |
---|
1120 | RTEMS_HAS_HWAPI=no |
---|
1121 | fi |
---|
1122 | |
---|
1123 | |
---|
1124 | |
---|
1125 | |
---|
1126 | |
---|
1127 | # Is this a supported CPU? |
---|
1128 | echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 |
---|
1129 | echo "configure:1130: checking if cpu $RTEMS_CPU is supported" >&5 |
---|
1130 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
1131 | echo "$ac_t""yes" 1>&6 |
---|
1132 | else |
---|
1133 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
1134 | fi |
---|
1135 | |
---|
1136 | |
---|
1137 | RTEMS_HOST=$host_os |
---|
1138 | case "${target}" in |
---|
1139 | # hpux unix port should go here |
---|
1140 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
1141 | RTEMS_HOST=Linux |
---|
1142 | ;; |
---|
1143 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
1144 | RTEMS_HOST=FreeBSD |
---|
1145 | ;; |
---|
1146 | sparc-sun-solaris*) # unix "simulator" port |
---|
1147 | RTEMS_HOST=Solaris |
---|
1148 | ;; |
---|
1149 | *) |
---|
1150 | ;; |
---|
1151 | esac |
---|
1152 | |
---|
1153 | |
---|
1154 | |
---|
1155 | subdirs="tools/build" |
---|
1156 | |
---|
1157 | subdirs="tools/build tools/update" |
---|
1158 | |
---|
1159 | subdirs="tools/build tools/update tools/cpu" |
---|
1160 | |
---|
1161 | |
---|
1162 | # List all subdirectories to be compiled for the target here |
---|
1163 | |
---|
1164 | target_subdirs="c" |
---|
1165 | |
---|
1166 | |
---|
1167 | |
---|
1168 | if test "$target_alias" != "$host_alias"; then |
---|
1169 | TARGET_SUBDIRS=`echo "$target_subdirs" | \ |
---|
1170 | sed -e "s%\([^ ]\+\)%$target_alias/\1%g"` |
---|
1171 | else |
---|
1172 | TARGET_SUBDIRS="$target_subdirs" |
---|
1173 | fi |
---|
1174 | |
---|
1175 | |
---|
1176 | trap '' 1 2 15 |
---|
1177 | cat > confcache <<\EOF |
---|
1178 | # This file is a shell script that caches the results of configure |
---|
1179 | # tests run on this system so they can be shared between configure |
---|
1180 | # scripts and configure runs. It is not useful on other systems. |
---|
1181 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1182 | # |
---|
1183 | # By default, configure uses ./config.cache as the cache file, |
---|
1184 | # creating it if it does not exist already. You can give configure |
---|
1185 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1186 | # what configure does when it calls configure scripts in |
---|
1187 | # subdirectories, so they share the cache. |
---|
1188 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1189 | # config.status only pays attention to the cache file if you give it the |
---|
1190 | # --recheck option to rerun configure. |
---|
1191 | # |
---|
1192 | EOF |
---|
1193 | # The following way of writing the cache mishandles newlines in values, |
---|
1194 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1195 | # So, don't put newlines in cache variables' values. |
---|
1196 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1197 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1198 | (set) 2>&1 | |
---|
1199 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
1200 | *ac_space=\ *) |
---|
1201 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1202 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1203 | sed -n \ |
---|
1204 | -e "s/'/'\\\\''/g" \ |
---|
1205 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1206 | ;; |
---|
1207 | *) |
---|
1208 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1209 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1210 | ;; |
---|
1211 | esac >> confcache |
---|
1212 | if cmp -s $cache_file confcache; then |
---|
1213 | : |
---|
1214 | else |
---|
1215 | if test -w $cache_file; then |
---|
1216 | echo "updating cache $cache_file" |
---|
1217 | cat confcache > $cache_file |
---|
1218 | else |
---|
1219 | echo "not updating unwritable cache $cache_file" |
---|
1220 | fi |
---|
1221 | fi |
---|
1222 | rm -f confcache |
---|
1223 | |
---|
1224 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1225 | |
---|
1226 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1227 | # Let make expand exec_prefix. |
---|
1228 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1229 | |
---|
1230 | # Any assignment to VPATH causes Sun make to only execute |
---|
1231 | # the first set of double-colon rules, so remove it if not needed. |
---|
1232 | # If there is a colon in the path, we need to keep it. |
---|
1233 | if test "x$srcdir" = x.; then |
---|
1234 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1235 | fi |
---|
1236 | |
---|
1237 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1238 | |
---|
1239 | # Transform confdefs.h into DEFS. |
---|
1240 | # Protect against shell expansion while executing Makefile rules. |
---|
1241 | # Protect against Makefile macro expansion. |
---|
1242 | cat > conftest.defs <<\EOF |
---|
1243 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
1244 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
1245 | s%\[%\\&%g |
---|
1246 | s%\]%\\&%g |
---|
1247 | s%\$%$$%g |
---|
1248 | EOF |
---|
1249 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
1250 | rm -f conftest.defs |
---|
1251 | |
---|
1252 | |
---|
1253 | # Without the "./", some shells look in PATH for config.status. |
---|
1254 | : ${CONFIG_STATUS=./config.status} |
---|
1255 | |
---|
1256 | echo creating $CONFIG_STATUS |
---|
1257 | rm -f $CONFIG_STATUS |
---|
1258 | cat > $CONFIG_STATUS <<EOF |
---|
1259 | #! /bin/sh |
---|
1260 | # Generated automatically by configure. |
---|
1261 | # Run this file to recreate the current configuration. |
---|
1262 | # This directory was configured as follows, |
---|
1263 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1264 | # |
---|
1265 | # $0 $ac_configure_args |
---|
1266 | # |
---|
1267 | # Compiler output produced by configure, useful for debugging |
---|
1268 | # configure, is in ./config.log if it exists. |
---|
1269 | |
---|
1270 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1271 | for ac_option |
---|
1272 | do |
---|
1273 | case "\$ac_option" in |
---|
1274 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1275 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1276 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1277 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1278 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
1279 | exit 0 ;; |
---|
1280 | -help | --help | --hel | --he | --h) |
---|
1281 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1282 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1283 | esac |
---|
1284 | done |
---|
1285 | |
---|
1286 | ac_given_srcdir=$srcdir |
---|
1287 | ac_given_INSTALL="$INSTALL" |
---|
1288 | |
---|
1289 | trap 'rm -fr `echo "Makefile |
---|
1290 | tools/Makefile |
---|
1291 | make/Makefile |
---|
1292 | make/custom/Makefile |
---|
1293 | make/Templates/Makefile |
---|
1294 | make/compilers/Makefile |
---|
1295 | doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1296 | EOF |
---|
1297 | cat >> $CONFIG_STATUS <<EOF |
---|
1298 | |
---|
1299 | # Protect against being on the right side of a sed subst in config.status. |
---|
1300 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
1301 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
1302 | $ac_vpsub |
---|
1303 | $extrasub |
---|
1304 | s%@SHELL@%$SHELL%g |
---|
1305 | s%@CFLAGS@%$CFLAGS%g |
---|
1306 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1307 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1308 | s%@FFLAGS@%$FFLAGS%g |
---|
1309 | s%@DEFS@%$DEFS%g |
---|
1310 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1311 | s%@LIBS@%$LIBS%g |
---|
1312 | s%@exec_prefix@%$exec_prefix%g |
---|
1313 | s%@prefix@%$prefix%g |
---|
1314 | s%@program_transform_name@%$program_transform_name%g |
---|
1315 | s%@bindir@%$bindir%g |
---|
1316 | s%@sbindir@%$sbindir%g |
---|
1317 | s%@libexecdir@%$libexecdir%g |
---|
1318 | s%@datadir@%$datadir%g |
---|
1319 | s%@sysconfdir@%$sysconfdir%g |
---|
1320 | s%@sharedstatedir@%$sharedstatedir%g |
---|
1321 | s%@localstatedir@%$localstatedir%g |
---|
1322 | s%@libdir@%$libdir%g |
---|
1323 | s%@includedir@%$includedir%g |
---|
1324 | s%@oldincludedir@%$oldincludedir%g |
---|
1325 | s%@infodir@%$infodir%g |
---|
1326 | s%@mandir@%$mandir%g |
---|
1327 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
1328 | s%@host@%$host%g |
---|
1329 | s%@host_alias@%$host_alias%g |
---|
1330 | s%@host_cpu@%$host_cpu%g |
---|
1331 | s%@host_vendor@%$host_vendor%g |
---|
1332 | s%@host_os@%$host_os%g |
---|
1333 | s%@target@%$target%g |
---|
1334 | s%@target_alias@%$target_alias%g |
---|
1335 | s%@target_cpu@%$target_cpu%g |
---|
1336 | s%@target_vendor@%$target_vendor%g |
---|
1337 | s%@target_os@%$target_os%g |
---|
1338 | s%@build@%$build%g |
---|
1339 | s%@build_alias@%$build_alias%g |
---|
1340 | s%@build_cpu@%$build_cpu%g |
---|
1341 | s%@build_vendor@%$build_vendor%g |
---|
1342 | s%@build_os@%$build_os%g |
---|
1343 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
1344 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
1345 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
1346 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
1347 | s%@PACKAGE@%$PACKAGE%g |
---|
1348 | s%@VERSION@%$VERSION%g |
---|
1349 | s%@ACLOCAL@%$ACLOCAL%g |
---|
1350 | s%@AUTOCONF@%$AUTOCONF%g |
---|
1351 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
1352 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
1353 | s%@MAKEINFO@%$MAKEINFO%g |
---|
1354 | s%@SET_MAKE@%$SET_MAKE%g |
---|
1355 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
1356 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
1357 | s%@MAINT@%$MAINT%g |
---|
1358 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
1359 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
1360 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
1361 | s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g |
---|
1362 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
1363 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
1364 | s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g |
---|
1365 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
1366 | s%@subdirs@%$subdirs%g |
---|
1367 | s%@target_subdirs@%$target_subdirs%g |
---|
1368 | s%@TARGET_SUBDIRS@%$TARGET_SUBDIRS%g |
---|
1369 | |
---|
1370 | CEOF |
---|
1371 | EOF |
---|
1372 | |
---|
1373 | cat >> $CONFIG_STATUS <<\EOF |
---|
1374 | |
---|
1375 | # Split the substitutions into bite-sized pieces for seds with |
---|
1376 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
1377 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
1378 | ac_file=1 # Number of current file. |
---|
1379 | ac_beg=1 # First line for current file. |
---|
1380 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
1381 | ac_more_lines=: |
---|
1382 | ac_sed_cmds="" |
---|
1383 | while $ac_more_lines; do |
---|
1384 | if test $ac_beg -gt 1; then |
---|
1385 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1386 | else |
---|
1387 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1388 | fi |
---|
1389 | if test ! -s conftest.s$ac_file; then |
---|
1390 | ac_more_lines=false |
---|
1391 | rm -f conftest.s$ac_file |
---|
1392 | else |
---|
1393 | if test -z "$ac_sed_cmds"; then |
---|
1394 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
1395 | else |
---|
1396 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
1397 | fi |
---|
1398 | ac_file=`expr $ac_file + 1` |
---|
1399 | ac_beg=$ac_end |
---|
1400 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
1401 | fi |
---|
1402 | done |
---|
1403 | if test -z "$ac_sed_cmds"; then |
---|
1404 | ac_sed_cmds=cat |
---|
1405 | fi |
---|
1406 | EOF |
---|
1407 | |
---|
1408 | cat >> $CONFIG_STATUS <<EOF |
---|
1409 | |
---|
1410 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
1411 | tools/Makefile |
---|
1412 | make/Makefile |
---|
1413 | make/custom/Makefile |
---|
1414 | make/Templates/Makefile |
---|
1415 | make/compilers/Makefile |
---|
1416 | doc/Makefile"} |
---|
1417 | EOF |
---|
1418 | cat >> $CONFIG_STATUS <<\EOF |
---|
1419 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1420 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
1421 | case "$ac_file" in |
---|
1422 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
1423 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1424 | *) ac_file_in="${ac_file}.in" ;; |
---|
1425 | esac |
---|
1426 | |
---|
1427 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
1428 | |
---|
1429 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1430 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1431 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1432 | # The file is in a subdirectory. |
---|
1433 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1434 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1435 | # A "../" for each directory in $ac_dir_suffix. |
---|
1436 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1437 | else |
---|
1438 | ac_dir_suffix= ac_dots= |
---|
1439 | fi |
---|
1440 | |
---|
1441 | case "$ac_given_srcdir" in |
---|
1442 | .) srcdir=. |
---|
1443 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1444 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1445 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1446 | *) # Relative path. |
---|
1447 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1448 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1449 | esac |
---|
1450 | |
---|
1451 | case "$ac_given_INSTALL" in |
---|
1452 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
1453 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
1454 | esac |
---|
1455 | |
---|
1456 | echo creating "$ac_file" |
---|
1457 | rm -f "$ac_file" |
---|
1458 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1459 | case "$ac_file" in |
---|
1460 | *Makefile*) ac_comsub="1i\\ |
---|
1461 | # $configure_input" ;; |
---|
1462 | *) ac_comsub= ;; |
---|
1463 | esac |
---|
1464 | |
---|
1465 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
1466 | sed -e "$ac_comsub |
---|
1467 | s%@configure_input@%$configure_input%g |
---|
1468 | s%@srcdir@%$srcdir%g |
---|
1469 | s%@top_srcdir@%$top_srcdir%g |
---|
1470 | s%@INSTALL@%$INSTALL%g |
---|
1471 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
1472 | fi; done |
---|
1473 | rm -f conftest.s* |
---|
1474 | |
---|
1475 | EOF |
---|
1476 | cat >> $CONFIG_STATUS <<EOF |
---|
1477 | |
---|
1478 | EOF |
---|
1479 | cat >> $CONFIG_STATUS <<\EOF |
---|
1480 | |
---|
1481 | exit 0 |
---|
1482 | EOF |
---|
1483 | chmod +x $CONFIG_STATUS |
---|
1484 | rm -fr confdefs* $ac_clean_files |
---|
1485 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1486 | |
---|
1487 | if test "$no_recursion" != yes; then |
---|
1488 | |
---|
1489 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
1490 | ac_sub_configure_args= |
---|
1491 | ac_prev= |
---|
1492 | for ac_arg in $ac_configure_args; do |
---|
1493 | if test -n "$ac_prev"; then |
---|
1494 | ac_prev= |
---|
1495 | continue |
---|
1496 | fi |
---|
1497 | case "$ac_arg" in |
---|
1498 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
1499 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
1500 | ac_prev=cache_file ;; |
---|
1501 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
1502 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
1503 | ;; |
---|
1504 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1505 | ac_prev=srcdir ;; |
---|
1506 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1507 | ;; |
---|
1508 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
1509 | esac |
---|
1510 | done |
---|
1511 | |
---|
1512 | for ac_config_dir in tools/build tools/update tools/cpu; do |
---|
1513 | |
---|
1514 | # Do not complain, so a configure script can configure whichever |
---|
1515 | # parts of a large source tree are present. |
---|
1516 | if test ! -d $srcdir/$ac_config_dir; then |
---|
1517 | continue |
---|
1518 | fi |
---|
1519 | |
---|
1520 | echo configuring in $ac_config_dir |
---|
1521 | |
---|
1522 | case "$srcdir" in |
---|
1523 | .) ;; |
---|
1524 | *) |
---|
1525 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
1526 | else |
---|
1527 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
1528 | fi |
---|
1529 | ;; |
---|
1530 | esac |
---|
1531 | |
---|
1532 | ac_popdir=`pwd` |
---|
1533 | cd $ac_config_dir |
---|
1534 | |
---|
1535 | # A "../" for each directory in /$ac_config_dir. |
---|
1536 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
1537 | |
---|
1538 | case "$srcdir" in |
---|
1539 | .) # No --srcdir option. We are building in place. |
---|
1540 | ac_sub_srcdir=$srcdir ;; |
---|
1541 | /*) # Absolute path. |
---|
1542 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
1543 | *) # Relative path. |
---|
1544 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
1545 | esac |
---|
1546 | |
---|
1547 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1548 | if test -f $ac_sub_srcdir/configure; then |
---|
1549 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
1550 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
1551 | ac_sub_configure=$ac_configure |
---|
1552 | else |
---|
1553 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
1554 | ac_sub_configure= |
---|
1555 | fi |
---|
1556 | |
---|
1557 | # The recursion is here. |
---|
1558 | if test -n "$ac_sub_configure"; then |
---|
1559 | |
---|
1560 | # Make the cache file name correct relative to the subdirectory. |
---|
1561 | case "$cache_file" in |
---|
1562 | /*) ac_sub_cache_file=$cache_file ;; |
---|
1563 | *) # Relative path. |
---|
1564 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
1565 | esac |
---|
1566 | case "$ac_given_INSTALL" in |
---|
1567 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
1568 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
1569 | esac |
---|
1570 | |
---|
1571 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
1572 | # The eval makes quoting arguments work. |
---|
1573 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
1574 | then : |
---|
1575 | else |
---|
1576 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
1577 | fi |
---|
1578 | fi |
---|
1579 | |
---|
1580 | cd $ac_popdir |
---|
1581 | done |
---|
1582 | fi |
---|
1583 | |
---|
1584 | |
---|
1585 | |
---|
1586 | # bla |
---|
1587 | if test "$no_recursion" != yes; then |
---|
1588 | if test $target_alias != $host_alias; then |
---|
1589 | target_subdir="$target_alias" |
---|
1590 | else |
---|
1591 | target_subdir="." |
---|
1592 | fi |
---|
1593 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
1594 | ac_sub_configure_args= |
---|
1595 | ac_prev= |
---|
1596 | for ac_arg in $ac_configure_args; do |
---|
1597 | if test -n "$ac_prev"; then |
---|
1598 | ac_prev= |
---|
1599 | continue |
---|
1600 | fi |
---|
1601 | case "$ac_arg" in |
---|
1602 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
1603 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
1604 | ac_prev=cache_file ;; |
---|
1605 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
1606 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
1607 | ;; |
---|
1608 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1609 | ac_prev=srcdir ;; |
---|
1610 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1611 | ;; |
---|
1612 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
1613 | esac |
---|
1614 | done |
---|
1615 | |
---|
1616 | test -d $target_subdir || mkdir $target_subdir |
---|
1617 | for ac_config_dir in c; do |
---|
1618 | |
---|
1619 | # Do not complain, so a configure script can configure whichever |
---|
1620 | # parts of a large source tree are present. |
---|
1621 | if test ! -d $srcdir/$ac_config_dir; then |
---|
1622 | continue |
---|
1623 | fi |
---|
1624 | |
---|
1625 | echo configuring in $target_subdir/$ac_config_dir |
---|
1626 | |
---|
1627 | case "$srcdir" in |
---|
1628 | .) ;; |
---|
1629 | *) |
---|
1630 | if test -d $target_subdir/$ac_config_dir || mkdir $target_subdir/$ac_config_dir; then :; |
---|
1631 | else |
---|
1632 | { echo "configure: error: can not create `pwd`/$target_subdir/$ac_config_dir" 1>&2; exit 1; } |
---|
1633 | fi |
---|
1634 | ;; |
---|
1635 | esac |
---|
1636 | |
---|
1637 | ac_popdir=`pwd` |
---|
1638 | cd $target_subdir/$ac_config_dir |
---|
1639 | |
---|
1640 | # A "../" for each directory in /$ac_config_dir. |
---|
1641 | ac_dots=`echo $target_subdir/$ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
1642 | |
---|
1643 | case "$srcdir" in |
---|
1644 | .) # No --srcdir option. We are building in place. |
---|
1645 | ac_sub_srcdir=$srcdir ;; |
---|
1646 | /*) # Absolute path. |
---|
1647 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
1648 | *) # Relative path. |
---|
1649 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
1650 | esac |
---|
1651 | |
---|
1652 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1653 | if test -f $ac_sub_srcdir/configure; then |
---|
1654 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
1655 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
1656 | ac_sub_configure=$ac_configure |
---|
1657 | else |
---|
1658 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
1659 | ac_sub_configure= |
---|
1660 | fi |
---|
1661 | |
---|
1662 | # The recursion is here. |
---|
1663 | if test -n "$ac_sub_configure"; then |
---|
1664 | |
---|
1665 | # Make the cache file name correct relative to the subdirectory. |
---|
1666 | if test "$target_alias" != "$host_alias"; then |
---|
1667 | ac_sub_cache_file=$cache_file |
---|
1668 | else |
---|
1669 | case "$cache_file" in |
---|
1670 | /*) ac_sub_cache_file=$cache_file ;; |
---|
1671 | *) # Relative path. |
---|
1672 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
1673 | esac |
---|
1674 | fi |
---|
1675 | case "$ac_given_INSTALL" in |
---|
1676 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
1677 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
1678 | esac |
---|
1679 | |
---|
1680 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
1681 | # The eval makes quoting arguments work. |
---|
1682 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \ |
---|
1683 | $ac_sub_configure_args --srcdir=$ac_sub_srcdir \ |
---|
1684 | --with-target-subdir=$target_subdir --cache-file=$ac_sub_cache_file |
---|
1685 | then : |
---|
1686 | else |
---|
1687 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
1688 | fi |
---|
1689 | fi |
---|
1690 | |
---|
1691 | cd $ac_popdir |
---|
1692 | done |
---|
1693 | fi |
---|
1694 | |
---|