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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [arm/] [armulator/] [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-arm-armulator 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="bsp_specs"
110
ac_default_prefix=/opt/rtems
111
 
112
# Initialize some variables set by options.
113
ac_init_help=
114
ac_init_version=false
115
# The variables have the same names as the options, with
116
# dashes changed to underlines.
117
cache_file=/dev/null
118
exec_prefix=NONE
119
no_create=
120
no_recursion=
121
prefix=NONE
122
program_prefix=NONE
123
program_suffix=NONE
124
program_transform_name=s,x,x,
125
silent=
126
site=
127
srcdir=
128
verbose=
129
x_includes=NONE
130
x_libraries=NONE
131
 
132
# Installation directory options.
133
# These are left unexpanded so users can "make install exec_prefix=/foo"
134
# and all the variables that are supposed to be based on exec_prefix
135
# by default will actually change.
136
# Use braces instead of parens because sh, perl, etc. also accept them.
137
bindir='${exec_prefix}/bin'
138
sbindir='${exec_prefix}/sbin'
139
libexecdir='${exec_prefix}/libexec'
140
datadir='${prefix}/share'
141
sysconfdir='${prefix}/etc'
142
sharedstatedir='${prefix}/com'
143
localstatedir='${prefix}/var'
144
libdir='${exec_prefix}/lib'
145
includedir='${prefix}/include'
146
oldincludedir='/usr/include'
147
infodir='${prefix}/info'
148
mandir='${prefix}/man'
149
 
150
# Identity of this package.
151
PACKAGE_NAME='rtems-c-src-lib-libbsp-arm-armulator'
152
PACKAGE_TARNAME='rtems-c-src-lib-libbsp-arm-armulator'
153
PACKAGE_VERSION='ss-20020807'
154
PACKAGE_STRING='rtems-c-src-lib-libbsp-arm-armulator ss-20020807'
155
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
156
 
157
ac_prev=
158
for ac_option
159
do
160
  # If the previous option needs an argument, assign it.
161
  if test -n "$ac_prev"; then
162
    eval "$ac_prev=\$ac_option"
163
    ac_prev=
164
    continue
165
  fi
166
 
167
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168
 
169
  # Accept the important Cygnus configure options, so we can diagnose typos.
170
 
171
  case $ac_option in
172
 
173
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
174
    ac_prev=bindir ;;
175
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176
    bindir=$ac_optarg ;;
177
 
178
  -build | --build | --buil | --bui | --bu)
179
    ac_prev=build_alias ;;
180
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
181
    build_alias=$ac_optarg ;;
182
 
183
  -cache-file | --cache-file | --cache-fil | --cache-fi \
184
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
185
    ac_prev=cache_file ;;
186
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
187
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
188
    cache_file=$ac_optarg ;;
189
 
190
  --config-cache | -C)
191
    cache_file=config.cache ;;
192
 
193
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194
    ac_prev=datadir ;;
195
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196
  | --da=*)
197
    datadir=$ac_optarg ;;
198
 
199
  -disable-* | --disable-*)
200
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
201
    # Reject names that are not valid shell variable names.
202
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
203
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
204
   { (exit 1); exit 1; }; }
205
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
206
    eval "enable_$ac_feature=no" ;;
207
 
208
  -enable-* | --enable-*)
209
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
210
    # Reject names that are not valid shell variable names.
211
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
212
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
213
   { (exit 1); exit 1; }; }
214
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
215
    case $ac_option in
216
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217
      *) ac_optarg=yes ;;
218
    esac
219
    eval "enable_$ac_feature='$ac_optarg'" ;;
220
 
221
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
222
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
223
  | --exec | --exe | --ex)
224
    ac_prev=exec_prefix ;;
225
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
226
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
227
  | --exec=* | --exe=* | --ex=*)
228
    exec_prefix=$ac_optarg ;;
229
 
230
  -gas | --gas | --ga | --g)
231
    # Obsolete; use --with-gas.
232
    with_gas=yes ;;
233
 
234
  -help | --help | --hel | --he | -h)
235
    ac_init_help=long ;;
236
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
237
    ac_init_help=recursive ;;
238
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
239
    ac_init_help=short ;;
240
 
241
  -host | --host | --hos | --ho)
242
    ac_prev=host_alias ;;
243
  -host=* | --host=* | --hos=* | --ho=*)
244
    host_alias=$ac_optarg ;;
245
 
246
  -includedir | --includedir | --includedi | --included | --include \
247
  | --includ | --inclu | --incl | --inc)
248
    ac_prev=includedir ;;
249
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250
  | --includ=* | --inclu=* | --incl=* | --inc=*)
251
    includedir=$ac_optarg ;;
252
 
253
  -infodir | --infodir | --infodi | --infod | --info | --inf)
254
    ac_prev=infodir ;;
255
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256
    infodir=$ac_optarg ;;
257
 
258
  -libdir | --libdir | --libdi | --libd)
259
    ac_prev=libdir ;;
260
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
261
    libdir=$ac_optarg ;;
262
 
263
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264
  | --libexe | --libex | --libe)
265
    ac_prev=libexecdir ;;
266
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267
  | --libexe=* | --libex=* | --libe=*)
268
    libexecdir=$ac_optarg ;;
269
 
270
  -localstatedir | --localstatedir | --localstatedi | --localstated \
271
  | --localstate | --localstat | --localsta | --localst \
272
  | --locals | --local | --loca | --loc | --lo)
273
    ac_prev=localstatedir ;;
274
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277
    localstatedir=$ac_optarg ;;
278
 
279
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280
    ac_prev=mandir ;;
281
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282
    mandir=$ac_optarg ;;
283
 
284
  -nfp | --nfp | --nf)
285
    # Obsolete; use --without-fp.
286
    with_fp=no ;;
287
 
288
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289
  | --no-cr | --no-c)
290
    no_create=yes ;;
291
 
292
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294
    no_recursion=yes ;;
295
 
296
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298
  | --oldin | --oldi | --old | --ol | --o)
299
    ac_prev=oldincludedir ;;
300
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303
    oldincludedir=$ac_optarg ;;
304
 
305
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306
    ac_prev=prefix ;;
307
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308
    prefix=$ac_optarg ;;
309
 
310
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
311
  | --program-pre | --program-pr | --program-p)
312
    ac_prev=program_prefix ;;
313
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
314
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315
    program_prefix=$ac_optarg ;;
316
 
317
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
318
  | --program-suf | --program-su | --program-s)
319
    ac_prev=program_suffix ;;
320
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
321
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322
    program_suffix=$ac_optarg ;;
323
 
324
  -program-transform-name | --program-transform-name \
325
  | --program-transform-nam | --program-transform-na \
326
  | --program-transform-n | --program-transform- \
327
  | --program-transform | --program-transfor \
328
  | --program-transfo | --program-transf \
329
  | --program-trans | --program-tran \
330
  | --progr-tra | --program-tr | --program-t)
331
    ac_prev=program_transform_name ;;
332
  -program-transform-name=* | --program-transform-name=* \
333
  | --program-transform-nam=* | --program-transform-na=* \
334
  | --program-transform-n=* | --program-transform-=* \
335
  | --program-transform=* | --program-transfor=* \
336
  | --program-transfo=* | --program-transf=* \
337
  | --program-trans=* | --program-tran=* \
338
  | --progr-tra=* | --program-tr=* | --program-t=*)
339
    program_transform_name=$ac_optarg ;;
340
 
341
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342
  | -silent | --silent | --silen | --sile | --sil)
343
    silent=yes ;;
344
 
345
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346
    ac_prev=sbindir ;;
347
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348
  | --sbi=* | --sb=*)
349
    sbindir=$ac_optarg ;;
350
 
351
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
352
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353
  | --sharedst | --shareds | --shared | --share | --shar \
354
  | --sha | --sh)
355
    ac_prev=sharedstatedir ;;
356
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359
  | --sha=* | --sh=*)
360
    sharedstatedir=$ac_optarg ;;
361
 
362
  -site | --site | --sit)
363
    ac_prev=site ;;
364
  -site=* | --site=* | --sit=*)
365
    site=$ac_optarg ;;
366
 
367
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368
    ac_prev=srcdir ;;
369
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370
    srcdir=$ac_optarg ;;
371
 
372
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373
  | --syscon | --sysco | --sysc | --sys | --sy)
374
    ac_prev=sysconfdir ;;
375
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377
    sysconfdir=$ac_optarg ;;
378
 
379
  -target | --target | --targe | --targ | --tar | --ta | --t)
380
    ac_prev=target_alias ;;
381
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382
    target_alias=$ac_optarg ;;
383
 
384
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
385
    verbose=yes ;;
386
 
387
  -version | --version | --versio | --versi | --vers | -V)
388
    ac_init_version=: ;;
389
 
390
  -with-* | --with-*)
391
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
392
    # Reject names that are not valid shell variable names.
393
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394
      { echo "$as_me: error: invalid package name: $ac_package" >&2
395
   { (exit 1); exit 1; }; }
396
    ac_package=`echo $ac_package| sed 's/-/_/g'`
397
    case $ac_option in
398
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399
      *) ac_optarg=yes ;;
400
    esac
401
    eval "with_$ac_package='$ac_optarg'" ;;
402
 
403
  -without-* | --without-*)
404
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
405
    # Reject names that are not valid shell variable names.
406
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
      { echo "$as_me: error: invalid package name: $ac_package" >&2
408
   { (exit 1); exit 1; }; }
409
    ac_package=`echo $ac_package | sed 's/-/_/g'`
410
    eval "with_$ac_package=no" ;;
411
 
412
  --x)
413
    # Obsolete; use --with-x.
414
    with_x=yes ;;
415
 
416
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417
  | --x-incl | --x-inc | --x-in | --x-i)
418
    ac_prev=x_includes ;;
419
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421
    x_includes=$ac_optarg ;;
422
 
423
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
424
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425
    ac_prev=x_libraries ;;
426
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428
    x_libraries=$ac_optarg ;;
429
 
430
  -*) { echo "$as_me: error: unrecognized option: $ac_option
431
Try \`$0 --help' for more information." >&2
432
   { (exit 1); exit 1; }; }
433
    ;;
434
 
435
  *=*)
436
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
437
    # Reject names that are not valid shell variable names.
438
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
439
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
440
   { (exit 1); exit 1; }; }
441
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
442
    eval "$ac_envvar='$ac_optarg'"
443
    export $ac_envvar ;;
444
 
445
  *)
446
    # FIXME: should be removed in autoconf 3.0.
447
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
448
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
449
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
450
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
451
    ;;
452
 
453
  esac
454
done
455
 
456
if test -n "$ac_prev"; then
457
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
458
  { echo "$as_me: error: missing argument to $ac_option" >&2
459
   { (exit 1); exit 1; }; }
460
fi
461
 
462
# Be sure to have absolute paths.
463
for ac_var in exec_prefix prefix
464
do
465
  eval ac_val=$`echo $ac_var`
466
  case $ac_val in
467
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
468
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
469
   { (exit 1); exit 1; }; };;
470
  esac
471
done
472
 
473
# Be sure to have absolute paths.
474
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
475
              localstatedir libdir includedir oldincludedir infodir mandir
476
do
477
  eval ac_val=$`echo $ac_var`
478
  case $ac_val in
479
    [\\/$]* | ?:[\\/]* ) ;;
480
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
481
   { (exit 1); exit 1; }; };;
482
  esac
483
done
484
 
485
# There might be people who depend on the old broken behavior: `$host'
486
# used to hold the argument of --host etc.
487
build=$build_alias
488
host=$host_alias
489
target=$target_alias
490
 
491
# FIXME: should be removed in autoconf 3.0.
492
if test "x$host_alias" != x; then
493
  if test "x$build_alias" = x; then
494
    cross_compiling=maybe
495
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
496
    If a cross compiler is detected then cross compile mode will be used." >&2
497
  elif test "x$build_alias" != "x$host_alias"; then
498
    cross_compiling=yes
499
  fi
500
fi
501
 
502
ac_tool_prefix=
503
test -n "$host_alias" && ac_tool_prefix=$host_alias-
504
 
505
test "$silent" = yes && exec 6>/dev/null
506
 
507
# Find the source files, if location was not specified.
508
if test -z "$srcdir"; then
509
  ac_srcdir_defaulted=yes
510
  # Try the directory containing this script, then its parent.
511
  ac_prog=$0
512
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
513
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514
  srcdir=$ac_confdir
515
  if test ! -r $srcdir/$ac_unique_file; then
516
    srcdir=..
517
  fi
518
else
519
  ac_srcdir_defaulted=no
520
fi
521
if test ! -r $srcdir/$ac_unique_file; then
522
  if test "$ac_srcdir_defaulted" = yes; then
523
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
524
   { (exit 1); exit 1; }; }
525
  else
526
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
527
   { (exit 1); exit 1; }; }
528
  fi
529
fi
530
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
531
ac_env_build_alias_set=${build_alias+set}
532
ac_env_build_alias_value=$build_alias
533
ac_cv_env_build_alias_set=${build_alias+set}
534
ac_cv_env_build_alias_value=$build_alias
535
ac_env_host_alias_set=${host_alias+set}
536
ac_env_host_alias_value=$host_alias
537
ac_cv_env_host_alias_set=${host_alias+set}
538
ac_cv_env_host_alias_value=$host_alias
539
ac_env_target_alias_set=${target_alias+set}
540
ac_env_target_alias_value=$target_alias
541
ac_cv_env_target_alias_set=${target_alias+set}
542
ac_cv_env_target_alias_value=$target_alias
543
ac_env_RTEMS_BSP_set=${RTEMS_BSP+set}
544
ac_env_RTEMS_BSP_value=$RTEMS_BSP
545
ac_cv_env_RTEMS_BSP_set=${RTEMS_BSP+set}
546
ac_cv_env_RTEMS_BSP_value=$RTEMS_BSP
547
ac_env_CC_set=${CC+set}
548
ac_env_CC_value=$CC
549
ac_cv_env_CC_set=${CC+set}
550
ac_cv_env_CC_value=$CC
551
ac_env_CFLAGS_set=${CFLAGS+set}
552
ac_env_CFLAGS_value=$CFLAGS
553
ac_cv_env_CFLAGS_set=${CFLAGS+set}
554
ac_cv_env_CFLAGS_value=$CFLAGS
555
ac_env_LDFLAGS_set=${LDFLAGS+set}
556
ac_env_LDFLAGS_value=$LDFLAGS
557
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
558
ac_cv_env_LDFLAGS_value=$LDFLAGS
559
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
560
ac_env_CPPFLAGS_value=$CPPFLAGS
561
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
562
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
563
ac_env_CPP_set=${CPP+set}
564
ac_env_CPP_value=$CPP
565
ac_cv_env_CPP_set=${CPP+set}
566
ac_cv_env_CPP_value=$CPP
567
 
568
#
569
# Report the --help message.
570
#
571
if test "$ac_init_help" = "long"; then
572
  # Omit some internal or obsolete options to make the list less imposing.
573
  # This message is too long to be a string in the A/UX 3.1 sh.
574
  cat <
575
\`configure' configures rtems-c-src-lib-libbsp-arm-armulator ss-20020807 to adapt to many kinds of systems.
576
 
577
Usage: $0 [OPTION]... [VAR=VALUE]...
578
 
579
To assign environment variables (e.g., CC, CFLAGS...), specify them as
580
VAR=VALUE.  See below for descriptions of some of the useful variables.
581
 
582
Defaults for the options are specified in brackets.
583
 
584
Configuration:
585
  -h, --help              display this help and exit
586
      --help=short        display options specific to this package
587
      --help=recursive    display the short help of all the included packages
588
  -V, --version           display version information and exit
589
  -q, --quiet, --silent   do not print \`checking...' messages
590
      --cache-file=FILE   cache test results in FILE [disabled]
591
  -C, --config-cache      alias for \`--cache-file=config.cache'
592
  -n, --no-create         do not create output files
593
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
594
 
595
EOF
596
 
597
  cat <
598
Installation directories:
599
  --prefix=PREFIX         install architecture-independent files in PREFIX
600
                          [$ac_default_prefix]
601
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
602
                          [PREFIX]
603
 
604
By default, \`make install' will install all the files in
605
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
606
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
607
for instance \`--prefix=\$HOME'.
608
 
609
For better control, use the options below.
610
 
611
Fine tuning of the installation directories:
612
  --bindir=DIR           user executables [EPREFIX/bin]
613
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
614
  --libexecdir=DIR       program executables [EPREFIX/libexec]
615
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
616
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
617
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
618
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
619
  --libdir=DIR           object code libraries [EPREFIX/lib]
620
  --includedir=DIR       C header files [PREFIX/include]
621
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
622
  --infodir=DIR          info documentation [PREFIX/info]
623
  --mandir=DIR           man documentation [PREFIX/man]
624
EOF
625
 
626
  cat <<\EOF
627
 
628
Program names:
629
  --program-prefix=PREFIX            prepend PREFIX to installed program names
630
  --program-suffix=SUFFIX            append SUFFIX to installed program names
631
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
632
 
633
System types:
634
  --build=BUILD     configure for building on BUILD [guessed]
635
  --host=HOST       build programs to run on HOST [BUILD]
636
  --target=TARGET   configure for building compilers for TARGET [HOST]
637
EOF
638
fi
639
 
640
if test -n "$ac_init_help"; then
641
  case $ac_init_help in
642
     short | recursive ) echo "Configuration of rtems-c-src-lib-libbsp-arm-armulator ss-20020807:";;
643
   esac
644
  cat <<\EOF
645
 
646
Optional Features:
647
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
648
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
649
  --enable-maintainer-mode enable make rules and dependencies not useful
650
                          (and sometimes confusing) to the casual installer
651
  --enable-bare-cpu-cflags
652
                          specify a particular cpu cflag (bare bsp specific)
653
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
654
  --enable-multilib       build many library versions (default=no)
655
  --enable-multiprocessing
656
                          enable multiprocessing interface
657
  --disable-dependency-tracking Speeds up one-time builds
658
  --enable-dependency-tracking  Do not reject slow dependency extractors
659
 
660
Some influential environment variables:
661
  RTEMS_BSP   RTEMS_BSP to build
662
  CC          C compiler command
663
  CFLAGS      C compiler flags
664
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
665
              nonstandard directory 
666
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
667
              headers in a nonstandard directory 
668
  CPP         C preprocessor
669
  ARM_RDI_MONITOR
670
              If defined enable Angel monitor support
671
  ARM_RDP_MONITOR
672
              If defined enable Demon monitor support
673
 
674
Use these variables to override the choices made by `configure' or to help
675
it to find libraries and programs with nonstandard names/locations.
676
 
677
Report bugs to .
678
EOF
679
fi
680
 
681
if test "$ac_init_help" = "recursive"; then
682
  # If there are subdirs, report their specific --help.
683
  ac_popdir=`pwd`
