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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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