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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [optman/] [configure] - Blame information for rev 1780

Go to most recent revision | 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-optman ss-20020807.
4
#
5
# Report bugs to .
6
#
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
 
12
# Avoid depending upon Character Ranges.
13
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16
as_cr_digits='0123456789'
17
as_cr_alnum=$as_cr_Letters$as_cr_digits
18
 
19
# Sed expression to map a string onto a valid variable name.
20
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
 
22
# Sed expression to map a string onto a valid CPP name.
23
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
 
25
# Be Bourne compatible
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27
  emulate sh
28
  NULLCMD=:
29
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
  set -o posix
31
fi
32
 
33
# Name of the executable.
34
as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
 
36
if expr a : '\(a\)' >/dev/null 2>&1; then
37
  as_expr=expr
38
else
39
  as_expr=false
40
fi
41
 
42
rm -f conf$$ conf$$.exe conf$$.file
43
echo >conf$$.file
44
if ln -s conf$$.file conf$$ 2>/dev/null; then
45
  # We could just check for DJGPP; but this test a) works b) is more generic
46
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47
  if test -f conf$$.exe; then
48
    # Don't use ln at all; we don't have any links
49
    as_ln_s='cp -p'
50
  else
51
    as_ln_s='ln -s'
52
  fi
53
elif ln conf$$.file conf$$ 2>/dev/null; then
54
  as_ln_s=ln
55
else
56
  as_ln_s='cp -p'
57
fi
58
rm -f conf$$ conf$$.exe conf$$.file
59
 
60
as_executable_p="test -f"
61
 
62
# Support unset when possible.
63
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64
  as_unset=unset
65
else
66
  as_unset=false
67
fi
68
 
69
# NLS nuisances.
70
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
 
79
# IFS
80
# We need space, tab and new line, in precisely that order.
81
as_nl='
82
'
83
IFS="   $as_nl"
84
 
85
# CDPATH.
86
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
 
88
# Name of the host.
89
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90
# so uname gets run too.
91
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
 
93
exec 6>&1
94
 
95
#
96
# Initializations.
97
#
98
ac_default_prefix=/usr/local
99
cross_compiling=no
100
subdirs=
101
MFLAGS= MAKEFLAGS=
102
SHELL=${CONFIG_SHELL-/bin/sh}
103
 
104
# Maximum number of lines to put in a shell here document.
105
# This variable seems obsolete.  It should probably be removed, and
106
# only ac_max_sed_lines should be used.
107
: ${ac_max_here_lines=38}
108
 
109
ac_unique_file="rtems"
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-optman'
152
PACKAGE_TARNAME='rtems-c-src-optman'
153
PACKAGE_VERSION='ss-20020807'
154
PACKAGE_STRING='rtems-c-src-optman ss-20020807'
155
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
156
 
157
ac_prev=
158
for ac_option
159
do
160
  # If the previous option needs an argument, assign it.
161
  if test -n "$ac_prev"; then
162
    eval "$ac_prev=\$ac_option"
163
    ac_prev=
164
    continue
165
  fi
166
 
167
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168
 
169
  # Accept the important Cygnus configure options, so we can diagnose typos.
170
 
171
  case $ac_option in
172
 
173
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
174
    ac_prev=bindir ;;
175
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176
    bindir=$ac_optarg ;;
177
 
178
  -build | --build | --buil | --bui | --bu)
179
    ac_prev=build_alias ;;
180
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
181
    build_alias=$ac_optarg ;;
182
 
183
  -cache-file | --cache-file | --cache-fil | --cache-fi \
184
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
185
    ac_prev=cache_file ;;
186
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
187
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
188
    cache_file=$ac_optarg ;;
189
 
190
  --config-cache | -C)
191
    cache_file=config.cache ;;
192
 
193
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194
    ac_prev=datadir ;;
195
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196
  | --da=*)
197
    datadir=$ac_optarg ;;
198
 
199
  -disable-* | --disable-*)
200
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
201
    # Reject names that are not valid shell variable names.
202
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
203
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
204
   { (exit 1); exit 1; }; }
205
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
206
    eval "enable_$ac_feature=no" ;;
207
 
208
  -enable-* | --enable-*)
209
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
210
    # Reject names that are not valid shell variable names.
211
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
212
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
213
   { (exit 1); exit 1; }; }
214
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
215
    case $ac_option in
216
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217
      *) ac_optarg=yes ;;
218
    esac
219
    eval "enable_$ac_feature='$ac_optarg'" ;;
220
 
221
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
222
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
223
  | --exec | --exe | --ex)
224
    ac_prev=exec_prefix ;;
225
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
226
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
227
  | --exec=* | --exe=* | --ex=*)
228
    exec_prefix=$ac_optarg ;;
229
 
230
  -gas | --gas | --ga | --g)
231
    # Obsolete; use --with-gas.
232
    with_gas=yes ;;
233
 
234
  -help | --help | --hel | --he | -h)
235
    ac_init_help=long ;;
236
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
237
    ac_init_help=recursive ;;
238
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
239
    ac_init_help=short ;;
240
 
241
  -host | --host | --hos | --ho)
242
    ac_prev=host_alias ;;
243
  -host=* | --host=* | --hos=* | --ho=*)
244
    host_alias=$ac_optarg ;;
245
 
246
  -includedir | --includedir | --includedi | --included | --include \
247
  | --includ | --inclu | --incl | --inc)
248
    ac_prev=includedir ;;
249
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250
  | --includ=* | --inclu=* | --incl=* | --inc=*)
251
    includedir=$ac_optarg ;;
252
 
253
  -infodir | --infodir | --infodi | --infod | --info | --inf)
254
    ac_prev=infodir ;;
255
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256
    infodir=$ac_optarg ;;
257
 
258
  -libdir | --libdir | --libdi | --libd)
259
    ac_prev=libdir ;;
260
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
261
    libdir=$ac_optarg ;;
262
 
263
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264
  | --libexe | --libex | --libe)
265
    ac_prev=libexecdir ;;
266
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267
  | --libexe=* | --libex=* | --libe=*)
268
    libexecdir=$ac_optarg ;;
269
 
270
  -localstatedir | --localstatedir | --localstatedi | --localstated \
271
  | --localstate | --localstat | --localsta | --localst \
272
  | --locals | --local | --loca | --loc | --lo)
273
    ac_prev=localstatedir ;;
274
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277
    localstatedir=$ac_optarg ;;
278
 
279
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280
    ac_prev=mandir ;;
281
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282
    mandir=$ac_optarg ;;
283
 
284
  -nfp | --nfp | --nf)
285
    # Obsolete; use --without-fp.
286
    with_fp=no ;;
287
 
288
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289
  | --no-cr | --no-c)
290
    no_create=yes ;;
291
 
292
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294
    no_recursion=yes ;;
295
 
296
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298
  | --oldin | --oldi | --old | --ol | --o)
299
    ac_prev=oldincludedir ;;
300
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303
    oldincludedir=$ac_optarg ;;
304
 
305
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306
    ac_prev=prefix ;;
307
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308
    prefix=$ac_optarg ;;
309
 
310
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
311
  | --program-pre | --program-pr | --program-p)
312
    ac_prev=program_prefix ;;
313
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
314
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315
    program_prefix=$ac_optarg ;;
316
 
317
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
318
  | --program-suf | --program-su | --program-s)
319
    ac_prev=program_suffix ;;
320
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
321
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322
    program_suffix=$ac_optarg ;;
323
 
324
  -program-transform-name | --program-transform-name \
325
  | --program-transform-nam | --program-transform-na \
326
  | --program-transform-n | --program-transform- \
327
  | --program-transform | --program-transfor \
328
  | --program-transfo | --program-transf \
329
  | --program-trans | --program-tran \
330
  | --progr-tra | --program-tr | --program-t)
331
    ac_prev=program_transform_name ;;
332
  -program-transform-name=* | --program-transform-name=* \
333
  | --program-transform-nam=* | --program-transform-na=* \
334
  | --program-transform-n=* | --program-transform-=* \
335
  | --program-transform=* | --program-transfor=* \
336
  | --program-transfo=* | --program-transf=* \
337
  | --program-trans=* | --program-tran=* \
338
  | --progr-tra=* | --program-tr=* | --program-t=*)
339
    program_transform_name=$ac_optarg ;;
340
 
341
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342
  | -silent | --silent | --silen | --sile | --sil)
343
    silent=yes ;;
344
 
345
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346
    ac_prev=sbindir ;;
347
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348
  | --sbi=* | --sb=*)
349
    sbindir=$ac_optarg ;;
350
 
351
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
352
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353
  | --sharedst | --shareds | --shared | --share | --shar \
354
  | --sha | --sh)
355
    ac_prev=sharedstatedir ;;
356
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359
  | --sha=* | --sh=*)
360
    sharedstatedir=$ac_optarg ;;
361
 
362
  -site | --site | --sit)
363
    ac_prev=site ;;
364
  -site=* | --site=* | --sit=*)
365
    site=$ac_optarg ;;
366
 
367
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368
    ac_prev=srcdir ;;
369
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370
    srcdir=$ac_optarg ;;
371
 
372
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373
  | --syscon | --sysco | --sysc | --sys | --sy)
374
    ac_prev=sysconfdir ;;
375
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377
    sysconfdir=$ac_optarg ;;
378
 
379
  -target | --target | --targe | --targ | --tar | --ta | --t)
380
    ac_prev=target_alias ;;
381
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382
    target_alias=$ac_optarg ;;
383
 
384
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
385
    verbose=yes ;;
386
 
387
  -version | --version | --versio | --versi | --vers | -V)
388
    ac_init_version=: ;;
389
 
390
  -with-* | --with-*)
391
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
392
    # Reject names that are not valid shell variable names.
393
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394
      { echo "$as_me: error: invalid package name: $ac_package" >&2
395
   { (exit 1); exit 1; }; }
396
    ac_package=`echo $ac_package| sed 's/-/_/g'`
397
    case $ac_option in
398
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399
      *) ac_optarg=yes ;;
400
    esac
401
    eval "with_$ac_package='$ac_optarg'" ;;
402
 
403
  -without-* | --without-*)
404
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
405
    # Reject names that are not valid shell variable names.
406
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
      { echo "$as_me: error: invalid package name: $ac_package" >&2
408
   { (exit 1); exit 1; }; }
409
    ac_package=`echo $ac_package | sed 's/-/_/g'`
410
    eval "with_$ac_package=no" ;;
411
 
412
  --x)
413
    # Obsolete; use --with-x.
414
    with_x=yes ;;
415
 
416
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417
  | --x-incl | --x-inc | --x-in | --x-i)
418
    ac_prev=x_includes ;;
419
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421
    x_includes=$ac_optarg ;;
422
 
423
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
424
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425
    ac_prev=x_libraries ;;
426
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428
    x_libraries=$ac_optarg ;;
429
 
430
  -*) { echo "$as_me: error: unrecognized option: $ac_option
431
Try \`$0 --help' for more information." >&2
432
   { (exit 1); exit 1; }; }
433
    ;;
434
 
435
  *=*)
436
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
437
    # Reject names that are not valid shell variable names.
438
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
439
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
440
   { (exit 1); exit 1; }; }
441
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
442
    eval "$ac_envvar='$ac_optarg'"
443
    export $ac_envvar ;;
444
 
445
  *)
446
    # FIXME: should be removed in autoconf 3.0.
447
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
448
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
449
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
450
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
451
    ;;
452
 
453
  esac
454
done
455
 
456
if test -n "$ac_prev"; then
457
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
458
  { echo "$as_me: error: missing argument to $ac_option" >&2
459
   { (exit 1); exit 1; }; }
460
fi
461
 
462
# Be sure to have absolute paths.
463
for ac_var in exec_prefix prefix
464
do
465
  eval ac_val=$`echo $ac_var`
466
  case $ac_val in
467
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
468
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
469
   { (exit 1); exit 1; }; };;
470
  esac
471
done
472
 
473
# Be sure to have absolute paths.
474
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
475
              localstatedir libdir includedir oldincludedir infodir mandir
476
do
477
  eval ac_val=$`echo $ac_var`
478
  case $ac_val in
479
    [\\/$]* | ?:[\\/]* ) ;;
480
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
481
   { (exit 1); exit 1; }; };;
482
  esac
483
done
484
 
485
# There might be people who depend on the old broken behavior: `$host'
486
# used to hold the argument of --host etc.
487
build=$build_alias
488
host=$host_alias
489
target=$target_alias
490
 
491
# FIXME: should be removed in autoconf 3.0.
492
if test "x$host_alias" != x; then
493
  if test "x$build_alias" = x; then
494
    cross_compiling=maybe
495
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
496
    If a cross compiler is detected then cross compile mode will be used." >&2
497
  elif test "x$build_alias" != "x$host_alias"; then
498
    cross_compiling=yes
499
  fi
500
fi
501
 
502
ac_tool_prefix=
503
test -n "$host_alias" && ac_tool_prefix=$host_alias-
504
 
505
test "$silent" = yes && exec 6>/dev/null
506
 
507
# Find the source files, if location was not specified.
508
if test -z "$srcdir"; then
509
  ac_srcdir_defaulted=yes
510
  # Try the directory containing this script, then its parent.
511
  ac_prog=$0
512
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
513
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514
  srcdir=$ac_confdir
515
  if test ! -r $srcdir/$ac_unique_file; then
516
    srcdir=..
517
  fi
518
else
519
  ac_srcdir_defaulted=no
520
fi
521
if test ! -r $srcdir/$ac_unique_file; then
522
  if test "$ac_srcdir_defaulted" = yes; then
523
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
524
   { (exit 1); exit 1; }; }
525
  else
526
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
527
   { (exit 1); exit 1; }; }
528
  fi
529
fi
530
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
531
ac_env_build_alias_set=${build_alias+set}
532
ac_env_build_alias_value=$build_alias
533
ac_cv_env_build_alias_set=${build_alias+set}
534
ac_cv_env_build_alias_value=$build_alias
535
ac_env_host_alias_set=${host_alias+set}
536
ac_env_host_alias_value=$host_alias
537
ac_cv_env_host_alias_set=${host_alias+set}
538
ac_cv_env_host_alias_value=$host_alias
539
ac_env_target_alias_set=${target_alias+set}
540
ac_env_target_alias_value=$target_alias
541
ac_cv_env_target_alias_set=${target_alias+set}
542
ac_cv_env_target_alias_value=$target_alias
543
ac_env_RTEMS_BSP_set=${RTEMS_BSP+set}
544
ac_env_RTEMS_BSP_value=$RTEMS_BSP
545
ac_cv_env_RTEMS_BSP_set=${RTEMS_BSP+set}
546
ac_cv_env_RTEMS_BSP_value=$RTEMS_BSP
547
ac_env_CC_set=${CC+set}
548
ac_env_CC_value=$CC
549
ac_cv_env_CC_set=${CC+set}
550
ac_cv_env_CC_value=$CC
551
ac_env_CFLAGS_set=${CFLAGS+set}
552
ac_env_CFLAGS_value=$CFLAGS
553
ac_cv_env_CFLAGS_set=${CFLAGS+set}
554
ac_cv_env_CFLAGS_value=$CFLAGS
555
ac_env_LDFLAGS_set=${LDFLAGS+set}
556
ac_env_LDFLAGS_value=$LDFLAGS
557
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
558
ac_cv_env_LDFLAGS_value=$LDFLAGS
559
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
560
ac_env_CPPFLAGS_value=$CPPFLAGS
561
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
562
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
563
ac_env_CPP_set=${CPP+set}
564
ac_env_CPP_value=$CPP
565
ac_cv_env_CPP_set=${CPP+set}
566
ac_cv_env_CPP_value=$CPP
567
 
568
#
569
# Report the --help message.
570
#
571
if test "$ac_init_help" = "long"; then
572
  # Omit some internal or obsolete options to make the list less imposing.
573
  # This message is too long to be a string in the A/UX 3.1 sh.
574
  cat <
