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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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