OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [i386/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52 for rtems-c-src-lib-libbsp-i386 ss-20020807.
4
#
5
# Report bugs to .
6
#
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
 
12
# Avoid depending upon Character Ranges.
13
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16
as_cr_digits='0123456789'
17
as_cr_alnum=$as_cr_Letters$as_cr_digits
18
 
19
# Sed expression to map a string onto a valid variable name.
20
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
 
22
# Sed expression to map a string onto a valid CPP name.
23
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
 
25
# Be Bourne compatible
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27
  emulate sh
28
  NULLCMD=:
29
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
  set -o posix
31
fi
32
 
33
# Name of the executable.
34
as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
 
36
if expr a : '\(a\)' >/dev/null 2>&1; then
37
  as_expr=expr
38
else
39
  as_expr=false
40
fi
41
 
42
rm -f conf$$ conf$$.exe conf$$.file
43
echo >conf$$.file
44
if ln -s conf$$.file conf$$ 2>/dev/null; then
45
  # We could just check for DJGPP; but this test a) works b) is more generic
46
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47
  if test -f conf$$.exe; then
48
    # Don't use ln at all; we don't have any links
49
    as_ln_s='cp -p'
50
  else
51
    as_ln_s='ln -s'
52
  fi
53
elif ln conf$$.file conf$$ 2>/dev/null; then
54
  as_ln_s=ln
55
else
56
  as_ln_s='cp -p'
57
fi
58
rm -f conf$$ conf$$.exe conf$$.file
59
 
60
as_executable_p="test -f"
61
 
62
# Support unset when possible.
63
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64
  as_unset=unset
65
else
66
  as_unset=false
67
fi
68
 
69
# NLS nuisances.
70
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
 
79
# IFS
80
# We need space, tab and new line, in precisely that order.
81
as_nl='
82
'
83
IFS="   $as_nl"
84
 
85
# CDPATH.
86
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
 
88
# Name of the host.
89
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90
# so uname gets run too.
91
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
 
93
exec 6>&1
94
 
95
#
96
# Initializations.
97
#
98
ac_default_prefix=/usr/local
99
cross_compiling=no
100
subdirs=
101
MFLAGS= MAKEFLAGS=
102
SHELL=${CONFIG_SHELL-/bin/sh}
103
 
104
# Maximum number of lines to put in a shell here document.
105
# This variable seems obsolete.  It should probably be removed, and
106
# only ac_max_sed_lines should be used.
107
: ${ac_max_here_lines=38}
108
 
109
ac_unique_file="pc386"
110
ac_default_prefix=/opt/rtems
111
ac_subdirs_all="$ac_subdirs_all i386ex"
112
ac_subdirs_all="$ac_subdirs_all pc386"
113
ac_subdirs_all="$ac_subdirs_all ts_386ex"
114
 
115
# Initialize some variables set by options.
116
ac_init_help=
117
ac_init_version=false
118
# The variables have the same names as the options, with
119
# dashes changed to underlines.
120
cache_file=/dev/null
121
exec_prefix=NONE
122
no_create=
123
no_recursion=
124
prefix=NONE
125
program_prefix=NONE
126
program_suffix=NONE
127
program_transform_name=s,x,x,
128
silent=
129
site=
130
srcdir=
131
verbose=
132
x_includes=NONE
133
x_libraries=NONE
134
 
135
# Installation directory options.
136
# These are left unexpanded so users can "make install exec_prefix=/foo"
137
# and all the variables that are supposed to be based on exec_prefix
138
# by default will actually change.
139
# Use braces instead of parens because sh, perl, etc. also accept them.
140
bindir='${exec_prefix}/bin'
141
sbindir='${exec_prefix}/sbin'
142
libexecdir='${exec_prefix}/libexec'
143
datadir='${prefix}/share'
144
sysconfdir='${prefix}/etc'
145
sharedstatedir='${prefix}/com'
146
localstatedir='${prefix}/var'
147
libdir='${exec_prefix}/lib'
148
includedir='${prefix}/include'
149
oldincludedir='/usr/include'
150
infodir='${prefix}/info'
151
mandir='${prefix}/man'
152
 
153
# Identity of this package.
154
PACKAGE_NAME='rtems-c-src-lib-libbsp-i386'
155
PACKAGE_TARNAME='rtems-c-src-lib-libbsp-i386'
156
PACKAGE_VERSION='ss-20020807'
157
PACKAGE_STRING='rtems-c-src-lib-libbsp-i386 ss-20020807'
158
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
159
 
160
ac_prev=
161
for ac_option
162
do
163
  # If the previous option needs an argument, assign it.
164
  if test -n "$ac_prev"; then
165
    eval "$ac_prev=\$ac_option"
166
    ac_prev=
167
    continue
168
  fi
169
 
170
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
171
 
172
  # Accept the important Cygnus configure options, so we can diagnose typos.
173
 
174
  case $ac_option in
175
 
176
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
177
    ac_prev=bindir ;;
178
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
179
    bindir=$ac_optarg ;;
180
 
181
  -build | --build | --buil | --bui | --bu)
182
    ac_prev=build_alias ;;
183
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
184
    build_alias=$ac_optarg ;;
185
 
186
  -cache-file | --cache-file | --cache-fil | --cache-fi \
187
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
188
    ac_prev=cache_file ;;
189
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
190
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
191
    cache_file=$ac_optarg ;;
192
 
193
  --config-cache | -C)
194
    cache_file=config.cache ;;
195
 
196
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
197
    ac_prev=datadir ;;
198
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
199
  | --da=*)
200
    datadir=$ac_optarg ;;
201
 
202
  -disable-* | --disable-*)
203
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
204
    # Reject names that are not valid shell variable names.
205
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
206
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
207
   { (exit 1); exit 1; }; }
208
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
209
    eval "enable_$ac_feature=no" ;;
210
 
211
  -enable-* | --enable-*)
212
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
213
    # Reject names that are not valid shell variable names.
214
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
215
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
216
   { (exit 1); exit 1; }; }
217
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
218
    case $ac_option in
219
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
220
      *) ac_optarg=yes ;;
221
    esac
222
    eval "enable_$ac_feature='$ac_optarg'" ;;
223
 
224
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
225
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
226
  | --exec | --exe | --ex)
227
    ac_prev=exec_prefix ;;
228
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
229
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
230
  | --exec=* | --exe=* | --ex=*)
231
    exec_prefix=$ac_optarg ;;
232
 
233
  -gas | --gas | --ga | --g)
234
    # Obsolete; use --with-gas.
235
    with_gas=yes ;;
236
 
237
  -help | --help | --hel | --he | -h)
238
    ac_init_help=long ;;
239
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
240
    ac_init_help=recursive ;;
241
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
242
    ac_init_help=short ;;
243
 
244
  -host | --host | --hos | --ho)
245
    ac_prev=host_alias ;;
246
  -host=* | --host=* | --hos=* | --ho=*)
247
    host_alias=$ac_optarg ;;
248
 
249
  -includedir | --includedir | --includedi | --included | --include \
250
  | --includ | --inclu | --incl | --inc)
251
    ac_prev=includedir ;;
252
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253
  | --includ=* | --inclu=* | --incl=* | --inc=*)
254
    includedir=$ac_optarg ;;
255
 
256
  -infodir | --infodir | --infodi | --infod | --info | --inf)
257
    ac_prev=infodir ;;
258
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259
    infodir=$ac_optarg ;;
260
 
261
  -libdir | --libdir | --libdi | --libd)
262
    ac_prev=libdir ;;
263
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
264
    libdir=$ac_optarg ;;
265
 
266
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267
  | --libexe | --libex | --libe)
268
    ac_prev=libexecdir ;;
269
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270
  | --libexe=* | --libex=* | --libe=*)
271
    libexecdir=$ac_optarg ;;
272
 
273
  -localstatedir | --localstatedir | --localstatedi | --localstated \
274
  | --localstate | --localstat | --localsta | --localst \
275
  | --locals | --local | --loca | --loc | --lo)
276
    ac_prev=localstatedir ;;
277
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280
    localstatedir=$ac_optarg ;;
281
 
282
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283
    ac_prev=mandir ;;
284
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285
    mandir=$ac_optarg ;;
286
 
287
  -nfp | --nfp | --nf)
288
    # Obsolete; use --without-fp.
289
    with_fp=no ;;
290
 
291
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292
  | --no-cr | --no-c)
293
    no_create=yes ;;
294
 
295
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297
    no_recursion=yes ;;
298
 
299
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301
  | --oldin | --oldi | --old | --ol | --o)
302
    ac_prev=oldincludedir ;;
303
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306
    oldincludedir=$ac_optarg ;;
307
 
308
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309
    ac_prev=prefix ;;
310
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311
    prefix=$ac_optarg ;;
312
 
313
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
314
  | --program-pre | --program-pr | --program-p)
315
    ac_prev=program_prefix ;;
316
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
317
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318
    program_prefix=$ac_optarg ;;
319
 
320
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
321
  | --program-suf | --program-su | --program-s)
322
    ac_prev=program_suffix ;;
323
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
324
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325
    program_suffix=$ac_optarg ;;
326
 
327
  -program-transform-name | --program-transform-name \
328
  | --program-transform-nam | --program-transform-na \
329
  | --program-transform-n | --program-transform- \
330
  | --program-transform | --program-transfor \
331
  | --program-transfo | --program-transf \
332
  | --program-trans | --program-tran \
333
  | --progr-tra | --program-tr | --program-t)
334
    ac_prev=program_transform_name ;;
335
  -program-transform-name=* | --program-transform-name=* \
336
  | --program-transform-nam=* | --program-transform-na=* \
337
  | --program-transform-n=* | --program-transform-=* \
338
  | --program-transform=* | --program-transfor=* \
339
  | --program-transfo=* | --program-transf=* \
340
  | --program-trans=* | --program-tran=* \
341
  | --progr-tra=* | --program-tr=* | --program-t=*)
342
    program_transform_name=$ac_optarg ;;
343
 
344
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345
  | -silent | --silent | --silen | --sile | --sil)
346
    silent=yes ;;
347
 
348
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349
    ac_prev=sbindir ;;
350
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351
  | --sbi=* | --sb=*)
352
    sbindir=$ac_optarg ;;
353
 
354
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
355
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356
  | --sharedst | --shareds | --shared | --share | --shar \
357
  | --sha | --sh)
358
    ac_prev=sharedstatedir ;;
359
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362
  | --sha=* | --sh=*)
363
    sharedstatedir=$ac_optarg ;;
364
 
365
  -site | --site | --sit)