575
\`configure' configures rtems-c-src-optman ss-20020807 to adapt to many kinds of systems.
576
 
577
Usage: $0 [OPTION]... [VAR=VALUE]...
578
 
579
To assign environment variables (e.g., CC, CFLAGS...), specify them as
580
VAR=VALUE.  See below for descriptions of some of the useful variables.
581
 
582
Defaults for the options are specified in brackets.
583
 
584
Configuration:
585
  -h, --help              display this help and exit
586
      --help=short        display options specific to this package
587
      --help=recursive    display the short help of all the included packages
588
  -V, --version           display version information and exit
589
  -q, --quiet, --silent   do not print \`checking...' messages
590
      --cache-file=FILE   cache test results in FILE [disabled]
591
  -C, --config-cache      alias for \`--cache-file=config.cache'
592
  -n, --no-create         do not create output files
593
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
594
 
595
EOF
596
 
597
  cat <
598
Installation directories:
599
  --prefix=PREFIX         install architecture-independent files in PREFIX
600
                          [$ac_default_prefix]
601
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
602
                          [PREFIX]
603
 
604
By default, \`make install' will install all the files in
605
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
606
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
607
for instance \`--prefix=\$HOME'.
608
 
609
For better control, use the options below.
610
 
611
Fine tuning of the installation directories:
612
  --bindir=DIR           user executables [EPREFIX/bin]
613
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
614
  --libexecdir=DIR       program executables [EPREFIX/libexec]
615
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
616
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
617
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
618
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
619
  --libdir=DIR           object code libraries [EPREFIX/lib]
620
  --includedir=DIR       C header files [PREFIX/include]
621
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
622
  --infodir=DIR          info documentation [PREFIX/info]
623
  --mandir=DIR           man documentation [PREFIX/man]
624
EOF
625
 
626
  cat <<\EOF
627
 
628
Program names:
629
  --program-prefix=PREFIX            prepend PREFIX to installed program names
630
  --program-suffix=SUFFIX            append SUFFIX to installed program names
631
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
632
 
633
System types:
634
  --build=BUILD     configure for building on BUILD [guessed]
635
  --host=HOST       build programs to run on HOST [BUILD]
636
  --target=TARGET   configure for building compilers for TARGET [HOST]
637
EOF
638
fi
639
 
640
if test -n "$ac_init_help"; then
641
  case $ac_init_help in
642
     short | recursive ) echo "Configuration of rtems-c-src-optman ss-20020807:";;
643
   esac
644
  cat <<\EOF
645
 
646
Optional Features:
647
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
648
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
649
  --enable-maintainer-mode enable make rules and dependencies not useful
650
                          (and sometimes confusing) to the casual installer
651
  --enable-bare-cpu-cflags
652
                          specify a particular cpu cflag (bare bsp specific)
653
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
654
  --disable-dependency-tracking Speeds up one-time builds
655
  --enable-dependency-tracking  Do not reject slow dependency extractors
656
 
657
Some influential environment variables:
658
  RTEMS_BSP   RTEMS_BSP to build
659
  CC          C compiler command
660
  CFLAGS      C compiler flags
661
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
662
              nonstandard directory 
663
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
664
              headers in a nonstandard directory 
665
  CPP         C preprocessor
666
 
667
Use these variables to override the choices made by `configure' or to help
668
it to find libraries and programs with nonstandard names/locations.
669
 
670
Report bugs to .
671
EOF
672
fi
673
 
674
if test "$ac_init_help" = "recursive"; then
675
  # If there are subdirs, report their specific --help.
676
  ac_popdir=`pwd`
677
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
678
    cd $ac_subdir
679
    # A "../" for each directory in /$ac_subdir.
680
    ac_dots=`echo $ac_subdir |
681
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
682
 
683
    case $srcdir in
684
    .) # No --srcdir option.  We are building in place.
685
      ac_sub_srcdir=$srcdir ;;
686
    [\\/]* | ?:[\\/]* ) # Absolute path.
687
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
688
    *) # Relative path.
689
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
690
    esac
691
 
692
    # Check for guested configure; otherwise get Cygnus style configure.
693
    if test -f $ac_sub_srcdir/configure.gnu; then
694
      echo
695
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
696
    elif test -f $ac_sub_srcdir/configure; then
697
      echo
698
      $SHELL $ac_sub_srcdir/configure  --help=recursive
699
    elif test -f $ac_sub_srcdir/configure.ac ||
700
           test -f $ac_sub_srcdir/configure.in; then
701
      echo
702
      $ac_configure --help
703
    else
704
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
705
    fi
706
    cd $ac_popdir
707
  done
708
fi
709
 
710
test -n "$ac_init_help" && exit 0
711
if $ac_init_version; then
712
  cat <<\EOF
713
rtems-c-src-optman configure ss-20020807
714
generated by GNU Autoconf 2.52
715
 
716
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
717
Free Software Foundation, Inc.
718
This configure script is free software; the Free Software Foundation
719
gives unlimited permission to copy, distribute and modify it.
720
EOF
721
  exit 0
722
fi
723
exec 5>config.log
724
cat >&5 <
725
This file contains any messages produced by compilers while
726
running configure, to aid debugging if configure makes a mistake.
727
 
728
It was created by rtems-c-src-optman $as_me ss-20020807, which was
729
generated by GNU Autoconf 2.52.  Invocation command line was
730
 
731
  $ $0 $@
732
 
733
EOF
734
{
735
cat <<_ASUNAME
736
## ---------- ##
737
## Platform.  ##
738
## ---------- ##
739
 
740
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
741
uname -m = `(uname -m) 2>/dev/null || echo unknown`
742
uname -r = `(uname -r) 2>/dev/null || echo unknown`
743
uname -s = `(uname -s) 2>/dev/null || echo unknown`
744
uname -v = `(uname -v) 2>/dev/null || echo unknown`
745
 
746
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
747
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
748
 
749
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
750
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
751
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
752
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
753
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
754
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
755
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
756
 
757
PATH = $PATH
758
 
759
_ASUNAME
760
} >&5
761
 
762
cat >&5 <
763
## ------------ ##
764
## Core tests.  ##
765
## ------------ ##
766
 
767
EOF
768
 
769
# Keep a trace of the command line.
770
# Strip out --no-create and --no-recursion so they do not pile up.
771
# Also quote any args containing shell meta-characters.
772
ac_configure_args=
773
ac_sep=
774
for ac_arg
775
do
776
  case $ac_arg in
777
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
778
  | --no-cr | --no-c) ;;
779
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
780
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
781
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
782
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
783
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
784
    ac_sep=" " ;;
785
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
786
     ac_sep=" " ;;
787
  esac
788
  # Get rid of the leading space.
789
done
790
 
791
# When interrupted or exit'd, cleanup temporary files, and complete
792
# config.log.  We remove comments because anyway the quotes in there
793
# would cause problems or look ugly.
794
trap 'exit_status=$?
795
  # Save into config.log some information that might help in debugging.
796
  echo >&5
797
  echo "## ----------------- ##" >&5
798
  echo "## Cache variables.  ##" >&5
799
  echo "## ----------------- ##" >&5
800
  echo >&5
801
  # The following way of writing the cache mishandles newlines in values,
802
{
803
  (set) 2>&1 |
804
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
805
    *ac_space=\ *)
806
      sed -n \
807
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
808
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
809
      ;;
810
    *)
811
      sed -n \
812
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
813
      ;;
814
    esac;
815
} >&5
816
  sed "/^$/d" confdefs.h >conftest.log
817
  if test -s conftest.log; then
818
    echo >&5
819
    echo "## ------------ ##" >&5
820
    echo "## confdefs.h.  ##" >&5
821
    echo "## ------------ ##" >&5
822
    echo >&5
823
    cat conftest.log >&5
824
  fi
825
  (echo; echo) >&5
826
  test "$ac_signal" != 0 &&
827
    echo "$as_me: caught signal $ac_signal" >&5
828
  echo "$as_me: exit $exit_status" >&5
829
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
830
    exit $exit_status
831
     ' 0
832
for ac_signal in 1 2 13 15; do
833
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
834
done
835
ac_signal=0
836
 
837
# confdefs.h avoids OS command line length limits that DEFS can exceed.
838
rm -rf conftest* confdefs.h
839
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
840
echo >confdefs.h
841
 
842
# Let the site file select an alternate cache file if it wants to.
843
# Prefer explicitly selected file to automatically selected ones.
844
if test -z "$CONFIG_SITE"; then
845
  if test "x$prefix" != xNONE; then
846
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847
  else
848
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849
  fi
850
fi
851
for ac_site_file in $CONFIG_SITE; do
852
  if test -r "$ac_site_file"; then
853
    { echo "$as_me:853: loading site script $ac_site_file" >&5
854
echo "$as_me: loading site script $ac_site_file" >&6;}
855
    cat "$ac_site_file" >&5
856
    . "$ac_site_file"
857
  fi
858
done
859
 
860
if test -r "$cache_file"; then
861
  # Some versions of bash will fail to source /dev/null (special
862
  # files actually), so we avoid doing that.
863
  if test -f "$cache_file"; then
864
    { echo "$as_me:864: loading cache $cache_file" >&5
865
echo "$as_me: loading cache $cache_file" >&6;}
866
    case $cache_file in
867
      [\\/]* | ?:[\\/]* ) . $cache_file;;
868
      *)                      . ./$cache_file;;
869
    esac
870
  fi
871
else
872
  { echo "$as_me:872: creating cache $cache_file" >&5
873
echo "$as_me: creating cache $cache_file" >&6;}
874
  >$cache_file
875
fi
876
 
877
# Check that the precious variables saved in the cache have kept the same
878
# value.
879
ac_cache_corrupted=false
880
for ac_var in `(set) 2>&1 |
881
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
882
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
883
  eval ac_new_set=\$ac_env_${ac_var}_set
884
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
885
  eval ac_new_val="\$ac_env_${ac_var}_value"
886
  case $ac_old_set,$ac_new_set in
887
    set,)
888
      { echo "$as_me:888: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
889
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
890
      ac_cache_corrupted=: ;;
891
    ,set)
892
      { echo "$as_me:892: error: \`$ac_var' was not set in the previous run" >&5
893
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
894
      ac_cache_corrupted=: ;;
895
    ,);;
896
    *)
897
      if test "x$ac_old_val" != "x$ac_new_val"; then