684
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
685
    cd $ac_subdir
686
    # A "../" for each directory in /$ac_subdir.
687
    ac_dots=`echo $ac_subdir |
688
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
689
 
690
    case $srcdir in
691
    .) # No --srcdir option.  We are building in place.
692
      ac_sub_srcdir=$srcdir ;;
693
    [\\/]* | ?:[\\/]* ) # Absolute path.
694
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
695
    *) # Relative path.
696
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
697
    esac
698
 
699
    # Check for guested configure; otherwise get Cygnus style configure.
700
    if test -f $ac_sub_srcdir/configure.gnu; then
701
      echo
702
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
703
    elif test -f $ac_sub_srcdir/configure; then
704
      echo
705
      $SHELL $ac_sub_srcdir/configure  --help=recursive
706
    elif test -f $ac_sub_srcdir/configure.ac ||
707
           test -f $ac_sub_srcdir/configure.in; then
708
      echo
709
      $ac_configure --help
710
    else
711
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
712
    fi
713
    cd $ac_popdir
714
  done
715
fi
716
 
717
test -n "$ac_init_help" && exit 0
718
if $ac_init_version; then
719
  cat <<\EOF
720
rtems-c-src-lib-libbsp-arm-armulator configure ss-20020807
721
generated by GNU Autoconf 2.52
722
 
723
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
724
Free Software Foundation, Inc.
725
This configure script is free software; the Free Software Foundation
726
gives unlimited permission to copy, distribute and modify it.
727
EOF
728
  exit 0
729
fi
730
exec 5>config.log
731
cat >&5 <
732
This file contains any messages produced by compilers while
733
running configure, to aid debugging if configure makes a mistake.
734
 
735
It was created by rtems-c-src-lib-libbsp-arm-armulator $as_me ss-20020807, which was
736
generated by GNU Autoconf 2.52.  Invocation command line was
737
 
738
  $ $0 $@
739
 
740
EOF
741
{
742
cat <<_ASUNAME
743
## ---------- ##
744
## Platform.  ##
745
## ---------- ##
746
 
747
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
748
uname -m = `(uname -m) 2>/dev/null || echo unknown`
749
uname -r = `(uname -r) 2>/dev/null || echo unknown`
750
uname -s = `(uname -s) 2>/dev/null || echo unknown`
751
uname -v = `(uname -v) 2>/dev/null || echo unknown`
752
 
753
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
754
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
755
 
756
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
757
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
758
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
759
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
760
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
761
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
762
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
763
 
764
PATH = $PATH
765
 
766
_ASUNAME
767
} >&5
768
 
769
cat >&5 <
770
## ------------ ##
771
## Core tests.  ##
772
## ------------ ##
773
 
774
EOF
775
 
776
# Keep a trace of the command line.
777
# Strip out --no-create and --no-recursion so they do not pile up.
778
# Also quote any args containing shell meta-characters.
779
ac_configure_args=
780
ac_sep=
781
for ac_arg
782
do
783
  case $ac_arg in
784
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
785
  | --no-cr | --no-c) ;;
786
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
787
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
788
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
789
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
790
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
791
    ac_sep=" " ;;
792
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
793
     ac_sep=" " ;;
794
  esac
795
  # Get rid of the leading space.
796
done
797
 
798
# When interrupted or exit'd, cleanup temporary files, and complete
799
# config.log.  We remove comments because anyway the quotes in there
800
# would cause problems or look ugly.
801
trap 'exit_status=$?
802
  # Save into config.log some information that might help in debugging.
803
  echo >&5
804
  echo "## ----------------- ##" >&5
805
  echo "## Cache variables.  ##" >&5
806
  echo "## ----------------- ##" >&5
807
  echo >&5
808
  # The following way of writing the cache mishandles newlines in values,
809
{
810
  (set) 2>&1 |
811
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
812
    *ac_space=\ *)
813
      sed -n \
814
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
815
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
816
      ;;
817
    *)
818
      sed -n \
819
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
820
      ;;
821
    esac;
822
} >&5
823
  sed "/^$/d" confdefs.h >conftest.log
824
  if test -s conftest.log; then
825
    echo >&5
826
    echo "## ------------ ##" >&5
827
    echo "## confdefs.h.  ##" >&5
828
    echo "## ------------ ##" >&5
829
    echo >&5
830
    cat conftest.log >&5
831
  fi
832
  (echo; echo) >&5
833
  test "$ac_signal" != 0 &&
834
    echo "$as_me: caught signal $ac_signal" >&5
835
  echo "$as_me: exit $exit_status" >&5
836
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
837
    exit $exit_status
838
     ' 0
839
for ac_signal in 1 2 13 15; do
840
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
841
done
842
ac_signal=0
843
 
844
# confdefs.h avoids OS command line length limits that DEFS can exceed.
845
rm -rf conftest* confdefs.h
846
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
847
echo >confdefs.h
848
 
849
# Let the site file select an alternate cache file if it wants to.
850
# Prefer explicitly selected file to automatically selected ones.
851
if test -z "$CONFIG_SITE"; then
852
  if test "x$prefix" != xNONE; then
853
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
854
  else
855
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
856
  fi
857
fi
858
for ac_site_file in $CONFIG_SITE; do
859
  if test -r "$ac_site_file"; then
860
    { echo "$as_me:860: loading site script $ac_site_file" >&5
861
echo "$as_me: loading site script $ac_site_file" >&6;}
862
    cat "$ac_site_file" >&5
863
    . "$ac_site_file"
864
  fi
865
done
866
 
867
if test -r "$cache_file"; then
868
  # Some versions of bash will fail to source /dev/null (special
869
  # files actually), so we avoid doing that.
870
  if test -f "$cache_file"; then
871
    { echo "$as_me:871: loading cache $cache_file" >&5
872
echo "$as_me: loading cache $cache_file" >&6;}
873
    case $cache_file in
874
      [\\/]* | ?:[\\/]* ) . $cache_file;;
875
      *)                      . ./$cache_file;;
876
    esac
877
  fi
878
else
879
  { echo "$as_me:879: creating cache $cache_file" >&5
880
echo "$as_me: creating cache $cache_file" >&6;}
881
  >$cache_file
882
fi
883
 
884
# Check that the precious variables saved in the cache have kept the same
885
# value.
886
ac_cache_corrupted=false
887
for ac_var in `(set) 2>&1 |
888
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
889
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
890
  eval ac_new_set=\$ac_env_${ac_var}_set
891
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
892
  eval ac_new_val="\$ac_env_${ac_var}_value"
893
  case $ac_old_set,$ac_new_set in
894
    set,)
895
      { echo "$as_me:895: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
896
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
897
      ac_cache_corrupted=: ;;
898
    ,set)
899
      { echo "$as_me:899: error: \`$ac_var' was not set in the previous run" >&5
900
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
901
      ac_cache_corrupted=: ;;
902
    ,);;
903
    *)
904
      if test "x$ac_old_val" != "x$ac_new_val"; then
905
        { echo "$as_me:905: error: \`$ac_var' has changed since the previous run:" >&5
906
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
907
        { echo "$as_me:907:   former value:  $ac_old_val" >&5
908
echo "$as_me:   former value:  $ac_old_val" >&2;}
909
        { echo "$as_me:909:   current value: $ac_new_val" >&5
910
echo "$as_me:   current value: $ac_new_val" >&2;}
911
        ac_cache_corrupted=:
912
      fi;;
913
  esac
914
  # Pass precious variables to config.status.  It doesn't matter if
915
  # we pass some twice (in addition to the command line arguments).
916
  if test "$ac_new_set" = set; then
917
    case $ac_new_val in
918
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
919
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
920
      ac_configure_args="$ac_configure_args '$ac_arg'"
921
      ;;
922
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
923
       ;;
924
    esac
925
  fi
926
done
927
if $ac_cache_corrupted; then
928
  { echo "$as_me:928: error: changes in the environment can compromise the build" >&5
929
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
930
  { { echo "$as_me:930: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
931
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
932
   { (exit 1); exit 1; }; }
933
fi
934
 
935
ac_ext=c
936
ac_cpp='$CPP $CPPFLAGS'
937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
940
 
941
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
942
  *c*,-n*) ECHO_N= ECHO_C='
943
' ECHO_T='      ' ;;
944
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
945
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
946
esac
947
echo "#! $SHELL" >conftest.sh
948
echo  "exit 0"   >>conftest.sh
949
chmod +x conftest.sh
950
if { (echo "$as_me:950: PATH=\".;.\"; conftest.sh") >&5
951
  (PATH=".;."; conftest.sh) 2>&5
952
  ac_status=$?
953
  echo "$as_me:953: \$? = $ac_status" >&5
954
  (exit $ac_status); }; then
955
  ac_path_separator=';'
956
else
957
  ac_path_separator=:
958
fi
959
PATH_SEPARATOR="$ac_path_separator"
960
rm -f conftest.sh
961
 
962
for ac_prog in gmake make
963
do
964
  # Extract the first word of "$ac_prog", so it can be a program name with args.
965
set dummy $ac_prog; ac_word=$2
966
echo "$as_me:966: checking for $ac_word" >&5
967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
968
if test "${ac_cv_prog_MAKE+set}" = set; then
969
  echo $ECHO_N "(cached) $ECHO_C" >&6
970
else
971
  if test -n "$MAKE"; then
972
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
973
else
974
  ac_save_IFS=$IFS; IFS=$ac_path_separator
975
ac_dummy="$PATH"
976
for ac_dir in $ac_dummy; do
977
  IFS=$ac_save_IFS
978
  test -z "$ac_dir" && ac_dir=.
979
  $as_executable_p "$ac_dir/$ac_word" || continue
980
ac_cv_prog_MAKE="$ac_prog"
981
echo "$as_me:981: found $ac_dir/$ac_word" >&5
982
break
983
done
984
 
985
fi
986
fi
987
MAKE=$ac_cv_prog_MAKE
988
if test -n "$MAKE"; then
989
  echo "$as_me:989: result: $MAKE" >&5
990
echo "${ECHO_T}$MAKE" >&6
991
else
992
  echo "$as_me:992: result: no" >&5
993
echo "${ECHO_T}no" >&6
994
fi
995
 
996
  test -n "$MAKE" && break
997
done
998
 
999
ENDIF=endif
1000
 
1001
RTEMS_TOPdir="../../../../../..";
1002
 
1003
test -n "$with_target_subdir" || with_target_subdir="."
1004
 
1005
if test "$with_target_subdir" = "." ; then
1006
# Native
1007
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
1008
else
1009
# Cross
1010
dots=`echo $with_target_subdir|\
1011
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1012
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
1013
fi
1014
 
1015
if test "$with_target_subdir" = "." ; then
1016
# Native
1017
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1018
else
1019
# Cross
1020
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1021
fi
1022
 
1023
echo "$as_me:1023: checking for RTEMS Version" >&5
1024
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
1025
if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then
1026
  :
1027
else
1028
  { { echo "$as_me:1028: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5
1029
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;}
1030
   { (exit 1); exit 1; }; }
1031
fi
1032
 
1033
echo "$as_me:1033: result: ss-20020807" >&5
1034
echo "${ECHO_T}ss-20020807" >&6
1035
 
1036
ac_aux_dir=
1037
for ac_dir in ../../../../../.. $srcdir/../../../../../..; do
1038
  if test -f $ac_dir/install-sh; then
1039
    ac_aux_dir=$ac_dir
1040
    ac_install_sh="$ac_aux_dir/install-sh -c"
1041
    break
1042
  elif test -f $ac_dir/install.sh; then
1043
    ac_aux_dir=$ac_dir
1044
    ac_install_sh="$ac_aux_dir/install.sh -c"
1045
    break
1046
  elif test -f $ac_dir/shtool; then
1047
    ac_aux_dir=$ac_dir
1048
    ac_install_sh="$ac_aux_dir/shtool install -c"
1049
    break
1050
  fi
1051
done
1052
if test -z "$ac_aux_dir"; then
1053
  { { echo "$as_me:1053: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&5
1054
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&2;}
1055
   { (exit 1); exit 1; }; }
1056
fi
1057
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1058
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1059
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1060
 
1061
# Make sure we can run config.sub.
1062
$ac_config_sub sun4 >/dev/null 2>&1 ||
1063
  { { echo "$as_me:1063: error: cannot run $ac_config_sub" >&5
1064
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1065
   { (exit 1); exit 1; }; }
1066
 
1067
echo "$as_me:1067: checking build system type" >&5
1068
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1069
if test "${ac_cv_build+set}" = set; then
1070
  echo $ECHO_N "(cached) $ECHO_C" >&6
1071
else
1072
  ac_cv_build_alias=$build_alias
1073
test -z "$ac_cv_build_alias" &&
1074
  ac_cv_build_alias=`$ac_config_guess`
1075
test -z "$ac_cv_build_alias" &&
1076
  { { echo "$as_me:1076: error: cannot guess build type; you must specify one" >&5
1077
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1078
   { (exit 1); exit 1; }; }
1079
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1080
  { { echo "$as_me:1080: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1081
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1082
   { (exit 1); exit 1; }; }
1083
 
1084
fi
1085
echo "$as_me:1085: result: $ac_cv_build" >&5
1086
echo "${ECHO_T}$ac_cv_build" >&6
1087
build=$ac_cv_build
1088
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1089
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1090
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1091
 
1092
echo "$as_me:1092: checking host system type" >&5
1093
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1094
if test "${ac_cv_host+set}" = set; then
1095
  echo $ECHO_N "(cached) $ECHO_C" >&6
1096
else
1097
  ac_cv_host_alias=$host_alias
1098
test -z "$ac_cv_host_alias" &&
1099
  ac_cv_host_alias=$ac_cv_build_alias
1100
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1101
  { { echo "$as_me:1101: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1102
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1103
   { (exit 1); exit 1; }; }
1104
 
1105
fi
1106
echo "$as_me:1106: result: $ac_cv_host" >&5
1107
echo "${ECHO_T}$ac_cv_host" >&6
1108
host=$ac_cv_host
1109
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1110
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1111
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1112
 
1113
echo "$as_me:1113: checking target system type" >&5
1114
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1115
if test "${ac_cv_target+set}" = set; then
1116
  echo $ECHO_N "(cached) $ECHO_C" >&6
1117
else
1118
  ac_cv_target_alias=$target_alias
1119
test "x$ac_cv_target_alias" = "x" &&
1120
  ac_cv_target_alias=$ac_cv_host_alias
1121
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1122
  { { echo "$as_me:1122: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1123
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1124
   { (exit 1); exit 1; }; }
1125
 
1126
fi
1127
echo "$as_me:1127: result: $ac_cv_target" >&5
1128
echo "${ECHO_T}$ac_cv_target" >&6
1129
target=$ac_cv_target
1130
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1131
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1132
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1133
 
1134
# The aliases save the names the user supplied, while $host etc.
1135
# will get canonicalized.
1136
test -n "$target_alias" &&
1137
  test "$program_prefix$program_suffix$program_transform_name" = \
1138
    NONENONEs,x,x, &&
1139
  program_prefix=${target_alias}-
1140
echo "$as_me:1140: checking rtems target cpu" >&5
1141
echo $ECHO_N "checking rtems target cpu... $ECHO_C" >&6
1142
case "${target}" in
1143
  # hpux unix port should go here
1144
  i[34567]86-*linux*)           # unix "simulator" port
1145
        RTEMS_CPU=unix
1146
        ;;
1147
  i[34567]86-*freebsd*)         # unix "simulator" port
1148
        RTEMS_CPU=unix
1149
        ;;
1150
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1151
        RTEMS_CPU=unix
1152
        ;;
1153
  no_cpu-*rtems*)
1154
        RTEMS_CPU=no_cpu
1155
        ;;
1156
  sparc-sun-solaris*)           # unix "simulator" port
1157
        RTEMS_CPU=unix
1158
        ;;
1159
  *)
1160
        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1161
        ;;
1162
esac
1163
 
1164
echo "$as_me:1164: result: $RTEMS_CPU" >&5
1165
echo "${ECHO_T}$RTEMS_CPU" >&6
1166
 
1167
am__api_version="1.6"
1168
# Find a good install program.  We prefer a C program (faster),
1169
# so one script is as good as another.  But avoid the broken or
1170
# incompatible versions:
1171
# SysV /etc/install, /usr/sbin/install
1172
# SunOS /usr/etc/install
1173
# IRIX /sbin/install
1174
# AIX /bin/install
1175
# AmigaOS /C/install, which installs bootblocks on floppy discs
1176
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1177
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1178
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1179
# ./install, which can be erroneously created by make from ./install.sh.
1180
echo "$as_me:1180: checking for a BSD compatible install" >&5
1181
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1182
if test -z "$INSTALL"; then
1183
if test "${ac_cv_path_install+set}" = set; then
1184
  echo $ECHO_N "(cached) $ECHO_C" >&6
1185
else
1186
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1187
  for ac_dir in $PATH; do
1188
    IFS=$ac_save_IFS
1189
    # Account for people who put trailing slashes in PATH elements.
1190
    case $ac_dir/ in
1191
    / | ./ | .// | /cC/* \
1192
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1193
    | /usr/ucb/* ) ;;
1194
    *)
1195
      # OSF1 and SCO ODT 3.0 have their own names for install.
1196
      # Don't use installbsd from OSF since it installs stuff as root
1197
      # by default.
1198
      for ac_prog in ginstall scoinst install; do
1199
        if $as_executable_p "$ac_dir/$ac_prog"; then
1200
          if test $ac_prog = install &&
1201
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1202
            # AIX install.  It has an incompatible calling convention.
1203
            :
1204
          elif test $ac_prog = install &&
1205
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1206
            # program-specific install script used by HP pwplus--don't use.
1207
            :
1208
          else
1209
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1210
            break 2
1211
          fi
1212
        fi
1213
      done
1214
      ;;
1215
    esac
1216
  done
1217
 
1218
fi
1219
  if test "${ac_cv_path_install+set}" = set; then
1220
    INSTALL=$ac_cv_path_install
1221
  else
1222
    # As a last resort, use the slow shell script.  We don't cache a
1223
    # path for INSTALL within a source directory, because that will
1224
    # break other packages using the cache if that directory is
1225
    # removed, or if the path is relative.
1226
    INSTALL=$ac_install_sh
1227
  fi
1228
fi
1229
echo "$as_me:1229: result: $INSTALL" >&5
1230
echo "${ECHO_T}$INSTALL" >&6
1231
 
1232
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1233
# It thinks the first close brace ends the variable substitution.
1234
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1235
 
1236
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1237
 
1238
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1239
 
1240
echo "$as_me:1240: checking whether build environment is sane" >&5
1241
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1242
# Just in case
1243
sleep 1
1244
echo timestamp > conftest.file
1245
# Do `set' in a subshell so we don't clobber the current shell's
1246
# arguments.  Must try -L first in case configure is actually a
1247
# symlink; some systems play weird games with the mod time of symlinks
1248
# (eg FreeBSD returns the mod time of the symlink's containing
1249
# directory).
1250
if (
1251
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1252
   if test "$*" = "X"; then
1253
      # -L didn't work.
1254
      set X `ls -t $srcdir/configure conftest.file`
1255
   fi
1256
   rm -f conftest.file
1257
   if test "$*" != "X $srcdir/configure conftest.file" \
1258
      && test "$*" != "X conftest.file $srcdir/configure"; then
1259
 
1260
      # If neither matched, then we have a broken ls.  This can happen
1261
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1262
      # broken ls alias from the environment.  This has actually
1263
      # happened.  Such a system could not be considered "sane".
1264
      { { echo "$as_me:1264: error: ls -t appears to fail.  Make sure there is not a broken
1265
alias in your environment" >&5
1266
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1267
alias in your environment" >&2;}
1268
   { (exit 1); exit 1; }; }
1269
   fi
1270
 
1271
   test "$2" = conftest.file
1272
   )
1273
then
1274
   # Ok.
1275
   :
1276
else
1277
   { { echo "$as_me:1277: error: newly created file is older than distributed files!
1278
Check your system clock" >&5
1279
echo "$as_me: error: newly created file is older than distributed files!
1280
Check your system clock" >&2;}
1281
   { (exit 1); exit 1; }; }
1282
fi
1283
echo "$as_me:1283: result: yes" >&5
1284
echo "${ECHO_T}yes" >&6
1285
test "$program_prefix" != NONE &&
1286
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1287
# Use a double $ so make ignores it.
1288
test "$program_suffix" != NONE &&
1289
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1290
# Double any \ or $.  echo might interpret backslashes.
1291
# By default was `s,x,x', remove it if useless.
1292
cat <<\_ACEOF >conftest.sed
1293
s/[\\$]/&&/g;s/;s,x,x,$//
1294
_ACEOF
1295
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1296
rm conftest.sed
1297
 
1298
# expand $ac_aux_dir to an absolute path
1299
am_aux_dir=`cd $ac_aux_dir && pwd`
1300
 
1301
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1302
# Use eval to expand $SHELL
1303
if eval "$MISSING --run true"; then
1304
  am_missing_run="$MISSING --run "
1305
else
1306
  am_missing_run=
1307
  { echo "$as_me:1307: WARNING: \`missing' script is too old or missing" >&5
1308
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1309
fi
1310
 
1311
for ac_prog in mawk gawk nawk awk
1312
do
1313
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1314
set dummy $ac_prog; ac_word=$2
1315
echo "$as_me:1315: checking for $ac_word" >&5
1316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317
if test "${ac_cv_prog_AWK+set}" = set; then
1318
  echo $ECHO_N "(cached) $ECHO_C" >&6
1319
else
1320
  if test -n "$AWK"; then
1321
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1322
else
1323
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1324
ac_dummy="$PATH"
1325
for ac_dir in $ac_dummy; do
1326
  IFS=$ac_save_IFS
1327
  test -z "$ac_dir" && ac_dir=.
1328
  $as_executable_p "$ac_dir/$ac_word" || continue
1329
ac_cv_prog_AWK="$ac_prog"
1330
echo "$as_me:1330: found $ac_dir/$ac_word" >&5
1331
break
1332
done
1333
 
1334
fi
1335
fi
1336
AWK=$ac_cv_prog_AWK
1337
if test -n "$AWK"; then
1338
  echo "$as_me:1338: result: $AWK" >&5
1339
echo "${ECHO_T}$AWK" >&6
1340
else
1341
  echo "$as_me:1341: result: no" >&5
1342
echo "${ECHO_T}no" >&6
1343
fi
1344
 
1345
  test -n "$AWK" && break
1346
done
1347
 
1348
echo "$as_me:1348: checking whether ${MAKE-make} sets \${MAKE}" >&5
1349
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1350
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1351
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1352
  echo $ECHO_N "(cached) $ECHO_C" >&6
1353
else
1354
  cat >conftest.make <<\EOF
1355
all:
1356
        @echo 'ac_maketemp="${MAKE}"'
1357
EOF
1358
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1359
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1360
if test -n "$ac_maketemp"; then
1361
  eval ac_cv_prog_make_${ac_make}_set=yes
1362
else
1363
  eval ac_cv_prog_make_${ac_make}_set=no
1364
fi
1365
rm -f conftest.make
1366
fi
1367
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1368
  echo "$as_me:1368: result: yes" >&5
1369
echo "${ECHO_T}yes" >&6
1370
  SET_MAKE=
1371
else
1372
  echo "$as_me:1372: result: no" >&5
1373
echo "${ECHO_T}no" >&6
1374
  SET_MAKE="MAKE=${MAKE-make}"
1375
fi
1376
 
1377
 # test to see if srcdir already configured
1378
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1379
   test -f $srcdir/config.status; then
1380
  { { echo "$as_me:1380: error: source directory already configured; run \"make distclean\" there first" >&5
1381
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1382
   { (exit 1); exit 1; }; }
1383
fi
1384
 
1385
# Define the identity of the package.
1386
 PACKAGE=rtems-c-src-lib-libbsp-arm-armulator
1387
 VERSION=ss-20020807
1388
 
1389
# Some tools Automake needs.
1390
 
1391
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1392
 
1393
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1394
 
1395
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1396
 
1397
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1398
 
1399
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1400
 
1401
AMTAR=${AMTAR-"${am_missing_run}tar"}
1402
 
1403
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1404
 
1405
# Installed binaries are usually stripped using `strip' when the user
1406
# run `make install-strip'.  However `strip' might not be the right
1407
# tool to use in cross-compilation environments, therefore Automake
1408
# will honor the `STRIP' environment variable to overrule this program.
1409
if test "$cross_compiling" != no; then
1410
  if test -n "$ac_tool_prefix"; then
1411
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1412
set dummy ${ac_tool_prefix}strip; ac_word=$2
1413
echo "$as_me:1413: checking for $ac_word" >&5
1414
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415
if test "${ac_cv_prog_STRIP+set}" = set; then
1416
  echo $ECHO_N "(cached) $ECHO_C" >&6
1417
else
1418
  if test -n "$STRIP"; then
1419
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1420
else
1421
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1422
ac_dummy="$PATH"
1423
for ac_dir in $ac_dummy; do
1424
  IFS=$ac_save_IFS
1425
  test -z "$ac_dir" && ac_dir=.
1426
  $as_executable_p "$ac_dir/$ac_word" || continue
1427
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1428
echo "$as_me:1428: found $ac_dir/$ac_word" >&5
1429
break
1430
done
1431
 
1432
fi
1433
fi
1434
STRIP=$ac_cv_prog_STRIP
1435
if test -n "$STRIP"; then
1436
  echo "$as_me:1436: result: $STRIP" >&5
1437
echo "${ECHO_T}$STRIP" >&6
1438
else
1439
  echo "$as_me:1439: result: no" >&5
1440
echo "${ECHO_T}no" >&6
1441
fi
1442
 
1443
fi
1444
if test -z "$ac_cv_prog_STRIP"; then
1445
  ac_ct_STRIP=$STRIP
1446
  # Extract the first word of "strip", so it can be a program name with args.
1447
set dummy strip; ac_word=$2
1448
echo "$as_me:1448: checking for $ac_word" >&5
1449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1451
  echo $ECHO_N "(cached) $ECHO_C" >&6
1452
else
1453
  if test -n "$ac_ct_STRIP"; then
1454
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1455
else
1456
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1457
ac_dummy="$PATH"
1458
for ac_dir in $ac_dummy; do
1459
  IFS=$ac_save_IFS
1460
  test -z "$ac_dir" && ac_dir=.
1461
  $as_executable_p "$ac_dir/$ac_word" || continue
1462
ac_cv_prog_ac_ct_STRIP="strip"
1463
echo "$as_me:1463: found $ac_dir/$ac_word" >&5
1464
break
1465
done
1466
 
1467
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1468
fi
1469
fi
1470
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1471
if test -n "$ac_ct_STRIP"; then
1472
  echo "$as_me:1472: result: $ac_ct_STRIP" >&5
1473
echo "${ECHO_T}$ac_ct_STRIP" >&6
1474
else
1475
  echo "$as_me:1475: result: no" >&5
1476
echo "${ECHO_T}no" >&6
1477
fi
1478
 
1479
  STRIP=$ac_ct_STRIP
1480
else
1481
  STRIP="$ac_cv_prog_STRIP"
1482
fi
1483
 
1484
fi
1485
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1486
 
1487
# We need awk for the "check" target.  The system "awk" is bad on
1488
# some platforms.
1489
 
1490
# Is this a supported CPU?
1491
echo "$as_me:1491: checking if cpu $RTEMS_CPU is supported" >&5
1492
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
1493
# FIXME: Temporary hack
1494
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1495
  echo "$as_me:1495: result: yes" >&5
1496
echo "${ECHO_T}yes" >&6
1497
else
1498
  { { echo "$as_me:1498: error: no" >&5
1499
echo "$as_me: error: no" >&2;}
1500
   { (exit 1); exit 1; }; }
1501
fi
1502
 
1503
# Check whether --enable-multilib or --disable-multilib was given.
1504
if test "${enable_multilib+set}" = set; then
1505
  enableval="$enable_multilib"
1506
  case "${enableval}" in
1507
  yes) multilib=yes ;;
1508
  no)  multilib=no ;;
1509
  *)   { { echo "$as_me:1509: error: bad value ${enableval} for multilib option" >&5
1510
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1511
   { (exit 1); exit 1; }; } ;;
1512
 esac
1513
else
1514
  multilib=no
1515
fi;
1516
 
1517
if test x"${multilib}" = x"yes"; then
1518
  MULTILIB_TRUE=
1519
  MULTILIB_FALSE='#'
1520
else
1521
  MULTILIB_TRUE='#'
1522
  MULTILIB_FALSE=
1523
fi
1524
 
1525
# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
1526
if test "${enable_multiprocessing+set}" = set; then
1527
  enableval="$enable_multiprocessing"
1528
  case "${enable_multiprocessing}" in
1529
  yes) ;;
1530
  no) ;;
1531
  *)  { { echo "$as_me:1531: error: bad value ${enableval} for enable-multiprocessing option" >&5
1532
echo "$as_me: error: bad value ${enableval} for enable-multiprocessing option" >&2;}
1533
   { (exit 1); exit 1; }; } ;;
1534
esac
1535
else
1536
  enable_multiprocessing=no
1537
fi;
1538
 
1539
# account for "aliased" bsps which share source code
1540
  case $RTEMS_BSP in
1541
    simcpu32)     RTEMS_BSP_FAMILY=sim68000         ;; # BSVC CPU32 variant
