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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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