898
        { echo "$as_me:898: error: \`$ac_var' has changed since the previous run:" >&5
899
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
900
        { echo "$as_me:900:   former value:  $ac_old_val" >&5
901
echo "$as_me:   former value:  $ac_old_val" >&2;}
902
        { echo "$as_me:902:   current value: $ac_new_val" >&5
903
echo "$as_me:   current value: $ac_new_val" >&2;}
904
        ac_cache_corrupted=:
905
      fi;;
906
  esac
907
  # Pass precious variables to config.status.  It doesn't matter if
908
  # we pass some twice (in addition to the command line arguments).
909
  if test "$ac_new_set" = set; then
910
    case $ac_new_val in
911
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
912
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
913
      ac_configure_args="$ac_configure_args '$ac_arg'"
914
      ;;
915
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
916
       ;;
917
    esac
918
  fi
919
done
920
if $ac_cache_corrupted; then
921
  { echo "$as_me:921: error: changes in the environment can compromise the build" >&5
922
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
923
  { { echo "$as_me:923: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
924
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
925
   { (exit 1); exit 1; }; }
926
fi
927
 
928
ac_ext=c
929
ac_cpp='$CPP $CPPFLAGS'
930
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
931
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
932
ac_compiler_gnu=$ac_cv_c_compiler_gnu
933
 
934
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
935
  *c*,-n*) ECHO_N= ECHO_C='
936
' ECHO_T='      ' ;;
937
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
938
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
939
esac
940
echo "#! $SHELL" >conftest.sh
941
echo  "exit 0"   >>conftest.sh
942
chmod +x conftest.sh
943
if { (echo "$as_me:943: PATH=\".;.\"; conftest.sh") >&5
944
  (PATH=".;."; conftest.sh) 2>&5
945
  ac_status=$?
946
  echo "$as_me:946: \$? = $ac_status" >&5
947
  (exit $ac_status); }; then
948
  ac_path_separator=';'
949
else
950
  ac_path_separator=:
951
fi
952
PATH_SEPARATOR="$ac_path_separator"
953
rm -f conftest.sh
954
 
955
for ac_prog in gmake make
956
do
957
  # Extract the first word of "$ac_prog", so it can be a program name with args.
958
set dummy $ac_prog; ac_word=$2
959
echo "$as_me:959: checking for $ac_word" >&5
960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
961
if test "${ac_cv_prog_MAKE+set}" = set; then
962
  echo $ECHO_N "(cached) $ECHO_C" >&6
963
else
964
  if test -n "$MAKE"; then
965
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
966
else
967
  ac_save_IFS=$IFS; IFS=$ac_path_separator
968
ac_dummy="$PATH"
969
for ac_dir in $ac_dummy; do
970
  IFS=$ac_save_IFS
971
  test -z "$ac_dir" && ac_dir=.
972
  $as_executable_p "$ac_dir/$ac_word" || continue
973
ac_cv_prog_MAKE="$ac_prog"
974
echo "$as_me:974: found $ac_dir/$ac_word" >&5
975
break
976
done
977
 
978
fi
979
fi
980
MAKE=$ac_cv_prog_MAKE
981
if test -n "$MAKE"; then
982
  echo "$as_me:982: result: $MAKE" >&5
983
echo "${ECHO_T}$MAKE" >&6
984
else
985
  echo "$as_me:985: result: no" >&5
986
echo "${ECHO_T}no" >&6
987
fi
988
 
989
  test -n "$MAKE" && break
990
done
991
 
992
ENDIF=endif
993
 
994
RTEMS_TOPdir="../../..";
995
 
996
test -n "$with_target_subdir" || with_target_subdir="."
997
 
998
if test "$with_target_subdir" = "." ; then
999
# Native
1000
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
1001
else
1002
# Cross
1003
dots=`echo $with_target_subdir|\
1004
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1005
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
1006
fi
1007
 
1008
if test "$with_target_subdir" = "." ; then
1009
# Native
1010
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1011
else
1012
# Cross
1013
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1014
fi
1015
 
1016
echo "$as_me:1016: checking for RTEMS Version" >&5
1017
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
1018
if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then
1019
  :
1020
else
1021
  { { echo "$as_me:1021: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5
1022
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;}
1023
   { (exit 1); exit 1; }; }
1024
fi
1025
 
1026
echo "$as_me:1026: result: ss-20020807" >&5
1027
echo "${ECHO_T}ss-20020807" >&6
1028
 
1029
ac_aux_dir=
1030
for ac_dir in ../../.. $srcdir/../../..; do
1031
  if test -f $ac_dir/install-sh; then
1032
    ac_aux_dir=$ac_dir
1033
    ac_install_sh="$ac_aux_dir/install-sh -c"
1034
    break
1035
  elif test -f $ac_dir/install.sh; then
1036
    ac_aux_dir=$ac_dir
1037
    ac_install_sh="$ac_aux_dir/install.sh -c"
1038
    break
1039
  elif test -f $ac_dir/shtool; then
1040
    ac_aux_dir=$ac_dir
1041
    ac_install_sh="$ac_aux_dir/shtool install -c"
1042
    break
1043
  fi
1044
done
1045
if test -z "$ac_aux_dir"; then
1046
  { { echo "$as_me:1046: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&5
1047
echo "$as_me: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&2;}
1048
   { (exit 1); exit 1; }; }
1049
fi
1050
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1051
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1052
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1053
 
1054
# Make sure we can run config.sub.
1055
$ac_config_sub sun4 >/dev/null 2>&1 ||
1056
  { { echo "$as_me:1056: error: cannot run $ac_config_sub" >&5
1057
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1058
   { (exit 1); exit 1; }; }
1059
 
1060
echo "$as_me:1060: checking build system type" >&5
1061
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1062
if test "${ac_cv_build+set}" = set; then
1063
  echo $ECHO_N "(cached) $ECHO_C" >&6
1064
else
1065
  ac_cv_build_alias=$build_alias
1066
test -z "$ac_cv_build_alias" &&
1067
  ac_cv_build_alias=`$ac_config_guess`
1068
test -z "$ac_cv_build_alias" &&
1069
  { { echo "$as_me:1069: error: cannot guess build type; you must specify one" >&5
1070
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1071
   { (exit 1); exit 1; }; }
1072
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1073
  { { echo "$as_me:1073: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1074
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1075
   { (exit 1); exit 1; }; }
1076
 
1077
fi
1078
echo "$as_me:1078: result: $ac_cv_build" >&5
1079
echo "${ECHO_T}$ac_cv_build" >&6
1080
build=$ac_cv_build
1081
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1082
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1083
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1084
 
1085
echo "$as_me:1085: checking host system type" >&5
1086
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1087
if test "${ac_cv_host+set}" = set; then
1088
  echo $ECHO_N "(cached) $ECHO_C" >&6
1089
else
1090
  ac_cv_host_alias=$host_alias
1091
test -z "$ac_cv_host_alias" &&
1092
  ac_cv_host_alias=$ac_cv_build_alias
1093
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1094
  { { echo "$as_me:1094: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1095
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1096
   { (exit 1); exit 1; }; }
1097
 
1098
fi
1099
echo "$as_me:1099: result: $ac_cv_host" >&5
1100
echo "${ECHO_T}$ac_cv_host" >&6
1101
host=$ac_cv_host
1102
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105
 
1106
echo "$as_me:1106: checking target system type" >&5
1107
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1108
if test "${ac_cv_target+set}" = set; then
1109
  echo $ECHO_N "(cached) $ECHO_C" >&6
1110
else
1111
  ac_cv_target_alias=$target_alias
1112
test "x$ac_cv_target_alias" = "x" &&
1113
  ac_cv_target_alias=$ac_cv_host_alias
1114
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1115
  { { echo "$as_me:1115: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1116
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1117
   { (exit 1); exit 1; }; }
1118
 
1119
fi
1120
echo "$as_me:1120: result: $ac_cv_target" >&5
1121
echo "${ECHO_T}$ac_cv_target" >&6
1122
target=$ac_cv_target
1123
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1124
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1125
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1126
 
1127
# The aliases save the names the user supplied, while $host etc.
1128
# will get canonicalized.
1129
test -n "$target_alias" &&
1130
  test "$program_prefix$program_suffix$program_transform_name" = \
1131
    NONENONEs,x,x, &&
1132
  program_prefix=${target_alias}-
1133
echo "$as_me:1133: checking rtems target cpu" >&5
1134
echo $ECHO_N "checking rtems target cpu... $ECHO_C" >&6
1135
case "${target}" in
1136
  # hpux unix port should go here
1137
  i[34567]86-*linux*)           # unix "simulator" port
1138
        RTEMS_CPU=unix
1139
        ;;
1140
  i[34567]86-*freebsd*)         # unix "simulator" port
1141
        RTEMS_CPU=unix
1142
        ;;
1143
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1144
        RTEMS_CPU=unix
1145
        ;;
1146
  no_cpu-*rtems*)
1147
        RTEMS_CPU=no_cpu
1148
        ;;
1149
  sparc-sun-solaris*)           # unix "simulator" port
1150
        RTEMS_CPU=unix
1151
        ;;
1152
  *)
1153
        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1154
        ;;
1155
esac
1156
 
1157
echo "$as_me:1157: result: $RTEMS_CPU" >&5
1158
echo "${ECHO_T}$RTEMS_CPU" >&6
1159
 
1160
am__api_version="1.6"
1161
# Find a good install program.  We prefer a C program (faster),
1162
# so one script is as good as another.  But avoid the broken or
1163
# incompatible versions:
1164
# SysV /etc/install, /usr/sbin/install
1165
# SunOS /usr/etc/install
1166
# IRIX /sbin/install
1167
# AIX /bin/install
1168
# AmigaOS /C/install, which installs bootblocks on floppy discs
1169
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1170
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1171
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1172
# ./install, which can be erroneously created by make from ./install.sh.
1173
echo "$as_me:1173: checking for a BSD compatible install" >&5
1174
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1175
if test -z "$INSTALL"; then
1176
if test "${ac_cv_path_install+set}" = set; then
1177
  echo $ECHO_N "(cached) $ECHO_C" >&6
1178
else
1179
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1180
  for ac_dir in $PATH; do
1181
    IFS=$ac_save_IFS
1182
    # Account for people who put trailing slashes in PATH elements.
1183
    case $ac_dir/ in
1184
    / | ./ | .// | /cC/* \
1185
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1186
    | /usr/ucb/* ) ;;
1187
    *)
1188
      # OSF1 and SCO ODT 3.0 have their own names for install.
1189
      # Don't use installbsd from OSF since it installs stuff as root
1190
      # by default.
1191
      for ac_prog in ginstall scoinst install; do
1192
        if $as_executable_p "$ac_dir/$ac_prog"; then
1193
          if test $ac_prog = install &&
1194
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1195
            # AIX install.  It has an incompatible calling convention.
1196
            :
1197
          elif test $ac_prog = install &&
1198
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1199
            # program-specific install script used by HP pwplus--don't use.
1200
            :
1201
          else
1202
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1203
            break 2
1204
          fi
1205
        fi
1206
      done
1207
      ;;
1208
    esac
1209
  done
1210
 
1211
fi
1212
  if test "${ac_cv_path_install+set}" = set; then
1213
    INSTALL=$ac_cv_path_install
1214
  else
1215
    # As a last resort, use the slow shell script.  We don't cache a
1216
    # path for INSTALL within a source directory, because that will
1217
    # break other packages using the cache if that directory is
1218
    # removed, or if the path is relative.
1219
    INSTALL=$ac_install_sh
1220
  fi
1221
fi
1222
echo "$as_me:1222: result: $INSTALL" >&5
1223
echo "${ECHO_T}$INSTALL" >&6
1224
 
1225
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1226
# It thinks the first close brace ends the variable substitution.
1227
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1228
 
1229
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1230
 
1231
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1232
 
1233
echo "$as_me:1233: checking whether build environment is sane" >&5
1234
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1235
# Just in case
1236
sleep 1
1237
echo timestamp > conftest.file
1238
# Do `set' in a subshell so we don't clobber the current shell's
1239
# arguments.  Must try -L first in case configure is actually a
1240
# symlink; some systems play weird games with the mod time of symlinks
1241
# (eg FreeBSD returns the mod time of the symlink's containing
1242
# directory).
1243
if (
1244
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1245
   if test "$*" = "X"; then
1246
      # -L didn't work.
1247
      set X `ls -t $srcdir/configure conftest.file`
1248
   fi
1249
   rm -f conftest.file
1250
   if test "$*" != "X $srcdir/configure conftest.file" \
1251
      && test "$*" != "X conftest.file $srcdir/configure"; then
1252
 
1253
      # If neither matched, then we have a broken ls.  This can happen
1254
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1255
      # broken ls alias from the environment.  This has actually
1256
      # happened.  Such a system could not be considered "sane".
1257
      { { echo "$as_me:1257: error: ls -t appears to fail.  Make sure there is not a broken
1258
alias in your environment" >&5
1259
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1260
alias in your environment" >&2;}
1261
   { (exit 1); exit 1; }; }
1262
   fi
1263
 
1264
   test "$2" = conftest.file
1265
   )
1266
then
1267
   # Ok.
1268
   :
1269
else
1270
   { { echo "$as_me:1270: error: newly created file is older than distributed files!
1271
Check your system clock" >&5
1272
echo "$as_me: error: newly created file is older than distributed files!
1273
Check your system clock" >&2;}
1274
   { (exit 1); exit 1; }; }
1275
fi
1276
echo "$as_me:1276: result: yes" >&5
1277
echo "${ECHO_T}yes" >&6
1278
test "$program_prefix" != NONE &&
1279
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1280
# Use a double $ so make ignores it.
1281
test "$program_suffix" != NONE &&
1282
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1283
# Double any \ or $.  echo might interpret backslashes.
1284
# By default was `s,x,x', remove it if useless.
1285
cat <<\_ACEOF >conftest.sed
1286
s/[\\$]/&&/g;s/;s,x,x,$//
1287
_ACEOF
1288
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1289
rm conftest.sed
1290
 
1291
# expand $ac_aux_dir to an absolute path
1292
am_aux_dir=`cd $ac_aux_dir && pwd`
1293
 
1294
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1295
# Use eval to expand $SHELL
1296
if eval "$MISSING --run true"; then
1297
  am_missing_run="$MISSING --run "
1298
else
1299
  am_missing_run=
1300
  { echo "$as_me:1300: WARNING: \`missing' script is too old or missing" >&5
1301
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1302
fi
1303
 
1304
for ac_prog in mawk gawk nawk awk
1305
do
1306
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1307
set dummy $ac_prog; ac_word=$2
1308
echo "$as_me:1308: checking for $ac_word" >&5
1309
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1310
if test "${ac_cv_prog_AWK+set}" = set; then
1311
  echo $ECHO_N "(cached) $ECHO_C" >&6
1312
else
1313
  if test -n "$AWK"; then
1314
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1315
else
1316
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1317
ac_dummy="$PATH"
1318
for ac_dir in $ac_dummy; do
1319
  IFS=$ac_save_IFS
1320
  test -z "$ac_dir" && ac_dir=.
1321
  $as_executable_p "$ac_dir/$ac_word" || continue
1322
ac_cv_prog_AWK="$ac_prog"
1323
echo "$as_me:1323: found $ac_dir/$ac_word" >&5
1324
break
1325
done
1326
 
1327
fi
1328
fi
1329
AWK=$ac_cv_prog_AWK
1330
if test -n "$AWK"; then
1331
  echo "$as_me:1331: result: $AWK" >&5
1332
echo "${ECHO_T}$AWK" >&6
1333
else
1334
  echo "$as_me:1334: result: no" >&5
1335
echo "${ECHO_T}no" >&6
1336
fi
1337
 
1338
  test -n "$AWK" && break
1339
done
1340
 
1341
echo "$as_me:1341: checking whether ${MAKE-make} sets \${MAKE}" >&5
1342
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1343
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1344
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1345
  echo $ECHO_N "(cached) $ECHO_C" >&6
1346
else
1347
  cat >conftest.make <<\EOF
1348
all:
1349
        @echo 'ac_maketemp="${MAKE}"'
1350
EOF
1351
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1352
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1353
if test -n "$ac_maketemp"; then
1354
  eval ac_cv_prog_make_${ac_make}_set=yes
1355
else
1356
  eval ac_cv_prog_make_${ac_make}_set=no
1357
fi
1358
rm -f conftest.make
1359
fi
1360
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1361
  echo "$as_me:1361: result: yes" >&5
1362
echo "${ECHO_T}yes" >&6
1363
  SET_MAKE=
1364
else
1365
  echo "$as_me:1365: result: no" >&5
1366
echo "${ECHO_T}no" >&6
1367
  SET_MAKE="MAKE=${MAKE-make}"
1368
fi
1369
 
1370
 # test to see if srcdir already configured
1371
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1372
   test -f $srcdir/config.status; then
1373
  { { echo "$as_me:1373: error: source directory already configured; run \"make distclean\" there first" >&5
1374
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1375
   { (exit 1); exit 1; }; }
1376
fi
1377
 
1378
# Define the identity of the package.
1379
 PACKAGE=rtems-c-src-optman
1380
 VERSION=ss-20020807
1381
 
1382
# Some tools Automake needs.
1383
 
1384
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1385
 
1386
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1387
 
1388
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1389
 
1390
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1391
 
1392
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1393
 
1394
AMTAR=${AMTAR-"${am_missing_run}tar"}
1395
 
1396
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1397
 
1398
# Installed binaries are usually stripped using `strip' when the user
1399
# run `make install-strip'.  However `strip' might not be the right
1400
# tool to use in cross-compilation environments, therefore Automake
1401
# will honor the `STRIP' environment variable to overrule this program.
1402
if test "$cross_compiling" != no; then
1403
  if test -n "$ac_tool_prefix"; then
1404
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1405
set dummy ${ac_tool_prefix}strip; ac_word=$2
1406
echo "$as_me:1406: checking for $ac_word" >&5
1407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408
if test "${ac_cv_prog_STRIP+set}" = set; then
1409
  echo $ECHO_N "(cached) $ECHO_C" >&6
1410
else
1411
  if test -n "$STRIP"; then
1412
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1413
else
1414
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1415
ac_dummy="$PATH"
1416
for ac_dir in $ac_dummy; do
1417
  IFS=$ac_save_IFS
1418
  test -z "$ac_dir" && ac_dir=.
1419
  $as_executable_p "$ac_dir/$ac_word" || continue
1420
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1421
echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1422
break
1423
done
1424
 
1425
fi
1426
fi
1427
STRIP=$ac_cv_prog_STRIP
1428
if test -n "$STRIP"; then
1429
  echo "$as_me:1429: result: $STRIP" >&5
1430
echo "${ECHO_T}$STRIP" >&6
1431
else
1432
  echo "$as_me:1432: result: no" >&5
1433
echo "${ECHO_T}no" >&6
1434
fi
1435
 
1436
fi
1437
if test -z "$ac_cv_prog_STRIP"; then
1438
  ac_ct_STRIP=$STRIP
1439
  # Extract the first word of "strip", so it can be a program name with args.
1440
set dummy strip; ac_word=$2
1441
echo "$as_me:1441: checking for $ac_word" >&5
1442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1444
  echo $ECHO_N "(cached) $ECHO_C" >&6
1445
else
1446
  if test -n "$ac_ct_STRIP"; then
1447
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1448
else
1449
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1450
ac_dummy="$PATH"
1451
for ac_dir in $ac_dummy; do
1452
  IFS=$ac_save_IFS
1453
  test -z "$ac_dir" && ac_dir=.
1454
  $as_executable_p "$ac_dir/$ac_word" || continue
1455
ac_cv_prog_ac_ct_STRIP="strip"
1456
echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1457
break
1458
done
1459
 
1460
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1461
fi
1462
fi
1463
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1464
if test -n "$ac_ct_STRIP"; then
1465
  echo "$as_me:1465: result: $ac_ct_STRIP" >&5
1466
echo "${ECHO_T}$ac_ct_STRIP" >&6
1467
else
1468
  echo "$as_me:1468: result: no" >&5
1469
echo "${ECHO_T}no" >&6
1470
fi
1471
 
1472
  STRIP=$ac_ct_STRIP
1473
else
1474
  STRIP="$ac_cv_prog_STRIP"
1475
fi
1476
 
1477
fi
1478
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1479
 
1480
# We need awk for the "check" target.  The system "awk" is bad on
1481
# some platforms.
1482
 
1483
echo "$as_me:1483: checking whether to enable maintainer-specific portions of Makefiles" >&5
1484
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1485
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1486
if test "${enable_maintainer_mode+set}" = set; then
1487
  enableval="$enable_maintainer_mode"
1488
  USE_MAINTAINER_MODE=$enableval
1489
else
1490
  USE_MAINTAINER_MODE=no
1491
fi;
1492
  echo "$as_me:1492: result: $USE_MAINTAINER_MODE" >&5
1493
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1494
 
1495
if test $USE_MAINTAINER_MODE = yes; then
1496
  MAINTAINER_MODE_TRUE=
1497
  MAINTAINER_MODE_FALSE='#'
1498
else
1499
  MAINTAINER_MODE_TRUE='#'
1500
  MAINTAINER_MODE_FALSE=
1501
fi
1502
 
1503
  MAINT=$MAINTAINER_MODE_TRUE
1504
 
1505
echo "$as_me:1505: checking for RTEMS_BSP" >&5
1506
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1507
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1508
  echo $ECHO_N "(cached) $ECHO_C" >&6
1509
else
1510
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1511
 
1512
fi
1513
if test -z "$rtems_cv_RTEMS_BSP"; then
1514
  { { echo "$as_me:1514: error: Missing RTEMS_BSP" >&5
1515
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1516
   { (exit 1); exit 1; }; }
1517
fi
1518
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1519
echo "$as_me:1519: result: ${RTEMS_BSP}" >&5
1520
echo "${ECHO_T}${RTEMS_BSP}" >&6
1521
 
1522
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
1523
 
1524
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
1525
 
1526
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1527
 
1528
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
1529
 
1530
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
1531
 
1532
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1533
if test "${enable_bare_cpu_cflags+set}" = set; then
1534
  enableval="$enable_bare_cpu_cflags"
1535
  case "${enableval}" in
1536
  no) BARE_CPU_CFLAGS="" ;;
1537
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1538
esac
1539
else
1540
  BARE_CPU_CFLAGS=""
1541
fi;
1542
 
1543
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1544
if test "${enable_bare_cpu_model+set}" = set; then
1545
  enableval="$enable_bare_cpu_model"
1546
  case "${enableval}" in
1547
  no)   BARE_CPU_MODEL="" ;;
1548
  *)    BARE_CPU_MODEL="${enableval}" ;;
1549
esac
1550
else
1551
  BARE_CPU_MODEL=""
1552
fi;
1553
 
1554
if false; then
1555
  MULTILIB_TRUE=
1556
  MULTILIB_FALSE='#'
1557
else
1558
  MULTILIB_TRUE='#'
1559
  MULTILIB_FALSE=
1560
fi
1561
 
1562
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1563
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1564
 
1565
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1566
 
1567
# Is this a supported CPU?
1568
echo "$as_me:1568: checking if cpu $RTEMS_CPU is supported" >&5
1569
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
1570
# FIXME: Temporary hack
1571
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1572
  echo "$as_me:1572: result: yes" >&5
1573
echo "${ECHO_T}yes" >&6
1574
else
1575
  { { echo "$as_me:1575: error: no" >&5
1576
echo "$as_me: error: no" >&2;}
1577
   { (exit 1); exit 1; }; }
1578
fi
1579
 
1580
RTEMS_HOST=$host_os
1581
case "${target}" in
1582
  # hpux unix port should go here
1583
  i[34567]86-*linux*)          # unix "simulator" port
1584
        RTEMS_HOST=Linux
1585
        ;;
1586
  i[34567]86-*freebsd*)         # unix "simulator" port
1587
        RTEMS_HOST=FreeBSD
1588
        ;;
1589
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1590
        RTEMS_HOST=Cygwin
1591
        ;;
1592
  sparc-sun-solaris*)           # unix "simulator" port
1593
        RTEMS_HOST=Solaris
1594
        ;;
1595
  *)
1596
        ;;
1597
esac
1598
 
1599
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1600
 