1542
    c3xsim)       RTEMS_BSP_FAMILY=c4xsim           ;; # TI C3x Simulator in gdb
1543
    mcp750)       RTEMS_BSP_FAMILY=motorola_powerpc ;; # Motorola PPC board variant
1544
    mvme2307)     RTEMS_BSP_FAMILY=motorola_powerpc ;; # Motorola PPC board variant
1545
    mvme162lx)    RTEMS_BSP_FAMILY=mvme162          ;; # m68k - mvme162 board variant
1546
    gen68360_040) RTEMS_BSP_FAMILY=gen68360         ;; # m68k - 68360 in companion mode
1547
    p4600)        RTEMS_BSP_FAMILY=p4000            ;; # mips64orion - p4000 board w/IDT 4600
1548
    p4650)        RTEMS_BSP_FAMILY=p4000            ;; # mips64orion - p4000 board w/IDT 4650
1549
    mbx8*)        RTEMS_BSP_FAMILY=mbx8xx           ;; # MBX821/MBX860 board
1550
    pc386dx)      RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC w/o FPU
1551
    pc486)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with i486DX
1552
    pc586)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with Pentium
1553
    pc686)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with PentiumPro
1554
    pck6)         RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with K6
1555
    bare*)        RTEMS_BSP_FAMILY=bare             ;; # EXP: bare-aliases
1556
    erc32nfp)     RTEMS_BSP_FAMILY=erc32            ;; # erc32 without fpu
1557
    leon1)        RTEMS_BSP_FAMILY=leon             ;; # leon without fpu
1558
    leon2)        RTEMS_BSP_FAMILY=leon             ;; # leon with fpu
1559
    simsh7032)    RTEMS_BSP_FAMILY=shsim            ;; # SH7032 simulator
1560
    simsh7045)    RTEMS_BSP_FAMILY=shsim            ;; # SH7045 simulator
1561
    *)            RTEMS_BSP_FAMILY=$RTEMS_BSP;;
1562
  esac
1563
 
1564
  echo "$as_me:1564: checking whether to enable maintainer-specific portions of Makefiles" >&5
1565
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1566
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1567
if test "${enable_maintainer_mode+set}" = set; then
1568
  enableval="$enable_maintainer_mode"
1569
  USE_MAINTAINER_MODE=$enableval
1570
else
1571
  USE_MAINTAINER_MODE=no
1572
fi;
1573
  echo "$as_me:1573: result: $USE_MAINTAINER_MODE" >&5
1574
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1575
 
1576
if test $USE_MAINTAINER_MODE = yes; then
1577
  MAINTAINER_MODE_TRUE=
1578
  MAINTAINER_MODE_FALSE='#'
1579
else
1580
  MAINTAINER_MODE_TRUE='#'
1581
  MAINTAINER_MODE_FALSE=
1582
fi
1583
 
1584
  MAINT=$MAINTAINER_MODE_TRUE
1585
 
1586
echo "$as_me:1586: checking for RTEMS_BSP" >&5
1587
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1588
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1589
  echo $ECHO_N "(cached) $ECHO_C" >&6
1590
else
1591
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1592
 
1593
fi
1594
if test -z "$rtems_cv_RTEMS_BSP"; then
1595
  { { echo "$as_me:1595: error: Missing RTEMS_BSP" >&5
1596
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1597
   { (exit 1); exit 1; }; }
1598
fi
1599
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1600
echo "$as_me:1600: result: ${RTEMS_BSP}" >&5
1601
echo "${ECHO_T}${RTEMS_BSP}" >&6
1602
 
1603
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
1604
 
1605
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
1606
 
1607
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1608
 
1609
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
1610
 
1611
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
1612
 
1613
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1614
if test "${enable_bare_cpu_cflags+set}" = set; then
1615
  enableval="$enable_bare_cpu_cflags"
1616
  case "${enableval}" in
1617
  no) BARE_CPU_CFLAGS="" ;;
1618
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1619
esac
1620
else
1621
  BARE_CPU_CFLAGS=""
1622
fi;
1623
 
1624
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1625
if test "${enable_bare_cpu_model+set}" = set; then
1626
  enableval="$enable_bare_cpu_model"
1627
  case "${enableval}" in
1628
  no)   BARE_CPU_MODEL="" ;;
1629
  *)    BARE_CPU_MODEL="${enableval}" ;;
1630
esac
1631
else
1632
  BARE_CPU_MODEL=""
1633
fi;
1634
 
1635
if false; then
1636
  MULTILIB_TRUE=
1637
  MULTILIB_FALSE='#'
1638
else
1639
  MULTILIB_TRUE='#'
1640
  MULTILIB_FALSE=
1641
fi
1642
 
1643
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1644
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1645
 
1646
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1647
 
1648
echo "$as_me:1648: checking for make/custom/$RTEMS_BSP.cfg" >&5
1649
echo $ECHO_N "checking for make/custom/$RTEMS_BSP.cfg... $ECHO_C" >&6
1650
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
1651
  echo "$as_me:1651: result: yes" >&5
1652
echo "${ECHO_T}yes" >&6
1653
else
1654
  { { echo "$as_me:1654: error: no" >&5
1655
echo "$as_me: error: no" >&2;}
1656
   { (exit 1); exit 1; }; }
1657
fi
1658
 
1659
echo "$as_me:1659: checking for RTEMS_CPU_MODEL" >&5
1660
echo $ECHO_N "checking for RTEMS_CPU_MODEL... $ECHO_C" >&6
1661
if test "${rtems_cv_RTEMS_CPU_MODEL+set}" = set; then
1662
  echo $ECHO_N "(cached) $ECHO_C" >&6
1663
else
1664
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
1665
fi
1666
echo "$as_me:1666: result: $rtems_cv_RTEMS_CPU_MODEL" >&5
1667
echo "${ECHO_T}$rtems_cv_RTEMS_CPU_MODEL" >&6
1668
RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
1669
 
1670
echo "$as_me:1670: checking for RTEMS_BSP_FAMILY" >&5
1671
echo $ECHO_N "checking for RTEMS_BSP_FAMILY... $ECHO_C" >&6
1672
if test "${rtems_cv_RTEMS_BSP_FAMILY+set}" = set; then
1673
  echo $ECHO_N "(cached) $ECHO_C" >&6
1674
else
1675
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
1676
fi
1677
echo "$as_me:1677: result: $rtems_cv_RTEMS_BSP_FAMILY" >&5
1678
echo "${ECHO_T}$rtems_cv_RTEMS_BSP_FAMILY" >&6
1679
RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
1680
 
1681
RTEMS_HOST=$host_os
1682
case "${target}" in
1683
  # hpux unix port should go here
1684
  i[34567]86-*linux*)          # unix "simulator" port
1685
        RTEMS_HOST=Linux
1686
        ;;
1687
  i[34567]86-*freebsd*)         # unix "simulator" port
1688
        RTEMS_HOST=FreeBSD
1689
        ;;
1690
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1691
        RTEMS_HOST=Cygwin
1692
        ;;
1693
  sparc-sun-solaris*)           # unix "simulator" port
1694
        RTEMS_HOST=Solaris
1695
        ;;
1696
  *)
1697
        ;;
1698
esac
1699
 
1700
  # Add the stamp file to the list of files AC keeps track of,
1701
# along with our hook.
1702
ac_config_headers="$ac_config_headers include/bspopts.h"
1703
 
1704
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1705
 
1706
echo "$as_me:1706: checking if wanting multiprocessing" >&5
1707
echo $ECHO_N "checking if wanting multiprocessing... $ECHO_C" >&6
1708
if test "${rtems_cv_want_multiprocessing+set}" = set; then
1709
  echo $ECHO_N "(cached) $ECHO_C" >&6
1710
else
1711
 
1712
    if test x"$multilib" = x"no"; then
1713
  # no cpukit
1714
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
1715
 
1716
else
1717
 
1718
#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead
1719
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
1720
 
1721
fi
1722
 
1723
fi
1724
echo "$as_me:1724: result: $rtems_cv_want_multiprocessing" >&5
1725
echo "${ECHO_T}$rtems_cv_want_multiprocessing" >&6
1726
 
1727
if test "$rtems_cv_want_multiprocessing" = "yes"; then
1728
 
1729
  echo "$as_me:1729: checking whether BSP supports multiprocessing" >&5
