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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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