366
    ac_prev=site ;;
367
  -site=* | --site=* | --sit=*)
368
    site=$ac_optarg ;;
369
 
370
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371
    ac_prev=srcdir ;;
372
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
373
    srcdir=$ac_optarg ;;
374
 
375
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
376
  | --syscon | --sysco | --sysc | --sys | --sy)
377
    ac_prev=sysconfdir ;;
378
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
379
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
380
    sysconfdir=$ac_optarg ;;
381
 
382
  -target | --target | --targe | --targ | --tar | --ta | --t)
383
    ac_prev=target_alias ;;
384
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
385
    target_alias=$ac_optarg ;;
386
 
387
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
388
    verbose=yes ;;
389
 
390
  -version | --version | --versio | --versi | --vers | -V)
391
    ac_init_version=: ;;
392
 
393
  -with-* | --with-*)
394
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
395
    # Reject names that are not valid shell variable names.
396
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397
      { echo "$as_me: error: invalid package name: $ac_package" >&2
398
   { (exit 1); exit 1; }; }
399
    ac_package=`echo $ac_package| sed 's/-/_/g'`
400
    case $ac_option in
401
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
402
      *) ac_optarg=yes ;;
403
    esac
404
    eval "with_$ac_package='$ac_optarg'" ;;
405
 
406
  -without-* | --without-*)
407
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
408
    # Reject names that are not valid shell variable names.
409
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410
      { echo "$as_me: error: invalid package name: $ac_package" >&2
411
   { (exit 1); exit 1; }; }
412
    ac_package=`echo $ac_package | sed 's/-/_/g'`
413
    eval "with_$ac_package=no" ;;
414
 
415
  --x)
416
    # Obsolete; use --with-x.
417
    with_x=yes ;;
418
 
419
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420
  | --x-incl | --x-inc | --x-in | --x-i)
421
    ac_prev=x_includes ;;
422
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424
    x_includes=$ac_optarg ;;
425
 
426
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
427
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428
    ac_prev=x_libraries ;;
429
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431
    x_libraries=$ac_optarg ;;
432
 
433
  -*) { echo "$as_me: error: unrecognized option: $ac_option
434
Try \`$0 --help' for more information." >&2
435
   { (exit 1); exit 1; }; }
436
    ;;
437
 
438
  *=*)
439
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
440
    # Reject names that are not valid shell variable names.
441
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
442
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
443
   { (exit 1); exit 1; }; }
444
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
445
    eval "$ac_envvar='$ac_optarg'"
446
    export $ac_envvar ;;
447
 
448
  *)
449
    # FIXME: should be removed in autoconf 3.0.
450
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
451
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
452
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
453
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454
    ;;
455
 
456
  esac
457
done
458
 
459
if test -n "$ac_prev"; then
460
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
461
  { echo "$as_me: error: missing argument to $ac_option" >&2
462
   { (exit 1); exit 1; }; }
463
fi
464
 
465
# Be sure to have absolute paths.
466
for ac_var in exec_prefix prefix
467
do
468
  eval ac_val=$`echo $ac_var`
469
  case $ac_val in
470
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
471
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
472
   { (exit 1); exit 1; }; };;
473
  esac
474
done
475
 
476
# Be sure to have absolute paths.
477
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
478
              localstatedir libdir includedir oldincludedir infodir mandir
479
do
480
  eval ac_val=$`echo $ac_var`
481
  case $ac_val in
482
    [\\/$]* | ?:[\\/]* ) ;;
483
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
484
   { (exit 1); exit 1; }; };;
485
  esac
486
done
487
 
488
# There might be people who depend on the old broken behavior: `$host'
489
# used to hold the argument of --host etc.
490
build=$build_alias
491
host=$host_alias
492
target=$target_alias
493
 
494
# FIXME: should be removed in autoconf 3.0.
495
if test "x$host_alias" != x; then
496
  if test "x$build_alias" = x; then
497
    cross_compiling=maybe
498
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
499
    If a cross compiler is detected then cross compile mode will be used." >&2
500
  elif test "x$build_alias" != "x$host_alias"; then
501
    cross_compiling=yes
502
  fi
503
fi
504
 
505
ac_tool_prefix=
506
test -n "$host_alias" && ac_tool_prefix=$host_alias-
507
 
508
test "$silent" = yes && exec 6>/dev/null
509
 
510
# Find the source files, if location was not specified.
511
if test -z "$srcdir"; then
512
  ac_srcdir_defaulted=yes
513
  # Try the directory containing this script, then its parent.
514
  ac_prog=$0
515
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
516
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517
  srcdir=$ac_confdir
518
  if test ! -r $srcdir/$ac_unique_file; then
519
    srcdir=..
520
  fi
521
else
522
  ac_srcdir_defaulted=no
523
fi
524
if test ! -r $srcdir/$ac_unique_file; then
525
  if test "$ac_srcdir_defaulted" = yes; then
526
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
527
   { (exit 1); exit 1; }; }
528
  else
529
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
530
   { (exit 1); exit 1; }; }
531
  fi
532
fi
533
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
534
ac_env_build_alias_set=${build_alias+set}
535
ac_env_build_alias_value=$build_alias
536
ac_cv_env_build_alias_set=${build_alias+set}
537
ac_cv_env_build_alias_value=$build_alias
538
ac_env_host_alias_set=${host_alias+set}
539
ac_env_host_alias_value=$host_alias
540
ac_cv_env_host_alias_set=${host_alias+set}
541
ac_cv_env_host_alias_value=$host_alias
542
ac_env_target_alias_set=${target_alias+set}
543
ac_env_target_alias_value=$target_alias
544
ac_cv_env_target_alias_set=${target_alias+set}
545
ac_cv_env_target_alias_value=$target_alias
546
ac_env_RTEMS_BSP_set=${RTEMS_BSP+set}
547
ac_env_RTEMS_BSP_value=$RTEMS_BSP
548
ac_cv_env_RTEMS_BSP_set=${RTEMS_BSP+set}
549
ac_cv_env_RTEMS_BSP_value=$RTEMS_BSP
550
 
551
#
552
# Report the --help message.
553
#
554
if test "$ac_init_help" = "long"; then
555
  # Omit some internal or obsolete options to make the list less imposing.
556
  # This message is too long to be a string in the A/UX 3.1 sh.
557
  cat <
558
\`configure' configures rtems-c-src-lib-libbsp-i386 ss-20020807 to adapt to many kinds of systems.
559
 
560
Usage: $0 [OPTION]... [VAR=VALUE]...
561
 
562
To assign environment variables (e.g., CC, CFLAGS...), specify them as
563
VAR=VALUE.  See below for descriptions of some of the useful variables.
564
 
565
Defaults for the options are specified in brackets.
566
 
567
Configuration:
568
  -h, --help              display this help and exit
569
      --help=short        display options specific to this package
570
      --help=recursive    display the short help of all the included packages
571
  -V, --version           display version information and exit
572
  -q, --quiet, --silent   do not print \`checking...' messages
573
      --cache-file=FILE   cache test results in FILE [disabled]
574
  -C, --config-cache      alias for \`--cache-file=config.cache'
575
  -n, --no-create         do not create output files
576
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
577
 
578
EOF
579
 
580
  cat <
581
Installation directories:
582
  --prefix=PREFIX         install architecture-independent files in PREFIX
583
                          [$ac_default_prefix]
584
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
585
                          [PREFIX]
586
 
587
By default, \`make install' will install all the files in
588
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
589
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
590
for instance \`--prefix=\$HOME'.
591
 
592
For better control, use the options below.
593
 
594
Fine tuning of the installation directories:
595
  --bindir=DIR           user executables [EPREFIX/bin]
596
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
597
  --libexecdir=DIR       program executables [EPREFIX/libexec]
598
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
599
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
600
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
601
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
602
  --libdir=DIR           object code libraries [EPREFIX/lib]
603
  --includedir=DIR       C header files [PREFIX/include]
604
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
605
  --infodir=DIR          info documentation [PREFIX/info]
606
  --mandir=DIR           man documentation [PREFIX/man]
607
EOF
608
 
609
  cat <<\EOF
610
 
611
Program names:
612
  --program-prefix=PREFIX            prepend PREFIX to installed program names
613
  --program-suffix=SUFFIX            append SUFFIX to installed program names
614
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
615
 
616
System types:
617
  --build=BUILD     configure for building on BUILD [guessed]
618
  --host=HOST       build programs to run on HOST [BUILD]
619
  --target=TARGET   configure for building compilers for TARGET [HOST]
620
EOF
621
fi
622
 
623
if test -n "$ac_init_help"; then
624
  case $ac_init_help in
625
     short | recursive ) echo "Configuration of rtems-c-src-lib-libbsp-i386 ss-20020807:";;
626
   esac
627
  cat <<\EOF
628
 
629
Optional Features:
630
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
631
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
632
  --enable-maintainer-mode enable make rules and dependencies not useful
633
                          (and sometimes confusing) to the casual installer
634
  --enable-bare-cpu-cflags
635
                          specify a particular cpu cflag (bare bsp specific)
636
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
637
 
638
Some influential environment variables:
639
  RTEMS_BSP   RTEMS_BSP to build
640
 
641
Use these variables to override the choices made by `configure' or to help
642
it to find libraries and programs with nonstandard names/locations.
643
 
644
Report bugs to .
645
EOF
646
fi
647
 
648
if test "$ac_init_help" = "recursive"; then
649
  # If there are subdirs, report their specific --help.
650
  ac_popdir=`pwd`
651
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
652
    cd $ac_subdir
653
    # A "../" for each directory in /$ac_subdir.
