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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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