1730
echo $ECHO_N "checking whether BSP supports multiprocessing... $ECHO_C" >&6
1731
if test "${rtems_cv_HAS_MP+set}" = set; then
1732
  echo $ECHO_N "(cached) $ECHO_C" >&6
1733
else
1734
 
1735
    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then
1736
        rtems_cv_HAS_MP="yes" ;
1737
    else
1738
        rtems_cv_HAS_MP="no";
1739
    fi
1740
 
1741
fi
1742
echo "$as_me:1742: result: $rtems_cv_HAS_MP" >&5
1743
echo "${ECHO_T}$rtems_cv_HAS_MP" >&6
1744
if test $rtems_cv_HAS_MP = "no"; then
1745
{ { echo "$as_me:1745: error: multiprocessing requested but not supported" >&5
1746
echo "$as_me: error: multiprocessing requested but not supported" >&2;}
1747
   { (exit 1); exit 1; }; }
1748
fi
1749
 
1750
else
1751
  rtems_cv_HAS_MP="no";
1752
fi
1753
 
1754
HAS_MP=$rtems_cv_HAS_MP
1755
 
1756
rm -f .deps 2>/dev/null
1757
mkdir .deps 2>/dev/null
1758
if test -d .deps; then
1759
  DEPDIR=.deps
1760
else
1761
  # MS-DOS does not allow filenames that begin with a dot.
1762
  DEPDIR=_deps
1763
fi
1764
rmdir .deps 2>/dev/null
1765
 
1766
ac_config_commands="$ac_config_commands depfiles"
1767
 
1768
am_make=${MAKE-make}
1769
cat > confinc << 'END'
1770
doit:
1771
        @echo done
1772
END
1773
# If we don't find an include directive, just comment out the code.
1774
echo "$as_me:1774: checking for style of include used by $am_make" >&5
1775
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1776
am__include="#"
1777
am__quote=
1778
_am_result=none
1779
# First try GNU make style include.
1780
echo "include confinc" > confmf
1781
# We grep out `Entering directory' and `Leaving directory'
1782
# messages which can occur if `w' ends up in MAKEFLAGS.
1783
# In particular we don't look at `^make:' because GNU make might
1784
# be invoked under some other name (usually "gmake"), in which
1785
# case it prints its new name instead of `make'.
1786
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1787
   am__include=include
1788
   am__quote=
1789
   _am_result=GNU
1790
fi
1791
# Now try BSD make style include.
1792
if test "$am__include" = "#"; then
1793
   echo '.include "confinc"' > confmf
1794
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1795
      am__include=.include
1796
      am__quote="\""
1797
      _am_result=BSD
1798
   fi
1799
fi
1800
 
1801
echo "$as_me:1801: result: $_am_result" >&5
1802
echo "${ECHO_T}$_am_result" >&6
1803
rm -f confinc confmf
1804
 
1805
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1806
if test "${enable_dependency_tracking+set}" = set; then
1807
  enableval="$enable_dependency_tracking"
1808
 
1809
fi;
1810
if test "x$enable_dependency_tracking" != xno; then
1811
  am_depcomp="$ac_aux_dir/depcomp"
1812
  AMDEPBACKSLASH='\'
1813
fi
1814
 
1815
if test "x$enable_dependency_tracking" != xno; then
1816
  AMDEP_TRUE=
1817
  AMDEP_FALSE='#'
1818
else
1819
  AMDEP_TRUE='#'
1820
  AMDEP_FALSE=
1821
fi
1822
 
1823
  if test "x$build_alias" != "x$host_alias"; then
1824
  rtems_tool_prefix=${ac_tool_prefix}
1825
fi
1826
 
1827
  # Extract the first word of "${rtems_tool_prefix}gcc", so it can be a program name with args.
1828
set dummy ${rtems_tool_prefix}gcc; ac_word=$2
1829
echo "$as_me:1829: checking for $ac_word" >&5
1830
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831
if test "${ac_cv_prog_CC+set}" = set; then
1832
  echo $ECHO_N "(cached) $ECHO_C" >&6
1833
else
1834
  if test -n "$CC"; then
1835
  ac_cv_prog_CC="$CC" # Let the user override the test.
1836
else
1837
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1838
ac_dummy="$PATH"
1839
for ac_dir in $ac_dummy; do
1840
  IFS=$ac_save_IFS
1841
  test -z "$ac_dir" && ac_dir=.
1842
  $as_executable_p "$ac_dir/$ac_word" || continue
1843
ac_cv_prog_CC="${rtems_tool_prefix}gcc"
1844
echo "$as_me:1844: found $ac_dir/$ac_word" >&5
1845
break
1846
done
1847
 
1848
fi
1849
fi
1850
CC=$ac_cv_prog_CC
1851
if test -n "$CC"; then
1852
  echo "$as_me:1852: result: $CC" >&5
1853
echo "${ECHO_T}$CC" >&6
1854
else
1855
  echo "$as_me:1855: result: no" >&5
1856
echo "${ECHO_T}no" >&6
1857
fi
1858
 