654
    ac_dots=`echo $ac_subdir |
655
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
656
 
657
    case $srcdir in
658
    .) # No --srcdir option.  We are building in place.
659
      ac_sub_srcdir=$srcdir ;;
660
    [\\/]* | ?:[\\/]* ) # Absolute path.
661
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
662
    *) # Relative path.
663
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
664
    esac
665
 
666
    # Check for guested configure; otherwise get Cygnus style configure.
667
    if test -f $ac_sub_srcdir/configure.gnu; then
668
      echo
669
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
670
    elif test -f $ac_sub_srcdir/configure; then
671
      echo
672
      $SHELL $ac_sub_srcdir/configure  --help=recursive
673
    elif test -f $ac_sub_srcdir/configure.ac ||
674
           test -f $ac_sub_srcdir/configure.in; then
675
      echo
676
      $ac_configure --help
677
    else
678
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
679
    fi
680
    cd $ac_popdir
681
  done
682
fi
683
 
684
test -n "$ac_init_help" && exit 0
685
if $ac_init_version; then
686
  cat <<\EOF
687
rtems-c-src-lib-libbsp-i386 configure ss-20020807
688
generated by GNU Autoconf 2.52
689
 
690
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
691
Free Software Foundation, Inc.
692
This configure script is free software; the Free Software Foundation
693
gives unlimited permission to copy, distribute and modify it.
694
EOF
695
  exit 0
696
fi
697
exec 5>config.log
698
cat >&5 <
699
This file contains any messages produced by compilers while
700
running configure, to aid debugging if configure makes a mistake.
701
 
702
It was created by rtems-c-src-lib-libbsp-i386 $as_me ss-20020807, which was
703
generated by GNU Autoconf 2.52.  Invocation command line was
704
 
705
  $ $0 $@
706
 
707
EOF
708
{
709
cat <<_ASUNAME
710
## ---------- ##
711
## Platform.  ##
712
## ---------- ##
713
 
714
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
715
uname -m = `(uname -m) 2>/dev/null || echo unknown`
716
uname -r = `(uname -r) 2>/dev/null || echo unknown`
717
uname -s = `(uname -s) 2>/dev/null || echo unknown`
718
uname -v = `(uname -v) 2>/dev/null || echo unknown`
719
 
720
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
721
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
722
 
723
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
724
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
725
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
726
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
727
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
728
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
729
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
730
 
731
PATH = $PATH
732
 
733
_ASUNAME
734
} >&5
735
 
736
cat >&5 <
737
## ------------ ##
738
## Core tests.  ##
739
## ------------ ##
740
 
741
EOF
742
 
743
# Keep a trace of the command line.
744
# Strip out --no-create and --no-recursion so they do not pile up.
745
# Also quote any args containing shell meta-characters.
746
ac_configure_args=
747
ac_sep=
748
for ac_arg
749
do
750
  case $ac_arg in
751
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
752
  | --no-cr | --no-c) ;;
753
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
754
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
755
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
756
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
757
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
758
    ac_sep=" " ;;
759
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
760
     ac_sep=" " ;;
761
  esac
762
  # Get rid of the leading space.
763
done
764
 
765
# When interrupted or exit'd, cleanup temporary files, and complete
766
# config.log.  We remove comments because anyway the quotes in there
767
# would cause problems or look ugly.
768
trap 'exit_status=$?
769
  # Save into config.log some information that might help in debugging.
770
  echo >&5
771
  echo "## ----------------- ##" >&5
772
  echo "## Cache variables.  ##" >&5
773
  echo "## ----------------- ##" >&5
774
  echo >&5
775
  # The following way of writing the cache mishandles newlines in values,
776
{
777
  (set) 2>&1 |
778
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
779
    *ac_space=\ *)
780
      sed -n \
781
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
782
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
783
      ;;
784
    *)
785
      sed -n \
786
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
787
      ;;
788
    esac;
789
} >&5
790
  sed "/^$/d" confdefs.h >conftest.log
791
  if test -s conftest.log; then
792
    echo >&5
793
    echo "## ------------ ##" >&5
794
    echo "## confdefs.h.  ##" >&5
795
    echo "## ------------ ##" >&5
796
    echo >&5
797
    cat conftest.log >&5
798
  fi
799
  (echo; echo) >&5
800
  test "$ac_signal" != 0 &&
801
    echo "$as_me: caught signal $ac_signal" >&5
802
  echo "$as_me: exit $exit_status" >&5
803
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
804
    exit $exit_status
805
     ' 0
806
for ac_signal in 1 2 13 15; do
807
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
808
done
809
ac_signal=0
810
 
811
# confdefs.h avoids OS command line length limits that DEFS can exceed.
812
rm -rf conftest* confdefs.h
813
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
814
echo >confdefs.h
815
 
816
# Let the site file select an alternate cache file if it wants to.
817
# Prefer explicitly selected file to automatically selected ones.
818
if test -z "$CONFIG_SITE"; then
819
  if test "x$prefix" != xNONE; then
820
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
821
  else
822
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
823
  fi
824
fi
825
for ac_site_file in $CONFIG_SITE; do
826
  if test -r "$ac_site_file"; then
827
    { echo "$as_me:827: loading site script $ac_site_file" >&5
828
echo "$as_me: loading site script $ac_site_file" >&6;}
829
    cat "$ac_site_file" >&5
830
    . "$ac_site_file"
831
  fi
832
done
833
 
834
if test -r "$cache_file"; then
835
  # Some versions of bash will fail to source /dev/null (special
836
  # files actually), so we avoid doing that.
837
  if test -f "$cache_file"; then
838
    { echo "$as_me:838: loading cache $cache_file" >&5
839
echo "$as_me: loading cache $cache_file" >&6;}
840
    case $cache_file in
841
      [\\/]* | ?:[\\/]* ) . $cache_file;;
842
      *)                      . ./$cache_file;;
843
    esac
844
  fi
845
else
846
  { echo "$as_me:846: creating cache $cache_file" >&5
847
echo "$as_me: creating cache $cache_file" >&6;}
848
  >$cache_file
849
fi
850
 
851
# Check that the precious variables saved in the cache have kept the same
852
# value.
853
ac_cache_corrupted=false
854
for ac_var in `(set) 2>&1 |
855
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
856
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
857
  eval ac_new_set=\$ac_env_${ac_var}_set
858
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
859
  eval ac_new_val="\$ac_env_${ac_var}_value"
860
  case $ac_old_set,$ac_new_set in
861
    set,)
862
      { echo "$as_me:862: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
863
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
864
      ac_cache_corrupted=: ;;
865
    ,set)
866
      { echo "$as_me:866: error: \`$ac_var' was not set in the previous run" >&5
867
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
868
      ac_cache_corrupted=: ;;
869
    ,);;
870
    *)
871
      if test "x$ac_old_val" != "x$ac_new_val"; then