1601
rm -f .deps 2>/dev/null
1602
mkdir .deps 2>/dev/null
1603
if test -d .deps; then
1604
  DEPDIR=.deps
1605
else
1606
  # MS-DOS does not allow filenames that begin with a dot.
1607
  DEPDIR=_deps
1608
fi
1609
rmdir .deps 2>/dev/null
1610
 
1611
ac_config_commands="$ac_config_commands depfiles"
1612
 
1613
am_make=${MAKE-make}
1614
cat > confinc << 'END'
1615
doit:
1616
        @echo done
1617
END
1618
# If we don't find an include directive, just comment out the code.
1619
echo "$as_me:1619: checking for style of include used by $am_make" >&5
1620
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1621
am__include="#"
1622
am__quote=
1623
_am_result=none
1624
# First try GNU make style include.
1625
echo "include confinc" > confmf
1626
# We grep out `Entering directory' and `Leaving directory'
1627
# messages which can occur if `w' ends up in MAKEFLAGS.
1628
# In particular we don't look at `^make:' because GNU make might
1629
# be invoked under some other name (usually "gmake"), in which
1630
# case it prints its new name instead of `make'.
1631
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1632
   am__include=include
1633
   am__quote=
1634
   _am_result=GNU
1635
fi
1636
# Now try BSD make style include.
1637
if test "$am__include" = "#"; then
1638
   echo '.include "confinc"' > confmf
1639
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1640
      am__include=.include
1641
      am__quote="\""
1642
      _am_result=BSD
1643
   fi
1644
fi
1645
 
1646
echo "$as_me:1646: result: $_am_result" >&5
1647
echo "${ECHO_T}$_am_result" >&6
1648
rm -f confinc confmf
1649
 
1650
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1651
if test "${enable_dependency_tracking+set}" = set; then
1652
  enableval="$enable_dependency_tracking"
1653
 
1654
fi;
1655
if test "x$enable_dependency_tracking" != xno; then
1656
  am_depcomp="$ac_aux_dir/depcomp"
1657
  AMDEPBACKSLASH='\'
1658
fi
1659
 
1660
if test "x$enable_dependency_tracking" != xno; then
1661
  AMDEP_TRUE=
1662
  AMDEP_FALSE='#'
1663
else
1664
  AMDEP_TRUE='#'
1665
  AMDEP_FALSE=
1666
fi
1667
 
1668
  if test "x$build_alias" != "x$host_alias"; then
1669
  rtems_tool_prefix=${ac_tool_prefix}
1670
fi
1671
 
1672
  # Extract the first word of "${rtems_tool_prefix}gcc", so it can be a program name with args.
1673
set dummy ${rtems_tool_prefix}gcc; ac_word=$2
1674
echo "$as_me:1674: checking for $ac_word" >&5
1675
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676
if test "${ac_cv_prog_CC+set}" = set; then
1677
  echo $ECHO_N "(cached) $ECHO_C" >&6
1678
else
1679
  if test -n "$CC"; then
1680
  ac_cv_prog_CC="$CC" # Let the user override the test.
1681
else
1682
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1683
ac_dummy="$PATH"
1684
for ac_dir in $ac_dummy; do
1685
  IFS=$ac_save_IFS
1686
  test -z "$ac_dir" && ac_dir=.
1687
  $as_executable_p "$ac_dir/$ac_word" || continue
1688
ac_cv_prog_CC="${rtems_tool_prefix}gcc"
1689
echo "$as_me:1689: found $ac_dir/$ac_word" >&5
1690
break
1691
done
1692
 
1693
fi
1694
fi
1695
CC=$ac_cv_prog_CC
1696
if test -n "$CC"; then
1697
  echo "$as_me:1697: result: $CC" >&5
1698
echo "${ECHO_T}$CC" >&6
1699
else
1700
  echo "$as_me:1700: result: no" >&5
1701
echo "${ECHO_T}no" >&6
1702
fi
1703
 