1859
test -z "$CC" && \
1860
  { { echo "$as_me:1860: error: no acceptable cc found in \$PATH" >&5
1861
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1862
   { (exit 1); exit 1; }; }
1863
ac_ext=c
1864
ac_cpp='$CPP $CPPFLAGS'
1865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868
if test -n "$ac_tool_prefix"; then
1869
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1870
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1871
echo "$as_me:1871: checking for $ac_word" >&5
1872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873
if test "${ac_cv_prog_CC+set}" = set; then
1874
  echo $ECHO_N "(cached) $ECHO_C" >&6
1875
else
1876
  if test -n "$CC"; then
1877
  ac_cv_prog_CC="$CC" # Let the user override the test.
1878
else
1879
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1880
ac_dummy="$PATH"
1881
for ac_dir in $ac_dummy; do
1882
  IFS=$ac_save_IFS
1883
  test -z "$ac_dir" && ac_dir=.
1884
  $as_executable_p "$ac_dir/$ac_word" || continue
1885
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1886
echo "$as_me:1886: found $ac_dir/$ac_word" >&5
1887
break
1888
done
1889
 
1890
fi
1891
fi
1892
CC=$ac_cv_prog_CC
1893
if test -n "$CC"; then
1894
  echo "$as_me:1894: result: $CC" >&5
1895
echo "${ECHO_T}$CC" >&6
1896
else
1897
  echo "$as_me:1897: result: no" >&5
1898
echo "${ECHO_T}no" >&6
1899
fi
1900
 
1901
fi
1902
if test -z "$ac_cv_prog_CC"; then
1903
  ac_ct_CC=$CC
1904
  # Extract the first word of "gcc", so it can be a program name with args.
1905
set dummy gcc; ac_word=$2
1906
echo "$as_me:1906: checking for $ac_word" >&5
1907
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909
  echo $ECHO_N "(cached) $ECHO_C" >&6
1910
else
1911
  if test -n "$ac_ct_CC"; then
1912
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913
else
1914
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1915
ac_dummy="$PATH"
1916
for ac_dir in $ac_dummy; do
1917
  IFS=$ac_save_IFS
1918
  test -z "$ac_dir" && ac_dir=.
1919
  $as_executable_p "$ac_dir/$ac_word" || continue
1920
ac_cv_prog_ac_ct_CC="gcc"
1921
echo "$as_me:1921: found $ac_dir/$ac_word" >&5
1922
break
1923
done
1924
 
1925
fi
1926
fi
1927
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1928
if test -n "$ac_ct_CC"; then
1929
  echo "$as_me:1929: result: $ac_ct_CC" >&5
1930
echo "${ECHO_T}$ac_ct_CC" >&6
1931
else
1932
  echo "$as_me:1932: result: no" >&5
1933
echo "${ECHO_T}no" >&6
1934
fi
1935
 
1936
  CC=$ac_ct_CC
1937
else
1938
  CC="$ac_cv_prog_CC"
1939
fi
1940
 
1941
if test -z "$CC"; then
1942
  if test -n "$ac_tool_prefix"; then
1943
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1944
set dummy ${ac_tool_prefix}cc; ac_word=$2
1945
echo "$as_me:1945: checking for $ac_word" >&5
1946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947
if test "${ac_cv_prog_CC+set}" = set; then
1948
  echo $ECHO_N "(cached) $ECHO_C" >&6
1949
else
1950
  if test -n "$CC"; then
1951
  ac_cv_prog_CC="$CC" # Let the user override the test.
1952
else
1953
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1954
ac_dummy="$PATH"
1955
for ac_dir in $ac_dummy; do
1956
  IFS=$ac_save_IFS
1957
  test -z "$ac_dir" && ac_dir=.
1958
  $as_executable_p "$ac_dir/$ac_word" || continue
1959
ac_cv_prog_CC="${ac_tool_prefix}cc"
1960
echo "$as_me:1960: found $ac_dir/$ac_word" >&5
1961
break
1962
done
1963
 
1964
fi
1965
fi
1966
CC=$ac_cv_prog_CC
1967
if test -n "$CC"; then
1968
  echo "$as_me:1968: result: $CC" >&5
1969
echo "${ECHO_T}$CC" >&6
1970
else
1971
  echo "$as_me:1971: result: no" >&5
1972
echo "${ECHO_T}no" >&6
1973
fi
1974
 
1975
fi
1976
if test -z "$ac_cv_prog_CC"; then
1977
  ac_ct_CC=$CC
1978
  # Extract the first word of "cc", so it can be a program name with args.
1979
set dummy cc; ac_word=$2
1980
echo "$as_me:1980: checking for $ac_word" >&5
1981
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983
  echo $ECHO_N "(cached) $ECHO_C" >&6
1984
else
1985
  if test -n "$ac_ct_CC"; then
1986
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987
else
1988
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1989
ac_dummy="$PATH"
1990
for ac_dir in $ac_dummy; do
1991
  IFS=$ac_save_IFS
1992
  test -z "$ac_dir" && ac_dir=.
1993
  $as_executable_p "$ac_dir/$ac_word" || continue
1994
ac_cv_prog_ac_ct_CC="cc"
1995
echo "$as_me:1995: found $ac_dir/$ac_word" >&5
1996
break
1997
done
1998
 
1999
fi
2000
fi
2001
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002
if test -n "$ac_ct_CC"; then
2003
  echo "$as_me:2003: result: $ac_ct_CC" >&5
2004
echo "${ECHO_T}$ac_ct_CC" >&6
2005
else
2006
  echo "$as_me:2006: result: no" >&5
2007
echo "${ECHO_T}no" >&6
2008
fi
2009
 
2010
  CC=$ac_ct_CC
2011
else
2012
  CC="$ac_cv_prog_CC"
2013
fi
2014
 
2015
fi
2016
if test -z "$CC"; then
2017
  # Extract the first word of "cc", so it can be a program name with args.
2018
set dummy cc; ac_word=$2
2019
echo "$as_me:2019: checking for $ac_word" >&5
2020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021
if test "${ac_cv_prog_CC+set}" = set; then
2022
  echo $ECHO_N "(cached) $ECHO_C" >&6
2023
else
2024
  if test -n "$CC"; then
2025
  ac_cv_prog_CC="$CC" # Let the user override the test.
2026
else
2027
  ac_prog_rejected=no
2028
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2029
ac_dummy="$PATH"
2030
for ac_dir in $ac_dummy; do
2031
  IFS=$ac_save_IFS
2032
  test -z "$ac_dir" && ac_dir=.
2033
  $as_executable_p "$ac_dir/$ac_word" || continue
2034
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2035
  ac_prog_rejected=yes
2036
  continue
2037
fi
2038
ac_cv_prog_CC="cc"
2039
echo "$as_me:2039: found $ac_dir/$ac_word" >&5
2040
break
2041
done
2042
 
2043
if test $ac_prog_rejected = yes; then
2044
  # We found a bogon in the path, so make sure we never use it.
2045
  set dummy $ac_cv_prog_CC
2046
  shift
2047
  if test $# != 0; then
2048
    # We chose a different compiler from the bogus one.
2049
    # However, it has the same basename, so the bogon will be chosen
2050
    # first if we set CC to just the basename; use the full file name.
2051
    shift
2052
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
2053
    shift
2054
    ac_cv_prog_CC="$@"
2055
  fi
2056
fi
2057
fi
2058
fi
2059
CC=$ac_cv_prog_CC
2060
if test -n "$CC"; then
2061
  echo "$as_me:2061: result: $CC" >&5
2062
echo "${ECHO_T}$CC" >&6
2063
else
2064
  echo "$as_me:2064: result: no" >&5
2065
echo "${ECHO_T}no" >&6
2066
fi
2067
 
2068
fi
2069
if test -z "$CC"; then
2070
  if test -n "$ac_tool_prefix"; then
2071
  for ac_prog in cl
2072
  do
2073
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2074
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2075
echo "$as_me:2075: checking for $ac_word" >&5
2076
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077
if test "${ac_cv_prog_CC+set}" = set; then
2078
  echo $ECHO_N "(cached) $ECHO_C" >&6
2079
else
2080
  if test -n "$CC"; then
2081
  ac_cv_prog_CC="$CC" # Let the user override the test.
2082
else
2083
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2084
ac_dummy="$PATH"
2085
for ac_dir in $ac_dummy; do
2086
  IFS=$ac_save_IFS
2087
  test -z "$ac_dir" && ac_dir=.
2088
  $as_executable_p "$ac_dir/$ac_word" || continue
2089
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090
echo "$as_me:2090: found $ac_dir/$ac_word" >&5
2091
break
2092
done
2093
 
2094
fi
2095
fi
2096
CC=$ac_cv_prog_CC
2097
if test -n "$CC"; then
2098
  echo "$as_me:2098: result: $CC" >&5
2099
echo "${ECHO_T}$CC" >&6
2100
else
2101
  echo "$as_me:2101: result: no" >&5
2102
echo "${ECHO_T}no" >&6
2103
fi
2104
 
2105
    test -n "$CC" && break
2106
  done
2107
fi
2108
if test -z "$CC"; then
2109
  ac_ct_CC=$CC
2110
  for ac_prog in cl
2111
do
2112
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2113
set dummy $ac_prog; ac_word=$2
2114
echo "$as_me:2114: checking for $ac_word" >&5
2115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117
  echo $ECHO_N "(cached) $ECHO_C" >&6
2118
else
2119
  if test -n "$ac_ct_CC"; then
2120
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121
else
2122
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2123
ac_dummy="$PATH"
2124
for ac_dir in $ac_dummy; do
2125
  IFS=$ac_save_IFS
2126
  test -z "$ac_dir" && ac_dir=.
2127
  $as_executable_p "$ac_dir/$ac_word" || continue
2128
ac_cv_prog_ac_ct_CC="$ac_prog"
2129
echo "$as_me:2129: found $ac_dir/$ac_word" >&5
2130
break
2131
done
2132
 
2133
fi
2134
fi
2135
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136
if test -n "$ac_ct_CC"; then
2137
  echo "$as_me:2137: result: $ac_ct_CC" >&5
2138
echo "${ECHO_T}$ac_ct_CC" >&6
2139
else
2140
  echo "$as_me:2140: result: no" >&5
2141
echo "${ECHO_T}no" >&6
2142
fi
2143
 
2144
  test -n "$ac_ct_CC" && break
2145
done
2146
 
2147
  CC=$ac_ct_CC
2148
fi
2149
 
2150
fi
2151
 
2152
test -z "$CC" && { { echo "$as_me:2152: error: no acceptable cc found in \$PATH" >&5
2153
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2154
   { (exit 1); exit 1; }; }
2155
 
2156
# Provide some information about the compiler.
2157
echo "$as_me:2157:" \
2158
     "checking for C compiler version" >&5
2159
ac_compiler=`set X $ac_compile; echo $2`
2160
{ (eval echo "$as_me:2160: \"$ac_compiler --version &5\"") >&5
2161
  (eval $ac_compiler --version &5) 2>&5
2162
  ac_status=$?
2163
  echo "$as_me:2163: \$? = $ac_status" >&5
2164
  (exit $ac_status); }
2165
{ (eval echo "$as_me:2165: \"$ac_compiler -v &5\"") >&5
2166
  (eval $ac_compiler -v &5) 2>&5
2167
  ac_status=$?
2168
  echo "$as_me:2168: \$? = $ac_status" >&5
2169
  (exit $ac_status); }
2170
{ (eval echo "$as_me:2170: \"$ac_compiler -V &5\"") >&5
2171
  (eval $ac_compiler -V &5) 2>&5
2172
  ac_status=$?
2173
  echo "$as_me:2173: \$? = $ac_status" >&5
2174
  (exit $ac_status); }
2175
 
2176
cat >conftest.$ac_ext <<_ACEOF
2177
#line 2177 "configure"
2178
#include "confdefs.h"
2179
 
2180
int
2181
main ()
2182
{
2183
 
2184
  ;
2185
  return 0;
2186
}
2187
_ACEOF
2188
ac_clean_files_save=$ac_clean_files
2189
ac_clean_files="$ac_clean_files a.out a.exe"
2190
# Try to create an executable without -o first, disregard a.out.
2191
# It will help us diagnose broken compilers, and finding out an intuition
2192
# of exeext.
2193
echo "$as_me:2193: checking for C compiler default output" >&5
2194
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2195
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196
if { (eval echo "$as_me:2196: \"$ac_link_default\"") >&5
2197
  (eval $ac_link_default) 2>&5
2198
  ac_status=$?
2199
  echo "$as_me:2199: \$? = $ac_status" >&5
2200
  (exit $ac_status); }; then
2201
  # Find the output, starting from the most likely.  This scheme is
2202
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203
# resort.
2204
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2205
                ls a.out conftest 2>/dev/null;
2206
                ls a.* conftest.* 2>/dev/null`; do
2207
  case $ac_file in
2208
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2209
    a.out ) # We found the default executable, but exeext='' is most
2210
            # certainly right.
2211
            break;;
2212
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2214
          export ac_cv_exeext
2215
          break;;
2216
    * ) break;;
2217
  esac
2218
done
2219
else
2220
  echo "$as_me: failed program was:" >&5
2221
cat conftest.$ac_ext >&5
2222
{ { echo "$as_me:2222: error: C compiler cannot create executables" >&5
2223
echo "$as_me: error: C compiler cannot create executables" >&2;}
2224
   { (exit 77); exit 77; }; }
2225
fi
2226
 
2227
ac_exeext=$ac_cv_exeext
2228
echo "$as_me:2228: result: $ac_file" >&5
2229
echo "${ECHO_T}$ac_file" >&6
2230
 
2231
# Check the compiler produces executables we can run.  If not, either
2232
# the compiler is broken, or we cross compile.
2233
echo "$as_me:2233: checking whether the C compiler works" >&5
2234
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236
# If not cross compiling, check that we can run a simple program.
2237
if test "$cross_compiling" != yes; then
2238
  if { ac_try='./$ac_file'
2239
  { (eval echo "$as_me:2239: \"$ac_try\"") >&5
2240
  (eval $ac_try) 2>&5
2241
  ac_status=$?
2242
  echo "$as_me:2242: \$? = $ac_status" >&5
2243
  (exit $ac_status); }; }; then
2244
    cross_compiling=no
2245
  else
2246
    if test "$cross_compiling" = maybe; then
2247
        cross_compiling=yes
2248
    else
2249
        { { echo "$as_me:2249: error: cannot run C compiled programs.
2250
If you meant to cross compile, use \`--host'." >&5
2251
echo "$as_me: error: cannot run C compiled programs.
2252
If you meant to cross compile, use \`--host'." >&2;}
2253
   { (exit 1); exit 1; }; }
2254
    fi
2255
  fi
2256
fi
2257
echo "$as_me:2257: result: yes" >&5
2258
echo "${ECHO_T}yes" >&6
2259
 
2260
rm -f a.out a.exe conftest$ac_cv_exeext
2261
ac_clean_files=$ac_clean_files_save
2262
# Check the compiler produces executables we can run.  If not, either
2263
# the compiler is broken, or we cross compile.
2264
echo "$as_me:2264: checking whether we are cross compiling" >&5
2265
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266
echo "$as_me:2266: result: $cross_compiling" >&5
2267
echo "${ECHO_T}$cross_compiling" >&6
2268
 
2269
echo "$as_me:2269: checking for executable suffix" >&5
2270
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2271
if { (eval echo "$as_me:2271: \"$ac_link\"") >&5
2272
  (eval $ac_link) 2>&5
2273
  ac_status=$?
2274
  echo "$as_me:2274: \$? = $ac_status" >&5
2275
  (exit $ac_status); }; then
2276
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2278
# work properly (i.e., refer to `conftest.exe'), while it won't with
2279
# `rm'.
2280
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2281
  case $ac_file in
2282
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2283
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284
          export ac_cv_exeext
2285
          break;;
2286
    * ) break;;
2287
  esac
2288
done
2289
else
2290
  { { echo "$as_me:2290: error: cannot compute EXEEXT: cannot compile and link" >&5
2291
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2292
   { (exit 1); exit 1; }; }
2293
fi
2294
 
2295
rm -f conftest$ac_cv_exeext
2296
echo "$as_me:2296: result: $ac_cv_exeext" >&5
2297
echo "${ECHO_T}$ac_cv_exeext" >&6
2298
 
2299
rm -f conftest.$ac_ext
2300
EXEEXT=$ac_cv_exeext
2301
ac_exeext=$EXEEXT
2302
echo "$as_me:2302: checking for object suffix" >&5
2303
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2304
if test "${ac_cv_objext+set}" = set; then
2305
  echo $ECHO_N "(cached) $ECHO_C" >&6
2306
else
2307
  cat >conftest.$ac_ext <<_ACEOF
2308
#line 2308 "configure"
2309
#include "confdefs.h"
2310
 
2311
int
2312
main ()
2313
{
2314
 
2315
  ;
2316
  return 0;
2317
}
2318
_ACEOF
2319
rm -f conftest.o conftest.obj
2320
if { (eval echo "$as_me:2320: \"$ac_compile\"") >&5
2321
  (eval $ac_compile) 2>&5
2322
  ac_status=$?
2323
  echo "$as_me:2323: \$? = $ac_status" >&5
2324
  (exit $ac_status); }; then
2325
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326
  case $ac_file in
2327
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2328
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329
       break;;
2330
  esac
2331
done
2332
else
2333
  echo "$as_me: failed program was:" >&5
2334
cat conftest.$ac_ext >&5
2335
{ { echo "$as_me:2335: error: cannot compute OBJEXT: cannot compile" >&5
2336
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2337
   { (exit 1); exit 1; }; }
2338
fi
2339
 
2340
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341
fi
2342
echo "$as_me:2342: result: $ac_cv_objext" >&5
2343
echo "${ECHO_T}$ac_cv_objext" >&6
2344
OBJEXT=$ac_cv_objext
2345
ac_objext=$OBJEXT
2346
echo "$as_me:2346: checking whether we are using the GNU C compiler" >&5
2347
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349
  echo $ECHO_N "(cached) $ECHO_C" >&6
2350
else
2351
  cat >conftest.$ac_ext <<_ACEOF
2352
#line 2352 "configure"
2353
#include "confdefs.h"
2354
 
2355
int
2356
main ()
2357
{
2358
#ifndef __GNUC__
2359
       choke me
2360
#endif
2361
 
2362
  ;
2363
  return 0;
2364
}
2365
_ACEOF
2366
rm -f conftest.$ac_objext
2367
if { (eval echo "$as_me:2367: \"$ac_compile\"") >&5
2368
  (eval $ac_compile) 2>&5
2369
  ac_status=$?
2370
  echo "$as_me:2370: \$? = $ac_status" >&5
2371
  (exit $ac_status); } &&
2372
         { ac_try='test -s conftest.$ac_objext'
2373
  { (eval echo "$as_me:2373: \"$ac_try\"") >&5
2374
  (eval $ac_try) 2>&5
2375
  ac_status=$?
2376
  echo "$as_me:2376: \$? = $ac_status" >&5
2377
  (exit $ac_status); }; }; then
2378
  ac_compiler_gnu=yes
2379
else
2380
  echo "$as_me: failed program was:" >&5
2381
cat conftest.$ac_ext >&5
2382
ac_compiler_gnu=no
2383
fi
2384
rm -f conftest.$ac_objext conftest.$ac_ext
2385
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2386
 
2387
fi
2388
echo "$as_me:2388: result: $ac_cv_c_compiler_gnu" >&5
2389
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2390
GCC=`test $ac_compiler_gnu = yes && echo yes`
2391
ac_test_CFLAGS=${CFLAGS+set}
2392
ac_save_CFLAGS=$CFLAGS
2393
CFLAGS="-g"
2394
echo "$as_me:2394: checking whether $CC accepts -g" >&5
2395
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2396
if test "${ac_cv_prog_cc_g+set}" = set; then
2397
  echo $ECHO_N "(cached) $ECHO_C" >&6
2398
else
2399
  cat >conftest.$ac_ext <<_ACEOF
2400
#line 2400 "configure"
2401
#include "confdefs.h"
2402
 
2403
int
2404
main ()
2405
{
2406
 
2407
  ;
2408
  return 0;
2409
}
2410
_ACEOF
2411
rm -f conftest.$ac_objext
2412
if { (eval echo "$as_me:2412: \"$ac_compile\"") >&5
2413
  (eval $ac_compile) 2>&5
2414
  ac_status=$?
2415
  echo "$as_me:2415: \$? = $ac_status" >&5
2416
  (exit $ac_status); } &&
2417
         { ac_try='test -s conftest.$ac_objext'
2418
  { (eval echo "$as_me:2418: \"$ac_try\"") >&5
2419
  (eval $ac_try) 2>&5
2420
  ac_status=$?
2421
  echo "$as_me:2421: \$? = $ac_status" >&5
2422
  (exit $ac_status); }; }; then
2423
  ac_cv_prog_cc_g=yes
2424
else
2425
  echo "$as_me: failed program was:" >&5
2426
cat conftest.$ac_ext >&5
2427
ac_cv_prog_cc_g=no
2428
fi
2429
rm -f conftest.$ac_objext conftest.$ac_ext
2430
fi
2431
echo "$as_me:2431: result: $ac_cv_prog_cc_g" >&5
2432
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2433
if test "$ac_test_CFLAGS" = set; then
2434
  CFLAGS=$ac_save_CFLAGS
2435
elif test $ac_cv_prog_cc_g = yes; then
2436
  if test "$GCC" = yes; then
2437
    CFLAGS="-g -O2"
2438
  else
2439
    CFLAGS="-g"
2440
  fi
2441
else
2442
  if test "$GCC" = yes; then
2443
    CFLAGS="-O2"
2444
  else
2445
    CFLAGS=
2446
  fi
2447
fi
2448
# Some people use a C++ compiler to compile C.  Since we use `exit',
2449
# in C++ we need to declare it.  In case someone uses the same compiler
2450
# for both compiling C and C++ we need to have the C++ compiler decide
2451
# the declaration of exit, since it's the most demanding environment.
2452
cat >conftest.$ac_ext <<_ACEOF
2453
#ifndef __cplusplus
2454
  choke me
2455
#endif
2456
_ACEOF
2457
rm -f conftest.$ac_objext
2458
if { (eval echo "$as_me:2458: \"$ac_compile\"") >&5
2459
  (eval $ac_compile) 2>&5
2460
  ac_status=$?
2461
  echo "$as_me:2461: \$? = $ac_status" >&5
2462
  (exit $ac_status); } &&
2463
         { ac_try='test -s conftest.$ac_objext'
2464
  { (eval echo "$as_me:2464: \"$ac_try\"") >&5
2465
  (eval $ac_try) 2>&5
2466
  ac_status=$?
2467
  echo "$as_me:2467: \$? = $ac_status" >&5
2468
  (exit $ac_status); }; }; then
2469
  for ac_declaration in \
2470
   ''\
2471
   '#include ' \
2472
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2473
   'extern "C" void std::exit (int); using std::exit;' \
2474
   'extern "C" void exit (int) throw ();' \
2475
   'extern "C" void exit (int);' \
2476
   'void exit (int);'
2477
do
2478
  cat >conftest.$ac_ext <<_ACEOF
2479
#line 2479 "configure"
2480
#include "confdefs.h"
2481
#include 
2482
$ac_declaration
2483
int
2484
main ()
2485
{
2486
exit (42);
2487
  ;
2488
  return 0;
2489
}
2490
_ACEOF
2491
rm -f conftest.$ac_objext
2492
if { (eval echo "$as_me:2492: \"$ac_compile\"") >&5
2493
  (eval $ac_compile) 2>&5
2494
  ac_status=$?
2495
  echo "$as_me:2495: \$? = $ac_status" >&5
2496
  (exit $ac_status); } &&
2497
         { ac_try='test -s conftest.$ac_objext'
2498
  { (eval echo "$as_me:2498: \"$ac_try\"") >&5
2499
  (eval $ac_try) 2>&5
2500
  ac_status=$?
2501
  echo "$as_me:2501: \$? = $ac_status" >&5
2502
  (exit $ac_status); }; }; then
2503
  :
2504
else
2505
  echo "$as_me: failed program was:" >&5
2506
cat conftest.$ac_ext >&5
2507
continue
2508
fi
2509
rm -f conftest.$ac_objext conftest.$ac_ext
2510
  cat >conftest.$ac_ext <<_ACEOF
2511
#line 2511 "configure"
2512
#include "confdefs.h"
2513
$ac_declaration
2514
int
2515
main ()
2516
{
2517
exit (42);
2518
  ;
2519
  return 0;
2520
}
2521
_ACEOF
2522
rm -f conftest.$ac_objext
2523
if { (eval echo "$as_me:2523: \"$ac_compile\"") >&5
2524
  (eval $ac_compile) 2>&5
2525
  ac_status=$?
2526
  echo "$as_me:2526: \$? = $ac_status" >&5
2527
  (exit $ac_status); } &&
2528
         { ac_try='test -s conftest.$ac_objext'
2529
  { (eval echo "$as_me:2529: \"$ac_try\"") >&5
2530
  (eval $ac_try) 2>&5
2531
  ac_status=$?
2532
  echo "$as_me:2532: \$? = $ac_status" >&5
2533
  (exit $ac_status); }; }; then
2534
  break
2535
else
2536
  echo "$as_me: failed program was:" >&5
2537
cat conftest.$ac_ext >&5
2538
fi
2539
rm -f conftest.$ac_objext conftest.$ac_ext
2540
done
2541
rm -f conftest*
2542
if test -n "$ac_declaration"; then
2543
  echo '#ifdef __cplusplus' >>confdefs.h
2544
  echo $ac_declaration      >>confdefs.h
2545
  echo '#endif'             >>confdefs.h
2546
fi
2547
 
2548
else
2549
  echo "$as_me: failed program was:" >&5
2550
cat conftest.$ac_ext >&5
2551
fi
2552
rm -f conftest.$ac_objext conftest.$ac_ext
2553
ac_ext=c
2554
ac_cpp='$CPP $CPPFLAGS'
2555
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
 
2559
depcc="$CC"   am_compiler_list=
2560
 
2561
echo "$as_me:2561: checking dependency style of $depcc" >&5
2562
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2563
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2564
  echo $ECHO_N "(cached) $ECHO_C" >&6
2565
else
2566
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2567
  # We make a subdir and do the tests there.  Otherwise we can end up
2568
  # making bogus files that we don't know about and never remove.  For
2569
  # instance it was reported that on HP-UX the gcc test will end up
2570
  # making a dummy file named `D' -- because `-MD' means `put the output
2571
  # in D'.
2572
  mkdir conftest.dir
2573
  # Copy depcomp to subdir because otherwise we won't find it if we're
2574
  # using a relative directory.
2575
  cp "$am_depcomp" conftest.dir
2576
  cd conftest.dir
2577
 
2578
  am_cv_CC_dependencies_compiler_type=none
2579
  if test "$am_compiler_list" = ""; then
2580
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2581
  fi
2582
  for depmode in $am_compiler_list; do
2583
    # We need to recreate these files for each test, as the compiler may
2584
    # overwrite some of them when testing with obscure command lines.
2585
    # This happens at least with the AIX C compiler.
2586
    echo '#include "conftest.h"' > conftest.c
2587
    echo 'int i;' > conftest.h
2588
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2589
 
2590
    case $depmode in
2591
    nosideeffect)
2592
      # after this tag, mechanisms are not by side-effect, so they'll
2593
      # only be used when explicitly requested
2594
      if test "x$enable_dependency_tracking" = xyes; then
2595
        continue
2596
      else
2597
        break
2598
      fi
2599
      ;;
2600
    none) break ;;
2601
    esac
2602
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2603
    # mode.  It turns out that the SunPro C++ compiler does not properly
2604
    # handle `-M -o', and we need to detect this.
2605
    if depmode=$depmode \
2606
       source=conftest.c object=conftest.o \
2607
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2608
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2609
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2610
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2611
      am_cv_CC_dependencies_compiler_type=$depmode
2612
      break
2613
    fi
2614
  done
2615
 
2616
  cd ..
2617
  rm -rf conftest.dir
2618
else
2619
  am_cv_CC_dependencies_compiler_type=none
2620
fi
2621
 
2622
fi
2623
echo "$as_me:2623: result: $am_cv_CC_dependencies_compiler_type" >&5
2624
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2625
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2626
 
2627
ac_ext=c
2628
ac_cpp='$CPP $CPPFLAGS'
2629
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
echo "$as_me:2632: checking how to run the C preprocessor" >&5
2633
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2634
# On Suns, sometimes $CPP names a directory.
2635
if test -n "$CPP" && test -d "$CPP"; then
2636
  CPP=
2637
fi
2638
if test -z "$CPP"; then
2639
  if test "${ac_cv_prog_CPP+set}" = set; then
2640
  echo $ECHO_N "(cached) $ECHO_C" >&6
2641
else
2642
      # Double quotes because CPP needs to be expanded
2643
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2644
    do
2645
      ac_preproc_ok=false
2646
for ac_c_preproc_warn_flag in '' yes
2647
do
2648
  # Use a header file that comes with gcc, so configuring glibc
2649
  # with a fresh cross-compiler works.
2650
  # On the NeXT, cc -E runs the code through the compiler's parser,
2651
  # not just through cpp. "Syntax error" is here to catch this case.
2652
  cat >conftest.$ac_ext <<_ACEOF
2653
#line 2653 "configure"
2654
#include "confdefs.h"
2655
#include 
2656
                     Syntax error
2657
_ACEOF
2658
if { (eval echo "$as_me:2658: \"$ac_cpp conftest.$ac_ext\"") >&5
2659
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2660
  ac_status=$?
2661
  egrep -v '^ *\+' conftest.er1 >conftest.err
2662
  rm -f conftest.er1
2663
  cat conftest.err >&5
2664
  echo "$as_me:2664: \$? = $ac_status" >&5
2665
  (exit $ac_status); } >/dev/null; then
2666
  if test -s conftest.err; then
2667
    ac_cpp_err=$ac_c_preproc_warn_flag
2668
  else
2669
    ac_cpp_err=
2670
  fi
2671
else
2672
  ac_cpp_err=yes
2673
fi
2674
if test -z "$ac_cpp_err"; then
2675
  :
2676
else
2677
  echo "$as_me: failed program was:" >&5
2678
  cat conftest.$ac_ext >&5
2679
  # Broken: fails on valid input.
2680
continue
2681
fi
2682
rm -f conftest.err conftest.$ac_ext
2683
 
2684
  # OK, works on sane cases.  Now check whether non-existent headers
2685
  # can be detected and how.
2686
  cat >conftest.$ac_ext <<_ACEOF
2687
#line 2687 "configure"
2688
#include "confdefs.h"
2689
#include 
2690
_ACEOF
2691
if { (eval echo "$as_me:2691: \"$ac_cpp conftest.$ac_ext\"") >&5
2692
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693
  ac_status=$?
2694
  egrep -v '^ *\+' conftest.er1 >conftest.err
2695
  rm -f conftest.er1
2696
  cat conftest.err >&5
2697
  echo "$as_me:2697: \$? = $ac_status" >&5
2698
  (exit $ac_status); } >/dev/null; then
2699
  if test -s conftest.err; then
2700
    ac_cpp_err=$ac_c_preproc_warn_flag
2701
  else
2702
    ac_cpp_err=
2703
  fi
2704
else
2705
  ac_cpp_err=yes
2706
fi
2707
if test -z "$ac_cpp_err"; then
2708
  # Broken: success on invalid input.
2709
continue
2710
else
2711
  echo "$as_me: failed program was:" >&5
2712
  cat conftest.$ac_ext >&5
2713
  # Passes both tests.
2714
ac_preproc_ok=:
2715
break
2716
fi
2717
rm -f conftest.err conftest.$ac_ext
2718
 
2719
done
2720
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2721
rm -f conftest.err conftest.$ac_ext
2722
if $ac_preproc_ok; then
2723
  break
2724
fi
2725
 
2726
    done
2727
    ac_cv_prog_CPP=$CPP
2728
 
2729
fi
2730
  CPP=$ac_cv_prog_CPP
2731
else
2732
  ac_cv_prog_CPP=$CPP
2733
fi
2734
echo "$as_me:2734: result: $CPP" >&5
2735
echo "${ECHO_T}$CPP" >&6
2736
ac_preproc_ok=false
2737
for ac_c_preproc_warn_flag in '' yes
2738
do
2739
  # Use a header file that comes with gcc, so configuring glibc
2740
  # with a fresh cross-compiler works.
2741
  # On the NeXT, cc -E runs the code through the compiler's parser,
2742
  # not just through cpp. "Syntax error" is here to catch this case.
2743
  cat >conftest.$ac_ext <<_ACEOF
2744
#line 2744 "configure"
2745
#include "confdefs.h"
2746
#include 
2747
                     Syntax error
2748
_ACEOF
2749
if { (eval echo "$as_me:2749: \"$ac_cpp conftest.$ac_ext\"") >&5
2750
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2751
  ac_status=$?
2752
  egrep -v '^ *\+' conftest.er1 >conftest.err
2753
  rm -f conftest.er1
2754
  cat conftest.err >&5
2755
  echo "$as_me:2755: \$? = $ac_status" >&5
2756
  (exit $ac_status); } >/dev/null; then
2757
  if test -s conftest.err; then
2758
    ac_cpp_err=$ac_c_preproc_warn_flag
2759
  else
2760
    ac_cpp_err=
2761
  fi
2762
else
2763
  ac_cpp_err=yes
2764
fi
2765
if test -z "$ac_cpp_err"; then
2766
  :
2767
else
2768
  echo "$as_me: failed program was:" >&5
2769
  cat conftest.$ac_ext >&5
2770
  # Broken: fails on valid input.
2771
continue
2772
fi
2773
rm -f conftest.err conftest.$ac_ext
2774
 
2775
  # OK, works on sane cases.  Now check whether non-existent headers
2776
  # can be detected and how.
2777
  cat >conftest.$ac_ext <<_ACEOF
2778
#line 2778 "configure"
2779
#include "confdefs.h"
2780
#include 
2781
_ACEOF
2782
if { (eval echo "$as_me:2782: \"$ac_cpp conftest.$ac_ext\"") >&5
2783
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784
  ac_status=$?
2785
  egrep -v '^ *\+' conftest.er1 >conftest.err
2786
  rm -f conftest.er1
2787
  cat conftest.err >&5
2788
  echo "$as_me:2788: \$? = $ac_status" >&5
2789
  (exit $ac_status); } >/dev/null; then
2790
  if test -s conftest.err; then
2791
    ac_cpp_err=$ac_c_preproc_warn_flag
2792
  else
2793
    ac_cpp_err=
2794
  fi
2795
else
2796
  ac_cpp_err=yes
2797
fi
2798
if test -z "$ac_cpp_err"; then
2799
  # Broken: success on invalid input.
2800
continue
2801
else
2802
  echo "$as_me: failed program was:" >&5
2803
  cat conftest.$ac_ext >&5
2804
  # Passes both tests.
2805
ac_preproc_ok=:
2806
break
2807
fi
2808
rm -f conftest.err conftest.$ac_ext
2809
 
2810
done
2811
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2812
rm -f conftest.err conftest.$ac_ext
2813
if $ac_preproc_ok; then
2814
  :
2815
else
2816
  { { echo "$as_me:2816: error: C preprocessor \"$CPP\" fails sanity check" >&5
2817
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2818
   { (exit 1); exit 1; }; }
2819
fi
2820
 
2821
ac_ext=c
2822
ac_cpp='$CPP $CPPFLAGS'
2823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
 
2827
if test x"$GCC" = x"yes"; then
2828
  RTEMS_USE_GCC_TRUE=
2829
  RTEMS_USE_GCC_FALSE='#'
2830
else
2831
  RTEMS_USE_GCC_TRUE='#'
2832
  RTEMS_USE_GCC_FALSE=
2833
fi
2834
 
2835
echo "$as_me:2835: checking whether $CC accepts -specs" >&5
2836
echo $ECHO_N "checking whether $CC accepts -specs... $ECHO_C" >&6
2837
if test "${rtems_cv_gcc_specs+set}" = set; then
2838
  echo $ECHO_N "(cached) $ECHO_C" >&6
2839
else
2840
 
2841
rtems_cv_gcc_specs=no
2842
if test x"$GCC" = x"yes"; then
2843
  touch confspec
2844
  echo 'void f(){}' >conftest.c
2845
  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
2846
    rtems_cv_gcc_specs=yes
2847
  fi
2848
fi
2849
rm -f confspec conftest*
2850
 
2851
fi
2852
echo "$as_me:2852: result: $rtems_cv_gcc_specs" >&5
2853
echo "${ECHO_T}$rtems_cv_gcc_specs" >&6
2854
 
2855
echo "$as_me:2855: checking whether $CC accepts --pipe" >&5
2856
echo $ECHO_N "checking whether $CC accepts --pipe... $ECHO_C" >&6
2857
if test "${rtems_cv_gcc_pipe+set}" = set; then
2858
  echo $ECHO_N "(cached) $ECHO_C" >&6
2859
else
2860
 
2861
rtems_cv_gcc_pipe=no
2862
if test x"$GCC" = x"yes"; then
2863
    echo 'void f(){}' >conftest.c
2864
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
2865
      rtems_cv_gcc_pipe=yes
2866
    fi
2867
    rm -f conftest*
2868
fi
2869
 
2870
fi
2871
echo "$as_me:2871: result: $rtems_cv_gcc_pipe" >&5
2872
echo "${ECHO_T}$rtems_cv_gcc_pipe" >&6
2873
 
2874
#  if test "$rtems_cv_gcc_specs" = "no"; then
2875
#    AC_MSG_WARN([*** disabling --enable-gcc28])
2876
#      RTEMS_USE_GCC272=yes
2877
#  fi
2878
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
2879
 
2880
if test "$GCC" = yes; then
2881
 
2882
CPPFLAGS="$CPPFLAGS -ansi -fasm"
2883
 
2884
CFLAGS="-g -Wall"
2885
fi
2886
 
2887
case $build_os in
2888
*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
2889
*) ;;
2890
esac
2891
 
2892
  if test "x$build_alias" != "x$host_alias"; then
2893
  rtems_tool_prefix=${ac_tool_prefix}
2894
fi
2895
 
2896
  # Extract the first word of "${rtems_tool_prefix}ar", so it can be a program name with args.
2897
set dummy ${rtems_tool_prefix}ar; ac_word=$2
2898
echo "$as_me:2898: checking for $ac_word" >&5
2899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900
if test "${ac_cv_prog_AR+set}" = set; then
2901
  echo $ECHO_N "(cached) $ECHO_C" >&6
2902
else
2903
  if test -n "$AR"; then
2904
  ac_cv_prog_AR="$AR" # Let the user override the test.
2905
else
2906
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2907
ac_dummy="$PATH"
2908
for ac_dir in $ac_dummy; do
2909
  IFS=$ac_save_IFS
2910
  test -z "$ac_dir" && ac_dir=.
2911
  $as_executable_p "$ac_dir/$ac_word" || continue
2912
ac_cv_prog_AR="${rtems_tool_prefix}ar"
2913
echo "$as_me:2913: found $ac_dir/$ac_word" >&5
2914
break
2915
done
2916
 
2917
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no"
2918
fi
2919
fi
2920
AR=$ac_cv_prog_AR
2921
if test -n "$AR"; then
2922
  echo "$as_me:2922: result: $AR" >&5
2923
echo "${ECHO_T}$AR" >&6
2924
else
2925
  echo "$as_me:2925: result: no" >&5
2926
echo "${ECHO_T}no" >&6
2927
fi
2928
 
2929
  if test "x$build_alias" != "x$host_alias"; then
2930
  rtems_tool_prefix=${ac_tool_prefix}
2931
fi
2932
 
2933
  # Extract the first word of "${rtems_tool_prefix}as", so it can be a program name with args.
2934
set dummy ${rtems_tool_prefix}as; ac_word=$2
2935
echo "$as_me:2935: checking for $ac_word" >&5
2936
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937
if test "${ac_cv_prog_AS+set}" = set; then
2938
  echo $ECHO_N "(cached) $ECHO_C" >&6
2939
else
2940
  if test -n "$AS"; then
2941
  ac_cv_prog_AS="$AS" # Let the user override the test.
2942
else
2943
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2944
ac_dummy="$PATH"
2945
for ac_dir in $ac_dummy; do
2946
  IFS=$ac_save_IFS
2947
  test -z "$ac_dir" && ac_dir=.
2948
  $as_executable_p "$ac_dir/$ac_word" || continue
2949
ac_cv_prog_AS="${rtems_tool_prefix}as"
2950
echo "$as_me:2950: found $ac_dir/$ac_word" >&5
2951
break
2952
done
2953
 
2954
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="no"
2955
fi
2956
fi
2957
AS=$ac_cv_prog_AS
2958
if test -n "$AS"; then
2959
  echo "$as_me:2959: result: $AS" >&5
2960
echo "${ECHO_T}$AS" >&6
2961
else
2962
  echo "$as_me:2962: result: no" >&5
2963
echo "${ECHO_T}no" >&6
2964
fi
2965
 
2966
  if test "x$build_alias" != "x$host_alias"; then
2967
  rtems_tool_prefix=${ac_tool_prefix}
2968
fi
2969
 
2970
  # Extract the first word of "${rtems_tool_prefix}ld", so it can be a program name with args.
2971
set dummy ${rtems_tool_prefix}ld; ac_word=$2
2972
echo "$as_me:2972: checking for $ac_word" >&5
2973
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974
if test "${ac_cv_prog_LD+set}" = set; then
2975
  echo $ECHO_N "(cached) $ECHO_C" >&6
2976
else
2977
  if test -n "$LD"; then
2978
  ac_cv_prog_LD="$LD" # Let the user override the test.
2979
else
2980
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2981
ac_dummy="$PATH"
2982
for ac_dir in $ac_dummy; do
2983
  IFS=$ac_save_IFS
2984
  test -z "$ac_dir" && ac_dir=.
2985
  $as_executable_p "$ac_dir/$ac_word" || continue
2986
ac_cv_prog_LD="${rtems_tool_prefix}ld"
2987
echo "$as_me:2987: found $ac_dir/$ac_word" >&5
2988
break
2989
done
2990
 
2991
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="no"
2992
fi
2993
fi
2994
LD=$ac_cv_prog_LD
2995
if test -n "$LD"; then
2996
  echo "$as_me:2996: result: $LD" >&5
2997
echo "${ECHO_T}$LD" >&6
2998
else
2999
  echo "$as_me:2999: result: no" >&5
3000
echo "${ECHO_T}no" >&6
3001
fi
3002
 
3003
  if test "x$build_alias" != "x$host_alias"; then
3004
  rtems_tool_prefix=${ac_tool_prefix}
3005
fi
3006
 
3007
  # Extract the first word of "${rtems_tool_prefix}nm", so it can be a program name with args.
3008
set dummy ${rtems_tool_prefix}nm; ac_word=$2
3009
echo "$as_me:3009: checking for $ac_word" >&5
3010
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011
if test "${ac_cv_prog_NM+set}" = set; then
3012
  echo $ECHO_N "(cached) $ECHO_C" >&6
3013
else
3014
  if test -n "$NM"; then
3015
  ac_cv_prog_NM="$NM" # Let the user override the test.
3016
else
3017
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3018
ac_dummy="$PATH"
3019
for ac_dir in $ac_dummy; do
3020
  IFS=$ac_save_IFS
3021
  test -z "$ac_dir" && ac_dir=.
3022
  $as_executable_p "$ac_dir/$ac_word" || continue
3023
ac_cv_prog_NM="${rtems_tool_prefix}nm"
3024
echo "$as_me:3024: found $ac_dir/$ac_word" >&5
3025
break
3026
done
3027
 
3028
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"
3029
fi
3030
fi
3031
NM=$ac_cv_prog_NM
3032
if test -n "$NM"; then
3033
  echo "$as_me:3033: result: $NM" >&5
3034
echo "${ECHO_T}$NM" >&6
3035
else
3036
  echo "$as_me:3036: result: no" >&5
3037
echo "${ECHO_T}no" >&6
3038
fi
3039
 
3040
  if test "x$build_alias" != "x$host_alias"; then
3041
  rtems_tool_prefix=${ac_tool_prefix}
3042
fi
3043
 
3044
  # Extract the first word of "${rtems_tool_prefix}ranlib", so it can be a program name with args.
3045
set dummy ${rtems_tool_prefix}ranlib; ac_word=$2
3046
echo "$as_me:3046: checking for $ac_word" >&5
3047
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048
if test "${ac_cv_prog_RANLIB+set}" = set; then
3049
  echo $ECHO_N "(cached) $ECHO_C" >&6
3050
else
3051
  if test -n "$RANLIB"; then
3052
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3053
else
3054
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3055
ac_dummy="$PATH"
3056
for ac_dir in $ac_dummy; do
3057
  IFS=$ac_save_IFS
3058
  test -z "$ac_dir" && ac_dir=.
3059
  $as_executable_p "$ac_dir/$ac_word" || continue
3060
ac_cv_prog_RANLIB="${rtems_tool_prefix}ranlib"
3061
echo "$as_me:3061: found $ac_dir/$ac_word" >&5
3062
break
3063
done
3064
 
3065
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3066
fi
3067
fi
3068
RANLIB=$ac_cv_prog_RANLIB
3069
if test -n "$RANLIB"; then
3070
  echo "$as_me:3070: result: $RANLIB" >&5
3071
echo "${ECHO_T}$RANLIB" >&6
3072
else
3073
  echo "$as_me:3073: result: no" >&5
3074
echo "${ECHO_T}no" >&6
3075
fi
3076
 
3077
  if test "x$build_alias" != "x$host_alias"; then
3078
  rtems_tool_prefix=${ac_tool_prefix}
3079
fi
3080
 
3081
  # Extract the first word of "${rtems_tool_prefix}objcopy", so it can be a program name with args.
3082
set dummy ${rtems_tool_prefix}objcopy; ac_word=$2
3083
echo "$as_me:3083: checking for $ac_word" >&5
3084
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085
if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3086
  echo $ECHO_N "(cached) $ECHO_C" >&6
3087
else
3088
  if test -n "$OBJCOPY"; then
3089
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3090
else
3091
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3092
ac_dummy="$PATH"
3093
for ac_dir in $ac_dummy; do
3094
  IFS=$ac_save_IFS
3095
  test -z "$ac_dir" && ac_dir=.
3096
  $as_executable_p "$ac_dir/$ac_word" || continue
3097
ac_cv_prog_OBJCOPY="${rtems_tool_prefix}objcopy"
3098
echo "$as_me:3098: found $ac_dir/$ac_word" >&5
3099
break
3100
done
3101
 
3102
  test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="no"
3103
fi
3104
fi
3105
OBJCOPY=$ac_cv_prog_OBJCOPY
3106
if test -n "$OBJCOPY"; then
3107
  echo "$as_me:3107: result: $OBJCOPY" >&5
3108
echo "${ECHO_T}$OBJCOPY" >&6
3109
else
3110
  echo "$as_me:3110: result: no" >&5
3111
echo "${ECHO_T}no" >&6
3112
fi
3113
 
3114
  if test "x$build_alias" != "x$host_alias"; then
3115
  rtems_tool_prefix=${ac_tool_prefix}
3116
fi
3117
 
3118
  # Extract the first word of "${rtems_tool_prefix}size", so it can be a program name with args.
3119
set dummy ${rtems_tool_prefix}size; ac_word=$2
3120
echo "$as_me:3120: checking for $ac_word" >&5
3121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122
if test "${ac_cv_prog_SIZE+set}" = set; then
3123
  echo $ECHO_N "(cached) $ECHO_C" >&6
3124
else
3125
  if test -n "$SIZE"; then
3126
  ac_cv_prog_SIZE="$SIZE" # Let the user override the test.
3127
else
3128
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3129
ac_dummy="$PATH"
3130
for ac_dir in $ac_dummy; do
3131
  IFS=$ac_save_IFS
3132
  test -z "$ac_dir" && ac_dir=.
3133
  $as_executable_p "$ac_dir/$ac_word" || continue
3134
ac_cv_prog_SIZE="${rtems_tool_prefix}size"
3135
echo "$as_me:3135: found $ac_dir/$ac_word" >&5
3136
break
3137
done
3138
 
3139
  test -z "$ac_cv_prog_SIZE" && ac_cv_prog_SIZE="no"
3140
fi
3141
fi
3142
SIZE=$ac_cv_prog_SIZE
3143
if test -n "$SIZE"; then
3144
  echo "$as_me:3144: result: $SIZE" >&5
3145
echo "${ECHO_T}$SIZE" >&6
3146
else
3147
  echo "$as_me:3147: result: no" >&5
3148
echo "${ECHO_T}no" >&6
3149
fi
3150
 
3151
  if test "x$build_alias" != "x$host_alias"; then
3152
  rtems_tool_prefix=${ac_tool_prefix}
3153
fi
3154
 
3155
  # Extract the first word of "${rtems_tool_prefix}strip", so it can be a program name with args.
3156
set dummy ${rtems_tool_prefix}strip; ac_word=$2
3157
echo "$as_me:3157: checking for $ac_word" >&5
3158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159
if test "${ac_cv_prog_STRIP+set}" = set; then
3160
  echo $ECHO_N "(cached) $ECHO_C" >&6
3161
else
3162
  if test -n "$STRIP"; then
3163
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3164
else
3165
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3166
ac_dummy="$PATH"
3167
for ac_dir in $ac_dummy; do
3168
  IFS=$ac_save_IFS
3169
  test -z "$ac_dir" && ac_dir=.
3170
  $as_executable_p "$ac_dir/$ac_word" || continue
3171
ac_cv_prog_STRIP="${rtems_tool_prefix}strip"
3172
echo "$as_me:3172: found $ac_dir/$ac_word" >&5
3173
break
3174
done
3175
 
3176
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3177
fi
3178
fi
3179
STRIP=$ac_cv_prog_STRIP
3180
if test -n "$STRIP"; then
3181
  echo "$as_me:3181: result: $STRIP" >&5
3182
echo "${ECHO_T}$STRIP" >&6
3183
else
3184
  echo "$as_me:3184: result: no" >&5
3185
echo "${ECHO_T}no" >&6
3186
fi
3187
 
3188
# From newlib
3189
# Select which debug protocol is being used.
3190
# ARM_RDP_MONITOR selects the Demon monitor.
3191
# ARM_RDI_MONITOR selects the Angel monitor.
3192
# If neither are defined, then hard coded defaults will be used
3193
# to create the program's environment.
3194
 
3195
case ${RTEMS_BSP} in
3196
* )
3197
  ARM_RDI_MONITOR=${ARM_RDI_MONITOR-1} ;;