872
        { echo "$as_me:872: error: \`$ac_var' has changed since the previous run:" >&5
873
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
874
        { echo "$as_me:874:   former value:  $ac_old_val" >&5
875
echo "$as_me:   former value:  $ac_old_val" >&2;}
876
        { echo "$as_me:876:   current value: $ac_new_val" >&5
877
echo "$as_me:   current value: $ac_new_val" >&2;}
878
        ac_cache_corrupted=:
879
      fi;;
880
  esac
881
  # Pass precious variables to config.status.  It doesn't matter if
882
  # we pass some twice (in addition to the command line arguments).
883
  if test "$ac_new_set" = set; then
884
    case $ac_new_val in
885
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
886
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
887
      ac_configure_args="$ac_configure_args '$ac_arg'"
888
      ;;
889
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
890
       ;;
891
    esac
892
  fi
893
done
894
if $ac_cache_corrupted; then
895
  { echo "$as_me:895: error: changes in the environment can compromise the build" >&5
896
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
897
  { { echo "$as_me:897: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
898
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
899
   { (exit 1); exit 1; }; }
900
fi
901
 
902
ac_ext=c
903
ac_cpp='$CPP $CPPFLAGS'
904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
905
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
906
ac_compiler_gnu=$ac_cv_c_compiler_gnu
907
 
908
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
909
  *c*,-n*) ECHO_N= ECHO_C='
910
' ECHO_T='      ' ;;
911
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
912
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
913
esac
914
echo "#! $SHELL" >conftest.sh
915
echo  "exit 0"   >>conftest.sh
916
chmod +x conftest.sh
917
if { (echo "$as_me:917: PATH=\".;.\"; conftest.sh") >&5
918
  (PATH=".;."; conftest.sh) 2>&5
919
  ac_status=$?
920
  echo "$as_me:920: \$? = $ac_status" >&5
921
  (exit $ac_status); }; then
922
  ac_path_separator=';'
923
else
924
  ac_path_separator=:
925
fi
926
PATH_SEPARATOR="$ac_path_separator"
927
rm -f conftest.sh
928
 
929
for ac_prog in gmake make
930
do
931
  # Extract the first word of "$ac_prog", so it can be a program name with args.
932
set dummy $ac_prog; ac_word=$2
933
echo "$as_me:933: checking for $ac_word" >&5
934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
935
if test "${ac_cv_prog_MAKE+set}" = set; then
936
  echo $ECHO_N "(cached) $ECHO_C" >&6
937
else
938
  if test -n "$MAKE"; then
939
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
940
else
941
  ac_save_IFS=$IFS; IFS=$ac_path_separator
942
ac_dummy="$PATH"
943
for ac_dir in $ac_dummy; do
944
  IFS=$ac_save_IFS
945
  test -z "$ac_dir" && ac_dir=.
946
  $as_executable_p "$ac_dir/$ac_word" || continue
947
ac_cv_prog_MAKE="$ac_prog"
948
echo "$as_me:948: found $ac_dir/$ac_word" >&5
949
break
950
done
951
 
952
fi
953
fi
954
MAKE=$ac_cv_prog_MAKE
955
if test -n "$MAKE"; then
956
  echo "$as_me:956: result: $MAKE" >&5
957
echo "${ECHO_T}$MAKE" >&6
958
else
959
  echo "$as_me:959: result: no" >&5
960
echo "${ECHO_T}no" >&6
961
fi
962
 
963
  test -n "$MAKE" && break
964
done
965
 
966
ENDIF=endif
967
 
968
RTEMS_TOPdir="../../../../..";
969
 
970
test -n "$with_target_subdir" || with_target_subdir="."
971
 
972
if test "$with_target_subdir" = "." ; then
973
# Native
974
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
975
else
976
# Cross
977
dots=`echo $with_target_subdir|\
978
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
979
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
980
fi
981
 
982
if test "$with_target_subdir" = "." ; then
983
# Native
984
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
985
else
986
# Cross
987
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
988
fi
989
 
990
echo "$as_me:990: checking for RTEMS Version" >&5
991
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
992
if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then
993
  :
994
else
995
  { { echo "$as_me:995: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5
996
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;}
997
   { (exit 1); exit 1; }; }
998
fi
999
 
1000
echo "$as_me:1000: result: ss-20020807" >&5
1001
echo "${ECHO_T}ss-20020807" >&6
1002
 
1003
ac_aux_dir=
1004
for ac_dir in ../../../../.. $srcdir/../../../../..; do
1005
  if test -f $ac_dir/install-sh; then
1006
    ac_aux_dir=$ac_dir
1007
    ac_install_sh="$ac_aux_dir/install-sh -c"
1008
    break
1009
  elif test -f $ac_dir/install.sh; then
1010
    ac_aux_dir=$ac_dir
1011
    ac_install_sh="$ac_aux_dir/install.sh -c"
1012
    break
1013
  elif test -f $ac_dir/shtool; then
1014
    ac_aux_dir=$ac_dir
1015
    ac_install_sh="$ac_aux_dir/shtool install -c"
1016
    break
1017
  fi
1018
done
1019
if test -z "$ac_aux_dir"; then
1020
  { { echo "$as_me:1020: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&5
1021
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&2;}
1022
   { (exit 1); exit 1; }; }
1023
fi
1024
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1025
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1026
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1027
 
1028
# Make sure we can run config.sub.
1029
$ac_config_sub sun4 >/dev/null 2>&1 ||
1030
  { { echo "$as_me:1030: error: cannot run $ac_config_sub" >&5
1031
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1032
   { (exit 1); exit 1; }; }
1033
 
1034
echo "$as_me:1034: checking build system type" >&5
1035
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1036
if test "${ac_cv_build+set}" = set; then
1037
  echo $ECHO_N "(cached) $ECHO_C" >&6
1038
else
1039
  ac_cv_build_alias=$build_alias
1040
test -z "$ac_cv_build_alias" &&
1041
  ac_cv_build_alias=`$ac_config_guess`
1042
test -z "$ac_cv_build_alias" &&
1043
  { { echo "$as_me:1043: error: cannot guess build type; you must specify one" >&5
1044
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1045
   { (exit 1); exit 1; }; }
1046
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1047
  { { echo "$as_me:1047: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1048
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1049
   { (exit 1); exit 1; }; }
1050
 
1051
fi
1052
echo "$as_me:1052: result: $ac_cv_build" >&5
1053
echo "${ECHO_T}$ac_cv_build" >&6
1054
build=$ac_cv_build
1055
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058
 
1059
echo "$as_me:1059: checking host system type" >&5
1060
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1061
if test "${ac_cv_host+set}" = set; then
1062
  echo $ECHO_N "(cached) $ECHO_C" >&6
1063
else
1064
  ac_cv_host_alias=$host_alias
1065
test -z "$ac_cv_host_alias" &&
1066
  ac_cv_host_alias=$ac_cv_build_alias
1067
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1068
  { { echo "$as_me:1068: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1069
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1070
   { (exit 1); exit 1; }; }
1071
 
1072
fi
1073
echo "$as_me:1073: result: $ac_cv_host" >&5
1074
echo "${ECHO_T}$ac_cv_host" >&6
1075
host=$ac_cv_host
1076
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1077
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1078
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079
 
1080
echo "$as_me:1080: checking target system type" >&5
1081
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1082
if test "${ac_cv_target+set}" = set; then
1083
  echo $ECHO_N "(cached) $ECHO_C" >&6
1084
else
1085
  ac_cv_target_alias=$target_alias
1086
test "x$ac_cv_target_alias" = "x" &&
1087
  ac_cv_target_alias=$ac_cv_host_alias
1088
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1089
  { { echo "$as_me:1089: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1090
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1091
   { (exit 1); exit 1; }; }
1092
 
1093
fi
1094
echo "$as_me:1094: result: $ac_cv_target" >&5
1095
echo "${ECHO_T}$ac_cv_target" >&6
1096
target=$ac_cv_target
1097
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1098
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1099
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1100
 
1101
# The aliases save the names the user supplied, while $host etc.
1102
# will get canonicalized.
1103
test -n "$target_alias" &&
1104
  test "$program_prefix$program_suffix$program_transform_name" = \
1105
    NONENONEs,x,x, &&
1106
  program_prefix=${target_alias}-
1107
echo "$as_me:1107: checking rtems target cpu" >&5
1108
echo $ECHO_N "checking rtems target cpu... $ECHO_C" >&6
1109
case "${target}" in
1110
  # hpux unix port should go here
1111
  i[34567]86-*linux*)           # unix "simulator" port
1112
        RTEMS_CPU=unix
1113
        ;;
1114
  i[34567]86-*freebsd*)         # unix "simulator" port
1115
        RTEMS_CPU=unix
1116
        ;;
1117
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1118
        RTEMS_CPU=unix
1119
        ;;
1120
  no_cpu-*rtems*)
1121
        RTEMS_CPU=no_cpu
1122
        ;;
1123
  sparc-sun-solaris*)           # unix "simulator" port
1124
        RTEMS_CPU=unix
1125
        ;;
1126
  *)
1127
        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1128
        ;;
1129
esac
1130
 
1131
echo "$as_me:1131: result: $RTEMS_CPU" >&5
1132
echo "${ECHO_T}$RTEMS_CPU" >&6
1133
 
1134
am__api_version="1.6"
1135
# Find a good install program.  We prefer a C program (faster),
1136
# so one script is as good as another.  But avoid the broken or
1137
# incompatible versions:
1138
# SysV /etc/install, /usr/sbin/install
1139
# SunOS /usr/etc/install
1140
# IRIX /sbin/install
1141
# AIX /bin/install
1142
# AmigaOS /C/install, which installs bootblocks on floppy discs
1143
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1144
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1145
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1146
# ./install, which can be erroneously created by make from ./install.sh.
1147
echo "$as_me:1147: checking for a BSD compatible install" >&5
1148
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1149
if test -z "$INSTALL"; then
1150
if test "${ac_cv_path_install+set}" = set; then
1151
  echo $ECHO_N "(cached) $ECHO_C" >&6
1152
else
1153
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1154
  for ac_dir in $PATH; do
1155
    IFS=$ac_save_IFS
1156
    # Account for people who put trailing slashes in PATH elements.
1157
    case $ac_dir/ in
1158
    / | ./ | .// | /cC/* \
1159
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1160
    | /usr/ucb/* ) ;;
1161
    *)
1162
      # OSF1 and SCO ODT 3.0 have their own names for install.
1163
      # Don't use installbsd from OSF since it installs stuff as root
1164
      # by default.
1165
      for ac_prog in ginstall scoinst install; do
1166
        if $as_executable_p "$ac_dir/$ac_prog"; then
1167
          if test $ac_prog = install &&
1168
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1169
            # AIX install.  It has an incompatible calling convention.
1170
            :
1171
          elif test $ac_prog = install &&
1172
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1173
            # program-specific install script used by HP pwplus--don't use.
1174
            :
1175
          else
1176
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1177
            break 2
1178
          fi
1179
        fi
1180
      done
1181
      ;;
1182
    esac
1183
  done
1184
 
1185
fi
1186
  if test "${ac_cv_path_install+set}" = set; then
1187
    INSTALL=$ac_cv_path_install
1188
  else
1189
    # As a last resort, use the slow shell script.  We don't cache a
1190
    # path for INSTALL within a source directory, because that will
1191
    # break other packages using the cache if that directory is
1192
    # removed, or if the path is relative.
1193
    INSTALL=$ac_install_sh
1194
  fi
1195
fi
1196
echo "$as_me:1196: result: $INSTALL" >&5
1197
echo "${ECHO_T}$INSTALL" >&6
1198
 
1199
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200
# It thinks the first close brace ends the variable substitution.
1201
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1202
 
1203
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1204
 
1205
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1206
 
1207
echo "$as_me:1207: checking whether build environment is sane" >&5
1208
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1209
# Just in case
1210
sleep 1
1211
echo timestamp > conftest.file
1212
# Do `set' in a subshell so we don't clobber the current shell's
1213
# arguments.  Must try -L first in case configure is actually a
1214
# symlink; some systems play weird games with the mod time of symlinks
1215
# (eg FreeBSD returns the mod time of the symlink's containing
1216
# directory).
1217
if (
1218
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1219
   if test "$*" = "X"; then
1220
      # -L didn't work.
1221
      set X `ls -t $srcdir/configure conftest.file`
1222
   fi
1223
   rm -f conftest.file
1224
   if test "$*" != "X $srcdir/configure conftest.file" \
1225
      && test "$*" != "X conftest.file $srcdir/configure"; then
1226
 
1227
      # If neither matched, then we have a broken ls.  This can happen
1228
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1229
      # broken ls alias from the environment.  This has actually
1230
      # happened.  Such a system could not be considered "sane".
1231
      { { echo "$as_me:1231: error: ls -t appears to fail.  Make sure there is not a broken
1232
alias in your environment" >&5
1233
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1234
alias in your environment" >&2;}
1235
   { (exit 1); exit 1; }; }
1236
   fi
1237
 
1238
   test "$2" = conftest.file
1239
   )
1240
then
1241
   # Ok.
1242
   :
1243
else
1244
   { { echo "$as_me:1244: error: newly created file is older than distributed files!
1245
Check your system clock" >&5
1246
echo "$as_me: error: newly created file is older than distributed files!
1247
Check your system clock" >&2;}
1248
   { (exit 1); exit 1; }; }
1249
fi
1250
echo "$as_me:1250: result: yes" >&5
1251
echo "${ECHO_T}yes" >&6
1252
test "$program_prefix" != NONE &&
1253
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1254
# Use a double $ so make ignores it.
1255
test "$program_suffix" != NONE &&
1256
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1257
# Double any \ or $.  echo might interpret backslashes.
1258
# By default was `s,x,x', remove it if useless.
1259
cat <<\_ACEOF >conftest.sed
1260
s/[\\$]/&&/g;s/;s,x,x,$//
1261
_ACEOF
1262
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1263
rm conftest.sed
1264
 
1265
# expand $ac_aux_dir to an absolute path
1266
am_aux_dir=`cd $ac_aux_dir && pwd`
1267
 
1268
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1269
# Use eval to expand $SHELL
1270
if eval "$MISSING --run true"; then
1271
  am_missing_run="$MISSING --run "
1272
else
1273
  am_missing_run=
1274
  { echo "$as_me:1274: WARNING: \`missing' script is too old or missing" >&5
1275
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1276
fi
1277
 
1278
for ac_prog in mawk gawk nawk awk
1279
do
1280
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1281
set dummy $ac_prog; ac_word=$2
1282
echo "$as_me:1282: checking for $ac_word" >&5
1283
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1284
if test "${ac_cv_prog_AWK+set}" = set; then
1285
  echo $ECHO_N "(cached) $ECHO_C" >&6
1286
else
1287
  if test -n "$AWK"; then
1288
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1289
else
1290
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1291
ac_dummy="$PATH"
1292
for ac_dir in $ac_dummy; do
1293
  IFS=$ac_save_IFS
1294
  test -z "$ac_dir" && ac_dir=.
1295
  $as_executable_p "$ac_dir/$ac_word" || continue
1296
ac_cv_prog_AWK="$ac_prog"
1297
echo "$as_me:1297: found $ac_dir/$ac_word" >&5
1298
break
1299
done
1300
 
1301
fi
1302
fi
1303
AWK=$ac_cv_prog_AWK
1304
if test -n "$AWK"; then
1305
  echo "$as_me:1305: result: $AWK" >&5
1306
echo "${ECHO_T}$AWK" >&6
1307
else
1308
  echo "$as_me:1308: result: no" >&5
1309
echo "${ECHO_T}no" >&6
1310
fi
1311
 
1312
  test -n "$AWK" && break
1313
done
1314
 
1315
echo "$as_me:1315: checking whether ${MAKE-make} sets \${MAKE}" >&5
1316
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1317
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1318
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1319
  echo $ECHO_N "(cached) $ECHO_C" >&6
1320
else
1321
  cat >conftest.make <<\EOF
1322
all:
1323
        @echo 'ac_maketemp="${MAKE}"'
1324
EOF
1325
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1326
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1327
if test -n "$ac_maketemp"; then
1328
  eval ac_cv_prog_make_${ac_make}_set=yes
1329
else
1330
  eval ac_cv_prog_make_${ac_make}_set=no
1331
fi
1332
rm -f conftest.make
1333
fi
1334
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1335
  echo "$as_me:1335: result: yes" >&5
1336
echo "${ECHO_T}yes" >&6
1337
  SET_MAKE=
1338
else
1339
  echo "$as_me:1339: result: no" >&5
1340
echo "${ECHO_T}no" >&6
1341
  SET_MAKE="MAKE=${MAKE-make}"
1342
fi
1343
 
1344
 # test to see if srcdir already configured
1345
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1346
   test -f $srcdir/config.status; then
1347
  { { echo "$as_me:1347: error: source directory already configured; run \"make distclean\" there first" >&5
1348
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1349
   { (exit 1); exit 1; }; }
1350
fi
1351
 
1352
# Define the identity of the package.
1353
 PACKAGE=rtems-c-src-lib-libbsp-i386
1354
 VERSION=ss-20020807
1355
 
1356
# Some tools Automake needs.
1357
 
1358
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1359
 
1360
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1361
 
1362
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1363
 
1364
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1365
 
1366
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1367
 
1368
AMTAR=${AMTAR-"${am_missing_run}tar"}
1369
 
1370
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1371
 
1372
# Installed binaries are usually stripped using `strip' when the user
1373
# run `make install-strip'.  However `strip' might not be the right
1374
# tool to use in cross-compilation environments, therefore Automake
1375
# will honor the `STRIP' environment variable to overrule this program.
1376
if test "$cross_compiling" != no; then
1377
  if test -n "$ac_tool_prefix"; then
1378
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1379
set dummy ${ac_tool_prefix}strip; ac_word=$2
1380
echo "$as_me:1380: checking for $ac_word" >&5
1381
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382
if test "${ac_cv_prog_STRIP+set}" = set; then
1383
  echo $ECHO_N "(cached) $ECHO_C" >&6
1384
else
1385
  if test -n "$STRIP"; then
1386
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1387
else
1388
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1389
ac_dummy="$PATH"
1390
for ac_dir in $ac_dummy; do
1391
  IFS=$ac_save_IFS
1392
  test -z "$ac_dir" && ac_dir=.
1393
  $as_executable_p "$ac_dir/$ac_word" || continue
1394
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1395
echo "$as_me:1395: found $ac_dir/$ac_word" >&5
1396
break
1397
done
1398
 
1399
fi
1400
fi
1401
STRIP=$ac_cv_prog_STRIP
1402
if test -n "$STRIP"; then
1403
  echo "$as_me:1403: result: $STRIP" >&5
1404
echo "${ECHO_T}$STRIP" >&6
1405
else
1406
  echo "$as_me:1406: result: no" >&5
1407
echo "${ECHO_T}no" >&6
1408
fi
1409
 
1410
fi
1411
if test -z "$ac_cv_prog_STRIP"; then
1412
  ac_ct_STRIP=$STRIP
1413
  # Extract the first word of "strip", so it can be a program name with args.
1414
set dummy strip; ac_word=$2
1415
echo "$as_me:1415: checking for $ac_word" >&5
1416
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1418
  echo $ECHO_N "(cached) $ECHO_C" >&6
1419
else
1420
  if test -n "$ac_ct_STRIP"; then
1421
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1422
else
1423
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1424
ac_dummy="$PATH"
1425
for ac_dir in $ac_dummy; do
1426
  IFS=$ac_save_IFS
1427
  test -z "$ac_dir" && ac_dir=.
1428
  $as_executable_p "$ac_dir/$ac_word" || continue
1429
ac_cv_prog_ac_ct_STRIP="strip"
1430
echo "$as_me:1430: found $ac_dir/$ac_word" >&5
1431
break
1432
done
1433
 
1434
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1435
fi
1436
fi
1437
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1438
if test -n "$ac_ct_STRIP"; then
1439
  echo "$as_me:1439: result: $ac_ct_STRIP" >&5
1440
echo "${ECHO_T}$ac_ct_STRIP" >&6
1441
else
1442
  echo "$as_me:1442: result: no" >&5
1443
echo "${ECHO_T}no" >&6
1444
fi
1445
 
1446
  STRIP=$ac_ct_STRIP
1447
else
1448
  STRIP="$ac_cv_prog_STRIP"
1449
fi
1450
 
1451
fi
1452
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1453
 
1454
# We need awk for the "check" target.  The system "awk" is bad on
1455
# some platforms.
1456
 
1457
echo "$as_me:1457: checking whether to enable maintainer-specific portions of Makefiles" >&5
1458
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1459
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1460
if test "${enable_maintainer_mode+set}" = set; then
1461
  enableval="$enable_maintainer_mode"
1462
  USE_MAINTAINER_MODE=$enableval
1463
else
1464
  USE_MAINTAINER_MODE=no
1465
fi;
1466
  echo "$as_me:1466: result: $USE_MAINTAINER_MODE" >&5
1467
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1468
 
1469
if test $USE_MAINTAINER_MODE = yes; then
1470
  MAINTAINER_MODE_TRUE=
1471
  MAINTAINER_MODE_FALSE='#'
1472
else
1473
  MAINTAINER_MODE_TRUE='#'
1474
  MAINTAINER_MODE_FALSE=
1475
fi
1476
 
1477
  MAINT=$MAINTAINER_MODE_TRUE
1478
 
1479
echo "$as_me:1479: checking for RTEMS_BSP" >&5
1480
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1481
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1482
  echo $ECHO_N "(cached) $ECHO_C" >&6
1483
else
1484
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1485
 
1486
fi
1487
if test -z "$rtems_cv_RTEMS_BSP"; then
1488
  { { echo "$as_me:1488: error: Missing RTEMS_BSP" >&5
1489
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1490
   { (exit 1); exit 1; }; }
1491
fi
1492
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1493
echo "$as_me:1493: result: ${RTEMS_BSP}" >&5
1494
echo "${ECHO_T}${RTEMS_BSP}" >&6
1495
 
1496
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
1497
 
1498
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
1499
 
1500
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1501
 
1502
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
1503
 
1504
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
1505
 
1506
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1507
if test "${enable_bare_cpu_cflags+set}" = set; then
1508
  enableval="$enable_bare_cpu_cflags"
1509
  case "${enableval}" in
1510
  no) BARE_CPU_CFLAGS="" ;;
1511
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1512
esac
1513
else
1514
  BARE_CPU_CFLAGS=""
1515
fi;
1516
 
1517
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1518
if test "${enable_bare_cpu_model+set}" = set; then
1519
  enableval="$enable_bare_cpu_model"
1520
  case "${enableval}" in
1521
  no)   BARE_CPU_MODEL="" ;;
1522
  *)    BARE_CPU_MODEL="${enableval}" ;;
1523
esac
1524
else
1525
  BARE_CPU_MODEL=""
1526
fi;
1527
 
1528
if false; then
1529
  MULTILIB_TRUE=
1530
  MULTILIB_FALSE='#'
1531
else
1532
  MULTILIB_TRUE='#'
1533
  MULTILIB_FALSE=
1534
fi
1535
 
1536
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1537
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1538
 
1539
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1540
 
1541
echo "$as_me:1541: checking for make/custom/$RTEMS_BSP.cfg" >&5
1542
echo $ECHO_N "checking for make/custom/$RTEMS_BSP.cfg... $ECHO_C" >&6
1543
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
1544
  echo "$as_me:1544: result: yes" >&5
1545
echo "${ECHO_T}yes" >&6
1546
else
1547
  { { echo "$as_me:1547: error: no" >&5
1548
echo "$as_me: error: no" >&2;}
1549
   { (exit 1); exit 1; }; }
1550
fi
1551
 
1552
# Is this a supported CPU?
1553
echo "$as_me:1553: checking if cpu $RTEMS_CPU is supported" >&5
1554
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
1555
# FIXME: Temporary hack
1556
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1557
  echo "$as_me:1557: result: yes" >&5
1558
echo "${ECHO_T}yes" >&6
1559
else
1560
  { { echo "$as_me:1560: error: no" >&5
1561
echo "$as_me: error: no" >&2;}
1562
   { (exit 1); exit 1; }; }
1563
fi
1564
 
1565
echo "$as_me:1565: checking for RTEMS_CPU_MODEL" >&5
1566
echo $ECHO_N "checking for RTEMS_CPU_MODEL... $ECHO_C" >&6
1567
if test "${rtems_cv_RTEMS_CPU_MODEL+set}" = set; then
1568
  echo $ECHO_N "(cached) $ECHO_C" >&6
1569
else
1570
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
1571
fi
1572
echo "$as_me:1572: result: $rtems_cv_RTEMS_CPU_MODEL" >&5
1573
echo "${ECHO_T}$rtems_cv_RTEMS_CPU_MODEL" >&6
1574
RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
1575
 
1576
echo "$as_me:1576: checking for RTEMS_BSP_FAMILY" >&5
1577
echo $ECHO_N "checking for RTEMS_BSP_FAMILY... $ECHO_C" >&6
1578
if test "${rtems_cv_RTEMS_BSP_FAMILY+set}" = set; then
1579
  echo $ECHO_N "(cached) $ECHO_C" >&6
1580
else
1581
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
1582
fi
1583
echo "$as_me:1583: result: $rtems_cv_RTEMS_BSP_FAMILY" >&5
1584
echo "${ECHO_T}$rtems_cv_RTEMS_BSP_FAMILY" >&6
1585
RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
1586
 
1587
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1588
 
1589
  # account for "aliased" bsps which share source code
1590
  case $RTEMS_BSP in
1591
    simcpu32)     bspdir=sim68000         ;; # BSVC CPU32 variant
1592
    c3xsim)       bspdir=c4xsim           ;; # TI C3x Simulator in gdb
1593
    mcp750)       bspdir=motorola_powerpc ;; # Motorola PPC board variant
1594
    mvme2307)     bspdir=motorola_powerpc ;; # Motorola PPC board variant