1704
test -z "$CC" && \
1705
  { { echo "$as_me:1705: error: no acceptable cc found in \$PATH" >&5
1706
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1707
   { (exit 1); exit 1; }; }
1708
ac_ext=c
1709
ac_cpp='$CPP $CPPFLAGS'
1710
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1713
if test -n "$ac_tool_prefix"; then
1714
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1715
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1716
echo "$as_me:1716: checking for $ac_word" >&5
1717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718
if test "${ac_cv_prog_CC+set}" = set; then
1719
  echo $ECHO_N "(cached) $ECHO_C" >&6
1720
else
1721
  if test -n "$CC"; then
1722
  ac_cv_prog_CC="$CC" # Let the user override the test.
1723
else
1724
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1725
ac_dummy="$PATH"
1726
for ac_dir in $ac_dummy; do
1727
  IFS=$ac_save_IFS
1728
  test -z "$ac_dir" && ac_dir=.
1729
  $as_executable_p "$ac_dir/$ac_word" || continue
1730
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1731
echo "$as_me:1731: found $ac_dir/$ac_word" >&5
1732
break
1733
done
1734
 
1735
fi
1736
fi
1737
CC=$ac_cv_prog_CC
1738
if test -n "$CC"; then
1739
  echo "$as_me:1739: result: $CC" >&5
1740
echo "${ECHO_T}$CC" >&6
1741
else
1742
  echo "$as_me:1742: result: no" >&5
1743
echo "${ECHO_T}no" >&6
1744
fi
1745
 
1746
fi
1747
if test -z "$ac_cv_prog_CC"; then
1748
  ac_ct_CC=$CC
1749
  # Extract the first word of "gcc", so it can be a program name with args.
1750
set dummy gcc; ac_word=$2
1751
echo "$as_me:1751: checking for $ac_word" >&5
1752
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754
  echo $ECHO_N "(cached) $ECHO_C" >&6
1755
else
1756
  if test -n "$ac_ct_CC"; then
1757
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1758
else
1759
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1760
ac_dummy="$PATH"
1761
for ac_dir in $ac_dummy; do
1762
  IFS=$ac_save_IFS
1763
  test -z "$ac_dir" && ac_dir=.
1764
  $as_executable_p "$ac_dir/$ac_word" || continue
1765
ac_cv_prog_ac_ct_CC="gcc"
1766
echo "$as_me:1766: found $ac_dir/$ac_word" >&5
1767
break
1768
done
1769
 
1770
fi
1771
fi
1772
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773
if test -n "$ac_ct_CC"; then
1774
  echo "$as_me:1774: result: $ac_ct_CC" >&5
1775
echo "${ECHO_T}$ac_ct_CC" >&6
1776
else
1777
  echo "$as_me:1777: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1779
fi
1780
 
1781
  CC=$ac_ct_CC
1782
else
1783
  CC="$ac_cv_prog_CC"
1784
fi
1785
 
1786
if test -z "$CC"; then
1787
  if test -n "$ac_tool_prefix"; then
1788
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789
set dummy ${ac_tool_prefix}cc; ac_word=$2
1790
echo "$as_me:1790: checking for $ac_word" >&5
1791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792
if test "${ac_cv_prog_CC+set}" = set; then
1793
  echo $ECHO_N "(cached) $ECHO_C" >&6
1794
else
1795
  if test -n "$CC"; then
1796
  ac_cv_prog_CC="$CC" # Let the user override the test.
1797
else
1798
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1799
ac_dummy="$PATH"
1800
for ac_dir in $ac_dummy; do
1801
  IFS=$ac_save_IFS
1802
  test -z "$ac_dir" && ac_dir=.
1803
  $as_executable_p "$ac_dir/$ac_word" || continue
1804
ac_cv_prog_CC="${ac_tool_prefix}cc"
1805
echo "$as_me:1805: found $ac_dir/$ac_word" >&5
1806
break
1807
done
1808
 
1809
fi
1810
fi
1811
CC=$ac_cv_prog_CC
1812
if test -n "$CC"; then
1813
  echo "$as_me:1813: result: $CC" >&5
1814
echo "${ECHO_T}$CC" >&6
1815
else
1816
  echo "$as_me:1816: result: no" >&5
1817
echo "${ECHO_T}no" >&6
1818
fi
1819
 
1820
fi
1821
if test -z "$ac_cv_prog_CC"; then
1822
  ac_ct_CC=$CC
1823
  # Extract the first word of "cc", so it can be a program name with args.
1824
set dummy cc; ac_word=$2
1825
echo "$as_me:1825: checking for $ac_word" >&5
1826
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1828
  echo $ECHO_N "(cached) $ECHO_C" >&6
1829
else
1830
  if test -n "$ac_ct_CC"; then
1831
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1832
else
1833
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1834
ac_dummy="$PATH"
1835
for ac_dir in $ac_dummy; do
1836
  IFS=$ac_save_IFS
1837
  test -z "$ac_dir" && ac_dir=.
1838
  $as_executable_p "$ac_dir/$ac_word" || continue
1839
ac_cv_prog_ac_ct_CC="cc"
1840
echo "$as_me:1840: found $ac_dir/$ac_word" >&5
1841
break
1842
done
1843
 
1844
fi
1845
fi
1846
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1847
if test -n "$ac_ct_CC"; then
1848
  echo "$as_me:1848: result: $ac_ct_CC" >&5
1849
echo "${ECHO_T}$ac_ct_CC" >&6
1850
else
1851
  echo "$as_me:1851: result: no" >&5
1852
echo "${ECHO_T}no" >&6
1853
fi
1854
 
1855
  CC=$ac_ct_CC
1856
else
1857
  CC="$ac_cv_prog_CC"
1858
fi
1859
 
1860
fi
1861
if test -z "$CC"; then
1862
  # Extract the first word of "cc", so it can be a program name with args.
1863
set dummy cc; ac_word=$2
1864
echo "$as_me:1864: checking for $ac_word" >&5
1865
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866
if test "${ac_cv_prog_CC+set}" = set; then
1867
  echo $ECHO_N "(cached) $ECHO_C" >&6
1868
else
1869
  if test -n "$CC"; then
1870
  ac_cv_prog_CC="$CC" # Let the user override the test.
1871
else
1872
  ac_prog_rejected=no
1873
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1874
ac_dummy="$PATH"
1875
for ac_dir in $ac_dummy; do
1876
  IFS=$ac_save_IFS
1877
  test -z "$ac_dir" && ac_dir=.
1878
  $as_executable_p "$ac_dir/$ac_word" || continue
1879
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1880
  ac_prog_rejected=yes
1881
  continue
1882
fi
1883
ac_cv_prog_CC="cc"
1884
echo "$as_me:1884: found $ac_dir/$ac_word" >&5
1885
break
1886
done
1887
 
1888
if test $ac_prog_rejected = yes; then
1889
  # We found a bogon in the path, so make sure we never use it.
1890
  set dummy $ac_cv_prog_CC
1891
  shift
1892
  if test $# != 0; then
1893
    # We chose a different compiler from the bogus one.
1894
    # However, it has the same basename, so the bogon will be chosen
1895
    # first if we set CC to just the basename; use the full file name.
1896
    shift
1897
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1898
    shift
1899
    ac_cv_prog_CC="$@"
1900
  fi
1901
fi
1902
fi
1903
fi
1904
CC=$ac_cv_prog_CC
1905
if test -n "$CC"; then
1906
  echo "$as_me:1906: result: $CC" >&5
1907
echo "${ECHO_T}$CC" >&6
1908
else
1909
  echo "$as_me:1909: result: no" >&5
1910
echo "${ECHO_T}no" >&6
1911
fi
1912
 
1913
fi
1914
if test -z "$CC"; then
1915
  if test -n "$ac_tool_prefix"; then
1916
  for ac_prog in cl
1917
  do
1918
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1919
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1920
echo "$as_me:1920: checking for $ac_word" >&5
1921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922
if test "${ac_cv_prog_CC+set}" = set; then
1923
  echo $ECHO_N "(cached) $ECHO_C" >&6
1924
else
1925
  if test -n "$CC"; then
1926
  ac_cv_prog_CC="$CC" # Let the user override the test.
1927
else
1928
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1929
ac_dummy="$PATH"
1930
for ac_dir in $ac_dummy; do
1931
  IFS=$ac_save_IFS
1932
  test -z "$ac_dir" && ac_dir=.
1933
  $as_executable_p "$ac_dir/$ac_word" || continue
1934
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1935
echo "$as_me:1935: found $ac_dir/$ac_word" >&5
1936
break
1937
done
1938
 
1939
fi
1940
fi
1941
CC=$ac_cv_prog_CC
1942
if test -n "$CC"; then
1943
  echo "$as_me:1943: result: $CC" >&5
1944
echo "${ECHO_T}$CC" >&6
1945
else
1946
  echo "$as_me:1946: result: no" >&5
1947
echo "${ECHO_T}no" >&6
1948
fi
1949
 
1950
    test -n "$CC" && break
1951
  done
1952
fi
1953
if test -z "$CC"; then
1954
  ac_ct_CC=$CC
1955
  for ac_prog in cl
1956
do
1957
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1958
set dummy $ac_prog; ac_word=$2
1959
echo "$as_me:1959: checking for $ac_word" >&5
1960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1962
  echo $ECHO_N "(cached) $ECHO_C" >&6
1963
else
1964
  if test -n "$ac_ct_CC"; then
1965
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1966
else
1967
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1968
ac_dummy="$PATH"
1969
for ac_dir in $ac_dummy; do
1970
  IFS=$ac_save_IFS
1971
  test -z "$ac_dir" && ac_dir=.
1972
  $as_executable_p "$ac_dir/$ac_word" || continue
1973
ac_cv_prog_ac_ct_CC="$ac_prog"
1974
echo "$as_me:1974: found $ac_dir/$ac_word" >&5
1975
break
1976
done
1977
 
1978
fi
1979
fi
1980
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981
if test -n "$ac_ct_CC"; then
1982
  echo "$as_me:1982: result: $ac_ct_CC" >&5
1983
echo "${ECHO_T}$ac_ct_CC" >&6
1984
else
1985
  echo "$as_me:1985: result: no" >&5
1986
echo "${ECHO_T}no" >&6
1987
fi
1988
 
1989
  test -n "$ac_ct_CC" && break
1990
done
1991
 
1992
  CC=$ac_ct_CC
1993
fi
1994
 
1995
fi
1996
 
1997
test -z "$CC" && { { echo "$as_me:1997: error: no acceptable cc found in \$PATH" >&5
1998
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1999
   { (exit 1); exit 1; }; }
2000
 
2001
# Provide some information about the compiler.
2002
echo "$as_me:2002:" \
2003
     "checking for C compiler version" >&5
2004
ac_compiler=`set X $ac_compile; echo $2`
2005
{ (eval echo "$as_me:2005: \"$ac_compiler --version &5\"") >&5
2006
  (eval $ac_compiler --version &5) 2>&5
2007
  ac_status=$?
2008
  echo "$as_me:2008: \$? = $ac_status" >&5
2009
  (exit $ac_status); }
2010
{ (eval echo "$as_me:2010: \"$ac_compiler -v &5\"") >&5
2011
  (eval $ac_compiler -v &5) 2>&5
2012
  ac_status=$?
2013
  echo "$as_me:2013: \$? = $ac_status" >&5
2014
  (exit $ac_status); }
2015
{ (eval echo "$as_me:2015: \"$ac_compiler -V &5\"") >&5
2016
  (eval $ac_compiler -V &5) 2>&5
2017
  ac_status=$?
2018
  echo "$as_me:2018: \$? = $ac_status" >&5
2019
  (exit $ac_status); }
2020
 
2021
cat >conftest.$ac_ext <<_ACEOF
2022
#line 2022 "configure"
2023
#include "confdefs.h"
2024
 
2025
int
2026
main ()
2027
{
2028
 
2029
  ;
2030
  return 0;
2031
}
2032
_ACEOF
2033
ac_clean_files_save=$ac_clean_files
2034
ac_clean_files="$ac_clean_files a.out a.exe"
2035
# Try to create an executable without -o first, disregard a.out.
2036
# It will help us diagnose broken compilers, and finding out an intuition
2037
# of exeext.
2038
echo "$as_me:2038: checking for C compiler default output" >&5
2039
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2040
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2041
if { (eval echo "$as_me:2041: \"$ac_link_default\"") >&5
2042
  (eval $ac_link_default) 2>&5
2043
  ac_status=$?
2044
  echo "$as_me:2044: \$? = $ac_status" >&5
2045
  (exit $ac_status); }; then
2046
  # Find the output, starting from the most likely.  This scheme is
2047
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2048
# resort.
2049
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2050
                ls a.out conftest 2>/dev/null;
2051
                ls a.* conftest.* 2>/dev/null`; do
2052
  case $ac_file in
2053
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2054
    a.out ) # We found the default executable, but exeext='' is most
2055
            # certainly right.
2056
            break;;
2057
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2059
          export ac_cv_exeext
2060
          break;;
2061
    * ) break;;
2062
  esac
2063
done
2064
else
2065
  echo "$as_me: failed program was:" >&5
2066
cat conftest.$ac_ext >&5
2067
{ { echo "$as_me:2067: error: C compiler cannot create executables" >&5
2068
echo "$as_me: error: C compiler cannot create executables" >&2;}
2069
   { (exit 77); exit 77; }; }
2070
fi
2071
 
2072
ac_exeext=$ac_cv_exeext
2073
echo "$as_me:2073: result: $ac_file" >&5
2074
echo "${ECHO_T}$ac_file" >&6
2075
 
2076
# Check the compiler produces executables we can run.  If not, either
2077
# the compiler is broken, or we cross compile.
2078
echo "$as_me:2078: checking whether the C compiler works" >&5
2079
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081
# If not cross compiling, check that we can run a simple program.
2082
if test "$cross_compiling" != yes; then
2083
  if { ac_try='./$ac_file'
2084
  { (eval echo "$as_me:2084: \"$ac_try\"") >&5
2085
  (eval $ac_try) 2>&5
2086
  ac_status=$?
2087
  echo "$as_me:2087: \$? = $ac_status" >&5
2088
  (exit $ac_status); }; }; then
2089
    cross_compiling=no
2090
  else
2091
    if test "$cross_compiling" = maybe; then
2092
        cross_compiling=yes
2093
    else
2094
        { { echo "$as_me:2094: error: cannot run C compiled programs.
2095
If you meant to cross compile, use \`--host'." >&5
2096
echo "$as_me: error: cannot run C compiled programs.
2097
If you meant to cross compile, use \`--host'." >&2;}
2098
   { (exit 1); exit 1; }; }
2099
    fi
2100
  fi
2101
fi
2102
echo "$as_me:2102: result: yes" >&5
2103
echo "${ECHO_T}yes" >&6
2104
 
2105
rm -f a.out a.exe conftest$ac_cv_exeext
2106
ac_clean_files=$ac_clean_files_save
2107
# Check the compiler produces executables we can run.  If not, either
2108
# the compiler is broken, or we cross compile.
2109
echo "$as_me:2109: checking whether we are cross compiling" >&5
2110
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111
echo "$as_me:2111: result: $cross_compiling" >&5
2112
echo "${ECHO_T}$cross_compiling" >&6
2113
 
2114
echo "$as_me:2114: checking for executable suffix" >&5
2115
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2116
if { (eval echo "$as_me:2116: \"$ac_link\"") >&5
2117
  (eval $ac_link) 2>&5
2118
  ac_status=$?
2119
  echo "$as_me:2119: \$? = $ac_status" >&5
2120
  (exit $ac_status); }; then
2121
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2123
# work properly (i.e., refer to `conftest.exe'), while it won't with
2124
# `rm'.
2125
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2126
  case $ac_file in
2127
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2128
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129
          export ac_cv_exeext
2130
          break;;
2131
    * ) break;;
2132
  esac
2133
done
2134
else
2135
  { { echo "$as_me:2135: error: cannot compute EXEEXT: cannot compile and link" >&5
2136
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2137
   { (exit 1); exit 1; }; }
2138
fi
2139
 
2140
rm -f conftest$ac_cv_exeext
2141
echo "$as_me:2141: result: $ac_cv_exeext" >&5
2142
echo "${ECHO_T}$ac_cv_exeext" >&6
2143
 
2144
rm -f conftest.$ac_ext
2145
EXEEXT=$ac_cv_exeext
2146
ac_exeext=$EXEEXT
2147
echo "$as_me:2147: checking for object suffix" >&5
2148
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2149
if test "${ac_cv_objext+set}" = set; then
2150
  echo $ECHO_N "(cached) $ECHO_C" >&6
2151
else
2152
  cat >conftest.$ac_ext <<_ACEOF
2153
#line 2153 "configure"
2154
#include "confdefs.h"
2155
 
2156
int
2157
main ()
2158
{
2159
 
2160
  ;
2161
  return 0;
2162
}
2163
_ACEOF
2164
rm -f conftest.o conftest.obj
2165
if { (eval echo "$as_me:2165: \"$ac_compile\"") >&5
2166
  (eval $ac_compile) 2>&5
2167
  ac_status=$?
2168
  echo "$as_me:2168: \$? = $ac_status" >&5
2169
  (exit $ac_status); }; then
2170
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2171
  case $ac_file in
2172
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2173
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2174
       break;;
2175
  esac
2176
done
2177
else
2178
  echo "$as_me: failed program was:" >&5
2179
cat conftest.$ac_ext >&5
2180
{ { echo "$as_me:2180: error: cannot compute OBJEXT: cannot compile" >&5
2181
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2182
   { (exit 1); exit 1; }; }
2183
fi
2184
 
2185
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2186
fi
2187
echo "$as_me:2187: result: $ac_cv_objext" >&5
2188
echo "${ECHO_T}$ac_cv_objext" >&6
2189
OBJEXT=$ac_cv_objext
2190
ac_objext=$OBJEXT
2191
echo "$as_me:2191: checking whether we are using the GNU C compiler" >&5
2192
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2193
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2194
  echo $ECHO_N "(cached) $ECHO_C" >&6
2195
else
2196
  cat >conftest.$ac_ext <<_ACEOF
2197
#line 2197 "configure"
2198
#include "confdefs.h"
2199
 
2200
int
2201
main ()
2202
{
2203
#ifndef __GNUC__
2204
       choke me
2205
#endif
2206
 
2207
  ;
2208
  return 0;
2209
}
2210
_ACEOF
2211
rm -f conftest.$ac_objext
2212
if { (eval echo "$as_me:2212: \"$ac_compile\"") >&5
2213
  (eval $ac_compile) 2>&5
2214
  ac_status=$?
2215
  echo "$as_me:2215: \$? = $ac_status" >&5
2216
  (exit $ac_status); } &&
2217
         { ac_try='test -s conftest.$ac_objext'
2218
  { (eval echo "$as_me:2218: \"$ac_try\"") >&5
2219
  (eval $ac_try) 2>&5
2220
  ac_status=$?
2221
  echo "$as_me:2221: \$? = $ac_status" >&5
2222
  (exit $ac_status); }; }; then
2223
  ac_compiler_gnu=yes
2224
else
2225
  echo "$as_me: failed program was:" >&5
2226
cat conftest.$ac_ext >&5
2227
ac_compiler_gnu=no
2228
fi
2229
rm -f conftest.$ac_objext conftest.$ac_ext
2230
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2231
 
2232
fi
2233
echo "$as_me:2233: result: $ac_cv_c_compiler_gnu" >&5
2234
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2235
GCC=`test $ac_compiler_gnu = yes && echo yes`
2236
ac_test_CFLAGS=${CFLAGS+set}
2237
ac_save_CFLAGS=$CFLAGS
2238
CFLAGS="-g"
2239
echo "$as_me:2239: checking whether $CC accepts -g" >&5
2240
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2241
if test "${ac_cv_prog_cc_g+set}" = set; then
2242
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
else
2244
  cat >conftest.$ac_ext <<_ACEOF
2245
#line 2245 "configure"
2246
#include "confdefs.h"
2247
 
2248
int
2249
main ()
2250
{
2251
 
2252
  ;
2253
  return 0;
2254
}
2255
_ACEOF
2256
rm -f conftest.$ac_objext
2257
if { (eval echo "$as_me:2257: \"$ac_compile\"") >&5
2258
  (eval $ac_compile) 2>&5
2259
  ac_status=$?
2260
  echo "$as_me:2260: \$? = $ac_status" >&5
2261
  (exit $ac_status); } &&
2262
         { ac_try='test -s conftest.$ac_objext'
2263
  { (eval echo "$as_me:2263: \"$ac_try\"") >&5
2264
  (eval $ac_try) 2>&5
2265
  ac_status=$?
2266
  echo "$as_me:2266: \$? = $ac_status" >&5
2267
  (exit $ac_status); }; }; then
2268
  ac_cv_prog_cc_g=yes
2269
else
2270
  echo "$as_me: failed program was:" >&5
2271
cat conftest.$ac_ext >&5
2272
ac_cv_prog_cc_g=no
2273
fi
2274
rm -f conftest.$ac_objext conftest.$ac_ext
2275
fi
2276
echo "$as_me:2276: result: $ac_cv_prog_cc_g" >&5
2277
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2278
if test "$ac_test_CFLAGS" = set; then
2279
  CFLAGS=$ac_save_CFLAGS
2280
elif test $ac_cv_prog_cc_g = yes; then
2281
  if test "$GCC" = yes; then
2282
    CFLAGS="-g -O2"
2283
  else
2284
    CFLAGS="-g"
2285
  fi
2286
else
2287
  if test "$GCC" = yes; then
2288
    CFLAGS="-O2"
2289
  else
2290
    CFLAGS=
2291
  fi
2292
fi
2293
# Some people use a C++ compiler to compile C.  Since we use `exit',
2294
# in C++ we need to declare it.  In case someone uses the same compiler
2295
# for both compiling C and C++ we need to have the C++ compiler decide
2296
# the declaration of exit, since it's the most demanding environment.
2297
cat >conftest.$ac_ext <<_ACEOF
2298
#ifndef __cplusplus
2299
  choke me
2300
#endif
2301
_ACEOF
2302
rm -f conftest.$ac_objext
2303
if { (eval echo "$as_me:2303: \"$ac_compile\"") >&5
2304
  (eval $ac_compile) 2>&5
2305
  ac_status=$?
2306
  echo "$as_me:2306: \$? = $ac_status" >&5
2307
  (exit $ac_status); } &&
2308
         { ac_try='test -s conftest.$ac_objext'
2309
  { (eval echo "$as_me:2309: \"$ac_try\"") >&5
2310
  (eval $ac_try) 2>&5
2311
  ac_status=$?
2312
  echo "$as_me:2312: \$? = $ac_status" >&5
2313
  (exit $ac_status); }; }; then
2314
  for ac_declaration in \
2315
   ''\
2316
   '#include ' \
2317
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2318
   'extern "C" void std::exit (int); using std::exit;' \
2319
   'extern "C" void exit (int) throw ();' \
2320
   'extern "C" void exit (int);' \
2321
   'void exit (int);'
2322
do
2323
  cat >conftest.$ac_ext <<_ACEOF
2324
#line 2324 "configure"
2325
#include "confdefs.h"
2326
#include 
2327
$ac_declaration
2328
int
2329
main ()
2330
{
2331
exit (42);
2332
  ;
2333
  return 0;
2334
}
2335
_ACEOF
2336
rm -f conftest.$ac_objext
2337
if { (eval echo "$as_me:2337: \"$ac_compile\"") >&5
2338
  (eval $ac_compile) 2>&5
2339
  ac_status=$?
2340
  echo "$as_me:2340: \$? = $ac_status" >&5
2341
  (exit $ac_status); } &&
2342
         { ac_try='test -s conftest.$ac_objext'
2343
  { (eval echo "$as_me:2343: \"$ac_try\"") >&5
2344
  (eval $ac_try) 2>&5
2345
  ac_status=$?
2346
  echo "$as_me:2346: \$? = $ac_status" >&5
2347
  (exit $ac_status); }; }; then
2348
  :
2349
else
2350
  echo "$as_me: failed program was:" >&5
2351
cat conftest.$ac_ext >&5
2352
continue
2353
fi
2354
rm -f conftest.$ac_objext conftest.$ac_ext
2355
  cat >conftest.$ac_ext <<_ACEOF
2356
#line 2356 "configure"
2357
#include "confdefs.h"
2358
$ac_declaration
2359
int
2360
main ()
2361
{
2362
exit (42);
2363
  ;
2364
  return 0;
2365
}
2366
_ACEOF
2367
rm -f conftest.$ac_objext
2368
if { (eval echo "$as_me:2368: \"$ac_compile\"") >&5
2369
  (eval $ac_compile) 2>&5
2370
  ac_status=$?
2371
  echo "$as_me:2371: \$? = $ac_status" >&5
2372
  (exit $ac_status); } &&
2373
         { ac_try='test -s conftest.$ac_objext'
2374
  { (eval echo "$as_me:2374: \"$ac_try\"") >&5
2375
  (eval $ac_try) 2>&5
2376
  ac_status=$?
2377
  echo "$as_me:2377: \$? = $ac_status" >&5
2378
  (exit $ac_status); }; }; then
2379
  break
2380
else
2381
  echo "$as_me: failed program was:" >&5
2382
cat conftest.$ac_ext >&5
2383
fi
2384
rm -f conftest.$ac_objext conftest.$ac_ext
2385
done
2386
rm -f conftest*
2387
if test -n "$ac_declaration"; then
2388
  echo '#ifdef __cplusplus' >>confdefs.h
2389
  echo $ac_declaration      >>confdefs.h
2390
  echo '#endif'             >>confdefs.h
2391
fi
2392
 
2393
else
2394
  echo "$as_me: failed program was:" >&5
2395
cat conftest.$ac_ext >&5
2396
fi
2397
rm -f conftest.$ac_objext conftest.$ac_ext
2398
ac_ext=c
2399
ac_cpp='$CPP $CPPFLAGS'
2400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
 
2404
depcc="$CC"   am_compiler_list=
2405
 
2406
echo "$as_me:2406: checking dependency style of $depcc" >&5
2407
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2408
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2409
  echo $ECHO_N "(cached) $ECHO_C" >&6
2410
else
2411
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2412
  # We make a subdir and do the tests there.  Otherwise we can end up
2413
  # making bogus files that we don't know about and never remove.  For
2414
  # instance it was reported that on HP-UX the gcc test will end up
2415
  # making a dummy file named `D' -- because `-MD' means `put the output
2416
  # in D'.
2417
  mkdir conftest.dir
2418
  # Copy depcomp to subdir because otherwise we won't find it if we're
2419
  # using a relative directory.
2420
  cp "$am_depcomp" conftest.dir
2421
  cd conftest.dir
2422
 
2423
  am_cv_CC_dependencies_compiler_type=none
2424
  if test "$am_compiler_list" = ""; then
2425
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2426
  fi
2427
  for depmode in $am_compiler_list; do
2428
    # We need to recreate these files for each test, as the compiler may
2429
    # overwrite some of them when testing with obscure command lines.
2430
    # This happens at least with the AIX C compiler.
2431
    echo '#include "conftest.h"' > conftest.c
2432
    echo 'int i;' > conftest.h
2433
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2434
 
2435
    case $depmode in
2436
    nosideeffect)
2437
      # after this tag, mechanisms are not by side-effect, so they'll
2438
      # only be used when explicitly requested
2439
      if test "x$enable_dependency_tracking" = xyes; then
2440
        continue
2441
      else
2442
        break
2443
      fi
2444
      ;;
2445
    none) break ;;
2446
    esac
2447
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2448
    # mode.  It turns out that the SunPro C++ compiler does not properly
2449
    # handle `-M -o', and we need to detect this.
2450
    if depmode=$depmode \
2451
       source=conftest.c object=conftest.o \
2452
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2453
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2454
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2455
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2456
      am_cv_CC_dependencies_compiler_type=$depmode
2457
      break
2458
    fi
2459
  done
2460
 
2461
  cd ..
2462
  rm -rf conftest.dir
2463
else
2464
  am_cv_CC_dependencies_compiler_type=none
2465
fi
2466
 
2467
fi
2468
echo "$as_me:2468: result: $am_cv_CC_dependencies_compiler_type" >&5
2469
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2470
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2471
 
2472
ac_ext=c
2473
ac_cpp='$CPP $CPPFLAGS'
2474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477
echo "$as_me:2477: checking how to run the C preprocessor" >&5
2478
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2479
# On Suns, sometimes $CPP names a directory.
2480
if test -n "$CPP" && test -d "$CPP"; then
2481
  CPP=
2482
fi
2483
if test -z "$CPP"; then
2484
  if test "${ac_cv_prog_CPP+set}" = set; then
2485
  echo $ECHO_N "(cached) $ECHO_C" >&6
2486
else
2487
      # Double quotes because CPP needs to be expanded
2488
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2489
    do
2490
      ac_preproc_ok=false
2491
for ac_c_preproc_warn_flag in '' yes
2492
do
2493
  # Use a header file that comes with gcc, so configuring glibc
2494
  # with a fresh cross-compiler works.
2495
  # On the NeXT, cc -E runs the code through the compiler's parser,
2496
  # not just through cpp. "Syntax error" is here to catch this case.
2497
  cat >conftest.$ac_ext <<_ACEOF
2498
#line 2498 "configure"
2499
#include "confdefs.h"
2500
#include 
2501
                     Syntax error
2502
_ACEOF
2503
if { (eval echo "$as_me:2503: \"$ac_cpp conftest.$ac_ext\"") >&5
2504
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2505
  ac_status=$?
2506
  egrep -v '^ *\+' conftest.er1 >conftest.err
2507
  rm -f conftest.er1
2508
  cat conftest.err >&5
2509
  echo "$as_me:2509: \$? = $ac_status" >&5
2510
  (exit $ac_status); } >/dev/null; then
2511
  if test -s conftest.err; then
2512
    ac_cpp_err=$ac_c_preproc_warn_flag
2513
  else
2514
    ac_cpp_err=
2515
  fi
2516
else
2517
  ac_cpp_err=yes
2518
fi
2519
if test -z "$ac_cpp_err"; then
2520
  :
2521
else
2522
  echo "$as_me: failed program was:" >&5
2523
  cat conftest.$ac_ext >&5
2524
  # Broken: fails on valid input.
2525
continue
2526
fi
2527
rm -f conftest.err conftest.$ac_ext
2528
 
2529
  # OK, works on sane cases.  Now check whether non-existent headers
2530
  # can be detected and how.
2531
  cat >conftest.$ac_ext <<_ACEOF
2532
#line 2532 "configure"
2533
#include "confdefs.h"
2534
#include 
2535
_ACEOF
2536
if { (eval echo "$as_me:2536: \"$ac_cpp conftest.$ac_ext\"") >&5
2537
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538
  ac_status=$?
2539
  egrep -v '^ *\+' conftest.er1 >conftest.err
2540
  rm -f conftest.er1
2541
  cat conftest.err >&5
2542
  echo "$as_me:2542: \$? = $ac_status" >&5
2543
  (exit $ac_status); } >/dev/null; then
2544
  if test -s conftest.err; then
2545
    ac_cpp_err=$ac_c_preproc_warn_flag
2546
  else
2547
    ac_cpp_err=
2548
  fi
2549
else
2550
  ac_cpp_err=yes
2551
fi
2552
if test -z "$ac_cpp_err"; then
2553
  # Broken: success on invalid input.
2554
continue
2555
else
2556
  echo "$as_me: failed program was:" >&5
2557
  cat conftest.$ac_ext >&5
2558
  # Passes both tests.
2559
ac_preproc_ok=:
2560
break
2561
fi
2562
rm -f conftest.err conftest.$ac_ext
2563
 
2564
done
2565
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2566
rm -f conftest.err conftest.$ac_ext
2567
if $ac_preproc_ok; then
2568
  break
2569
fi
2570
 
2571
    done
2572
    ac_cv_prog_CPP=$CPP
2573
 
2574
fi
2575
  CPP=$ac_cv_prog_CPP
2576
else
2577
  ac_cv_prog_CPP=$CPP
2578
fi
2579
echo "$as_me:2579: result: $CPP" >&5
2580
echo "${ECHO_T}$CPP" >&6
2581
ac_preproc_ok=false
2582
for ac_c_preproc_warn_flag in '' yes
2583
do
2584
  # Use a header file that comes with gcc, so configuring glibc
2585
  # with a fresh cross-compiler works.
2586
  # On the NeXT, cc -E runs the code through the compiler's parser,
2587
  # not just through cpp. "Syntax error" is here to catch this case.
2588
  cat >conftest.$ac_ext <<_ACEOF
2589
#line 2589 "configure"
2590
#include "confdefs.h"
2591
#include 
2592
                     Syntax error
2593
_ACEOF
2594
if { (eval echo "$as_me:2594: \"$ac_cpp conftest.$ac_ext\"") >&5
2595
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2596
  ac_status=$?
2597
  egrep -v '^ *\+' conftest.er1 >conftest.err
2598
  rm -f conftest.er1
2599
  cat conftest.err >&5
2600
  echo "$as_me:2600: \$? = $ac_status" >&5
2601
  (exit $ac_status); } >/dev/null; then
2602
  if test -s conftest.err; then
2603
    ac_cpp_err=$ac_c_preproc_warn_flag
2604
  else
2605
    ac_cpp_err=
2606
  fi
2607
else
2608
  ac_cpp_err=yes
2609
fi
2610
if test -z "$ac_cpp_err"; then
2611
  :
2612
else
2613
  echo "$as_me: failed program was:" >&5
2614
  cat conftest.$ac_ext >&5
2615
  # Broken: fails on valid input.
2616
continue
2617
fi
2618
rm -f conftest.err conftest.$ac_ext
2619
 
2620
  # OK, works on sane cases.  Now check whether non-existent headers
2621
  # can be detected and how.
2622
  cat >conftest.$ac_ext <<_ACEOF
2623
#line 2623 "configure"
2624
#include "confdefs.h"
2625
#include 
2626
_ACEOF
2627
if { (eval echo "$as_me:2627: \"$ac_cpp conftest.$ac_ext\"") >&5
2628
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2629
  ac_status=$?
2630
  egrep -v '^ *\+' conftest.er1 >conftest.err
2631
  rm -f conftest.er1
2632
  cat conftest.err >&5
2633
  echo "$as_me:2633: \$? = $ac_status" >&5
2634
  (exit $ac_status); } >/dev/null; then
2635
  if test -s conftest.err; then
2636
    ac_cpp_err=$ac_c_preproc_warn_flag
2637
  else
2638
    ac_cpp_err=
2639
  fi
2640
else
2641
  ac_cpp_err=yes
2642
fi
2643
if test -z "$ac_cpp_err"; then
2644
  # Broken: success on invalid input.
2645
continue
2646
else
2647
  echo "$as_me: failed program was:" >&5
2648
  cat conftest.$ac_ext >&5
2649
  # Passes both tests.
2650
ac_preproc_ok=:
2651
break
2652
fi
2653
rm -f conftest.err conftest.$ac_ext
2654
 
2655
done
2656
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2657
rm -f conftest.err conftest.$ac_ext
2658
if $ac_preproc_ok; then
2659
  :
2660
else
2661
  { { echo "$as_me:2661: error: C preprocessor \"$CPP\" fails sanity check" >&5
2662
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2663
   { (exit 1); exit 1; }; }
2664
fi
2665
 
2666
ac_ext=c
2667
ac_cpp='$CPP $CPPFLAGS'
2668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
 
2672
if test x"$GCC" = x"yes"; then
2673
  RTEMS_USE_GCC_TRUE=
2674
  RTEMS_USE_GCC_FALSE='#'
2675
else
2676
  RTEMS_USE_GCC_TRUE='#'
2677
  RTEMS_USE_GCC_FALSE=
2678
fi
2679
 
2680
echo "$as_me:2680: checking whether $CC accepts -specs" >&5
2681
echo $ECHO_N "checking whether $CC accepts -specs... $ECHO_C" >&6
2682
if test "${rtems_cv_gcc_specs+set}" = set; then
2683
  echo $ECHO_N "(cached) $ECHO_C" >&6
2684
else
2685
 
2686
rtems_cv_gcc_specs=no
2687
if test x"$GCC" = x"yes"; then
2688
  touch confspec
2689
  echo 'void f(){}' >conftest.c
2690
  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
2691
    rtems_cv_gcc_specs=yes
2692
  fi
2693
fi
2694
rm -f confspec conftest*
2695
 
2696
fi
2697
echo "$as_me:2697: result: $rtems_cv_gcc_specs" >&5
2698
echo "${ECHO_T}$rtems_cv_gcc_specs" >&6
2699
 
2700
echo "$as_me:2700: checking whether $CC accepts --pipe" >&5
2701
echo $ECHO_N "checking whether $CC accepts --pipe... $ECHO_C" >&6
2702
if test "${rtems_cv_gcc_pipe+set}" = set; then
2703
  echo $ECHO_N "(cached) $ECHO_C" >&6
2704
else
2705
 
2706
rtems_cv_gcc_pipe=no
2707
if test x"$GCC" = x"yes"; then
2708
    echo 'void f(){}' >conftest.c
2709
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
2710
      rtems_cv_gcc_pipe=yes
2711
    fi
2712
    rm -f conftest*
2713
fi
2714
 
2715
fi
2716
echo "$as_me:2716: result: $rtems_cv_gcc_pipe" >&5
2717
echo "${ECHO_T}$rtems_cv_gcc_pipe" >&6
2718
 
2719
#  if test "$rtems_cv_gcc_specs" = "no"; then
2720
#    AC_MSG_WARN([*** disabling --enable-gcc28])
2721
#      RTEMS_USE_GCC272=yes
2722
#  fi
2723
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
2724
 
2725
if test "$GCC" = yes; then
2726
 
2727
CPPFLAGS="$CPPFLAGS -ansi -fasm"
2728
 
2729
CFLAGS="-g -Wall"
2730
fi
2731
 
2732
case $build_os in
2733
*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
2734
*) ;;
2735
esac
2736
 
2737
  if test "x$build_alias" != "x$host_alias"; then
2738
  rtems_tool_prefix=${ac_tool_prefix}
2739
fi
2740
 
2741
  # Extract the first word of "${rtems_tool_prefix}ar", so it can be a program name with args.
2742
set dummy ${rtems_tool_prefix}ar; ac_word=$2
2743
echo "$as_me:2743: checking for $ac_word" >&5
2744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745
if test "${ac_cv_prog_AR+set}" = set; then
2746
  echo $ECHO_N "(cached) $ECHO_C" >&6
2747
else
2748
  if test -n "$AR"; then
2749
  ac_cv_prog_AR="$AR" # Let the user override the test.
2750
else
2751
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2752
ac_dummy="$PATH"
2753
for ac_dir in $ac_dummy; do
2754
  IFS=$ac_save_IFS
2755
  test -z "$ac_dir" && ac_dir=.
2756
  $as_executable_p "$ac_dir/$ac_word" || continue
2757
ac_cv_prog_AR="${rtems_tool_prefix}ar"
2758
echo "$as_me:2758: found $ac_dir/$ac_word" >&5
2759
break
2760
done
2761
 
2762
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no"
2763
fi
2764
fi
2765
AR=$ac_cv_prog_AR
2766
if test -n "$AR"; then
2767
  echo "$as_me:2767: result: $AR" >&5
2768
echo "${ECHO_T}$AR" >&6
2769
else
2770
  echo "$as_me:2770: result: no" >&5
2771
echo "${ECHO_T}no" >&6
2772
fi
2773
 
2774
  if test "x$build_alias" != "x$host_alias"; then
2775
  rtems_tool_prefix=${ac_tool_prefix}
2776
fi
2777
 
2778
  # Extract the first word of "${rtems_tool_prefix}as", so it can be a program name with args.
2779
set dummy ${rtems_tool_prefix}as; ac_word=$2
2780
echo "$as_me:2780: checking for $ac_word" >&5
2781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782
if test "${ac_cv_prog_AS+set}" = set; then
2783
  echo $ECHO_N "(cached) $ECHO_C" >&6
2784
else
2785
  if test -n "$AS"; then
2786
  ac_cv_prog_AS="$AS" # Let the user override the test.
2787
else
2788
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2789
ac_dummy="$PATH"
2790
for ac_dir in $ac_dummy; do
2791
  IFS=$ac_save_IFS
2792
  test -z "$ac_dir" && ac_dir=.
2793
  $as_executable_p "$ac_dir/$ac_word" || continue
2794
ac_cv_prog_AS="${rtems_tool_prefix}as"
2795
echo "$as_me:2795: found $ac_dir/$ac_word" >&5
2796
break
2797
done
2798
 
2799
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="no"
2800
fi
2801
fi
2802
AS=$ac_cv_prog_AS
2803
if test -n "$AS"; then
2804
  echo "$as_me:2804: result: $AS" >&5
2805
echo "${ECHO_T}$AS" >&6
2806
else
2807
  echo "$as_me:2807: result: no" >&5
2808
echo "${ECHO_T}no" >&6
2809
fi
2810
 
2811
  if test "x$build_alias" != "x$host_alias"; then
2812
  rtems_tool_prefix=${ac_tool_prefix}
2813
fi
2814
 
2815
  # Extract the first word of "${rtems_tool_prefix}ld", so it can be a program name with args.
2816
set dummy ${rtems_tool_prefix}ld; ac_word=$2
2817
echo "$as_me:2817: checking for $ac_word" >&5
2818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819
if test "${ac_cv_prog_LD+set}" = set; then
2820
  echo $ECHO_N "(cached) $ECHO_C" >&6
2821
else
2822
  if test -n "$LD"; then
2823
  ac_cv_prog_LD="$LD" # Let the user override the test.
2824
else
2825
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2826
ac_dummy="$PATH"
2827
for ac_dir in $ac_dummy; do
2828
  IFS=$ac_save_IFS
2829
  test -z "$ac_dir" && ac_dir=.
2830
  $as_executable_p "$ac_dir/$ac_word" || continue
2831
ac_cv_prog_LD="${rtems_tool_prefix}ld"
2832
echo "$as_me:2832: found $ac_dir/$ac_word" >&5
2833
break
2834
done
2835
 
2836
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="no"
2837
fi
2838
fi
2839
LD=$ac_cv_prog_LD
2840
if test -n "$LD"; then
2841
  echo "$as_me:2841: result: $LD" >&5
2842
echo "${ECHO_T}$LD" >&6
2843
else
2844
  echo "$as_me:2844: result: no" >&5
2845
echo "${ECHO_T}no" >&6
2846
fi
2847
 
2848
  if test "x$build_alias" != "x$host_alias"; then
2849
  rtems_tool_prefix=${ac_tool_prefix}
2850
fi
2851
 
2852
  # Extract the first word of "${rtems_tool_prefix}nm", so it can be a program name with args.
2853
set dummy ${rtems_tool_prefix}nm; ac_word=$2
2854
echo "$as_me:2854: checking for $ac_word" >&5
2855
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856
if test "${ac_cv_prog_NM+set}" = set; then
2857
  echo $ECHO_N "(cached) $ECHO_C" >&6
2858
else
2859
  if test -n "$NM"; then
2860
  ac_cv_prog_NM="$NM" # Let the user override the test.
2861
else
2862
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2863
ac_dummy="$PATH"
2864
for ac_dir in $ac_dummy; do
2865
  IFS=$ac_save_IFS
2866
  test -z "$ac_dir" && ac_dir=.
2867
  $as_executable_p "$ac_dir/$ac_word" || continue
2868
ac_cv_prog_NM="${rtems_tool_prefix}nm"
2869
echo "$as_me:2869: found $ac_dir/$ac_word" >&5
2870
break
2871
done
2872
 
2873
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"
2874
fi
2875
fi
2876
NM=$ac_cv_prog_NM
2877
if test -n "$NM"; then
2878
  echo "$as_me:2878: result: $NM" >&5
2879
echo "${ECHO_T}$NM" >&6
2880
else
2881
  echo "$as_me:2881: result: no" >&5
2882
echo "${ECHO_T}no" >&6
2883
fi
2884
 
2885
  if test "x$build_alias" != "x$host_alias"; then
2886
  rtems_tool_prefix=${ac_tool_prefix}
2887
fi
2888
 
2889
  # Extract the first word of "${rtems_tool_prefix}ranlib", so it can be a program name with args.
2890
set dummy ${rtems_tool_prefix}ranlib; ac_word=$2
2891
echo "$as_me:2891: checking for $ac_word" >&5
2892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893
if test "${ac_cv_prog_RANLIB+set}" = set; then
2894
  echo $ECHO_N "(cached) $ECHO_C" >&6
2895
else
2896
  if test -n "$RANLIB"; then
2897
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2898
else
2899
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2900
ac_dummy="$PATH"
2901
for ac_dir in $ac_dummy; do
2902
  IFS=$ac_save_IFS
2903
  test -z "$ac_dir" && ac_dir=.
2904
  $as_executable_p "$ac_dir/$ac_word" || continue
2905
ac_cv_prog_RANLIB="${rtems_tool_prefix}ranlib"
2906
echo "$as_me:2906: found $ac_dir/$ac_word" >&5
2907
break
2908
done
2909
 
2910
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2911
fi
2912
fi
2913
RANLIB=$ac_cv_prog_RANLIB
2914
if test -n "$RANLIB"; then
2915
  echo "$as_me:2915: result: $RANLIB" >&5
2916
echo "${ECHO_T}$RANLIB" >&6
2917
else
2918
  echo "$as_me:2918: result: no" >&5
2919
echo "${ECHO_T}no" >&6
2920
fi
2921
 
2922
  if test "x$build_alias" != "x$host_alias"; then
2923
  rtems_tool_prefix=${ac_tool_prefix}
2924
fi
2925
 
2926
  # Extract the first word of "${rtems_tool_prefix}objcopy", so it can be a program name with args.
2927
set dummy ${rtems_tool_prefix}objcopy; ac_word=$2
2928
echo "$as_me:2928: checking for $ac_word" >&5
2929
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930
if test "${ac_cv_prog_OBJCOPY+set}" = set; then
2931
  echo $ECHO_N "(cached) $ECHO_C" >&6
2932
else
2933
  if test -n "$OBJCOPY"; then
2934
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
2935
else
2936
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2937
ac_dummy="$PATH"
2938
for ac_dir in $ac_dummy; do
2939
  IFS=$ac_save_IFS
2940
  test -z "$ac_dir" && ac_dir=.
2941
  $as_executable_p "$ac_dir/$ac_word" || continue
2942
ac_cv_prog_OBJCOPY="${rtems_tool_prefix}objcopy"
2943
echo "$as_me:2943: found $ac_dir/$ac_word" >&5
2944
break
2945
done
2946
 
2947
  test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="no"
2948
fi
2949
fi
2950
OBJCOPY=$ac_cv_prog_OBJCOPY
2951
if test -n "$OBJCOPY"; then
2952
  echo "$as_me:2952: result: $OBJCOPY" >&5
2953
echo "${ECHO_T}$OBJCOPY" >&6
2954
else
2955
  echo "$as_me:2955: result: no" >&5
2956
echo "${ECHO_T}no" >&6
2957
fi
2958
 
2959
  if test "x$build_alias" != "x$host_alias"; then
2960
  rtems_tool_prefix=${ac_tool_prefix}
2961
fi
2962
 
2963
  # Extract the first word of "${rtems_tool_prefix}size", so it can be a program name with args.
2964
set dummy ${rtems_tool_prefix}size; ac_word=$2
2965
echo "$as_me:2965: checking for $ac_word" >&5
2966
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967
if test "${ac_cv_prog_SIZE+set}" = set; then
2968
  echo $ECHO_N "(cached) $ECHO_C" >&6
2969
else
2970
  if test -n "$SIZE"; then
2971
  ac_cv_prog_SIZE="$SIZE" # Let the user override the test.
2972
else
2973
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2974
ac_dummy="$PATH"
2975
for ac_dir in $ac_dummy; do
2976
  IFS=$ac_save_IFS
2977
  test -z "$ac_dir" && ac_dir=.
2978
  $as_executable_p "$ac_dir/$ac_word" || continue
2979
ac_cv_prog_SIZE="${rtems_tool_prefix}size"
2980
echo "$as_me:2980: found $ac_dir/$ac_word" >&5
2981
break
2982
done
2983
 
2984
  test -z "$ac_cv_prog_SIZE" && ac_cv_prog_SIZE="no"
2985
fi
2986
fi
2987
SIZE=$ac_cv_prog_SIZE
2988
if test -n "$SIZE"; then
2989
  echo "$as_me:2989: result: $SIZE" >&5
2990
echo "${ECHO_T}$SIZE" >&6
2991
else
2992
  echo "$as_me:2992: result: no" >&5
2993
echo "${ECHO_T}no" >&6
2994
fi
2995
 
2996
  if test "x$build_alias" != "x$host_alias"; then
2997
  rtems_tool_prefix=${ac_tool_prefix}
2998
fi
2999
 
3000
  # Extract the first word of "${rtems_tool_prefix}strip", so it can be a program name with args.
3001
set dummy ${rtems_tool_prefix}strip; ac_word=$2
3002
echo "$as_me:3002: checking for $ac_word" >&5
3003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004
if test "${ac_cv_prog_STRIP+set}" = set; then
3005
  echo $ECHO_N "(cached) $ECHO_C" >&6
3006
else
3007
  if test -n "$STRIP"; then
3008
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3009
else
3010
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3011
ac_dummy="$PATH"
3012
for ac_dir in $ac_dummy; do
3013
  IFS=$ac_save_IFS
3014
  test -z "$ac_dir" && ac_dir=.
3015
  $as_executable_p "$ac_dir/$ac_word" || continue
3016
ac_cv_prog_STRIP="${rtems_tool_prefix}strip"
3017
echo "$as_me:3017: found $ac_dir/$ac_word" >&5
3018
break
3019
done
3020
 
3021
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3022
fi
3023
fi
3024
STRIP=$ac_cv_prog_STRIP
3025
if test -n "$STRIP"; then
3026
  echo "$as_me:3026: result: $STRIP" >&5
3027
echo "${ECHO_T}$STRIP" >&6
3028
else
3029
  echo "$as_me:3029: result: no" >&5
3030
echo "${ECHO_T}no" >&6
3031
fi
3032
 
3033
# Explicitly list all Makefiles here
3034
ac_config_files="$ac_config_files Makefile rtems/Makefile sapi/Makefile"
3035
 
3036
cat >confcache <<\_ACEOF
3037
# This file is a shell script that caches the results of configure
3038
# tests run on this system so they can be shared between configure
3039
# scripts and configure runs, see configure's option --config-cache.
3040
# It is not useful on other systems.  If it contains results you don't
3041
# want to keep, you may remove or edit it.
3042
#
3043
# config.status only pays attention to the cache file if you give it
3044
# the --recheck option to rerun configure.
3045
#
3046
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3047
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3048
# following values.
3049
 
3050
_ACEOF
3051
 
3052
# The following way of writing the cache mishandles newlines in values,
3053
# but we know of no workaround that is simple, portable, and efficient.
3054
# So, don't put newlines in cache variables' values.
3055
# Ultrix sh set writes to stderr and can't be redirected directly,
3056
# and sets the high bit in the cache file unless we assign to the vars.
3057
{
3058
  (set) 2>&1 |
3059
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3060
    *ac_space=\ *)
3061
      # `set' does not quote correctly, so add quotes (double-quote
3062
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3063
      sed -n \
3064
        "s/'/'\\\\''/g;
3065
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3066
      ;;
3067
    *)