3198
esac
3199
if test -n "${ARM_RDI_MONITOR}"; then
3200
cat >>confdefs.h <
3201
#define ARM_RDI_MONITOR $ARM_RDI_MONITOR
3202
EOF
3203
fi
3204
 
3205
case ${RTEMS_BSP} in
3206
* )
3207
  ARM_RDP_MONITOR=${ARM_RDP_MONITOR-} ;;
3208
esac
3209
if test -n "${ARM_RDP_MONITOR}"; then
3210
cat >>confdefs.h <
3211
#define ARM_RDP_MONITOR $ARM_RDP_MONITOR
3212
EOF
3213
fi
3214
 
3215
# Explicitly list all Makefiles here
3216
ac_config_files="$ac_config_files Makefile clock/Makefile console/Makefile include/Makefile start/Makefile startup/Makefile timer/Makefile wrapup/Makefile"
3217
 
3218
cat >confcache <<\_ACEOF
3219
# This file is a shell script that caches the results of configure
3220
# tests run on this system so they can be shared between configure
3221
# scripts and configure runs, see configure's option --config-cache.
3222
# It is not useful on other systems.  If it contains results you don't
3223
# want to keep, you may remove or edit it.
3224
#
3225
# config.status only pays attention to the cache file if you give it
3226
# the --recheck option to rerun configure.
3227
#
3228
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3229
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3230
# following values.
3231
 