1595
    mvme162lx)    bspdir=mvme162          ;; # m68k - mvme162 board variant
1596
    gen68360_040) bspdir=gen68360         ;; # m68k - 68360 in companion mode
1597
    p4600)        bspdir=p4000            ;; # mips64orion - p4000 board w/IDT 4600
1598
    p4650)        bspdir=p4000            ;; # mips64orion - p4000 board w/IDT 4650
1599
    mbx8*)        bspdir=mbx8xx           ;; # MBX821/MBX860 board
1600
    pc386dx)      bspdir=pc386            ;; # i386 - PC w/o FPU
1601
    pc486)        bspdir=pc386            ;; # i386 - PC with i486DX
1602
    pc586)        bspdir=pc386            ;; # i386 - PC with Pentium
1603
    pc686)        bspdir=pc386            ;; # i386 - PC with PentiumPro
1604
    pck6)         bspdir=pc386            ;; # i386 - PC with K6
1605
    bare*)        bspdir=bare             ;; # EXP: bare-aliases
1606
    erc32nfp)     bspdir=erc32            ;; # erc32 without fpu
1607
    leon1)        bspdir=leon             ;; # leon without fpu
1608
    leon2)        bspdir=leon             ;; # leon with fpu
1609
    simsh7032)    bspdir=shsim            ;; # SH7032 simulator
