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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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