3232
_ACEOF
3233
 
3234
# The following way of writing the cache mishandles newlines in values,
3235
# but we know of no workaround that is simple, portable, and efficient.
3236
# So, don't put newlines in cache variables' values.
3237
# Ultrix sh set writes to stderr and can't be redirected directly,
3238
# and sets the high bit in the cache file unless we assign to the vars.
3239
{
3240
  (set) 2>&1 |
3241
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3242
    *ac_space=\ *)
3243
      # `set' does not quote correctly, so add quotes (double-quote
3244
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3245
      sed -n \
3246
        "s/'/'\\\\''/g;
3247
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3248
      ;;
3249
    *)
3250
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3251
      sed -n \
3252
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3253
      ;;
3254
    esac;
3255
} |
3256
  sed '
3257
     t clear
3258
     : clear
3259
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3260
     t end
3261
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3262
     : end' >>confcache
3263
if cmp -s $cache_file confcache; then :; else
3264
  if test -w $cache_file; then
3265
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3266
    cat confcache >$cache_file
3267
  else
3268
    echo "not updating unwritable cache $cache_file"
3269
  fi
3270
fi
3271
rm -f confcache
3272
 
3273
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3274
# Let make expand exec_prefix.
3275
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3276
 
3277
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3278
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3279
# trailing colons and then remove the whole line if VPATH becomes empty
3280
# (actually we leave an empty line to preserve line numbers).
3281
if test "x$srcdir" = x.; then
3282
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
3283
s/:*\$(srcdir):*/:/;
3284
s/:*\${srcdir}:*/:/;
3285
s/:*@srcdir@:*/:/;
3286
s/^\([^=]*=[    ]*\):*/\1/;
3287
s/:*$//;
3288
s/^[^=]*=[      ]*$//;
3289
}'
3290
fi
3291
 
3292
DEFS=-DHAVE_CONFIG_H
3293
 
3294
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3295
  { { echo "$as_me:3295: error: conditional \"MAINTAINER_MODE\" was never defined.
3296
Usually this means the macro was only invoked conditionally." >&5
3297
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3298
Usually this means the macro was only invoked conditionally." >&2;}
3299
   { (exit 1); exit 1; }; }
3300
fi
3301
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3302
  { { echo "$as_me:3302: error: conditional \"MULTILIB\" was never defined.
3303
Usually this means the macro was only invoked conditionally." >&5
3304
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3305
Usually this means the macro was only invoked conditionally." >&2;}
3306
   { (exit 1); exit 1; }; }
3307
fi
3308
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3309
  { { echo "$as_me:3309: error: conditional \"MULTILIB\" was never defined.
3310
Usually this means the macro was only invoked conditionally." >&5
3311
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3312
Usually this means the macro was only invoked conditionally." >&2;}
3313
   { (exit 1); exit 1; }; }
3314
fi
3315
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3316
  { { echo "$as_me:3316: error: conditional \"AMDEP\" was never defined.
3317
Usually this means the macro was only invoked conditionally." >&5
3318
echo "$as_me: error: conditional \"AMDEP\" was never defined.
3319
Usually this means the macro was only invoked conditionally." >&2;}
3320
   { (exit 1); exit 1; }; }
3321
fi
3322
if test -z "${RTEMS_USE_GCC_TRUE}" && test -z "${RTEMS_USE_GCC_FALSE}"; then
3323
  { { echo "$as_me:3323: error: conditional \"RTEMS_USE_GCC\" was never defined.
3324
Usually this means the macro was only invoked conditionally." >&5
3325
echo "$as_me: error: conditional \"RTEMS_USE_GCC\" was never defined.
3326
Usually this means the macro was only invoked conditionally." >&2;}
3327
   { (exit 1); exit 1; }; }
3328
fi
3329
 
3330
: ${CONFIG_STATUS=./config.status}
3331
ac_clean_files_save=$ac_clean_files
3332
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3333
{ echo "$as_me:3333: creating $CONFIG_STATUS" >&5
3334
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3335
cat >$CONFIG_STATUS <<_ACEOF
3336
#! $SHELL
3337
# Generated automatically by configure.
3338
# Run this file to recreate the current configuration.
3339
# Compiler output produced by configure, useful for debugging
3340
# configure, is in config.log if it exists.
3341
 
3342
debug=false
3343
SHELL=\${CONFIG_SHELL-$SHELL}
3344
ac_cs_invocation="\$0 \$@"
3345
 
3346
_ACEOF
3347
 
3348
cat >>$CONFIG_STATUS <<\_ACEOF
3349
# Be Bourne compatible
3350
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3351
  emulate sh
3352
  NULLCMD=:
3353
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3354
  set -o posix
3355
fi
3356
 
3357
# Name of the executable.
3358
as_me=`echo "$0" |sed 's,.*[\\/],,'`
3359
 
3360
if expr a : '\(a\)' >/dev/null 2>&1; then
3361
  as_expr=expr
3362
else
3363
  as_expr=false
3364
fi
3365
 
3366
rm -f conf$$ conf$$.exe conf$$.file
3367
echo >conf$$.file
3368
if ln -s conf$$.file conf$$ 2>/dev/null; then
3369
  # We could just check for DJGPP; but this test a) works b) is more generic
3370
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3371
  if test -f conf$$.exe; then
3372
    # Don't use ln at all; we don't have any links
3373
    as_ln_s='cp -p'
3374
  else
3375
    as_ln_s='ln -s'
3376
  fi
3377
elif ln conf$$.file conf$$ 2>/dev/null; then
3378
  as_ln_s=ln
3379
else
3380
  as_ln_s='cp -p'
3381
fi
3382
rm -f conf$$ conf$$.exe conf$$.file
3383
 
3384
as_executable_p="test -f"
3385
 
3386
# Support unset when possible.
3387
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3388
  as_unset=unset
3389
else
3390
  as_unset=false
3391
fi
3392
 
3393
# NLS nuisances.
3394
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3395
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3396
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3397
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3398
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3399
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3400
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3401
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3402
 
3403
# IFS
3404
# We need space, tab and new line, in precisely that order.
3405
as_nl='
3406
'
3407
IFS="   $as_nl"
3408
 
3409
# CDPATH.
3410
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3411
 
3412
exec 6>&1
3413
 
3414
_ACEOF
3415
 
3416
# Files that config.status was made for.
3417
if test -n "$ac_config_files"; then
3418
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3419
fi
3420
 
3421
if test -n "$ac_config_headers"; then
3422
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3423
fi
3424
 
3425
if test -n "$ac_config_links"; then
3426
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3427
fi
3428
 
3429
if test -n "$ac_config_commands"; then
3430
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3431
fi
3432
 
3433
cat >>$CONFIG_STATUS <<\EOF
3434
 
3435
ac_cs_usage="\
3436
\`$as_me' instantiates files from templates according to the
3437
current configuration.
3438
 
3439
Usage: $0 [OPTIONS] [FILE]...
3440
 
3441
  -h, --help       print this help, then exit
3442
  -V, --version    print version number, then exit
3443
  -d, --debug      don't remove temporary files
3444
      --recheck    update $as_me by reconfiguring in the same conditions
3445
  --file=FILE[:TEMPLATE]
3446
                   instantiate the configuration file FILE
3447
  --header=FILE[:TEMPLATE]
3448
                   instantiate the configuration header FILE
3449
 
3450
Configuration files:
3451
$config_files
3452
 
3453
Configuration headers:
3454
$config_headers
3455
 
3456
Configuration commands:
3457
$config_commands
3458
 
3459
Report bugs to ."
3460
EOF
3461
 
3462
cat >>$CONFIG_STATUS <
3463
ac_cs_version="\\
3464
rtems-c-src-lib-libbsp-arm-armulator config.status ss-20020807
3465
configured by $0, generated by GNU Autoconf 2.52,
3466
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3467
 
3468
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3469
Free Software Foundation, Inc.
3470
This config.status script is free software; the Free Software Foundation
3471
gives unlimited permission to copy, distribute and modify it."
3472
srcdir=$srcdir
3473
INSTALL="$INSTALL"
3474
EOF
3475
 
3476
cat >>$CONFIG_STATUS <<\EOF
3477
# If no file are specified by the user, then we need to provide default
3478
# value.  By we need to know if files were specified by the user.
3479
ac_need_defaults=:
3480
while test $# != 0
3481
do
3482
  case $1 in
3483
  --*=*)
3484
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3485
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3486
    shift
3487
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3488
    shift
3489
    ;;
3490
  -*);;
3491
  *) # This is not an option, so the user has probably given explicit
3492
     # arguments.
3493
     ac_need_defaults=false;;
3494
  esac
3495
 
3496
  case $1 in
3497
  # Handling of the options.
3498
EOF
3499
cat >>$CONFIG_STATUS <
3500
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3501
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3502
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3503
EOF
3504
cat >>$CONFIG_STATUS <<\EOF
3505
  --version | --vers* | -V )
3506
    echo "$ac_cs_version"; exit 0 ;;
3507
  --he | --h)
3508
    # Conflict between --help and --header
3509
    { { echo "$as_me:3509: error: ambiguous option: $1
3510
Try \`$0 --help' for more information." >&5
3511
echo "$as_me: error: ambiguous option: $1
3512
Try \`$0 --help' for more information." >&2;}
3513
   { (exit 1); exit 1; }; };;
3514
  --help | --hel | -h )
3515
    echo "$ac_cs_usage"; exit 0 ;;
3516
  --debug | --d* | -d )
3517
    debug=: ;;
3518
  --file | --fil | --fi | --f )
3519
    shift
3520
    CONFIG_FILES="$CONFIG_FILES $1"
3521
    ac_need_defaults=false;;
3522
  --header | --heade | --head | --hea )
3523
    shift
3524
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
3525
    ac_need_defaults=false;;
3526
 
3527
  # This is an error.
3528
  -*) { { echo "$as_me:3528: error: unrecognized option: $1
3529
Try \`$0 --help' for more information." >&5
3530
echo "$as_me: error: unrecognized option: $1
3531
Try \`$0 --help' for more information." >&2;}
3532
   { (exit 1); exit 1; }; } ;;
3533
 
3534
  *) ac_config_targets="$ac_config_targets $1" ;;
3535
 
3536
  esac
3537
  shift
3538
done
3539
 
3540
exec 5>>config.log
3541
cat >&5 << _ACEOF
3542
 
3543
## ----------------------- ##
3544
## Running config.status.  ##
3545
## ----------------------- ##
3546
 
3547
This file was extended by $as_me (rtems-c-src-lib-libbsp-arm-armulator ss-20020807) 2.52, executed with
3548
  CONFIG_FILES    = $CONFIG_FILES
3549
  CONFIG_HEADERS  = $CONFIG_HEADERS
3550
  CONFIG_LINKS    = $CONFIG_LINKS
3551
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3552
  > $ac_cs_invocation
3553
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3554
 
3555
_ACEOF
3556
EOF
3557
 
3558
cat >>$CONFIG_STATUS <
3559
#
3560
# INIT-COMMANDS section.
3561
#
3562
 
3563
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3564
 
3565
EOF
3566
 
3567
cat >>$CONFIG_STATUS <<\EOF
3568
for ac_config_target in $ac_config_targets
3569
do
3570
  case "$ac_config_target" in
3571
  # Handling of arguments.
3572
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3573
  "clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES clock/Makefile" ;;
3574
  "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
3575
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
3576
  "start/Makefile" ) CONFIG_FILES="$CONFIG_FILES start/Makefile" ;;
3577
  "startup/Makefile" ) CONFIG_FILES="$CONFIG_FILES startup/Makefile" ;;
3578
  "timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES timer/Makefile" ;;
3579
  "wrapup/Makefile" ) CONFIG_FILES="$CONFIG_FILES wrapup/Makefile" ;;
3580
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3581
  "include/bspopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/bspopts.h" ;;
3582
  *) { { echo "$as_me:3582: error: invalid argument: $ac_config_target" >&5
3583
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3584
   { (exit 1); exit 1; }; };;
3585
  esac
3586
done
3587
 
3588
# If the user did not use the arguments to specify the items to instantiate,
3589
# then the envvar interface is used.  Set only those that are not.
3590
# We use the long form for the default assignment because of an extremely
3591
# bizarre bug on SunOS 4.1.3.
3592
if $ac_need_defaults; then
3593
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3594
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3595
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3596
fi
3597
 
3598
# Create a temporary directory, and hook for its removal unless debugging.
3599
$debug ||
3600
{
3601
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3602
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3603
}
3604
 
3605
# Create a (secure) tmp directory for tmp files.
3606
: ${TMPDIR=/tmp}
3607
{
3608
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3609
  test -n "$tmp" && test -d "$tmp"
3610
}  ||
3611
{
3612
  tmp=$TMPDIR/cs$$-$RANDOM
3613
  (umask 077 && mkdir $tmp)
3614
} ||
3615
{
3616
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3617
   { (exit 1); exit 1; }
3618
}
3619
 
3620
EOF
3621
 
3622
cat >>$CONFIG_STATUS <
3623
 
3624
#
3625
# CONFIG_FILES section.
3626
#
3627
 
3628
# No need to generate the scripts if there are no CONFIG_FILES.
3629
# This happens for instance when ./config.status config.h
3630
if test -n "\$CONFIG_FILES"; then
3631
  # Protect against being on the right side of a sed subst in config.status.
3632
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3633
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3634
s,@SHELL@,$SHELL,;t t
3635
s,@exec_prefix@,$exec_prefix,;t t
3636
s,@prefix@,$prefix,;t t
3637
s,@program_transform_name@,$program_transform_name,;t t
3638
s,@bindir@,$bindir,;t t
3639
s,@sbindir@,$sbindir,;t t
3640
s,@libexecdir@,$libexecdir,;t t
3641
s,@datadir@,$datadir,;t t
3642
s,@sysconfdir@,$sysconfdir,;t t
3643
s,@sharedstatedir@,$sharedstatedir,;t t
3644
s,@localstatedir@,$localstatedir,;t t
3645
s,@libdir@,$libdir,;t t
3646
s,@includedir@,$includedir,;t t
3647
s,@oldincludedir@,$oldincludedir,;t t
3648
s,@infodir@,$infodir,;t t
3649
s,@mandir@,$mandir,;t t
3650
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3651
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3652
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3653
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3654
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3655
s,@build_alias@,$build_alias,;t t
3656
s,@host_alias@,$host_alias,;t t
3657
s,@target_alias@,$target_alias,;t t
3658
s,@ECHO_C@,$ECHO_C,;t t
3659
s,@ECHO_N@,$ECHO_N,;t t
3660
s,@ECHO_T@,$ECHO_T,;t t
3661
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3662
s,@DEFS@,$DEFS,;t t
3663
s,@LIBS@,$LIBS,;t t
3664
s,@MAKE@,$MAKE,;t t
3665
s,@ENDIF@,$ENDIF,;t t
3666
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
3667
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
3668
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
3669
s,@build@,$build,;t t
3670
s,@build_cpu@,$build_cpu,;t t
3671
s,@build_vendor@,$build_vendor,;t t
3672
s,@build_os@,$build_os,;t t
3673
s,@host@,$host,;t t
3674
s,@host_cpu@,$host_cpu,;t t
3675
s,@host_vendor@,$host_vendor,;t t
3676
s,@host_os@,$host_os,;t t
3677
s,@target@,$target,;t t
3678
s,@target_cpu@,$target_cpu,;t t
3679
s,@target_vendor@,$target_vendor,;t t
3680
s,@target_os@,$target_os,;t t
3681
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
3682
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3683
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3684
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3685
s,@PACKAGE@,$PACKAGE,;t t
3686
s,@VERSION@,$VERSION,;t t
3687
s,@ACLOCAL@,$ACLOCAL,;t t
3688
s,@AUTOCONF@,$AUTOCONF,;t t
3689
s,@AUTOMAKE@,$AUTOMAKE,;t t
3690
s,@AUTOHEADER@,$AUTOHEADER,;t t
3691
s,@MAKEINFO@,$MAKEINFO,;t t
3692
s,@AMTAR@,$AMTAR,;t t
3693
s,@install_sh@,$install_sh,;t t
3694
s,@STRIP@,$STRIP,;t t
3695
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3696
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3697
s,@AWK@,$AWK,;t t
3698
s,@SET_MAKE@,$SET_MAKE,;t t
3699
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3700
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3701
s,@MAINT@,$MAINT,;t t
3702
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
3703
s,@RTEMS_BSP_SPECS@,$RTEMS_BSP_SPECS,;t t
3704
s,@GCC_SPECS@,$GCC_SPECS,;t t
3705
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
3706
s,@PROJECT_RELEASE@,$PROJECT_RELEASE,;t t
3707
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
3708
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
3709
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
3710
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
3711
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
3712
s,@bsplibdir@,$bsplibdir,;t t
3713
s,@RTEMS_CPU_MODEL@,$RTEMS_CPU_MODEL,;t t
3714
s,@RTEMS_BSP_FAMILY@,$RTEMS_BSP_FAMILY,;t t
3715
s,@RTEMS_HOST@,$RTEMS_HOST,;t t
3716
s,@PACKHEX@,$PACKHEX,;t t
3717
s,@HAS_MP@,$HAS_MP,;t t
3718
s,@CC@,$CC,;t t
3719
s,@CFLAGS@,$CFLAGS,;t t
3720
s,@LDFLAGS@,$LDFLAGS,;t t
3721
s,@CPPFLAGS@,$CPPFLAGS,;t t
3722
s,@ac_ct_CC@,$ac_ct_CC,;t t
3723
s,@EXEEXT@,$EXEEXT,;t t
3724
s,@OBJEXT@,$OBJEXT,;t t
3725
s,@DEPDIR@,$DEPDIR,;t t
3726
s,@am__include@,$am__include,;t t
3727
s,@am__quote@,$am__quote,;t t
3728
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3729
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3730
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3731
s,@CCDEPMODE@,$CCDEPMODE,;t t
3732
s,@CPP@,$CPP,;t t
3733
s,@RTEMS_USE_GCC_TRUE@,$RTEMS_USE_GCC_TRUE,;t t
3734
s,@RTEMS_USE_GCC_FALSE@,$RTEMS_USE_GCC_FALSE,;t t
3735
s,@GCCSED@,$GCCSED,;t t
3736
s,@AR@,$AR,;t t
3737
s,@AS@,$AS,;t t
3738
s,@LD@,$LD,;t t
3739
s,@NM@,$NM,;t t
3740
s,@RANLIB@,$RANLIB,;t t
3741
s,@OBJCOPY@,$OBJCOPY,;t t
3742
s,@SIZE@,$SIZE,;t t
3743
CEOF
3744
 
3745
EOF
3746
 
3747
  cat >>$CONFIG_STATUS <<\EOF
3748
  # Split the substitutions into bite-sized pieces for seds with
3749
  # small command number limits, like on Digital OSF/1 and HP-UX.
3750
  ac_max_sed_lines=48
3751
  ac_sed_frag=1 # Number of current file.
3752
  ac_beg=1 # First line for current file.
3753
  ac_end=$ac_max_sed_lines # Line after last line for current file.
3754
  ac_more_lines=:
3755
  ac_sed_cmds=
3756
  while $ac_more_lines; do
3757
    if test $ac_beg -gt 1; then
3758
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3759
    else
3760
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3761
    fi
3762
    if test ! -s $tmp/subs.frag; then
3763
      ac_more_lines=false
3764
    else
3765
      # The purpose of the label and of the branching condition is to
3766
      # speed up the sed processing (if there are no `@' at all, there
3767
      # is no need to browse any of the substitutions).
3768
      # These are the two extra sed commands mentioned above.
3769
      (echo ':t
3770
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3771
      if test -z "$ac_sed_cmds"; then
3772
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3773
      else
3774
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3775
      fi
3776
      ac_sed_frag=`expr $ac_sed_frag + 1`
3777
      ac_beg=$ac_end
3778
      ac_end=`expr $ac_end + $ac_max_sed_lines`
3779
    fi
3780
  done
3781
  if test -z "$ac_sed_cmds"; then
3782
    ac_sed_cmds=cat
3783
  fi
3784
fi # test -n "$CONFIG_FILES"
3785
 
3786
EOF
3787
cat >>$CONFIG_STATUS <<\EOF
3788
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3789
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3790
  case $ac_file in
3791
  - | *:- | *:-:* ) # input from stdin
3792
        cat >$tmp/stdin
3793
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3794
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3795
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3796
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3797
  * )   ac_file_in=$ac_file.in ;;
3798
  esac
3799
 
3800
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3801
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3802
         X"$ac_file" : 'X\(//\)[^/]' \| \
3803
         X"$ac_file" : 'X\(//\)$' \| \
3804
         X"$ac_file" : 'X\(/\)' \| \
3805
         .     : '\(.\)' 2>/dev/null ||
3806
echo X"$ac_file" |
3807
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3808
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3809
          /^X\(\/\/\)$/{ s//\1/; q; }
3810
          /^X\(\/\).*/{ s//\1/; q; }
3811
          s/.*/./; q'`
3812
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3813
    { case "$ac_dir" in
3814
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3815
  *)                      as_incr_dir=.;;
3816
esac
3817
as_dummy="$ac_dir"
3818
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3819
  case $as_mkdir_dir in
3820
    # Skip DOS drivespec
3821
    ?:) as_incr_dir=$as_mkdir_dir ;;
3822
    *)
3823
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3824
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3825
    ;;
3826
  esac
3827
done; }
3828
 
3829
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3830
    # A "../" for each directory in $ac_dir_suffix.
3831
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3832
  else
3833
    ac_dir_suffix= ac_dots=
3834
  fi
3835
 
3836
  case $srcdir in
3837
  .)  ac_srcdir=.
3838
      if test -z "$ac_dots"; then
3839
         ac_top_srcdir=.
3840
      else
3841
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3842
      fi ;;
3843
  [\\/]* | ?:[\\/]* )
3844
      ac_srcdir=$srcdir$ac_dir_suffix;
3845
      ac_top_srcdir=$srcdir ;;
3846
  *) # Relative path.
3847
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3848
    ac_top_srcdir=$ac_dots$srcdir ;;
3849
  esac
3850
 
3851
  case $INSTALL in
3852
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3853
  *) ac_INSTALL=$ac_dots$INSTALL ;;