3068
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3069
      sed -n \
3070
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3071
      ;;
3072
    esac;
3073
} |
3074
  sed '
3075
     t clear
3076
     : clear
3077
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3078
     t end
3079
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3080
     : end' >>confcache
3081
if cmp -s $cache_file confcache; then :; else
3082
  if test -w $cache_file; then
3083
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3084
    cat confcache >$cache_file
3085
  else
3086
    echo "not updating unwritable cache $cache_file"
3087
  fi
3088
fi
3089
rm -f confcache
3090
 
3091
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3092
# Let make expand exec_prefix.
3093
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3094
 
3095
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3096
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3097
# trailing colons and then remove the whole line if VPATH becomes empty
3098
# (actually we leave an empty line to preserve line numbers).
3099
if test "x$srcdir" = x.; then
3100
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
3101
s/:*\$(srcdir):*/:/;
3102
s/:*\${srcdir}:*/:/;
3103
s/:*@srcdir@:*/:/;
3104
s/^\([^=]*=[    ]*\):*/\1/;
3105
s/:*$//;
3106
s/^[^=]*=[      ]*$//;
3107
}'
3108
fi
3109
 
3110
# Transform confdefs.h into DEFS.
3111
# Protect against shell expansion while executing Makefile rules.
3112
# Protect against Makefile macro expansion.
3113
#
3114
# If the first sed substitution is executed (which looks for macros that
3115
# take arguments), then we branch to the quote section.  Otherwise,
3116
# look for a macro that doesn't take arguments.
3117
cat >confdef2opt.sed <<\EOF
3118
t clear
3119
: clear
3120
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3121
t quote
3122
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3123
t quote
3124
d
3125
: quote
3126
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
3127
s,\[,\\&,g
3128
s,\],\\&,g
3129
s,\$,$$,g
3130
p
3131
EOF
3132
# We use echo to avoid assuming a particular line-breaking character.
3133
# The extra dot is to prevent the shell from consuming trailing
3134
# line-breaks from the sub-command output.  A line-break within
3135
# single-quotes doesn't work because, if this script is created in a
3136
# platform that uses two characters for line-breaks (e.g., DOS), tr
3137
# would break.
3138
ac_LF_and_DOT=`echo; echo .`
3139
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3140
rm -f confdef2opt.sed
3141
 