1610
    simsh7045)    bspdir=shsim            ;; # SH7045 simulator
1611
    *)            bspdir=$RTEMS_BSP;;
1612
  esac
1613
 
1614
  case "$bspdir" in
1615
  i386ex )
1616
 
1617
subdirs="$subdirs i386ex"
1618
;;
1619
  pc386 )
1620
 
1621
subdirs="$subdirs pc386"
1622
;;
1623
  ts_386ex )
1624
 
1625
subdirs="$subdirs ts_386ex"
1626
;;
1627
  *)
1628
    { { echo "$as_me:1628: error: Invalid BSP" >&5
1629
echo "$as_me: error: Invalid BSP" >&2;}
1630
   { (exit 1); exit 1; }; };;
1631
  esac
1632
 
1633
# Explicitly list all Makefiles here
1634
ac_config_files="$ac_config_files Makefile shared/Makefile shared/comm/Makefile shared/io/Makefile shared/irq/Makefile shared/pci/Makefile"
1635
 
1636
cat >confcache <<\_ACEOF
1637
# This file is a shell script that caches the results of configure
1638
# tests run on this system so they can be shared between configure
1639
# scripts and configure runs, see configure's option --config-cache.
1640
# It is not useful on other systems.  If it contains results you don't
1641
# want to keep, you may remove or edit it.
1642
#
1643
# config.status only pays attention to the cache file if you give it
1644
# the --recheck option to rerun configure.
1645
#
1646
# `ac_cv_env_foo' variables (set or unset) will be overriden when
1647
# loading this file, other *unset* `ac_cv_foo' will be assigned the
1648
# following values.
1649
 
1650
_ACEOF
1651
 
1652
# The following way of writing the cache mishandles newlines in values,
1653
# but we know of no workaround that is simple, portable, and efficient.
1654
# So, don't put newlines in cache variables' values.
1655
# Ultrix sh set writes to stderr and can't be redirected directly,
1656
# and sets the high bit in the cache file unless we assign to the vars.
1657
{
1658
  (set) 2>&1 |
1659
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
1660
    *ac_space=\ *)
1661
      # `set' does not quote correctly, so add quotes (double-quote
1662
      # substitution turns \\\\ into \\, and sed turns \\ into \).
1663
      sed -n \
1664
        "s/'/'\\\\''/g;
1665
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1666
      ;;
1667
    *)
1668
      # `set' quotes correctly as required by POSIX, so do not add quotes.
1669
      sed -n \
1670
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1671
      ;;
1672
    esac;
1673
} |
1674
  sed '
1675
     t clear
1676
     : clear
1677
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1678
     t end
1679
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1680
     : end' >>confcache
1681
if cmp -s $cache_file confcache; then :; else
1682
  if test -w $cache_file; then
1683
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1684
    cat confcache >$cache_file
1685
  else
1686
    echo "not updating unwritable cache $cache_file"
1687
  fi
1688
fi
1689
rm -f confcache
1690
 
1691
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1692
# Let make expand exec_prefix.
1693
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1694
 
1695
# VPATH may cause trouble with some makes, so we remove $(srcdir),
1696
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1697
# trailing colons and then remove the whole line if VPATH becomes empty
1698
# (actually we leave an empty line to preserve line numbers).
1699
if test "x$srcdir" = x.; then
1700
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
1701
s/:*\$(srcdir):*/:/;
1702
s/:*\${srcdir}:*/:/;
1703
s/:*@srcdir@:*/:/;
1704
s/^\([^=]*=[    ]*\):*/\1/;
1705
s/:*$//;
1706
s/^[^=]*=[      ]*$//;
1707
}'
1708
fi
1709
 
1710
# Transform confdefs.h into DEFS.
1711
# Protect against shell expansion while executing Makefile rules.
1712
# Protect against Makefile macro expansion.
1713
#
1714
# If the first sed substitution is executed (which looks for macros that
1715
# take arguments), then we branch to the quote section.  Otherwise,
1716
# look for a macro that doesn't take arguments.
1717
cat >confdef2opt.sed <<\EOF
1718
t clear
1719
: clear
1720
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1721
t quote
1722
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1723
t quote
1724
d
1725
: quote
1726
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1727
s,\[,\\&,g
1728
s,\],\\&,g
1729
s,\$,$$,g
1730
p
1731
EOF
1732
# We use echo to avoid assuming a particular line-breaking character.
1733
# The extra dot is to prevent the shell from consuming trailing
1734
# line-breaks from the sub-command output.  A line-break within
1735
# single-quotes doesn't work because, if this script is created in a
1736
# platform that uses two characters for line-breaks (e.g., DOS), tr
1737
# would break.
1738
ac_LF_and_DOT=`echo; echo .`
1739
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1740
rm -f confdef2opt.sed
1741
 