3854
  esac
3855
 
3856
  if test x"$ac_file" != x-; then
3857
    { echo "$as_me:3857: creating $ac_file" >&5
3858
echo "$as_me: creating $ac_file" >&6;}
3859
    rm -f "$ac_file"
3860
  fi
3861
  # Let's still pretend it is `configure' which instantiates (i.e., don't
3862
  # use $as_me), people would be surprised to read:
3863
  #    /* config.h.  Generated automatically by config.status.  */
3864
  configure_input="Generated automatically from `echo $ac_file_in |
3865
                                                 sed 's,.*/,,'` by configure."
3866
 
3867
  # First look for the input files in the build tree, otherwise in the
3868
  # src tree.
3869
  ac_file_inputs=`IFS=:
3870
    for f in $ac_file_in; do
3871
      case $f in
3872
      -) echo $tmp/stdin ;;
3873
      [\\/$]*)
3874
         # Absolute (can't be DOS-style, as IFS=:)
3875
         test -f "$f" || { { echo "$as_me:3875: error: cannot find input file: $f" >&5
3876
echo "$as_me: error: cannot find input file: $f" >&2;}
3877
   { (exit 1); exit 1; }; }
3878
         echo $f;;
3879
      *) # Relative
3880
         if test -f "$f"; then
3881
           # Build tree
3882
           echo $f
3883
         elif test -f "$srcdir/$f"; then
3884
           # Source tree
3885
           echo $srcdir/$f
3886
         else
3887
           # /dev/null tree
3888
           { { echo "$as_me:3888: error: cannot find input file: $f" >&5
3889
echo "$as_me: error: cannot find input file: $f" >&2;}
3890
   { (exit 1); exit 1; }; }
3891
         fi;;
3892
      esac
3893
    done` || { (exit 1); exit 1; }
3894
EOF
3895
cat >>$CONFIG_STATUS <
3896
  sed "$ac_vpsub
3897
$extrasub
3898
EOF
3899
cat >>$CONFIG_STATUS <<\EOF
3900
:t
3901
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3902
s,@configure_input@,$configure_input,;t t
3903
s,@srcdir@,$ac_srcdir,;t t
3904
s,@top_srcdir@,$ac_top_srcdir,;t t
3905
s,@INSTALL@,$ac_INSTALL,;t t
3906
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3907
  rm -f $tmp/stdin
3908
  if test x"$ac_file" != x-; then
3909
    mv $tmp/out $ac_file
3910
  else
3911
    cat $tmp/out
3912
    rm -f $tmp/out
3913
  fi
3914
 
3915
done
3916
EOF
3917
cat >>$CONFIG_STATUS <<\EOF
3918
 
3919
#
3920
# CONFIG_HEADER section.
3921
#
3922
 
3923
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3924
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3925
#
3926
# ac_d sets the value in "#define NAME VALUE" lines.
3927
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3928
ac_dB='[        ].*$,\1#\2'
3929
ac_dC=' '
3930
ac_dD=',;t'
3931
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3932
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3933
ac_uB='$,\1#\2define\3'
3934
ac_uC=' '
3935
ac_uD=',;t'
3936
 
3937
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3938
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3939
  case $ac_file in
3940
  - | *:- | *:-:* ) # input from stdin
3941
        cat >$tmp/stdin
3942
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3943
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3944
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3945
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3946
  * )   ac_file_in=$ac_file.in ;;
3947
  esac
3948
 
3949
  test x"$ac_file" != x- && { echo "$as_me:3949: creating $ac_file" >&5
3950
echo "$as_me: creating $ac_file" >&6;}
3951
 
3952
  # First look for the input files in the build tree, otherwise in the
3953
  # src tree.
3954
  ac_file_inputs=`IFS=:
3955
    for f in $ac_file_in; do
3956
      case $f in
3957
      -) echo $tmp/stdin ;;
3958
      [\\/$]*)
3959
         # Absolute (can't be DOS-style, as IFS=:)
3960
         test -f "$f" || { { echo "$as_me:3960: error: cannot find input file: $f" >&5
3961
echo "$as_me: error: cannot find input file: $f" >&2;}
3962
   { (exit 1); exit 1; }; }
3963
         echo $f;;
3964
      *) # Relative
3965
         if test -f "$f"; then
3966
           # Build tree
3967
           echo $f
3968
         elif test -f "$srcdir/$f"; then
3969
           # Source tree
3970
           echo $srcdir/$f
3971
         else
3972
           # /dev/null tree
3973
           { { echo "$as_me:3973: error: cannot find input file: $f" >&5
3974
echo "$as_me: error: cannot find input file: $f" >&2;}
3975
   { (exit 1); exit 1; }; }
3976
         fi;;
3977
      esac
3978
    done` || { (exit 1); exit 1; }
3979
  # Remove the trailing spaces.
3980
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
3981
 
3982
EOF
3983
 
3984
# Transform confdefs.h into two sed scripts, `conftest.defines' and
3985
# `conftest.undefs', that substitutes the proper values into
3986
# config.h.in to produce config.h.  The first handles `#define'
3987
# templates, and the second `#undef' templates.
3988
# And first: Protect against being on the right side of a sed subst in
3989
# config.status.  Protect against being in an unquoted here document
3990
# in config.status.
3991
rm -f conftest.defines conftest.undefs
3992
# Using a here document instead of a string reduces the quoting nightmare.
3993
# Putting comments in sed scripts is not portable.
3994
#
3995
# `end' is used to avoid that the second main sed command (meant for
3996
# 0-ary CPP macros) applies to n-ary macro definitions.
3997
# See the Autoconf documentation for `clear'.
3998
cat >confdef2sed.sed <<\EOF
3999
s/[\\&,]/\\&/g
4000
s,[\\$`],\\&,g
4001
t clear
4002
: clear
4003
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4004
t end
4005
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4006
: end
4007
EOF
4008
# If some macros were called several times there might be several times
4009
# the same #defines, which is useless.  Nevertheless, we may not want to
4010
# sort them, since we want the *last* AC-DEFINE to be honored.
4011
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4012
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4013
rm -f confdef2sed.sed
4014
 
4015
# This sed command replaces #undef with comments.  This is necessary, for
4016
# example, in the case of _POSIX_SOURCE, which is predefined and required
4017
# on some systems where configure will not decide to define it.
4018
cat >>conftest.undefs <<\EOF
4019
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4020
EOF
4021
 
4022
# Break up conftest.defines because some shells have a limit on the size
4023
# of here documents, and old seds have small limits too (100 cmds).
4024
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4025
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4026
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4027
echo '  :' >>$CONFIG_STATUS
4028
rm -f conftest.tail
4029
while grep . conftest.defines >/dev/null
4030
do
4031
  # Write a limited-size here document to $tmp/defines.sed.
4032
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
4033
  # Speed up: don't consider the non `#define' lines.
4034
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4035
  # Work around the forget-to-reset-the-flag bug.
4036
  echo 't clr' >>$CONFIG_STATUS
4037
  echo ': clr' >>$CONFIG_STATUS
4038
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4039
  echo 'CEOF
4040
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4041
  rm -f $tmp/in
4042
  mv $tmp/out $tmp/in
4043
' >>$CONFIG_STATUS
4044
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4045
  rm -f conftest.defines
4046
  mv conftest.tail conftest.defines
4047
done
4048
rm -f conftest.defines
4049
echo '  fi # egrep' >>$CONFIG_STATUS
4050
echo >>$CONFIG_STATUS
4051
 
4052
# Break up conftest.undefs because some shells have a limit on the size
4053
# of here documents, and old seds have small limits too (100 cmds).
4054
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4055
rm -f conftest.tail
4056
while grep . conftest.undefs >/dev/null
4057
do
4058
  # Write a limited-size here document to $tmp/undefs.sed.
4059
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
4060
  # Speed up: don't consider the non `#undef'
4061
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4062
  # Work around the forget-to-reset-the-flag bug.
4063
  echo 't clr' >>$CONFIG_STATUS
4064
  echo ': clr' >>$CONFIG_STATUS
4065
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4066
  echo 'CEOF
4067
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4068
  rm -f $tmp/in
4069
  mv $tmp/out $tmp/in
4070
' >>$CONFIG_STATUS
4071
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4072
  rm -f conftest.undefs
4073
  mv conftest.tail conftest.undefs
4074
done
4075
rm -f conftest.undefs
4076
 
4077
cat >>$CONFIG_STATUS <<\EOF
4078
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4079
  # use $as_me), people would be surprised to read:
4080
  #    /* config.h.  Generated automatically by config.status.  */
4081
  if test x"$ac_file" = x-; then
4082
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
4083
  else
4084
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4085
  fi
4086
  cat $tmp/in >>$tmp/config.h
4087
  rm -f $tmp/in
4088
  if test x"$ac_file" != x-; then
4089
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4090
      { echo "$as_me:4090: $ac_file is unchanged" >&5
4091
echo "$as_me: $ac_file is unchanged" >&6;}
4092
    else
4093
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4094
         X"$ac_file" : 'X\(//\)[^/]' \| \
4095
         X"$ac_file" : 'X\(//\)$' \| \
4096
         X"$ac_file" : 'X\(/\)' \| \
4097
         .     : '\(.\)' 2>/dev/null ||
4098
echo X"$ac_file" |
4099
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4100
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4101
          /^X\(\/\/\)$/{ s//\1/; q; }
4102
          /^X\(\/\).*/{ s//\1/; q; }
4103
          s/.*/./; q'`
4104
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4105
        { case "$ac_dir" in
4106
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4107
  *)                      as_incr_dir=.;;
4108
esac
4109
as_dummy="$ac_dir"
4110
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4111
  case $as_mkdir_dir in
4112
    # Skip DOS drivespec
4113
    ?:) as_incr_dir=$as_mkdir_dir ;;
4114
    *)
4115
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4116
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4117
    ;;
4118
  esac
4119
done; }
4120
 
4121
      fi
4122
      rm -f $ac_file
4123
      mv $tmp/config.h $ac_file
4124
    fi
4125
  else
4126
    cat $tmp/config.h
4127
    rm -f $tmp/config.h
4128
  fi
4129
  # Run the commands associated with the file.
4130
  case $ac_file in
4131
    include/bspopts.h ) # update the timestamp
4132
echo 'timestamp for include/bspopts.h' >"include/stamp-h1"
4133
 ;;
4134
  esac
4135
done
4136
EOF
4137
cat >>$CONFIG_STATUS <<\EOF
4138
 
4139
#
4140
# CONFIG_COMMANDS section.
4141
#
4142
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4143
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4144
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4145
 
4146
  case $ac_dest in
4147
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4148
  # Strip MF so we end up with the name of the file.
4149
  mf=`echo "$mf" | sed -e 's/:.*$//'`
4150
  # Check whether this is an Automake generated Makefile or not.
4151
  # We used to match only the files named `Makefile.in', but
4152
  # some people rename them; so instead we look at the file content.
4153
  # Grep'ing the first line is not enough: some people post-process
4154
  # each Makefile.in and add a new line on top of each file to say so.
4155
  # So let's grep whole file.
4156
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4157
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4158
         X"$mf" : 'X\(//\)[^/]' \| \
4159
         X"$mf" : 'X\(//\)$' \| \
4160
         X"$mf" : 'X\(/\)' \| \
4161
         .     : '\(.\)' 2>/dev/null ||
4162
echo X"$mf" |
4163
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4164
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4165
          /^X\(\/\/\)$/{ s//\1/; q; }
4166
          /^X\(\/\).*/{ s//\1/; q; }
4167
          s/.*/./; q'`
4168
  else
4169
    continue
4170
  fi
4171
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4172
  # Extract the definition of DEP_FILES from the Makefile without
4173
  # running `make'.
4174
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4175
  test -z "$DEPDIR" && continue
4176
  # When using ansi2knr, U may be empty or an underscore; expand it
4177
  U=`sed -n -e '/^U = / s///p' < "$mf"`
4178
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4179
  # We invoke sed twice because it is the simplest approach to
4180
  # changing $(DEPDIR) to its actual value in the expansion.
4181
  for file in `sed -n -e '
4182
    /^DEP_FILES = .*\\\\$/ {
4183
      s/^DEP_FILES = //
4184
      :loop
4185
        s/\\\\$//
4186
        p
4187
        n
4188
        /\\\\$/ b loop
4189
      p
4190
    }
4191
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4192
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4193
    # Make sure the directory exists.
4194
    test -f "$dirpart/$file" && continue
4195
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4196
         X"$file" : 'X\(//\)[^/]' \| \
4197
         X"$file" : 'X\(//\)$' \| \
4198
         X"$file" : 'X\(/\)' \| \
4199
         .     : '\(.\)' 2>/dev/null ||
4200
echo X"$file" |
4201
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4202
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4203
          /^X\(\/\/\)$/{ s//\1/; q; }
4204
          /^X\(\/\).*/{ s//\1/; q; }
4205
          s/.*/./; q'`
4206
    { case $dirpart/$fdir in
4207
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4208
  *)                      as_incr_dir=.;;
4209
esac
4210
as_dummy=$dirpart/$fdir
4211
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4212
  case $as_mkdir_dir in
4213
    # Skip DOS drivespec
4214
    ?:) as_incr_dir=$as_mkdir_dir ;;
4215
    *)
4216
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4217
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4218
    ;;
4219
  esac
4220
done; }
4221
 
4222
    # echo "creating $dirpart/$file"
4223
    echo '# dummy' > "$dirpart/$file"
4224
  done
4225
done
4226
 ;;
4227
  esac
4228
done
4229
EOF
4230
 
4231
cat >>$CONFIG_STATUS <<\EOF
4232
 
4233
{ (exit 0); exit 0; }
4234
EOF
4235
chmod +x $CONFIG_STATUS
4236
ac_clean_files=$ac_clean_files_save
4237
 
4238
# configure is writing to config.log, and then calls config.status.
4239
# config.status does its own redirection, appending to config.log.
4240
# Unfortunately, on DOS this fails, as config.log is still kept open
4241
# by configure, so config.status won't be able to write to it; its
4242
# output is simply discarded.  So we exec the FD to /dev/null,
4243
# effectively closing config.log, so it can be properly (re)opened and
4244
# appended to by config.status.  When coming back to configure, we
4245
# need to make the FD available again.
4246
if test "$no_create" != yes; then
4247
  ac_cs_success=:
4248
  exec 5>/dev/null
4249
  $SHELL $CONFIG_STATUS || ac_cs_success=false
4250
  exec 5>>config.log
4251
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4252
  # would make configure fail if this is the last instruction.
4253
  $ac_cs_success || { (exit 1); exit 1; }
4254
fi
4255
 

powered by: WebSVN 2.1.0

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