3142
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3143
  { { echo "$as_me:3143: error: conditional \"MAINTAINER_MODE\" was never defined.
3144
Usually this means the macro was only invoked conditionally." >&5
3145
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3146
Usually this means the macro was only invoked conditionally." >&2;}
3147
   { (exit 1); exit 1; }; }
3148
fi
3149
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3150
  { { echo "$as_me:3150: error: conditional \"MULTILIB\" was never defined.
3151
Usually this means the macro was only invoked conditionally." >&5
3152
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3153
Usually this means the macro was only invoked conditionally." >&2;}
3154
   { (exit 1); exit 1; }; }
3155
fi
3156
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3157
  { { echo "$as_me:3157: error: conditional \"AMDEP\" was never defined.
3158
Usually this means the macro was only invoked conditionally." >&5
3159
echo "$as_me: error: conditional \"AMDEP\" was never defined.
3160
Usually this means the macro was only invoked conditionally." >&2;}
3161
   { (exit 1); exit 1; }; }
3162
fi
3163
if test -z "${RTEMS_USE_GCC_TRUE}" && test -z "${RTEMS_USE_GCC_FALSE}"; then
3164
  { { echo "$as_me:3164: error: conditional \"RTEMS_USE_GCC\" was never defined.
3165
Usually this means the macro was only invoked conditionally." >&5
3166
echo "$as_me: error: conditional \"RTEMS_USE_GCC\" was never defined.
3167
Usually this means the macro was only invoked conditionally." >&2;}
3168
   { (exit 1); exit 1; }; }
3169
fi
3170
 
3171
: ${CONFIG_STATUS=./config.status}
3172
ac_clean_files_save=$ac_clean_files
3173
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3174
{ echo "$as_me:3174: creating $CONFIG_STATUS" >&5
3175
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3176
cat >$CONFIG_STATUS <<_ACEOF
3177
#! $SHELL
3178
# Generated automatically by configure.
3179
# Run this file to recreate the current configuration.
3180
# Compiler output produced by configure, useful for debugging
3181
# configure, is in config.log if it exists.
3182
 
3183
debug=false
3184
SHELL=\${CONFIG_SHELL-$SHELL}
3185
ac_cs_invocation="\$0 \$@"
3186
 
3187
_ACEOF
3188
 
3189
cat >>$CONFIG_STATUS <<\_ACEOF
3190
# Be Bourne compatible
3191
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3192
  emulate sh
3193
  NULLCMD=:
3194
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3195
  set -o posix
3196
fi
3197
 
3198
# Name of the executable.
3199
as_me=`echo "$0" |sed 's,.*[\\/],,'`
3200
 
3201
if expr a : '\(a\)' >/dev/null 2>&1; then
3202
  as_expr=expr
3203
else
3204
  as_expr=false
3205
fi
3206
 
3207
rm -f conf$$ conf$$.exe conf$$.file
3208
echo >conf$$.file
3209
if ln -s conf$$.file conf$$ 2>/dev/null; then
3210
  # We could just check for DJGPP; but this test a) works b) is more generic
3211
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3212
  if test -f conf$$.exe; then
3213
    # Don't use ln at all; we don't have any links
3214
    as_ln_s='cp -p'
3215
  else
3216
    as_ln_s='ln -s'
3217
  fi
3218
elif ln conf$$.file conf$$ 2>/dev/null; then
3219
  as_ln_s=ln
3220
else
3221
  as_ln_s='cp -p'
3222
fi
3223
rm -f conf$$ conf$$.exe conf$$.file
3224
 
3225
as_executable_p="test -f"
3226
 
3227
# Support unset when possible.
3228
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3229
  as_unset=unset
3230
else
3231
  as_unset=false
3232
fi
3233
 
3234
# NLS nuisances.
3235
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3236
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3237
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3238
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3239
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3240
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3241
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3242
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3243
 
3244
# IFS
3245
# We need space, tab and new line, in precisely that order.
3246
as_nl='
3247
'
3248
IFS="   $as_nl"
3249
 
3250
# CDPATH.
3251
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3252
 
3253
exec 6>&1
3254
 
3255
_ACEOF
3256
 
3257
# Files that config.status was made for.
3258
if test -n "$ac_config_files"; then
3259
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3260
fi
3261
 
3262
if test -n "$ac_config_headers"; then
3263
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3264
fi
3265
 
3266
if test -n "$ac_config_links"; then
3267
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3268
fi
3269
 
3270
if test -n "$ac_config_commands"; then
3271
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3272
fi
3273
 
3274
cat >>$CONFIG_STATUS <<\EOF
3275
 
3276
ac_cs_usage="\
3277
\`$as_me' instantiates files from templates according to the
3278
current configuration.
3279
 
3280
Usage: $0 [OPTIONS] [FILE]...
3281
 
3282
  -h, --help       print this help, then exit
3283
  -V, --version    print version number, then exit
3284
  -d, --debug      don't remove temporary files
3285
      --recheck    update $as_me by reconfiguring in the same conditions
3286
  --file=FILE[:TEMPLATE]
3287
                   instantiate the configuration file FILE
3288
 
3289
Configuration files:
3290
$config_files
3291
 
3292
Configuration commands:
3293
$config_commands
3294
 
3295
Report bugs to ."
3296
EOF
3297
 
3298
cat >>$CONFIG_STATUS <
3299
ac_cs_version="\\
3300
rtems-c-src-optman config.status ss-20020807
3301
configured by $0, generated by GNU Autoconf 2.52,
3302
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3303
 
3304
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3305
Free Software Foundation, Inc.
3306
This config.status script is free software; the Free Software Foundation
3307
gives unlimited permission to copy, distribute and modify it."
3308
srcdir=$srcdir
3309
INSTALL="$INSTALL"
3310
EOF
3311
 
3312
cat >>$CONFIG_STATUS <<\EOF
3313
# If no file are specified by the user, then we need to provide default
3314
# value.  By we need to know if files were specified by the user.
3315
ac_need_defaults=:
3316
while test $# != 0
3317
do
3318
  case $1 in
3319
  --*=*)
3320
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3321
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3322
    shift
3323
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3324
    shift
3325
    ;;
3326
  -*);;
3327
  *) # This is not an option, so the user has probably given explicit
3328
     # arguments.
3329
     ac_need_defaults=false;;
3330
  esac
3331
 
3332
  case $1 in
3333
  # Handling of the options.
3334
EOF
3335
cat >>$CONFIG_STATUS <
3336
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3337
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3338
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3339
EOF
3340
cat >>$CONFIG_STATUS <<\EOF
3341
  --version | --vers* | -V )
3342
    echo "$ac_cs_version"; exit 0 ;;
3343
  --he | --h)
3344
    # Conflict between --help and --header
3345
    { { echo "$as_me:3345: error: ambiguous option: $1
3346
Try \`$0 --help' for more information." >&5
3347
echo "$as_me: error: ambiguous option: $1
3348
Try \`$0 --help' for more information." >&2;}
3349
   { (exit 1); exit 1; }; };;
3350
  --help | --hel | -h )
3351
    echo "$ac_cs_usage"; exit 0 ;;
3352
  --debug | --d* | -d )
3353
    debug=: ;;
3354
  --file | --fil | --fi | --f )
3355
    shift
3356
    CONFIG_FILES="$CONFIG_FILES $1"
3357
    ac_need_defaults=false;;
3358
  --header | --heade | --head | --hea )
3359
    shift
3360
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
3361
    ac_need_defaults=false;;
3362
 
3363
  # This is an error.
3364
  -*) { { echo "$as_me:3364: error: unrecognized option: $1
3365
Try \`$0 --help' for more information." >&5
3366
echo "$as_me: error: unrecognized option: $1
3367
Try \`$0 --help' for more information." >&2;}
3368
   { (exit 1); exit 1; }; } ;;
3369
 
3370
  *) ac_config_targets="$ac_config_targets $1" ;;
3371
 
3372
  esac
3373
  shift
3374
done
3375
 
3376
exec 5>>config.log
3377
cat >&5 << _ACEOF
3378
 
3379
## ----------------------- ##
3380
## Running config.status.  ##
3381
## ----------------------- ##
3382
 
3383
This file was extended by $as_me (rtems-c-src-optman ss-20020807) 2.52, executed with
3384
  CONFIG_FILES    = $CONFIG_FILES
3385
  CONFIG_HEADERS  = $CONFIG_HEADERS
3386
  CONFIG_LINKS    = $CONFIG_LINKS
3387
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3388
  > $ac_cs_invocation
3389
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3390
 
3391
_ACEOF
3392
EOF
3393
 
3394
cat >>$CONFIG_STATUS <
3395
#
3396
# INIT-COMMANDS section.
3397
#
3398
 
3399
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3400
 
3401
EOF
3402
 
3403
cat >>$CONFIG_STATUS <<\EOF
3404
for ac_config_target in $ac_config_targets
3405
do
3406
  case "$ac_config_target" in
3407
  # Handling of arguments.
3408
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3409
  "rtems/Makefile" ) CONFIG_FILES="$CONFIG_FILES rtems/Makefile" ;;
3410
  "sapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES sapi/Makefile" ;;
3411
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3412
  *) { { echo "$as_me:3412: error: invalid argument: $ac_config_target" >&5
3413
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3414
   { (exit 1); exit 1; }; };;
3415
  esac
3416
done
3417
 
3418
# If the user did not use the arguments to specify the items to instantiate,
3419
# then the envvar interface is used.  Set only those that are not.
3420
# We use the long form for the default assignment because of an extremely
3421
# bizarre bug on SunOS 4.1.3.
3422
if $ac_need_defaults; then
3423
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3424
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3425
fi
3426
 
3427
# Create a temporary directory, and hook for its removal unless debugging.
3428
$debug ||
3429
{
3430
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3431
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3432
}
3433
 
3434
# Create a (secure) tmp directory for tmp files.
3435
: ${TMPDIR=/tmp}
3436
{
3437
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3438
  test -n "$tmp" && test -d "$tmp"
3439
}  ||
3440
{
3441
  tmp=$TMPDIR/cs$$-$RANDOM
3442
  (umask 077 && mkdir $tmp)
3443
} ||
3444
{
3445
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3446
   { (exit 1); exit 1; }
3447
}
3448
 
3449
EOF
3450
 
3451
cat >>$CONFIG_STATUS <
3452
 
3453
#
3454
# CONFIG_FILES section.
3455
#
3456
 
3457
# No need to generate the scripts if there are no CONFIG_FILES.
3458
# This happens for instance when ./config.status config.h
3459
if test -n "\$CONFIG_FILES"; then
3460
  # Protect against being on the right side of a sed subst in config.status.
3461
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3462
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3463
s,@SHELL@,$SHELL,;t t
3464
s,@exec_prefix@,$exec_prefix,;t t
3465
s,@prefix@,$prefix,;t t
3466
s,@program_transform_name@,$program_transform_name,;t t
3467
s,@bindir@,$bindir,;t t
3468
s,@sbindir@,$sbindir,;t t
3469
s,@libexecdir@,$libexecdir,;t t
3470
s,@datadir@,$datadir,;t t
3471
s,@sysconfdir@,$sysconfdir,;t t
3472
s,@sharedstatedir@,$sharedstatedir,;t t
3473
s,@localstatedir@,$localstatedir,;t t
3474
s,@libdir@,$libdir,;t t
3475
s,@includedir@,$includedir,;t t
3476
s,@oldincludedir@,$oldincludedir,;t t
3477
s,@infodir@,$infodir,;t t
3478
s,@mandir@,$mandir,;t t
3479
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3480
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3481
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3482
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3483
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3484
s,@build_alias@,$build_alias,;t t
3485
s,@host_alias@,$host_alias,;t t
3486
s,@target_alias@,$target_alias,;t t
3487
s,@ECHO_C@,$ECHO_C,;t t
3488
s,@ECHO_N@,$ECHO_N,;t t
3489
s,@ECHO_T@,$ECHO_T,;t t
3490
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3491
s,@DEFS@,$DEFS,;t t
3492
s,@LIBS@,$LIBS,;t t
3493
s,@MAKE@,$MAKE,;t t
3494
s,@ENDIF@,$ENDIF,;t t
3495
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
3496
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
3497
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
3498
s,@build@,$build,;t t
3499
s,@build_cpu@,$build_cpu,;t t
3500
s,@build_vendor@,$build_vendor,;t t
3501
s,@build_os@,$build_os,;t t
3502
s,@host@,$host,;t t
3503
s,@host_cpu@,$host_cpu,;t t
3504
s,@host_vendor@,$host_vendor,;t t
3505
s,@host_os@,$host_os,;t t
3506
s,@target@,$target,;t t
3507
s,@target_cpu@,$target_cpu,;t t
3508
s,@target_vendor@,$target_vendor,;t t
3509
s,@target_os@,$target_os,;t t
3510
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
3511
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3512
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3513
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3514
s,@PACKAGE@,$PACKAGE,;t t
3515
s,@VERSION@,$VERSION,;t t
3516
s,@ACLOCAL@,$ACLOCAL,;t t
3517
s,@AUTOCONF@,$AUTOCONF,;t t
3518
s,@AUTOMAKE@,$AUTOMAKE,;t t
3519
s,@AUTOHEADER@,$AUTOHEADER,;t t
3520
s,@MAKEINFO@,$MAKEINFO,;t t
3521
s,@AMTAR@,$AMTAR,;t t
3522
s,@install_sh@,$install_sh,;t t
3523
s,@STRIP@,$STRIP,;t t
3524
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3525
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3526
s,@AWK@,$AWK,;t t
3527
s,@SET_MAKE@,$SET_MAKE,;t t
3528
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3529
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3530
s,@MAINT@,$MAINT,;t t
3531
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
3532
s,@RTEMS_BSP_SPECS@,$RTEMS_BSP_SPECS,;t t
3533
s,@GCC_SPECS@,$GCC_SPECS,;t t
3534
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
3535
s,@PROJECT_RELEASE@,$PROJECT_RELEASE,;t t
3536
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
3537
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
3538
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
3539
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
3540
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
3541
s,@bsplibdir@,$bsplibdir,;t t
3542
s,@RTEMS_HOST@,$RTEMS_HOST,;t t
3543
s,@PACKHEX@,$PACKHEX,;t t
3544
s,@CC@,$CC,;t t
3545
s,@CFLAGS@,$CFLAGS,;t t
3546
s,@LDFLAGS@,$LDFLAGS,;t t
3547
s,@CPPFLAGS@,$CPPFLAGS,;t t
3548
s,@ac_ct_CC@,$ac_ct_CC,;t t
3549
s,@EXEEXT@,$EXEEXT,;t t
3550
s,@OBJEXT@,$OBJEXT,;t t
3551
s,@DEPDIR@,$DEPDIR,;t t
3552
s,@am__include@,$am__include,;t t
3553
s,@am__quote@,$am__quote,;t t
3554
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3555
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3556
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3557
s,@CCDEPMODE@,$CCDEPMODE,;t t
3558
s,@CPP@,$CPP,;t t
3559
s,@RTEMS_USE_GCC_TRUE@,$RTEMS_USE_GCC_TRUE,;t t
3560
s,@RTEMS_USE_GCC_FALSE@,$RTEMS_USE_GCC_FALSE,;t t
3561
s,@GCCSED@,$GCCSED,;t t
3562
s,@AR@,$AR,;t t
3563
s,@AS@,$AS,;t t
3564
s,@LD@,$LD,;t t
3565
s,@NM@,$NM,;t t
3566
s,@RANLIB@,$RANLIB,;t t
3567
s,@OBJCOPY@,$OBJCOPY,;t t
3568
s,@SIZE@,$SIZE,;t t
3569
CEOF
3570
 
3571
EOF
3572
 
3573
  cat >>$CONFIG_STATUS <<\EOF
3574
  # Split the substitutions into bite-sized pieces for seds with
3575
  # small command number limits, like on Digital OSF/1 and HP-UX.
3576
  ac_max_sed_lines=48
3577
  ac_sed_frag=1 # Number of current file.
3578
  ac_beg=1 # First line for current file.
3579
  ac_end=$ac_max_sed_lines # Line after last line for current file.
3580
  ac_more_lines=:
3581
  ac_sed_cmds=
3582
  while $ac_more_lines; do
3583
    if test $ac_beg -gt 1; then
3584
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3585
    else
3586
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3587
    fi
3588
    if test ! -s $tmp/subs.frag; then
3589
      ac_more_lines=false
3590
    else
3591
      # The purpose of the label and of the branching condition is to
3592
      # speed up the sed processing (if there are no `@' at all, there
3593
      # is no need to browse any of the substitutions).
3594
      # These are the two extra sed commands mentioned above.
3595
      (echo ':t
3596
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3597
      if test -z "$ac_sed_cmds"; then
3598
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3599
      else
3600
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3601
      fi
3602
      ac_sed_frag=`expr $ac_sed_frag + 1`
3603
      ac_beg=$ac_end
3604
      ac_end=`expr $ac_end + $ac_max_sed_lines`
3605
    fi
3606
  done
3607
  if test -z "$ac_sed_cmds"; then
3608
    ac_sed_cmds=cat
3609
  fi
3610
fi # test -n "$CONFIG_FILES"
3611
 
3612
EOF
3613
cat >>$CONFIG_STATUS <<\EOF
3614
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3615
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3616
  case $ac_file in
3617
  - | *:- | *:-:* ) # input from stdin
3618
        cat >$tmp/stdin
3619
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3620
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3621
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3622
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3623
  * )   ac_file_in=$ac_file.in ;;
3624
  esac
3625
 
3626
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3627
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3628
         X"$ac_file" : 'X\(//\)[^/]' \| \
3629
         X"$ac_file" : 'X\(//\)$' \| \
3630
         X"$ac_file" : 'X\(/\)' \| \
3631
         .     : '\(.\)' 2>/dev/null ||
3632
echo X"$ac_file" |
3633
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3634
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3635
          /^X\(\/\/\)$/{ s//\1/; q; }
3636
          /^X\(\/\).*/{ s//\1/; q; }
3637
          s/.*/./; q'`
3638
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3639
    { case "$ac_dir" in
3640
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3641
  *)                      as_incr_dir=.;;
3642
esac
3643
as_dummy="$ac_dir"
3644
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3645
  case $as_mkdir_dir in
3646
    # Skip DOS drivespec
3647
    ?:) as_incr_dir=$as_mkdir_dir ;;
3648
    *)
3649
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3650
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3651
    ;;
3652
  esac
3653
done; }
3654
 
3655
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3656
    # A "../" for each directory in $ac_dir_suffix.
3657
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3658
  else
3659
    ac_dir_suffix= ac_dots=
3660
  fi
3661
 
3662
  case $srcdir in
3663
  .)  ac_srcdir=.
3664
      if test -z "$ac_dots"; then
3665
         ac_top_srcdir=.
3666
      else
3667
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3668
      fi ;;
3669
  [\\/]* | ?:[\\/]* )
3670
      ac_srcdir=$srcdir$ac_dir_suffix;
3671
      ac_top_srcdir=$srcdir ;;
3672
  *) # Relative path.
