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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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