1742
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1743
  { { echo "$as_me:1743: error: conditional \"MAINTAINER_MODE\" was never defined.
1744
Usually this means the macro was only invoked conditionally." >&5
1745
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
1746
Usually this means the macro was only invoked conditionally." >&2;}
1747
   { (exit 1); exit 1; }; }
1748
fi
1749
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
1750
  { { echo "$as_me:1750: error: conditional \"MULTILIB\" was never defined.
1751
Usually this means the macro was only invoked conditionally." >&5
1752
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
1753
Usually this means the macro was only invoked conditionally." >&2;}
1754
   { (exit 1); exit 1; }; }
1755
fi
1756
 
1757
: ${CONFIG_STATUS=./config.status}
1758
ac_clean_files_save=$ac_clean_files
1759
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1760
{ echo "$as_me:1760: creating $CONFIG_STATUS" >&5
1761
echo "$as_me: creating $CONFIG_STATUS" >&6;}
1762
cat >$CONFIG_STATUS <<_ACEOF
1763
#! $SHELL
1764
# Generated automatically by configure.
1765
# Run this file to recreate the current configuration.
1766
# Compiler output produced by configure, useful for debugging
1767
# configure, is in config.log if it exists.
1768
 
1769
debug=false
1770
SHELL=\${CONFIG_SHELL-$SHELL}
1771
ac_cs_invocation="\$0 \$@"
1772
 
1773
_ACEOF
1774
 
1775
cat >>$CONFIG_STATUS <<\_ACEOF
1776
# Be Bourne compatible
1777
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1778
  emulate sh
1779
  NULLCMD=:
1780
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1781
  set -o posix
1782
fi
1783
 
1784
# Name of the executable.
1785
as_me=`echo "$0" |sed 's,.*[\\/],,'`
1786
 
1787
if expr a : '\(a\)' >/dev/null 2>&1; then
1788
  as_expr=expr
1789
else
1790
  as_expr=false
1791
fi
1792
 
1793
rm -f conf$$ conf$$.exe conf$$.file
1794
echo >conf$$.file
1795
if ln -s conf$$.file conf$$ 2>/dev/null; then
1796
  # We could just check for DJGPP; but this test a) works b) is more generic
1797
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1798
  if test -f conf$$.exe; then
1799
    # Don't use ln at all; we don't have any links
1800
    as_ln_s='cp -p'
1801
  else
1802
    as_ln_s='ln -s'
1803
  fi
1804
elif ln conf$$.file conf$$ 2>/dev/null; then
1805
  as_ln_s=ln
1806
else
1807
  as_ln_s='cp -p'
1808
fi
1809
rm -f conf$$ conf$$.exe conf$$.file
1810
 
1811
as_executable_p="test -f"
1812
 
1813
# Support unset when possible.
1814
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1815
  as_unset=unset
1816
else
1817
  as_unset=false
1818
fi
1819
 
1820
# NLS nuisances.
1821
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
1822
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
1823
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
1824
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
1825
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
1826
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
1827
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
1828
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
1829
 
1830
# IFS
1831
# We need space, tab and new line, in precisely that order.
1832
as_nl='
1833
'
1834
IFS="   $as_nl"
1835
 
1836
# CDPATH.
1837
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1838
 
1839
exec 6>&1
1840
 
1841
_ACEOF
1842
 
1843
# Files that config.status was made for.
1844
if test -n "$ac_config_files"; then
1845
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1846
fi
1847
 
1848
if test -n "$ac_config_headers"; then
1849
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1850
fi
1851
 
1852
if test -n "$ac_config_links"; then
1853
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1854
fi
1855
 
1856
if test -n "$ac_config_commands"; then
1857
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1858
fi
1859
 
1860
cat >>$CONFIG_STATUS <<\EOF
1861
 
1862
ac_cs_usage="\
1863
\`$as_me' instantiates files from templates according to the
1864
current configuration.
1865
 
1866
Usage: $0 [OPTIONS] [FILE]...
1867
 
1868
  -h, --help       print this help, then exit
1869
  -V, --version    print version number, then exit
1870
  -d, --debug      don't remove temporary files
1871
      --recheck    update $as_me by reconfiguring in the same conditions
1872
  --file=FILE[:TEMPLATE]
1873
                   instantiate the configuration file FILE
1874
 
1875
Configuration files:
1876
$config_files
1877
 
1878
Report bugs to ."
1879
EOF
1880
 
1881
cat >>$CONFIG_STATUS <
1882
ac_cs_version="\\
1883
rtems-c-src-lib-libbsp-i386 config.status ss-20020807
1884
configured by $0, generated by GNU Autoconf 2.52,
1885
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1886
 
1887
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1888
Free Software Foundation, Inc.
1889
This config.status script is free software; the Free Software Foundation
1890
gives unlimited permission to copy, distribute and modify it."
1891
srcdir=$srcdir
1892
INSTALL="$INSTALL"
1893
EOF
1894
 
1895
cat >>$CONFIG_STATUS <<\EOF
1896
# If no file are specified by the user, then we need to provide default
1897
# value.  By we need to know if files were specified by the user.
1898
ac_need_defaults=:
1899
while test $# != 0
1900
do
1901
  case $1 in
1902
  --*=*)
1903
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
1904
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1905
    shift
1906
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1907
    shift
1908
    ;;
1909
  -*);;
1910
  *) # This is not an option, so the user has probably given explicit
1911
     # arguments.
1912
     ac_need_defaults=false;;
1913
  esac
1914
 
1915
  case $1 in
1916
  # Handling of the options.
1917
EOF
1918
cat >>$CONFIG_STATUS <
1919
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1920
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1921
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1922
EOF
1923
cat >>$CONFIG_STATUS <<\EOF
1924
  --version | --vers* | -V )
1925
    echo "$ac_cs_version"; exit 0 ;;
1926
  --he | --h)
1927
    # Conflict between --help and --header
1928
    { { echo "$as_me:1928: error: ambiguous option: $1
1929
Try \`$0 --help' for more information." >&5
1930
echo "$as_me: error: ambiguous option: $1
1931
Try \`$0 --help' for more information." >&2;}
1932
   { (exit 1); exit 1; }; };;
1933
  --help | --hel | -h )
1934
    echo "$ac_cs_usage"; exit 0 ;;
1935
  --debug | --d* | -d )
1936
    debug=: ;;
1937
  --file | --fil | --fi | --f )
1938
    shift
1939
    CONFIG_FILES="$CONFIG_FILES $1"
1940
    ac_need_defaults=false;;
1941
  --header | --heade | --head | --hea )
1942
    shift
1943
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
1944
    ac_need_defaults=false;;
1945
 
1946
  # This is an error.
1947
  -*) { { echo "$as_me:1947: error: unrecognized option: $1
1948
Try \`$0 --help' for more information." >&5
1949
echo "$as_me: error: unrecognized option: $1
1950
Try \`$0 --help' for more information." >&2;}
1951
   { (exit 1); exit 1; }; } ;;
1952
 
1953
  *) ac_config_targets="$ac_config_targets $1" ;;
1954
 
1955
  esac
1956
  shift
1957
done
1958
 
1959
exec 5>>config.log
1960
cat >&5 << _ACEOF
1961
 
1962
## ----------------------- ##
1963
## Running config.status.  ##
1964
## ----------------------- ##
1965
 
1966
This file was extended by $as_me (rtems-c-src-lib-libbsp-i386 ss-20020807) 2.52, executed with
1967
  CONFIG_FILES    = $CONFIG_FILES
1968
  CONFIG_HEADERS  = $CONFIG_HEADERS
1969
  CONFIG_LINKS    = $CONFIG_LINKS
1970
  CONFIG_COMMANDS = $CONFIG_COMMANDS
1971
  > $ac_cs_invocation
1972
on `(hostname || uname -n) 2>/dev/null | sed 1q`
1973
 
1974
_ACEOF
1975
EOF
1976
 
1977
cat >>$CONFIG_STATUS <<\EOF
1978
for ac_config_target in $ac_config_targets
1979
do
1980
  case "$ac_config_target" in
1981
  # Handling of arguments.
1982
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1983
  "shared/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
1984
  "shared/comm/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/comm/Makefile" ;;
1985
  "shared/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/io/Makefile" ;;
1986
  "shared/irq/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/irq/Makefile" ;;
1987
  "shared/pci/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/pci/Makefile" ;;
1988
  *) { { echo "$as_me:1988: error: invalid argument: $ac_config_target" >&5
1989
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1990
   { (exit 1); exit 1; }; };;
1991
  esac
1992
done
1993
 
1994
# If the user did not use the arguments to specify the items to instantiate,
1995
# then the envvar interface is used.  Set only those that are not.
1996
# We use the long form for the default assignment because of an extremely
1997
# bizarre bug on SunOS 4.1.3.
1998
if $ac_need_defaults; then
1999
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2000
fi
2001
 
2002
# Create a temporary directory, and hook for its removal unless debugging.
2003
$debug ||
2004
{
2005
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2006
  trap '{ (exit 1); exit 1; }' 1 2 13 15
2007
}
2008
 
2009
# Create a (secure) tmp directory for tmp files.
2010
: ${TMPDIR=/tmp}
2011
{
2012
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2013
  test -n "$tmp" && test -d "$tmp"
2014
}  ||
2015
{
2016
  tmp=$TMPDIR/cs$$-$RANDOM
2017
  (umask 077 && mkdir $tmp)
2018
} ||
2019
{
2020
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2021
   { (exit 1); exit 1; }
2022
}
2023
 
2024
EOF
2025
 
2026
cat >>$CONFIG_STATUS <
2027
 
2028
#
2029
# CONFIG_FILES section.
2030
#
2031
 
2032
# No need to generate the scripts if there are no CONFIG_FILES.
2033
# This happens for instance when ./config.status config.h
2034
if test -n "\$CONFIG_FILES"; then
2035
  # Protect against being on the right side of a sed subst in config.status.
2036
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2037
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2038
s,@SHELL@,$SHELL,;t t
2039
s,@exec_prefix@,$exec_prefix,;t t
2040
s,@prefix@,$prefix,;t t
2041
s,@program_transform_name@,$program_transform_name,;t t
2042
s,@bindir@,$bindir,;t t
2043
s,@sbindir@,$sbindir,;t t
2044
s,@libexecdir@,$libexecdir,;t t
2045
s,@datadir@,$datadir,;t t
2046
s,@sysconfdir@,$sysconfdir,;t t
2047
s,@sharedstatedir@,$sharedstatedir,;t t
2048
s,@localstatedir@,$localstatedir,;t t
2049
s,@libdir@,$libdir,;t t
2050
s,@includedir@,$includedir,;t t
2051
s,@oldincludedir@,$oldincludedir,;t t
2052
s,@infodir@,$infodir,;t t
2053
s,@mandir@,$mandir,;t t
2054
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2055
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2056
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2057
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2058
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2059
s,@build_alias@,$build_alias,;t t
2060
s,@host_alias@,$host_alias,;t t
2061
s,@target_alias@,$target_alias,;t t
2062
s,@ECHO_C@,$ECHO_C,;t t
2063
s,@ECHO_N@,$ECHO_N,;t t
2064
s,@ECHO_T@,$ECHO_T,;t t
2065
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2066
s,@DEFS@,$DEFS,;t t
2067
s,@LIBS@,$LIBS,;t t
2068
s,@MAKE@,$MAKE,;t t
2069
s,@ENDIF@,$ENDIF,;t t
2070
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
2071
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
2072
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
2073
s,@build@,$build,;t t
2074
s,@build_cpu@,$build_cpu,;t t
2075
s,@build_vendor@,$build_vendor,;t t
2076
s,@build_os@,$build_os,;t t
2077
s,@host@,$host,;t t
2078
s,@host_cpu@,$host_cpu,;t t
2079
s,@host_vendor@,$host_vendor,;t t
2080
s,@host_os@,$host_os,;t t
2081
s,@target@,$target,;t t
2082
s,@target_cpu@,$target_cpu,;t t
2083
s,@target_vendor@,$target_vendor,;t t
2084
s,@target_os@,$target_os,;t t
2085
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
2086
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2087
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2088
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2089
s,@PACKAGE@,$PACKAGE,;t t
2090
s,@VERSION@,$VERSION,;t t
2091
s,@ACLOCAL@,$ACLOCAL,;t t
2092
s,@AUTOCONF@,$AUTOCONF,;t t
2093
s,@AUTOMAKE@,$AUTOMAKE,;t t
2094
s,@AUTOHEADER@,$AUTOHEADER,;t t
2095
s,@MAKEINFO@,$MAKEINFO,;t t
2096
s,@AMTAR@,$AMTAR,;t t
2097
s,@install_sh@,$install_sh,;t t
2098
s,@STRIP@,$STRIP,;t t
2099
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
2100
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
2101
s,@AWK@,$AWK,;t t
2102
s,@SET_MAKE@,$SET_MAKE,;t t
2103
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
2104
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
2105
s,@MAINT@,$MAINT,;t t
2106
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
2107
s,@RTEMS_BSP_SPECS@,$RTEMS_BSP_SPECS,;t t
2108
s,@GCC_SPECS@,$GCC_SPECS,;t t
2109
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
2110
s,@PROJECT_RELEASE@,$PROJECT_RELEASE,;t t
2111
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
2112
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
2113
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
2114
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
2115
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
2116
s,@bsplibdir@,$bsplibdir,;t t
2117
s,@RTEMS_CPU_MODEL@,$RTEMS_CPU_MODEL,;t t
2118
s,@RTEMS_BSP_FAMILY@,$RTEMS_BSP_FAMILY,;t t
2119
s,@PACKHEX@,$PACKHEX,;t t
2120
s,@subdirs@,$subdirs,;t t
2121
CEOF
2122
 
2123
EOF
2124
 
2125
  cat >>$CONFIG_STATUS <<\EOF
2126
  # Split the substitutions into bite-sized pieces for seds with
2127
  # small command number limits, like on Digital OSF/1 and HP-UX.
2128
  ac_max_sed_lines=48
2129
  ac_sed_frag=1 # Number of current file.
2130
  ac_beg=1 # First line for current file.
2131
  ac_end=$ac_max_sed_lines # Line after last line for current file.
2132
  ac_more_lines=:
2133
  ac_sed_cmds=
2134
  while $ac_more_lines; do
2135
    if test $ac_beg -gt 1; then
2136
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2137
    else
2138
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2139
    fi
2140
    if test ! -s $tmp/subs.frag; then
2141
      ac_more_lines=false
2142
    else
2143
      # The purpose of the label and of the branching condition is to
2144
      # speed up the sed processing (if there are no `@' at all, there
2145
      # is no need to browse any of the substitutions).
2146
      # These are the two extra sed commands mentioned above.
2147
      (echo ':t
2148
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2149
      if test -z "$ac_sed_cmds"; then
2150
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2151
      else
2152
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2153
      fi
2154
      ac_sed_frag=`expr $ac_sed_frag + 1`
2155
      ac_beg=$ac_end
2156
      ac_end=`expr $ac_end + $ac_max_sed_lines`
2157
    fi
2158
  done
2159
  if test -z "$ac_sed_cmds"; then
2160
    ac_sed_cmds=cat
2161
  fi
2162
fi # test -n "$CONFIG_FILES"
2163
 
2164
EOF
2165
cat >>$CONFIG_STATUS <<\EOF
2166
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2167
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2168
  case $ac_file in
2169
  - | *:- | *:-:* ) # input from stdin
2170
        cat >$tmp/stdin
2171
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2172
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2173
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2174
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2175
  * )   ac_file_in=$ac_file.in ;;
2176
  esac
2177
 
2178
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2179
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2180
         X"$ac_file" : 'X\(//\)[^/]' \| \
2181
         X"$ac_file" : 'X\(//\)$' \| \
2182
         X"$ac_file" : 'X\(/\)' \| \
2183
         .     : '\(.\)' 2>/dev/null ||
2184
echo X"$ac_file" |
2185
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2186
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2187
          /^X\(\/\/\)$/{ s//\1/; q; }
2188
          /^X\(\/\).*/{ s//\1/; q; }
2189
          s/.*/./; q'`
2190
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2191
    { case "$ac_dir" in
2192
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2193
  *)                      as_incr_dir=.;;
2194
esac
2195
as_dummy="$ac_dir"
2196
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2197
  case $as_mkdir_dir in
2198
    # Skip DOS drivespec
2199
    ?:) as_incr_dir=$as_mkdir_dir ;;
2200
    *)
2201
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
2202
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2203
    ;;
2204
  esac
2205
done; }
2206
 