3673
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3674
    ac_top_srcdir=$ac_dots$srcdir ;;
3675
  esac
3676
 
3677
  case $INSTALL in
3678
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3679
  *) ac_INSTALL=$ac_dots$INSTALL ;;
3680
  esac
3681
 
3682
  if test x"$ac_file" != x-; then
3683
    { echo "$as_me:3683: creating $ac_file" >&5
3684
echo "$as_me: creating $ac_file" >&6;}
3685
    rm -f "$ac_file"
3686
  fi
3687
  # Let's still pretend it is `configure' which instantiates (i.e., don't
3688
  # use $as_me), people would be surprised to read:
3689
  #    /* config.h.  Generated automatically by config.status.  */
3690
  configure_input="Generated automatically from `echo $ac_file_in |
3691
                                                 sed 's,.*/,,'` by configure."
3692
 
3693
  # First look for the input files in the build tree, otherwise in the
3694
  # src tree.
3695
  ac_file_inputs=`IFS=:
3696
    for f in $ac_file_in; do
3697
      case $f in
3698
      -) echo $tmp/stdin ;;
3699
      [\\/$]*)
3700
         # Absolute (can't be DOS-style, as IFS=:)
3701
         test -f "$f" || { { echo "$as_me:3701: error: cannot find input file: $f" >&5
3702
echo "$as_me: error: cannot find input file: $f" >&2;}
3703
   { (exit 1); exit 1; }; }
3704
         echo $f;;
3705
      *) # Relative
3706
         if test -f "$f"; then
3707
           # Build tree
3708
           echo $f
3709
         elif test -f "$srcdir/$f"; then
3710
           # Source tree
3711
           echo $srcdir/$f
3712
         else
3713
           # /dev/null tree
3714
           { { echo "$as_me:3714: error: cannot find input file: $f" >&5
3715
echo "$as_me: error: cannot find input file: $f" >&2;}
3716
   { (exit 1); exit 1; }; }
3717
         fi;;
3718
      esac
3719
    done` || { (exit 1); exit 1; }
3720
EOF
3721
cat >>$CONFIG_STATUS <
3722
  sed "$ac_vpsub
3723
$extrasub
3724
EOF
3725
cat >>$CONFIG_STATUS <<\EOF
3726
:t
3727
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3728
s,@configure_input@,$configure_input,;t t
3729
s,@srcdir@,$ac_srcdir,;t t
3730
s,@top_srcdir@,$ac_top_srcdir,;t t
3731
s,@INSTALL@,$ac_INSTALL,;t t
3732
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3733
  rm -f $tmp/stdin
3734
  if test x"$ac_file" != x-; then
3735
    mv $tmp/out $ac_file
3736
  else
3737
    cat $tmp/out
3738
    rm -f $tmp/out
3739
  fi
3740
 
3741
done
3742
EOF
3743
cat >>$CONFIG_STATUS <<\EOF
3744
 
3745
#
3746
# CONFIG_COMMANDS section.
3747
#
3748
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3749
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3750
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3751
 
3752
  case $ac_dest in
3753
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
3754
  # Strip MF so we end up with the name of the file.
3755
  mf=`echo "$mf" | sed -e 's/:.*$//'`
3756
  # Check whether this is an Automake generated Makefile or not.
3757
  # We used to match only the files named `Makefile.in', but
3758
  # some people rename them; so instead we look at the file content.
3759
  # Grep'ing the first line is not enough: some people post-process
3760
  # each Makefile.in and add a new line on top of each file to say so.
3761
  # So let's grep whole file.
3762
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
3763
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3764
         X"$mf" : 'X\(//\)[^/]' \| \
3765
         X"$mf" : 'X\(//\)$' \| \
3766
         X"$mf" : 'X\(/\)' \| \
3767
         .     : '\(.\)' 2>/dev/null ||
3768
echo X"$mf" |
3769
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3770
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3771
          /^X\(\/\/\)$/{ s//\1/; q; }
3772
          /^X\(\/\).*/{ s//\1/; q; }
3773
          s/.*/./; q'`
3774
  else
3775
    continue
3776
  fi
3777
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
3778
  # Extract the definition of DEP_FILES from the Makefile without
3779
  # running `make'.
3780
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
3781
  test -z "$DEPDIR" && continue
3782
  # When using ansi2knr, U may be empty or an underscore; expand it
3783
  U=`sed -n -e '/^U = / s///p' < "$mf"`
3784
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
3785
  # We invoke sed twice because it is the simplest approach to
3786
  # changing $(DEPDIR) to its actual value in the expansion.
3787
  for file in `sed -n -e '
3788
    /^DEP_FILES = .*\\\\$/ {
3789
      s/^DEP_FILES = //
3790
      :loop
3791
        s/\\\\$//
3792
        p
3793
        n
3794
        /\\\\$/ b loop
3795
      p
3796
    }
3797
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
3798
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3799
    # Make sure the directory exists.
3800
    test -f "$dirpart/$file" && continue
3801
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3802
         X"$file" : 'X\(//\)[^/]' \| \
3803
         X"$file" : 'X\(//\)$' \| \
3804
         X"$file" : 'X\(/\)' \| \
3805
         .     : '\(.\)' 2>/dev/null ||
3806
echo X"$file" |
3807
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3808
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3809
          /^X\(\/\/\)$/{ s//\1/; q; }
3810
          /^X\(\/\).*/{ s//\1/; q; }
3811
          s/.*/./; q'`
3812
    { case $dirpart/$fdir in
3813
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3814
  *)                      as_incr_dir=.;;
3815
esac
3816
as_dummy=$dirpart/$fdir
3817
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3818
  case $as_mkdir_dir in
3819
    # Skip DOS drivespec
3820
    ?:) as_incr_dir=$as_mkdir_dir ;;
3821
    *)
3822
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3823
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3824
    ;;
3825
  esac
3826
done; }
3827
 
3828
    # echo "creating $dirpart/$file"
3829
    echo '# dummy' > "$dirpart/$file"
3830
  done
3831
done
3832
 ;;
3833
  esac
3834
done
3835
EOF
3836
 
3837
cat >>$CONFIG_STATUS <<\EOF
3838
 
3839
{ (exit 0); exit 0; }
3840
EOF
3841
chmod +x $CONFIG_STATUS
3842
ac_clean_files=$ac_clean_files_save
3843
 
3844
# configure is writing to config.log, and then calls config.status.
3845
# config.status does its own redirection, appending to config.log.
3846
# Unfortunately, on DOS this fails, as config.log is still kept open
3847
# by configure, so config.status won't be able to write to it; its
3848
# output is simply discarded.  So we exec the FD to /dev/null,
3849
# effectively closing config.log, so it can be properly (re)opened and
3850
# appended to by config.status.  When coming back to configure, we
3851
# need to make the FD available again.
3852
if test "$no_create" != yes; then
3853
  ac_cs_success=:
3854
  exec 5>/dev/null
3855
  $SHELL $CONFIG_STATUS || ac_cs_success=false
3856
  exec 5>>config.log
3857
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3858
  # would make configure fail if this is the last instruction.
3859
  $ac_cs_success || { (exit 1); exit 1; }
3860
fi
3861
 

powered by: WebSVN 2.1.0

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