2207
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2208
    # A "../" for each directory in $ac_dir_suffix.
2209
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2210
  else
2211
    ac_dir_suffix= ac_dots=
2212
  fi
2213
 
2214
  case $srcdir in
2215
  .)  ac_srcdir=.
2216
      if test -z "$ac_dots"; then
2217
         ac_top_srcdir=.
2218
      else
2219
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2220
      fi ;;
2221
  [\\/]* | ?:[\\/]* )
2222
      ac_srcdir=$srcdir$ac_dir_suffix;
2223
      ac_top_srcdir=$srcdir ;;
2224
  *) # Relative path.
2225
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2226
    ac_top_srcdir=$ac_dots$srcdir ;;
2227
  esac
2228
 
2229
  case $INSTALL in
2230
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2231
  *) ac_INSTALL=$ac_dots$INSTALL ;;
2232
  esac
2233
 
2234
  if test x"$ac_file" != x-; then
2235
    { echo "$as_me:2235: creating $ac_file" >&5
2236
echo "$as_me: creating $ac_file" >&6;}
2237
    rm -f "$ac_file"
2238
  fi
2239
  # Let's still pretend it is `configure' which instantiates (i.e., don't
2240
  # use $as_me), people would be surprised to read:
2241
  #    /* config.h.  Generated automatically by config.status.  */
2242
  configure_input="Generated automatically from `echo $ac_file_in |
2243
                                                 sed 's,.*/,,'` by configure."
2244
 
2245
  # First look for the input files in the build tree, otherwise in the
2246
  # src tree.
2247
  ac_file_inputs=`IFS=:
2248
    for f in $ac_file_in; do
2249
      case $f in
2250
      -) echo $tmp/stdin ;;
2251
      [\\/$]*)
2252
         # Absolute (can't be DOS-style, as IFS=:)
2253
         test -f "$f" || { { echo "$as_me:2253: error: cannot find input file: $f" >&5
2254
echo "$as_me: error: cannot find input file: $f" >&2;}
2255
   { (exit 1); exit 1; }; }
2256
         echo $f;;
2257
      *) # Relative
2258
         if test -f "$f"; then
2259
           # Build tree
2260
           echo $f
2261
         elif test -f "$srcdir/$f"; then
2262
           # Source tree
2263
           echo $srcdir/$f
2264
         else
2265
           # /dev/null tree
2266
           { { echo "$as_me:2266: error: cannot find input file: $f" >&5
2267
echo "$as_me: error: cannot find input file: $f" >&2;}
2268
   { (exit 1); exit 1; }; }
2269
         fi;;
2270
      esac
2271
    done` || { (exit 1); exit 1; }
2272
EOF
2273
cat >>$CONFIG_STATUS <
2274
  sed "$ac_vpsub
2275
$extrasub
2276
EOF
2277
cat >>$CONFIG_STATUS <<\EOF
2278
:t
2279
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2280
s,@configure_input@,$configure_input,;t t
2281
s,@srcdir@,$ac_srcdir,;t t
2282
s,@top_srcdir@,$ac_top_srcdir,;t t
2283
s,@INSTALL@,$ac_INSTALL,;t t
2284
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2285
  rm -f $tmp/stdin
2286
  if test x"$ac_file" != x-; then
2287
    mv $tmp/out $ac_file
2288
  else
2289
    cat $tmp/out
2290
    rm -f $tmp/out
2291
  fi
2292
 
2293
done
2294
EOF
2295
 
2296
cat >>$CONFIG_STATUS <<\EOF
2297
 
2298
{ (exit 0); exit 0; }
2299
EOF
2300
chmod +x $CONFIG_STATUS
2301
ac_clean_files=$ac_clean_files_save
2302
 
2303
# configure is writing to config.log, and then calls config.status.
2304
# config.status does its own redirection, appending to config.log.
2305
# Unfortunately, on DOS this fails, as config.log is still kept open
2306
# by configure, so config.status won't be able to write to it; its
2307
# output is simply discarded.  So we exec the FD to /dev/null,
2308
# effectively closing config.log, so it can be properly (re)opened and
2309
# appended to by config.status.  When coming back to configure, we
2310
# need to make the FD available again.
2311
if test "$no_create" != yes; then
2312
  ac_cs_success=:
2313
  exec 5>/dev/null
2314
  $SHELL $CONFIG_STATUS || ac_cs_success=false
2315
  exec 5>>config.log
2316
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2317
  # would make configure fail if this is the last instruction.
2318
  $ac_cs_success || { (exit 1); exit 1; }
2319
fi
2320
 
2321
#
2322
# CONFIG_SUBDIRS section.
2323
#
2324
if test "$no_recursion" != yes; then
2325
 
2326
  # Remove --cache-file and --srcdir arguments so they do not pile up.
2327
  ac_sub_configure_args=
2328
  ac_prev=
2329
  for ac_arg in $ac_configure_args; do
2330
    if test -n "$ac_prev"; then
2331
      ac_prev=
2332
      continue
2333
    fi
2334
    case $ac_arg in
2335
    -cache-file | --cache-file | --cache-fil | --cache-fi \
2336
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2337
      ac_prev=cache_file ;;
2338
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2339
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
2340
    | --c=*)
2341
      ;;
2342
    --config-cache | -C)
2343
      ;;
2344
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2345
      ac_prev=srcdir ;;
2346
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2347
      ;;
2348
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2349
    esac
2350
  done
2351
 
2352
  for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
2353
 
2354
    # Do not complain, so a configure script can configure whichever
2355
    # parts of a large source tree are present.
2356
    test -d $srcdir/$ac_subdir || continue
2357
 
2358
    { echo "$as_me:2358: configuring in $ac_subdir" >&5
2359
echo "$as_me: configuring in $ac_subdir" >&6;}
2360
    case $srcdir in
2361
    .) ;;
2362
    *) { case "./$ac_subdir" in
2363
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2364
  *)                      as_incr_dir=.;;
2365
esac
2366
as_dummy="./$ac_subdir"
2367
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2368
  case $as_mkdir_dir in
2369
    # Skip DOS drivespec
2370
    ?:) as_incr_dir=$as_mkdir_dir ;;
2371
    *)
2372
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
2373
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2374
    ;;
2375
  esac
2376
done; }
2377
 
2378
       if test -d ./$ac_subdir; then :;
2379
       else
2380
         { { echo "$as_me:2380: error: cannot create \`pwd\`/$ac_subdir" >&5
2381
echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
2382
   { (exit 1); exit 1; }; }
2383
       fi
2384
       ;;
2385
    esac
2386
 
2387
    ac_popdir=`pwd`
2388
    cd $ac_subdir
2389
 
2390
    # A "../" for each directory in /$ac_subdir.
2391
    ac_dots=`echo $ac_subdir |
2392
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
2393
 
2394
    case $srcdir in
2395
    .) # No --srcdir option.  We are building in place.
2396
      ac_sub_srcdir=$srcdir ;;
2397
    [\\/]* | ?:[\\/]* ) # Absolute path.
2398
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
2399
    *) # Relative path.
2400
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
2401
    esac
2402
 
2403
    # Check for guested configure; otherwise get Cygnus style configure.
2404
    if test -f $ac_sub_srcdir/configure.gnu; then
2405
      ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
2406
    elif test -f $ac_sub_srcdir/configure; then
2407
      ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
2408
    elif test -f $ac_sub_srcdir/configure.in; then
2409
      ac_sub_configure=$ac_configure
2410
    else
2411
      { echo "$as_me:2411: WARNING: no configuration information is in $ac_subdir" >&5
2412
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
2413
      ac_sub_configure=
2414
    fi
2415
 
2416
    # The recursion is here.
2417
    if test -n "$ac_sub_configure"; then
2418
      # Make the cache file name correct relative to the subdirectory.
2419
      case $cache_file in
2420
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2421
      *) # Relative path.
2422
        ac_sub_cache_file=$ac_dots$cache_file ;;
2423
      esac
2424
 
2425
      { echo "$as_me:2425: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
2426
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
2427
      # The eval makes quoting arguments work.
2428
      eval $ac_sub_configure $ac_sub_configure_args \
2429
           --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
2430
        { { echo "$as_me:2430: error: $ac_sub_configure failed for $ac_subdir" >&5
2431
echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
2432
   { (exit 1); exit 1; }; }
2433
    fi
2434
 
2435
    cd $ac_popdir
2436
  done
2437
fi
2438
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.