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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [standalone/] [common/] [configure] - Blame information for rev 574

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
#! /bin/sh
2
 
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_help="$ac_help
15
  --enable-maintainer-mode enable make rules and dependencies not useful
16
                          (and sometimes confusing) to the casual installer"
17
ac_help="$ac_help
18
 --enable-debug           do a debug rather than a release build"
19
ac_help="$ac_help
20
 --enable-ansi            do an ANSI rather than a unicode build"
21
ac_help="$ac_help
22
 --disable-asserts        disable all assertions"
23
ac_help="$ac_help
24
 --disable-preconditions  disable a subset of the assertions"
25
ac_help="$ac_help
26
 --disable-postconditions disable a subset of the assertions"
27
ac_help="$ac_help
28
 --disable-invariants     disable a subset of the assertions"
29
ac_help="$ac_help
30
 --disable-loopinvariants disable a subset of the assertions"
31
ac_help="$ac_help
32
 --disable-tracing        disable tracing"
33
ac_help="$ac_help
34
 --disable-fntracing      disable function entry/exit tracing"
35
ac_help="$ac_help
36
 --with-libcdl-header= location of eCos libcdl headers"
37
ac_help="$ac_help
38
 --with-libcdl-lib=    location of eCos libcdl library"
39
ac_help="$ac_help
40
 --with-libcdl=        location of eCos libcdl installation"
41
ac_help="$ac_help
42
 --with-infra-header= location of eCos infrastructure headers"
43
ac_help="$ac_help
44
 --with-infra-lib=    location of eCos infrastructure library"
45
ac_help="$ac_help
46
 --with-infra=        location of eCos infrastructure installation"
47
ac_help="$ac_help
48
 --with-tcl=        location of Tcl header and libraries"
49
ac_help="$ac_help
50
 --with-tcl-version= version of Tcl to be used"
51
ac_help="$ac_help
52
 --with-tcl-header= location of Tcl header"
53
ac_help="$ac_help
54
 --with-tcl-lib=    location of Tcl libraries"
55
 
56
# Initialize some variables set by options.
57
# The variables have the same names as the options, with
58
# dashes changed to underlines.
59
build=NONE
60
cache_file=./config.cache
61
exec_prefix=NONE
62
host=NONE
63
no_create=
64
nonopt=NONE
65
no_recursion=
66
prefix=NONE
67
program_prefix=NONE
68
program_suffix=NONE
69
program_transform_name=s,x,x,
70
silent=
71
site=
72
srcdir=
73
target=NONE
74
verbose=
75
x_includes=NONE
76
x_libraries=NONE
77
bindir='${exec_prefix}/bin'
78
sbindir='${exec_prefix}/sbin'
79
libexecdir='${exec_prefix}/libexec'
80
datadir='${prefix}/share'
81
sysconfdir='${prefix}/etc'
82
sharedstatedir='${prefix}/com'
83
localstatedir='${prefix}/var'
84
libdir='${exec_prefix}/lib'
85
includedir='${prefix}/include'
86
oldincludedir='/usr/include'
87
infodir='${prefix}/info'
88
mandir='${prefix}/man'
89
 
90
# Initialize some other variables.
91
subdirs=
92
MFLAGS= MAKEFLAGS=
93
SHELL=${CONFIG_SHELL-/bin/sh}
94
# Maximum number of lines to put in a shell here document.
95
ac_max_here_lines=12
96
 
97
ac_prev=
98
for ac_option
99
do
100
 
101
  # If the previous option needs an argument, assign it.
102
  if test -n "$ac_prev"; then
103
    eval "$ac_prev=\$ac_option"
104
    ac_prev=
105
    continue
106
  fi
107
 
108
  case "$ac_option" in
109
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110
  *) ac_optarg= ;;
111
  esac
112
 
113
  # Accept the important Cygnus configure options, so we can diagnose typos.
114
 
115
  case "$ac_option" in
116
 
117
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
118
    ac_prev=bindir ;;
119
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120
    bindir="$ac_optarg" ;;
121
 
122
  -build | --build | --buil | --bui | --bu)
123
    ac_prev=build ;;
124
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125
    build="$ac_optarg" ;;
126
 
127
  -cache-file | --cache-file | --cache-fil | --cache-fi \
128
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129
    ac_prev=cache_file ;;
130
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132
    cache_file="$ac_optarg" ;;
133
 
134
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135
    ac_prev=datadir ;;
136
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137
  | --da=*)
138
    datadir="$ac_optarg" ;;
139
 
140
  -disable-* | --disable-*)
141
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142
    # Reject names that are not valid shell variable names.
143
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145
    fi
146
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147
    eval "enable_${ac_feature}=no" ;;
148
 
149
  -enable-* | --enable-*)
150
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151
    # Reject names that are not valid shell variable names.
152
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154
    fi
155
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156
    case "$ac_option" in
157
      *=*) ;;
158
      *) ac_optarg=yes ;;
159
    esac
160
    eval "enable_${ac_feature}='$ac_optarg'" ;;
161
 
162
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164
  | --exec | --exe | --ex)
165
    ac_prev=exec_prefix ;;
166
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168
  | --exec=* | --exe=* | --ex=*)
169
    exec_prefix="$ac_optarg" ;;
170
 
171
  -gas | --gas | --ga | --g)
172
    # Obsolete; use --with-gas.
173
    with_gas=yes ;;
174
 
175
  -help | --help | --hel | --he)
176
    # Omit some internal or obsolete options to make the list less imposing.
177
    # This message is too long to be a string in the A/UX 3.1 sh.
178
    cat << EOF
179
Usage: configure [options] [host]
180
Options: [defaults in brackets after descriptions]
181
Configuration:
182
  --cache-file=FILE       cache test results in FILE
183
  --help                  print this message
184
  --no-create             do not create output files
185
  --quiet, --silent       do not print \`checking...' messages
186
  --version               print the version of autoconf that created configure
187
Directory and file names:
188
  --prefix=PREFIX         install architecture-independent files in PREFIX
189
                          [$ac_default_prefix]
190
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
191
                          [same as prefix]
192
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
193
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
194
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
195
  --datadir=DIR           read-only architecture-independent data in DIR
196
                          [PREFIX/share]
197
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
198
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
199
                          [PREFIX/com]
200
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
201
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
202
  --includedir=DIR        C header files in DIR [PREFIX/include]
203
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
204
  --infodir=DIR           info documentation in DIR [PREFIX/info]
205
  --mandir=DIR            man documentation in DIR [PREFIX/man]
206
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
207
  --program-prefix=PREFIX prepend PREFIX to installed program names
208
  --program-suffix=SUFFIX append SUFFIX to installed program names
209
  --program-transform-name=PROGRAM
210
                          run sed PROGRAM on installed program names
211
EOF
212
    cat << EOF
213
Host type:
214
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
215
  --host=HOST             configure for HOST [guessed]
216
  --target=TARGET         configure for TARGET [TARGET=HOST]
217
Features and packages:
218
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
219
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
220
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
221
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
222
  --x-includes=DIR        X include files are in DIR
223
  --x-libraries=DIR       X library files are in DIR
224
EOF
225
    if test -n "$ac_help"; then
226
      echo "--enable and --with options recognized:$ac_help"
227
    fi
228
    exit 0 ;;
229
 
230
  -host | --host | --hos | --ho)
231
    ac_prev=host ;;
232
  -host=* | --host=* | --hos=* | --ho=*)
233
    host="$ac_optarg" ;;
234
 
235
  -includedir | --includedir | --includedi | --included | --include \
236
  | --includ | --inclu | --incl | --inc)
237
    ac_prev=includedir ;;
238
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239
  | --includ=* | --inclu=* | --incl=* | --inc=*)
240
    includedir="$ac_optarg" ;;
241
 
242
  -infodir | --infodir | --infodi | --infod | --info | --inf)
243
    ac_prev=infodir ;;
244
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245
    infodir="$ac_optarg" ;;
246
 
247
  -libdir | --libdir | --libdi | --libd)
248
    ac_prev=libdir ;;
249
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
250
    libdir="$ac_optarg" ;;
251
 
252
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253
  | --libexe | --libex | --libe)
254
    ac_prev=libexecdir ;;
255
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256
  | --libexe=* | --libex=* | --libe=*)
257
    libexecdir="$ac_optarg" ;;
258
 
259
  -localstatedir | --localstatedir | --localstatedi | --localstated \
260
  | --localstate | --localstat | --localsta | --localst \
261
  | --locals | --local | --loca | --loc | --lo)
262
    ac_prev=localstatedir ;;
263
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266
    localstatedir="$ac_optarg" ;;
267
 
268
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269
    ac_prev=mandir ;;
270
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271
    mandir="$ac_optarg" ;;
272
 
273
  -nfp | --nfp | --nf)
274
    # Obsolete; use --without-fp.
275
    with_fp=no ;;
276
 
277
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278
  | --no-cr | --no-c)
279
    no_create=yes ;;
280
 
281
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283
    no_recursion=yes ;;
284
 
285
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287
  | --oldin | --oldi | --old | --ol | --o)
288
    ac_prev=oldincludedir ;;
289
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292
    oldincludedir="$ac_optarg" ;;
293
 
294
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295
    ac_prev=prefix ;;
296
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297
    prefix="$ac_optarg" ;;
298
 
299
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
300
  | --program-pre | --program-pr | --program-p)
301
    ac_prev=program_prefix ;;
302
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
303
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304
    program_prefix="$ac_optarg" ;;
305
 
306
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
307
  | --program-suf | --program-su | --program-s)
308
    ac_prev=program_suffix ;;
309
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
310
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311
    program_suffix="$ac_optarg" ;;
312
 
313
  -program-transform-name | --program-transform-name \
314
  | --program-transform-nam | --program-transform-na \
315
  | --program-transform-n | --program-transform- \
316
  | --program-transform | --program-transfor \
317
  | --program-transfo | --program-transf \
318
  | --program-trans | --program-tran \
319
  | --progr-tra | --program-tr | --program-t)
320
    ac_prev=program_transform_name ;;
321
  -program-transform-name=* | --program-transform-name=* \
322
  | --program-transform-nam=* | --program-transform-na=* \
323
  | --program-transform-n=* | --program-transform-=* \
324
  | --program-transform=* | --program-transfor=* \
325
  | --program-transfo=* | --program-transf=* \
326
  | --program-trans=* | --program-tran=* \
327
  | --progr-tra=* | --program-tr=* | --program-t=*)
328
    program_transform_name="$ac_optarg" ;;
329
 
330
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331
  | -silent | --silent | --silen | --sile | --sil)
332
    silent=yes ;;
333
 
334
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335
    ac_prev=sbindir ;;
336
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337
  | --sbi=* | --sb=*)
338
    sbindir="$ac_optarg" ;;
339
 
340
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
341
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342
  | --sharedst | --shareds | --shared | --share | --shar \
343
  | --sha | --sh)
344
    ac_prev=sharedstatedir ;;
345
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348
  | --sha=* | --sh=*)
349
    sharedstatedir="$ac_optarg" ;;
350
 
351
  -site | --site | --sit)
352
    ac_prev=site ;;
353
  -site=* | --site=* | --sit=*)
354
    site="$ac_optarg" ;;
355
 
356
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357
    ac_prev=srcdir ;;
358
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359
    srcdir="$ac_optarg" ;;
360
 
361
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362
  | --syscon | --sysco | --sysc | --sys | --sy)
363
    ac_prev=sysconfdir ;;
364
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366
    sysconfdir="$ac_optarg" ;;
367
 
368
  -target | --target | --targe | --targ | --tar | --ta | --t)
369
    ac_prev=target ;;
370
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371
    target="$ac_optarg" ;;
372
 
373
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
374
    verbose=yes ;;
375
 
376
  -version | --version | --versio | --versi | --vers)
377
    echo "configure generated by autoconf version 2.13"
378
    exit 0 ;;
379
 
380
  -with-* | --with-*)
381
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382
    # Reject names that are not valid shell variable names.
383
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385
    fi
386
    ac_package=`echo $ac_package| sed 's/-/_/g'`
387
    case "$ac_option" in
388
      *=*) ;;
389
      *) ac_optarg=yes ;;
390
    esac
391
    eval "with_${ac_package}='$ac_optarg'" ;;
392
 
393
  -without-* | --without-*)
394
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395
    # Reject names that are not valid shell variable names.
396
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398
    fi
399
    ac_package=`echo $ac_package| sed 's/-/_/g'`
400
    eval "with_${ac_package}=no" ;;
401
 
402
  --x)
403
    # Obsolete; use --with-x.
404
    with_x=yes ;;
405
 
406
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407
  | --x-incl | --x-inc | --x-in | --x-i)
408
    ac_prev=x_includes ;;
409
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411
    x_includes="$ac_optarg" ;;
412
 
413
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
414
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415
    ac_prev=x_libraries ;;
416
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418
    x_libraries="$ac_optarg" ;;
419
 
420
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421
    ;;
422
 
423
  *)
424
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425
      echo "configure: warning: $ac_option: invalid host type" 1>&2
426
    fi
427
    if test "x$nonopt" != xNONE; then
428
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429
    fi
430
    nonopt="$ac_option"
431
    ;;
432
 
433
  esac
434
done
435
 
436
if test -n "$ac_prev"; then
437
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438
fi
439
 
440
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441
 
442
# File descriptor usage:
443
# 0 standard input
444
# 1 file creation
445
# 2 errors and warnings
446
# 3 some systems may open it to /dev/tty
447
# 4 used on the Kubota Titan
448
# 6 checking for... messages and results
449
# 5 compiler messages saved in config.log
450
if test "$silent" = yes; then
451
  exec 6>/dev/null
452
else
453
  exec 6>&1
454
fi
455
exec 5>./config.log
456
 
457
echo "\
458
This file contains any messages produced by compilers while
459
running configure, to aid debugging if configure makes a mistake.
460
" 1>&5
461
 
462
# Strip out --no-create and --no-recursion so they do not pile up.
463
# Also quote any args containing shell metacharacters.
464
ac_configure_args=
465
for ac_arg
466
do
467
  case "$ac_arg" in
468
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469
  | --no-cr | --no-c) ;;
470
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475
  esac
476
done
477
 
478
# NLS nuisances.
479
# Only set these to C if already set.  These must not be set unconditionally
480
# because not all systems understand e.g. LANG=C (notably SCO).
481
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482
# Non-C LC_CTYPE values break the ctype check.
483
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
484
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
487
 
488
# confdefs.h avoids OS command line length limits that DEFS can exceed.
489
rm -rf conftest* confdefs.h
490
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
491
echo > confdefs.h
492
 
493
# A filename unique to this package, relative to the directory that
494
# configure is in, which we can look for to find out if srcdir is correct.
495
ac_unique_file=ecosconfig.cxx
496
 
497
# Find the source files, if location was not specified.
498
if test -z "$srcdir"; then
499
  ac_srcdir_defaulted=yes
500
  # Try the directory containing this script, then its parent.
501
  ac_prog=$0
502
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504
  srcdir=$ac_confdir
505
  if test ! -r $srcdir/$ac_unique_file; then
506
    srcdir=..
507
  fi
508
else
509
  ac_srcdir_defaulted=no
510
fi
511
if test ! -r $srcdir/$ac_unique_file; then
512
  if test "$ac_srcdir_defaulted" = yes; then
513
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514
  else
515
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516
  fi
517
fi
518
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519
 
520
# Prefer explicitly selected file to automatically selected ones.
521
if test -z "$CONFIG_SITE"; then
522
  if test "x$prefix" != xNONE; then
523
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524
  else
525
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526
  fi
527
fi
528
for ac_site_file in $CONFIG_SITE; do
529
  if test -r "$ac_site_file"; then
530
    echo "loading site script $ac_site_file"
531
    . "$ac_site_file"
532
  fi
533
done
534
 
535
if test -r "$cache_file"; then
536
  echo "loading cache $cache_file"
537
  . $cache_file
538
else
539
  echo "creating cache $cache_file"
540
  > $cache_file
541
fi
542
 
543
ac_ext=c
544
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545
ac_cpp='$CPP $CPPFLAGS'
546
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548
cross_compiling=$ac_cv_prog_cc_cross
549
 
550
ac_exeext=
551
ac_objext=o
552
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555
    ac_n= ac_c='
556
' ac_t='        '
557
  else
558
    ac_n=-n ac_c= ac_t=
559
  fi
560
else
561
  ac_n= ac_c='\c' ac_t=
562
fi
563
 
564
 
565
 
566
ac_aux_dir=
567
for ac_dir in ../../../../../acsupport $srcdir/../../../../../acsupport; do
568
  if test -f $ac_dir/install-sh; then
569
    ac_aux_dir=$ac_dir
570
    ac_install_sh="$ac_aux_dir/install-sh -c"
571
    break
572
  elif test -f $ac_dir/install.sh; then
573
    ac_aux_dir=$ac_dir
574
    ac_install_sh="$ac_aux_dir/install.sh -c"
575
    break
576
  fi
577
done
578
if test -z "$ac_aux_dir"; then
579
  { echo "configure: error: can not find install-sh or install.sh in ../../../../../acsupport $srcdir/../../../../../acsupport" 1>&2; exit 1; }
580
fi
581
ac_config_guess=$ac_aux_dir/config.guess
582
ac_config_sub=$ac_aux_dir/config.sub
583
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
584
 
585
 
586
 
587
    echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
588
echo "configure:589: checking that a separate build tree is being used" >&5
589
    ecos_cwd=`/bin/pwd`
590
    if test "${srcdir}" = "." ; then
591
        srcdir=${ecos_cwd}
592
    fi
593
    if test "${ecos_cwd}" = "${srcdir}" ; then
594
        echo "$ac_t""no" 1>&6
595
        { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
596
    else
597
        echo "$ac_t""yes" 1>&6
598
    fi
599
 
600
 
601
# Make sure we can run config.sub.
602
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
603
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
604
fi
605
 
606
echo $ac_n "checking host system type""... $ac_c" 1>&6
607
echo "configure:608: checking host system type" >&5
608
 
609
host_alias=$host
610
case "$host_alias" in
611
NONE)
612
  case $nonopt in
613
  NONE)
614
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
615
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616
    fi ;;
617
  *) host_alias=$nonopt ;;
618
  esac ;;
619
esac
620
 
621
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
622
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625
echo "$ac_t""$host" 1>&6
626
 
627
# Find a good install program.  We prefer a C program (faster),
628
# so one script is as good as another.  But avoid the broken or
629
# incompatible versions:
630
# SysV /etc/install, /usr/sbin/install
631
# SunOS /usr/etc/install
632
# IRIX /sbin/install
633
# AIX /bin/install
634
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
636
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637
# ./install, which can be erroneously created by make from ./install.sh.
638
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639
echo "configure:640: checking for a BSD compatible install" >&5
640
if test -z "$INSTALL"; then
641
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642
  echo $ac_n "(cached) $ac_c" 1>&6
643
else
644
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
645
  for ac_dir in $PATH; do
646
    # Account for people who put trailing slashes in PATH elements.
647
    case "$ac_dir/" in
648
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
649
    *)
650
      # OSF1 and SCO ODT 3.0 have their own names for install.
651
      # Don't use installbsd from OSF since it installs stuff as root
652
      # by default.
653
      for ac_prog in ginstall scoinst install; do
654
        if test -f $ac_dir/$ac_prog; then
655
          if test $ac_prog = install &&
656
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657
            # AIX install.  It has an incompatible calling convention.
658
            :
659
          else
660
            ac_cv_path_install="$ac_dir/$ac_prog -c"
661
            break 2
662
          fi
663
        fi
664
      done
665
      ;;
666
    esac
667
  done
668
  IFS="$ac_save_IFS"
669
 
670
fi
671
  if test "${ac_cv_path_install+set}" = set; then
672
    INSTALL="$ac_cv_path_install"
673
  else
674
    # As a last resort, use the slow shell script.  We don't cache a
675
    # path for INSTALL within a source directory, because that will
676
    # break other packages using the cache if that directory is
677
    # removed, or if the path is relative.
678
    INSTALL="$ac_install_sh"
679
  fi
680
fi
681
echo "$ac_t""$INSTALL" 1>&6
682
 
683
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684
# It thinks the first close brace ends the variable substitution.
685
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
686
 
687
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
688
 
689
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
690
 
691
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692
echo "configure:693: checking whether build environment is sane" >&5
693
# Just in case
694
sleep 1
695
echo timestamp > conftestfile
696
# Do `set' in a subshell so we don't clobber the current shell's
697
# arguments.  Must try -L first in case configure is actually a
698
# symlink; some systems play weird games with the mod time of symlinks
699
# (eg FreeBSD returns the mod time of the symlink's containing
700
# directory).
701
if (
702
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703
   if test "$*" = "X"; then
704
      # -L didn't work.
705
      set X `ls -t $srcdir/configure conftestfile`
706
   fi
707
   if test "$*" != "X $srcdir/configure conftestfile" \
708
      && test "$*" != "X conftestfile $srcdir/configure"; then
709
 
710
      # If neither matched, then we have a broken ls.  This can happen
711
      # if, for instance, CONFIG_SHELL is bash and it inherits a
712
      # broken ls alias from the environment.  This has actually
713
      # happened.  Such a system could not be considered "sane".
714
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
715
alias in your environment" 1>&2; exit 1; }
716
   fi
717
 
718
   test "$2" = conftestfile
719
   )
720
then
721
   # Ok.
722
   :
723
else
724
   { echo "configure: error: newly created file is older than distributed files!
725
Check your system clock" 1>&2; exit 1; }
726
fi
727
rm -f conftest*
728
echo "$ac_t""yes" 1>&6
729
if test "$program_transform_name" = s,x,x,; then
730
  program_transform_name=
731
else
732
  # Double any \ or $.  echo might interpret backslashes.
733
  cat <<\EOF_SED > conftestsed
734
s,\\,\\\\,g; s,\$,$$,g
735
EOF_SED
736
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
737
  rm -f conftestsed
738
fi
739
test "$program_prefix" != NONE &&
740
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
741
# Use a double $ so make ignores it.
742
test "$program_suffix" != NONE &&
743
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
744
 
745
# sed with no file args requires a program.
746
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
747
 
748
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749
echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752
  echo $ac_n "(cached) $ac_c" 1>&6
753
else
754
  cat > conftestmake <<\EOF
755
all:
756
        @echo 'ac_maketemp="${MAKE}"'
757
EOF
758
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760
if test -n "$ac_maketemp"; then
761
  eval ac_cv_prog_make_${ac_make}_set=yes
762
else
763
  eval ac_cv_prog_make_${ac_make}_set=no
764
fi
765
rm -f conftestmake
766
fi
767
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768
  echo "$ac_t""yes" 1>&6
769
  SET_MAKE=
770
else
771
  echo "$ac_t""no" 1>&6
772
  SET_MAKE="MAKE=${MAKE-make}"
773
fi
774
 
775
 
776
PACKAGE=ecosconfig
777
 
778
VERSION=0.1
779
 
780
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
782
fi
783
cat >> confdefs.h <
784
#define PACKAGE "$PACKAGE"
785
EOF
786
 
787
cat >> confdefs.h <
788
#define VERSION "$VERSION"
789
EOF
790
 
791
 
792
 
793
missing_dir=`cd $ac_aux_dir && pwd`
794
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
795
echo "configure:796: checking for working aclocal" >&5
796
# Run test in a subshell; some versions of sh will print an error if
797
# an executable is not found, even if stderr is redirected.
798
# Redirect stdin to placate older versions of autoconf.  Sigh.
799
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
800
   ACLOCAL=aclocal
801
   echo "$ac_t""found" 1>&6
802
else
803
   ACLOCAL="$missing_dir/missing aclocal"
804
   echo "$ac_t""missing" 1>&6
805
fi
806
 
807
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
808
echo "configure:809: checking for working autoconf" >&5
809
# Run test in a subshell; some versions of sh will print an error if
810
# an executable is not found, even if stderr is redirected.
811
# Redirect stdin to placate older versions of autoconf.  Sigh.
812
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
813
   AUTOCONF=autoconf
814
   echo "$ac_t""found" 1>&6
815
else
816
   AUTOCONF="$missing_dir/missing autoconf"
817
   echo "$ac_t""missing" 1>&6
818
fi
819
 
820
echo $ac_n "checking for working automake""... $ac_c" 1>&6
821
echo "configure:822: checking for working automake" >&5
822
# Run test in a subshell; some versions of sh will print an error if
823
# an executable is not found, even if stderr is redirected.
824
# Redirect stdin to placate older versions of autoconf.  Sigh.
825
if (automake --version) < /dev/null > /dev/null 2>&1; then
826
   AUTOMAKE=automake
827
   echo "$ac_t""found" 1>&6
828
else
829
   AUTOMAKE="$missing_dir/missing automake"
830
   echo "$ac_t""missing" 1>&6
831
fi
832
 
833
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
834
echo "configure:835: checking for working autoheader" >&5
835
# Run test in a subshell; some versions of sh will print an error if
836
# an executable is not found, even if stderr is redirected.
837
# Redirect stdin to placate older versions of autoconf.  Sigh.
838
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
839
   AUTOHEADER=autoheader
840
   echo "$ac_t""found" 1>&6
841
else
842
   AUTOHEADER="$missing_dir/missing autoheader"
843
   echo "$ac_t""missing" 1>&6
844
fi
845
 
846
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
847
echo "configure:848: checking for working makeinfo" >&5
848
# Run test in a subshell; some versions of sh will print an error if
849
# an executable is not found, even if stderr is redirected.
850
# Redirect stdin to placate older versions of autoconf.  Sigh.
851
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
852
   MAKEINFO=makeinfo
853
   echo "$ac_t""found" 1>&6
854
else
855
   MAKEINFO="$missing_dir/missing makeinfo"
856
   echo "$ac_t""missing" 1>&6
857
fi
858
 
859
 
860
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
861
echo "configure:862: checking whether to enable maintainer-specific portions of Makefiles" >&5
862
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
863
if test "${enable_maintainer_mode+set}" = set; then
864
  enableval="$enable_maintainer_mode"
865
  USE_MAINTAINER_MODE=$enableval
866
else
867
  USE_MAINTAINER_MODE=no
868
fi
869
 
870
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
871
 
872
 
873
if test $USE_MAINTAINER_MODE = yes; then
874
  MAINTAINER_MODE_TRUE=
875
  MAINTAINER_MODE_FALSE='#'
876
else
877
  MAINTAINER_MODE_TRUE='#'
878
  MAINTAINER_MODE_FALSE=
879
fi
880
  MAINT=$MAINTAINER_MODE_TRUE
881
 
882
 
883
 
884
# Extract the first word of "gcc", so it can be a program name with args.
885
set dummy gcc; ac_word=$2
886
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
887
echo "configure:888: checking for $ac_word" >&5
888
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
889
  echo $ac_n "(cached) $ac_c" 1>&6
890
else
891
  if test -n "$CC"; then
892
  ac_cv_prog_CC="$CC" # Let the user override the test.
893
else
894
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
895
  ac_dummy="$PATH"
896
  for ac_dir in $ac_dummy; do
897
    test -z "$ac_dir" && ac_dir=.
898
    if test -f $ac_dir/$ac_word; then
899
      ac_cv_prog_CC="gcc"
900
      break
901
    fi
902
  done
903
  IFS="$ac_save_ifs"
904
fi
905
fi
906
CC="$ac_cv_prog_CC"
907
if test -n "$CC"; then
908
  echo "$ac_t""$CC" 1>&6
909
else
910
  echo "$ac_t""no" 1>&6
911
fi
912
 
913
if test -z "$CC"; then
914
  # Extract the first word of "cc", so it can be a program name with args.
915
set dummy cc; ac_word=$2
916
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917
echo "configure:918: checking for $ac_word" >&5
918
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
919
  echo $ac_n "(cached) $ac_c" 1>&6
920
else
921
  if test -n "$CC"; then
922
  ac_cv_prog_CC="$CC" # Let the user override the test.
923
else
924
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
925
  ac_prog_rejected=no
926
  ac_dummy="$PATH"
927
  for ac_dir in $ac_dummy; do
928
    test -z "$ac_dir" && ac_dir=.
929
    if test -f $ac_dir/$ac_word; then
930
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
931
        ac_prog_rejected=yes
932
        continue
933
      fi
934
      ac_cv_prog_CC="cc"
935
      break
936
    fi
937
  done
938
  IFS="$ac_save_ifs"
939
if test $ac_prog_rejected = yes; then
940
  # We found a bogon in the path, so make sure we never use it.
941
  set dummy $ac_cv_prog_CC
942
  shift
943
  if test $# -gt 0; then
944
    # We chose a different compiler from the bogus one.
945
    # However, it has the same basename, so the bogon will be chosen
946
    # first if we set CC to just the basename; use the full file name.
947
    shift
948
    set dummy "$ac_dir/$ac_word" "$@"
949
    shift
950
    ac_cv_prog_CC="$@"
951
  fi
952
fi
953
fi
954
fi
955
CC="$ac_cv_prog_CC"
956
if test -n "$CC"; then
957
  echo "$ac_t""$CC" 1>&6
958
else
959
  echo "$ac_t""no" 1>&6
960
fi
961
 
962
  if test -z "$CC"; then
963
    case "`uname -s`" in
964
    *win32* | *WIN32*)
965
      # Extract the first word of "cl", so it can be a program name with args.
966
set dummy cl; ac_word=$2
967
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968
echo "configure:969: checking for $ac_word" >&5
969
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
970
  echo $ac_n "(cached) $ac_c" 1>&6
971
else
972
  if test -n "$CC"; then
973
  ac_cv_prog_CC="$CC" # Let the user override the test.
974
else
975
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
976
  ac_dummy="$PATH"
977
  for ac_dir in $ac_dummy; do
978
    test -z "$ac_dir" && ac_dir=.
979
    if test -f $ac_dir/$ac_word; then
980
      ac_cv_prog_CC="cl"
981
      break
982
    fi
983
  done
984
  IFS="$ac_save_ifs"
985
fi
986
fi
987
CC="$ac_cv_prog_CC"
988
if test -n "$CC"; then
989
  echo "$ac_t""$CC" 1>&6
990
else
991
  echo "$ac_t""no" 1>&6
992
fi
993
 ;;
994
    esac
995
  fi
996
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
997
fi
998
 
999
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1000
echo "configure:1001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1001
 
1002
ac_ext=c
1003
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1004
ac_cpp='$CPP $CPPFLAGS'
1005
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1006
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1007
cross_compiling=$ac_cv_prog_cc_cross
1008
 
1009
cat > conftest.$ac_ext << EOF
1010
 
1011
#line 1012 "configure"
1012
#include "confdefs.h"
1013
 
1014
main(){return(0);}
1015
EOF
1016
if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1017
  ac_cv_prog_cc_works=yes
1018
  # If we can't run a trivial program, we are probably using a cross compiler.
1019
  if (./conftest; exit) 2>/dev/null; then
1020
    ac_cv_prog_cc_cross=no
1021
  else
1022
    ac_cv_prog_cc_cross=yes
1023
  fi
1024
else
1025
  echo "configure: failed program was:" >&5
1026
  cat conftest.$ac_ext >&5
1027
  ac_cv_prog_cc_works=no
1028
fi
1029
rm -fr conftest*
1030
ac_ext=c
1031
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1032
ac_cpp='$CPP $CPPFLAGS'
1033
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1034
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1035
cross_compiling=$ac_cv_prog_cc_cross
1036
 
1037
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1038
if test $ac_cv_prog_cc_works = no; then
1039
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1040
fi
1041
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1042
echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1043
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1044
cross_compiling=$ac_cv_prog_cc_cross
1045
 
1046
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1047
echo "configure:1048: checking whether we are using GNU C" >&5
1048
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1049
  echo $ac_n "(cached) $ac_c" 1>&6
1050
else
1051
  cat > conftest.c <
1052
#ifdef __GNUC__
1053
  yes;
1054
#endif
1055
EOF
1056
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1057
  ac_cv_prog_gcc=yes
1058
else
1059
  ac_cv_prog_gcc=no
1060
fi
1061
fi
1062
 
1063
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1064
 
1065
if test $ac_cv_prog_gcc = yes; then
1066
  GCC=yes
1067
else
1068
  GCC=
1069
fi
1070
 
1071
ac_test_CFLAGS="${CFLAGS+set}"
1072
ac_save_CFLAGS="$CFLAGS"
1073
CFLAGS=
1074
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1075
echo "configure:1076: checking whether ${CC-cc} accepts -g" >&5
1076
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1077
  echo $ac_n "(cached) $ac_c" 1>&6
1078
else
1079
  echo 'void f(){}' > conftest.c
1080
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1081
  ac_cv_prog_cc_g=yes
1082
else
1083
  ac_cv_prog_cc_g=no
1084
fi
1085
rm -f conftest*
1086
 
1087
fi
1088
 
1089
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1090
if test "$ac_test_CFLAGS" = set; then
1091
  CFLAGS="$ac_save_CFLAGS"
1092
elif test $ac_cv_prog_cc_g = yes; then
1093
  if test "$GCC" = yes; then
1094
    CFLAGS="-g -O2"
1095
  else
1096
    CFLAGS="-g"
1097
  fi
1098
else
1099
  if test "$GCC" = yes; then
1100
    CFLAGS="-O2"
1101
  else
1102
    CFLAGS=
1103
  fi
1104
fi
1105
 
1106
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1107
do
1108
# Extract the first word of "$ac_prog", so it can be a program name with args.
1109
set dummy $ac_prog; ac_word=$2
1110
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111
echo "configure:1112: checking for $ac_word" >&5
1112
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1113
  echo $ac_n "(cached) $ac_c" 1>&6
1114
else
1115
  if test -n "$CXX"; then
1116
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1117
else
1118
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1119
  ac_dummy="$PATH"
1120
  for ac_dir in $ac_dummy; do
1121
    test -z "$ac_dir" && ac_dir=.
1122
    if test -f $ac_dir/$ac_word; then
1123
      ac_cv_prog_CXX="$ac_prog"
1124
      break
1125
    fi
1126
  done
1127
  IFS="$ac_save_ifs"
1128
fi
1129
fi
1130
CXX="$ac_cv_prog_CXX"
1131
if test -n "$CXX"; then
1132
  echo "$ac_t""$CXX" 1>&6
1133
else
1134
  echo "$ac_t""no" 1>&6
1135
fi
1136
 
1137
test -n "$CXX" && break
1138
done
1139
test -n "$CXX" || CXX="gcc"
1140
 
1141
 
1142
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1143
echo "configure:1144: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1144
 
1145
ac_ext=C
1146
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147
ac_cpp='$CXXCPP $CPPFLAGS'
1148
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150
cross_compiling=$ac_cv_prog_cxx_cross
1151
 
1152
cat > conftest.$ac_ext << EOF
1153
 
1154
#line 1155 "configure"
1155
#include "confdefs.h"
1156
 
1157
int main(){return(0);}
1158
EOF
1159
if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160
  ac_cv_prog_cxx_works=yes
1161
  # If we can't run a trivial program, we are probably using a cross compiler.
1162
  if (./conftest; exit) 2>/dev/null; then
1163
    ac_cv_prog_cxx_cross=no
1164
  else
1165
    ac_cv_prog_cxx_cross=yes
1166
  fi
1167
else
1168
  echo "configure: failed program was:" >&5
1169
  cat conftest.$ac_ext >&5
1170
  ac_cv_prog_cxx_works=no
1171
fi
1172
rm -fr conftest*
1173
ac_ext=c
1174
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175
ac_cpp='$CPP $CPPFLAGS'
1176
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178
cross_compiling=$ac_cv_prog_cc_cross
1179
 
1180
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1181
if test $ac_cv_prog_cxx_works = no; then
1182
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1183
fi
1184
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1185
echo "configure:1186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1186
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1187
cross_compiling=$ac_cv_prog_cxx_cross
1188
 
1189
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1190
echo "configure:1191: checking whether we are using GNU C++" >&5
1191
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1192
  echo $ac_n "(cached) $ac_c" 1>&6
1193
else
1194
  cat > conftest.C <
1195
#ifdef __GNUC__
1196
  yes;
1197
#endif
1198
EOF
1199
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1200
  ac_cv_prog_gxx=yes
1201
else
1202
  ac_cv_prog_gxx=no
1203
fi
1204
fi
1205
 
1206
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1207
 
1208
if test $ac_cv_prog_gxx = yes; then
1209
  GXX=yes
1210
else
1211
  GXX=
1212
fi
1213
 
1214
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1215
ac_save_CXXFLAGS="$CXXFLAGS"
1216
CXXFLAGS=
1217
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1218
echo "configure:1219: checking whether ${CXX-g++} accepts -g" >&5
1219
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1220
  echo $ac_n "(cached) $ac_c" 1>&6
1221
else
1222
  echo 'void f(){}' > conftest.cc
1223
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1224
  ac_cv_prog_cxx_g=yes
1225
else
1226
  ac_cv_prog_cxx_g=no
1227
fi
1228
rm -f conftest*
1229
 
1230
fi
1231
 
1232
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1233
if test "$ac_test_CXXFLAGS" = set; then
1234
  CXXFLAGS="$ac_save_CXXFLAGS"
1235
elif test $ac_cv_prog_cxx_g = yes; then
1236
  if test "$GXX" = yes; then
1237
    CXXFLAGS="-g -O2"
1238
  else
1239
    CXXFLAGS="-g"
1240
  fi
1241
else
1242
  if test "$GXX" = yes; then
1243
    CXXFLAGS="-O2"
1244
  else
1245
    CXXFLAGS=
1246
  fi
1247
fi
1248
 
1249
for ac_declaration in \
1250
   ''\
1251
   '#include ' \
1252
   'extern "C" void std::exit (int) throw (); using std::exit;' \
1253
   'extern "C" void std::exit (int); using std::exit;' \
1254
   'extern "C" void exit (int) throw ();' \
1255
   'extern "C" void exit (int);' \
1256
   'void exit (int);'
1257
do
1258
  cat > conftest.$ac_ext <
1259
#line 1260 "configure"
1260
#include "confdefs.h"
1261
#include 
1262
$ac_declaration
1263
int main() {
1264
exit (42);
1265
; return 0; }
1266
EOF
1267
if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1268
  :
1269
else
1270
  echo "configure: failed program was:" >&5
1271
  cat conftest.$ac_ext >&5
1272
  rm -rf conftest*
1273
  continue
1274
fi
1275
rm -f conftest*
1276
  cat > conftest.$ac_ext <
1277
#line 1278 "configure"
1278
#include "confdefs.h"
1279
$ac_declaration
1280
int main() {
1281
exit (42);
1282
; return 0; }
1283
EOF
1284
if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1285
  rm -rf conftest*
1286
  break
1287
else
1288
  echo "configure: failed program was:" >&5
1289
  cat conftest.$ac_ext >&5
1290
fi
1291
rm -f conftest*
1292
done
1293
if test -n "$ac_declaration"; then
1294
  echo '#ifdef __cplusplus' >>confdefs.h
1295
  echo $ac_declaration      >>confdefs.h
1296
  echo '#endif'             >>confdefs.h
1297
fi
1298
 
1299
 
1300
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1301
echo "configure:1302: checking for object suffix" >&5
1302
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1303
  echo $ac_n "(cached) $ac_c" 1>&6
1304
else
1305
  rm -f conftest*
1306
echo 'int i = 1;' > conftest.$ac_ext
1307
if { (eval echo configure:1308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1308
  for ac_file in conftest.*; do
1309
    case $ac_file in
1310
    *.c) ;;
1311
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1312
    esac
1313
  done
1314
else
1315
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1316
fi
1317
rm -f conftest*
1318
fi
1319
 
1320
echo "$ac_t""$ac_cv_objext" 1>&6
1321
OBJEXT=$ac_cv_objext
1322
ac_objext=$ac_cv_objext
1323
 
1324
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1325
echo "configure:1326: checking for Cygwin environment" >&5
1326
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1327
  echo $ac_n "(cached) $ac_c" 1>&6
1328
else
1329
  cat > conftest.$ac_ext <
1330
#line 1331 "configure"
1331
#include "confdefs.h"
1332
 
1333
int main() {
1334
 
1335
#ifndef __CYGWIN__
1336
#define __CYGWIN__ __CYGWIN32__
1337
#endif
1338
return __CYGWIN__;
1339
; return 0; }
1340
EOF
1341
if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1342
  rm -rf conftest*
1343
  ac_cv_cygwin=yes
1344
else
1345
  echo "configure: failed program was:" >&5
1346
  cat conftest.$ac_ext >&5
1347
  rm -rf conftest*
1348
  ac_cv_cygwin=no
1349
fi
1350
rm -f conftest*
1351
rm -f conftest*
1352
fi
1353
 
1354
echo "$ac_t""$ac_cv_cygwin" 1>&6
1355
CYGWIN=
1356
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1357
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1358
echo "configure:1359: checking for mingw32 environment" >&5
1359
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1360
  echo $ac_n "(cached) $ac_c" 1>&6
1361
else
1362
  cat > conftest.$ac_ext <
1363
#line 1364 "configure"
1364
#include "confdefs.h"
1365
 
1366
int main() {
1367
return __MINGW32__;
1368
; return 0; }
1369
EOF
1370
if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1371
  rm -rf conftest*
1372
  ac_cv_mingw32=yes
1373
else
1374
  echo "configure: failed program was:" >&5
1375
  cat conftest.$ac_ext >&5
1376
  rm -rf conftest*
1377
  ac_cv_mingw32=no
1378
fi
1379
rm -f conftest*
1380
rm -f conftest*
1381
fi
1382
 
1383
echo "$ac_t""$ac_cv_mingw32" 1>&6
1384
MINGW32=
1385
test "$ac_cv_mingw32" = yes && MINGW32=yes
1386
 
1387
 
1388
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1389
echo "configure:1390: checking for executable suffix" >&5
1390
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1391
  echo $ac_n "(cached) $ac_c" 1>&6
1392
else
1393
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1394
  ac_cv_exeext=.exe
1395
else
1396
  rm -f conftest*
1397
  echo 'int main () { return 0; }' > conftest.$ac_ext
1398
  ac_cv_exeext=
1399
  if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1400
    for file in conftest.*; do
1401
      case $file in
1402
      *.c | *.o | *.obj) ;;
1403
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1404
      esac
1405
    done
1406
  else
1407
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1408
  fi
1409
  rm -f conftest*
1410
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1411
fi
1412
fi
1413
 
1414
EXEEXT=""
1415
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1416
echo "$ac_t""${ac_cv_exeext}" 1>&6
1417
ac_exeext=$EXEEXT
1418
 
1419
 
1420
    ecos_CFLAGS=""
1421
    ecos_CXXFLAGS=""
1422
    ecos_LDADD=""
1423
    ecos_INCLUDES=""
1424
    ecos_LIBS=""
1425
 
1426
 
1427
 
1428
 
1429
 
1430
 
1431
 
1432
 
1433
 
1434
 
1435
 
1436
    echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1437
echo "configure:1438: checking "for Visual C++"" >&5
1438
    MSVC="no";
1439
    if test "${CC}" = "cl" ; then
1440
       MSVC="yes"
1441
       CXX="cl"
1442
       MSVC_SRCDIR=${srcdir}
1443
 
1444
 
1445
 
1446
    if test "${MSVC}" = "yes" ; then
1447
      MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1448
    fi
1449
 
1450
 
1451
       ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1452
       ecos_LDADD="-link"
1453
       ecos_LIBS="advapi32.lib"
1454
    fi
1455
 
1456
 
1457
if test "${MSVC}" = "yes"; then
1458
  MSVC_TRUE=
1459
  MSVC_FALSE='#'
1460
else
1461
  MSVC_TRUE='#'
1462
  MSVC_FALSE=
1463
fi
1464
    if test "${MSVC}" = "yes" ; then
1465
        echo "$ac_t""unfortunately yes" 1>&6
1466
    else
1467
        echo "$ac_t""no" 1>&6
1468
    fi
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
    echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1477
echo "configure:1478: checking "the default compiler flags"" >&5
1478
 
1479
            ecosflags_enable_debug="no"
1480
    # Check whether --enable-debug or --disable-debug was given.
1481
if test "${enable_debug+set}" = set; then
1482
  enableval="$enable_debug"
1483
  case "${enableval}" in
1484
       yes) ecosflags_enable_debug="yes" ;;
1485
       *)   ecosflags_enable_debug="no" ;;
1486
    esac
1487
fi
1488
 
1489
 
1490
                    ecosflags_enable_ansi="no"
1491
    if test "${MSVC}" = "yes" ; then
1492
      # Check whether --enable-ansi or --disable-ansi was given.
1493
if test "${enable_ansi+set}" = set; then
1494
  enableval="$enable_ansi"
1495
  case "${enableval}" in
1496
         yes) ecosflags_enable_ansi="yes" ;;
1497
         *)   ecosflags_enable_ansi="no" ;;
1498
      esac
1499
fi
1500
 
1501
    fi
1502
 
1503
        if test "${GCC}" = "yes" ; then
1504
        ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1505
        ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1506
    elif test "${MSVC}" = "yes" ; then
1507
        ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1508
        ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1509
    else
1510
        { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1511
    fi
1512
 
1513
        if test "${ecosflags_enable_debug}" = "yes" ; then
1514
        if test "${GCC}" = "yes" ; then
1515
            ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1516
            ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1517
        elif test "${MSVC}" = "yes" ; then
1518
            ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1519
            ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1520
        fi
1521
    else
1522
                                        if test "${GCC}" = "yes" ; then
1523
            ecos_CFLAGS="${ecos_CFLAGS} -O0"
1524
            ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1525
        elif test "${MSVC}" = "yes" ; then
1526
            ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1527
            ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1528
        fi
1529
    fi
1530
 
1531
    CFLAGS="${ac_save_CFLAGS}"
1532
    CXXFLAGS="${ac_save_CXXFLAGS}"
1533
 
1534
    echo "$ac_t""done" 1>&6
1535
 
1536
 
1537
 
1538
 
1539
 
1540
 
1541
    if test "${ecosflags_enable_debug}" = "yes" ; then
1542
        ecosinfra_asserts="yes"
1543
        ecosinfra_preconditions="yes"
1544
        ecosinfra_postconditions="yes"
1545
        ecosinfra_invariants="yes"
1546
        ecosinfra_loopinvariants="yes"
1547
        ecosinfra_tracing="yes"
1548
        ecosinfra_fntracing="yes"
1549
    else
1550
        ecosinfra_asserts="no"
1551
        ecosinfra_preconditions="no"
1552
        ecosinfra_postconditions="no"
1553
        ecosinfra_invariants="no"
1554
        ecosinfra_loopinvariants="no"
1555
        ecosinfra_tracing="no"
1556
        ecosinfra_fntracing="no"
1557
    fi
1558
 
1559
    # Check whether --enable-asserts or --disable-asserts was given.
1560
if test "${enable_asserts+set}" = set; then
1561
  enableval="$enable_asserts"
1562
  case "${enableval}" in
1563
            yes) ecosinfra_asserts="yes" ;;
1564
            no)  ecosinfra_asserts="no"  ;;
1565
            *)   { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;;
1566
        esac
1567
fi
1568
 
1569
    if test "${ecosinfra_asserts}" = "yes"; then
1570
        cat >> confdefs.h <<\EOF
1571
#define CYGDBG_USE_ASSERTS 1
1572
EOF
1573
 
1574
    fi
1575
 
1576
    # Check whether --enable-preconditions or --disable-preconditions was given.
1577
if test "${enable_preconditions+set}" = set; then
1578
  enableval="$enable_preconditions"
1579
  case "${enableval}" in
1580
            yes) ecosinfra_preconditions="yes" ;;
1581
            no)  ecosinfra_preconditions="no"  ;;
1582
            *)   { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;;
1583
        esac
1584
fi
1585
 
1586
    if test "${ecosinfra_preconditions}" = "yes"; then
1587
        cat >> confdefs.h <<\EOF
1588
#define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1
1589
EOF
1590
 
1591
    fi
1592
 
1593
    # Check whether --enable-postconditions or --disable-postconditions was given.
1594
if test "${enable_postconditions+set}" = set; then
1595
  enableval="$enable_postconditions"
1596
  case "${enableval}" in
1597
            yes) ecosinfra_postconditions="yes" ;;
1598
            no)  ecosinfra_postconditions="no"  ;;
1599
            *)   { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;;
1600
        esac
1601
fi
1602
 
1603
    if test "${ecosinfra_postconditions}" = "yes"; then
1604
        cat >> confdefs.h <<\EOF
1605
#define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1
1606
EOF
1607
 
1608
    fi
1609
 
1610
    # Check whether --enable-invariants or --disable-invariants was given.
1611
if test "${enable_invariants+set}" = set; then
1612
  enableval="$enable_invariants"
1613
  case "${enableval}" in
1614
            yes) ecosinfra_invariants="yes" ;;
1615
            no)  ecosinfra_invariants="no"  ;;
1616
            *)   { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;;
1617
        esac
1618
fi
1619
 
1620
    if test "${ecosinfra_invariants}" = "yes"; then
1621
        cat >> confdefs.h <<\EOF
1622
#define CYGDBG_INFRA_DEBUG_INVARIANTS 1
1623
EOF
1624
 
1625
    fi
1626
 
1627
    # Check whether --enable-loopinvariants or --disable-loopinvariants was given.
1628
if test "${enable_loopinvariants+set}" = set; then
1629
  enableval="$enable_loopinvariants"
1630
  case "${enableval}" in
1631
            yes) ecosinfra_loopinvariants="yes" ;;
1632
            no)  ecosinfra_loopinvariants="no"  ;;
1633
            *)   { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;;
1634
        esac
1635
fi
1636
 
1637
    if test "${ecosinfra_loopinvariants}" = "yes"; then
1638
        cat >> confdefs.h <<\EOF
1639
#define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1
1640
EOF
1641
 
1642
    fi
1643
 
1644
    # Check whether --enable-tracing or --disable-tracing was given.
1645
if test "${enable_tracing+set}" = set; then
1646
  enableval="$enable_tracing"
1647
  case "${enableval}" in
1648
            yes) ecosinfra_tracing="yes" ;;
1649
            no)  ecosinfra_tracing="no"  ;;
1650
            *)   { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;;
1651
        esac
1652
fi
1653
 
1654
    if test "${ecosinfra_tracing}" = "yes"; then
1655
        cat >> confdefs.h <<\EOF
1656
#define CYGDBG_USE_TRACING 1
1657
EOF
1658
 
1659
    fi
1660
 
1661
    # Check whether --enable-fntracing or --disable-fntracing was given.
1662
if test "${enable_fntracing+set}" = set; then
1663
  enableval="$enable_fntracing"
1664
  case "${enableval}" in
1665
            yes) ecosinfra_fntracing="yes" ;;
1666
            no)  ecosinfra_fntracing=no  ;;
1667
            *)   { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;;
1668
    esac
1669
fi
1670
 
1671
    if test "${ecosinfra_fntracing}" = "yes"; then
1672
        cat >> confdefs.h <<\EOF
1673
#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1
1674
EOF
1675
 
1676
    fi
1677
 
1678
 
1679
    echo $ac_n "checking for libcdl""... $ac_c" 1>&6
1680
echo "configure:1681: checking for libcdl" >&5
1681
 
1682
        libcdl_srcdir=""
1683
    possibles="${srcdir}/.. ${srcdir}/../.. ${srcdir}/../../.. ${srcdir}/../../../.. ${srcdir}/../../../../.."
1684
 
1685
    libcdl_srcdir=""
1686
    for i in ${possibles}; do
1687
        if test -d "$i/"libcdl""; then
1688
            libcdl_srcdir=$i
1689
            break
1690
        fi
1691
    done
1692
 
1693
    if test "${libcdl_srcdir}" = "" ; then
1694
      possibles="${srcdir}/../host ${srcdir}/../../host ${srcdir}/../../../host ${srcdir}/../../../../host ${srcdir}/../../../../../host ${srcdir}/../../../../../../host"
1695
 
1696
    libcdl_srcdir=""
1697
    for i in ${possibles}; do
1698
        if test -d "$i/"libcdl""; then
1699
            libcdl_srcdir=$i
1700
            break
1701
        fi
1702
    done
1703
 
1704
    fi
1705
    if test "${libcdl_srcdir}" != "" ; then
1706
        libcdl_srcdir="${libcdl_srcdir}/libcdl"
1707
        libcdl_srcdir=`cd ${libcdl_srcdir} && /bin/pwd`
1708
    fi
1709
 
1710
        libcdl_builddir=""
1711
    possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1712
 
1713
    libcdl_builddir=""
1714
    for i in ${possibles}; do
1715
        if test -d "$i/"libcdl""; then
1716
            libcdl_builddir=$i
1717
            break
1718
        fi
1719
    done
1720
 
1721
    if test "${libcdl_builddir}" = "" ; then
1722
      possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1723
 
1724
    libcdl_builddir=""
1725
    for i in ${possibles}; do
1726
        if test -d "$i/"libcdl""; then
1727
            libcdl_builddir=$i
1728
            break
1729
        fi
1730
    done
1731
 
1732
    fi
1733
    if test "${libcdl_builddir}" != "" ; then
1734
        libcdl_builddir="${libcdl_builddir}/libcdl"
1735
        libcdl_builddir=`cd ${libcdl_builddir} && /bin/pwd`
1736
    fi
1737
 
1738
    ecos_libcdl_incdir=""
1739
    ecos_libcdl_libdir=""
1740
    ecos_libcdl_libs=""
1741
 
1742
    # Check whether --with-libcdl-header or --without-libcdl-header was given.
1743
if test "${with_libcdl_header+set}" = set; then
1744
  withval="$with_libcdl_header"
1745
  :
1746
fi
1747
 
1748
    # Check whether --with-libcdl-lib or --without-libcdl-lib was given.
1749
if test "${with_libcdl_lib+set}" = set; then
1750
  withval="$with_libcdl_lib"
1751
  :
1752
fi
1753
 
1754
    # Check whether --with-libcdl or --without-libcdl was given.
1755
if test "${with_libcdl+set}" = set; then
1756
  withval="$with_libcdl"
1757
  :
1758
fi
1759
 
1760
 
1761
    if test "${with_libcdl_header+set}" = "set"; then
1762
        ecos_libcdl_incdir="${with_libcdl_header}"
1763
    elif test "${with_libcdl+set}" = "set"; then
1764
        ecos_libcdl_incdir="${with_libcdl}/include"
1765
    elif test "${libcdl_srcdir}" != "" ; then
1766
        ecos_libcdl_incdir="${libcdl_srcdir}"
1767
    fi
1768
    if test \! -r "${ecos_libcdl_incdir}/cdl.hxx" ; then
1769
        { echo "configure: error: libcdl headers not found" 1>&2; exit 1; }
1770
    fi
1771
    if test "${MSVC}" = "yes" ; then
1772
        ecos_msvc_libcdl_incdir="${ecos_libcdl_incdir}"
1773
 
1774
 
1775
 
1776
    if test "${MSVC}" = "yes" ; then
1777
      ecos_msvc_libcdl_incdir=`cygpath -w ${ecos_msvc_libcdl_incdir} | tr \\\\\\\\ /`
1778
    fi
1779
 
1780
        ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_libcdl_incdir}\""
1781
    else
1782
        ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_libcdl_incdir}"
1783
    fi
1784
 
1785
    if test "${with_libcdl_lib+set}" = "set"; then
1786
        ecos_libcdl_libdir="${with_libcdl_lib}"
1787
    elif test "${with_libcdl+set}" = "set"; then
1788
        ecos_libcdl_libdir="${with_libcdl}/lib"
1789
    elif test "${libcdl_builddir}" != "" ; then
1790
        ecos_libcdl_libdir="${libcdl_builddir}"
1791
    else
1792
        { echo "configure: error: libcdl library not found" 1>&2; exit 1; }
1793
    fi
1794
    if test "${MSVC}" = "yes" ; then
1795
        ecos_msvc_libcdl_libdir=${ecos_libcdl_libdir}
1796
 
1797
 
1798
 
1799
    if test "${MSVC}" = "yes" ; then
1800
      ecos_msvc_libcdl_libdir=`cygpath -w ${ecos_msvc_libcdl_libdir} | tr \\\\\\\\ /`
1801
    fi
1802
 
1803
        ecos_LIBS="${ecos_LIBS} cdl.lib"
1804
        ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_libcdl_libdir}\""
1805
    else
1806
        ecos_LIBS="${ecos_LIBS} -lcdl"
1807
        ecos_LDADD="${ecos_LDADD} -L${ecos_libcdl_libdir}"
1808
    fi
1809
 
1810
 
1811
 
1812
    echo "$ac_t""-I${ecos_libcdl_incdir} -L${ecos_libcdl_libdir}" 1>&6
1813
 
1814
 
1815
    echo $ac_n "checking for eCos host-side infrastructure""... $ac_c" 1>&6
1816
echo "configure:1817: checking for eCos host-side infrastructure" >&5
1817
 
1818
                infra_builddir=""
1819
    possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1820
 
1821
    infra_builddir=""
1822
    for i in ${possibles}; do
1823
        if test -d "$i/"infra""; then
1824
            infra_builddir=$i
1825
            break
1826
        fi
1827
    done
1828
 
1829
    if test "${infra_builddir}" = "" ; then
1830
      possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1831
 
1832
    infra_builddir=""
1833
    for i in ${possibles}; do
1834
        if test -d "$i/"infra""; then
1835
            infra_builddir=$i
1836
            break
1837
        fi
1838
    done
1839
 
1840
    fi
1841
    if test "${infra_builddir}" != "" ; then
1842
        infra_builddir="${infra_builddir}/infra"
1843
        infra_builddir=`cd ${infra_builddir} && /bin/pwd`
1844
    fi
1845
 
1846
    ecos_infra_incdir=""
1847
    ecos_infra_libdir=""
1848
    ecos_infra_libs=""
1849
 
1850
    # Check whether --with-infra-header or --without-infra-header was given.
1851
if test "${with_infra_header+set}" = set; then
1852
  withval="$with_infra_header"
1853
  :
1854
fi
1855
 
1856
    # Check whether --with-infra-lib or --without-infra-lib was given.
1857
if test "${with_infra_lib+set}" = set; then
1858
  withval="$with_infra_lib"
1859
  :
1860
fi
1861
 
1862
    # Check whether --with-infra or --without-infra was given.
1863
if test "${with_infra+set}" = set; then
1864
  withval="$with_infra"
1865
  :
1866
fi
1867
 
1868
 
1869
    if test "${with_infra_header+set}" = "set"; then
1870
        ecos_infra_incdir="${with_infra_header}"
1871
    elif test "${with_infra+set}" = "set"; then
1872
        ecos_infra_incdir="${with_infra}/include"
1873
    elif test "${infra_builddir}" != "" ; then
1874
        ecos_infra_incdir="${infra_builddir}"
1875
    else
1876
        { echo "configure: error: infrastructure headers not found" 1>&2; exit 1; }
1877
    fi
1878
    if test "${MSVC}" = "yes" ; then
1879
        ecos_msvc_infra_incdir=${ecos_infra_incdir}
1880
 
1881
 
1882
 
1883
    if test "${MSVC}" = "yes" ; then
1884
      ecos_msvc_infra_incdir=`cygpath -w ${ecos_msvc_infra_incdir} | tr \\\\\\\\ /`
1885
    fi
1886
 
1887
        ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_infra_incdir}\""
1888
    else
1889
        ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_infra_incdir}"
1890
    fi
1891
 
1892
    if test "${with_infra_lib+set}" = "set"; then
1893
        ecos_infra_libdir="${with_infra_lib}"
1894
    elif test "${with_infra+set}" = "set"; then
1895
        ecos_infra_libdir="${with_infra}/lib"
1896
    elif test "${infra_builddir}" != "" ; then
1897
        ecos_infra_libdir="${infra_builddir}"
1898
    else
1899
        { echo "configure: error: infrastructure library not found" 1>&2; exit 1; }
1900
    fi
1901
    if test "${MSVC}" = "yes" ; then
1902
        ecos_msvc_infra_libdir=${ecos_infra_libdir}
1903
 
1904
 
1905
 
1906
    if test "${MSVC}" = "yes" ; then
1907
      ecos_msvc_infra_libdir=`cygpath -w ${ecos_msvc_infra_libdir} | tr \\\\\\\\ /`
1908
    fi
1909
 
1910
        ecos_LIBS="${ecos_LIBS} cyginfra.lib"
1911
        ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_infra_libdir}\""
1912
    else
1913
        ecos_LIBS="${ecos_LIBS} -lcyginfra"
1914
        ecos_LDADD="${ecos_LDADD} -L${ecos_infra_libdir}"
1915
    fi
1916
 
1917
 
1918
 
1919
    echo "$ac_t""-I${ecos_infra_incdir} -L${ecos_infra_libdir}" 1>&6
1920
 
1921
 
1922
 
1923
 
1924
 
1925
 
1926
    ecos_tk_libs=""
1927
    ecos_tk_libdir=""
1928
 
1929
        echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1930
echo "configure:1931: checking for Tcl installation" >&5
1931
    # Check whether --with-tcl or --without-tcl was given.
1932
if test "${with_tcl+set}" = set; then
1933
  withval="$with_tcl"
1934
  :
1935
fi
1936
 
1937
    # Check whether --with-tcl-version or --without-tcl-version was given.
1938
if test "${with_tcl_version+set}" = set; then
1939
  withval="$with_tcl_version"
1940
  :
1941
fi
1942
 
1943
 
1944
                                    if test "${MSVC}" = "yes" ; then
1945
        # Check whether --with-tcl-header or --without-tcl-header was given.
1946
if test "${with_tcl_header+set}" = set; then
1947
  withval="$with_tcl_header"
1948
  :
1949
fi
1950
 
1951
        # Check whether --with-tcl-lib or --without-tcl-lib was given.
1952
if test "${with_tcl_lib+set}" = set; then
1953
  withval="$with_tcl_lib"
1954
  :
1955
fi
1956
 
1957
        ecos_tcl_incdir=""
1958
        ecos_tcl_libdir=""
1959
        if test "${with_tcl_version+set}" != set ; then
1960
            { echo "configure: error: You must specify a Tcl version using --with-tcl-version=" 1>&2; exit 1; }
1961
        fi
1962
        if test "${with_tcl_header+set}" = set ; then
1963
            ecos_tcl_incdir=${with_tcl_header}
1964
        elif test "${with_tcl+set}" = set ; then
1965
            ecos_tcl_incdir="${with_tcl}/include"
1966
        else
1967
            { echo "configure: error: You must specify a Tcl installation with either --with-tcl= or --with-tcl-header=" 1>&2; exit 1; }
1968
        fi
1969
        if test "${with_tcl_lib+set}" = set; then
1970
            ecos_tcl_libdir=${with_tcl_lib}
1971
        elif test "${with_tcl+set}" = set; then
1972
            ecos_tcl_libdir="${with_tcl}/lib"
1973
        else
1974
            { echo "configure: error: You must specify a Tcl installation with either --with-tcl= or --with-tcl-lib=" 1>&2; exit 1; }
1975
        fi
1976
 
1977
                        if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1978
            { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1979
        fi
1980
 
1981
 
1982
 
1983
 
1984
    if test "${MSVC}" = "yes" ; then
1985
      ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /`
1986
    fi
1987
 
1988
 
1989
 
1990
 
1991
    if test "${MSVC}" = "yes" ; then
1992
      ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /`
1993
    fi
1994
 
1995
        ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\""
1996
        ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib"
1997
        ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\""
1998
 
1999
                        ecos_tk_libs=""
2000
 
2001
    else
2002
                possibles=""
2003
        if test "${with_tcl+set}" = set ; then
2004
            possibles="${with_tcl}/lib"
2005
            if test "${with_tcl_version+set}" = set ; then
2006
                possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}"
2007
            fi
2008
        fi
2009
        possibles="${possibles} ${prefix}/lib"
2010
        if test "${with_tcl_version+set}" = set ; then
2011
            possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}"
2012
        fi
2013
        possibles="${possibles} /usr/lib"
2014
        if test "${with_tcl_version+set}" = set ; then
2015
            possibles="${possibles} /usr/lib/tcl${with_tcl_version}"
2016
        fi
2017
 
2018
    tclconfig=""
2019
    for i in ${possibles}; do
2020
        if test -r "$i/"tclConfig.sh""; then
2021
            tclconfig=$i
2022
            break
2023
        fi
2024
    done
2025
 
2026
        if test \! -r "${tclconfig}/tclConfig.sh" ; then
2027
            { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; }
2028
        else
2029
            . ${tclconfig}/tclConfig.sh
2030
 
2031
                                    if test -z "${TCL_INC_DIR}" ; then
2032
                ecos_tcl_incdir="${TCL_PREFIX}/include"
2033
            else
2034
                ecos_tcl_incdir="${TCL_INC_DIR}"
2035
            fi
2036
            if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
2037
                { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
2038
            else
2039
                                                                                if test "${ecos_tcl_incdir}" != "/usr/include" ; then
2040
                    ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}"
2041
                fi
2042
            fi
2043
 
2044
                                                    if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
2045
 
2046
    libtcl=""
2047
    for i in ${possibles}; do
2048
        if test -r "$i/"libtcl${with_tcl_version}.a""; then
2049
            libtcl=$i
2050
            break
2051
        fi
2052
    done
2053
 
2054
                if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then
2055
                    TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}"
2056
                fi
2057
            fi
2058
            if test -z "${TCL_LIB_SPEC}" ; then
2059
 
2060
    libtcl=""
2061
    for i in ${possibles}; do
2062
        if test -r "$i/"libtcl.a""; then
2063
            libtcl=$i
2064
            break
2065
        fi
2066
    done
2067
 
2068
                if test -r "${libtcl}/libtcl.a" ; then
2069
                    TCL_LIB_SPEC="-L${libtcl} -ltcl"
2070
                fi
2071
            fi
2072
            if test -z "${TCL_LIB_SPEC}" ; then
2073
                { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; }
2074
            fi
2075
            ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
2076
 
2077
                    possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
2078
 
2079
    tkconfig=""
2080
    for i in ${possibles}; do
2081
        if test -r "$i/"tkConfig.sh""; then
2082
            tkconfig=$i
2083
            break
2084
        fi
2085
    done
2086
 
2087
            if test \! -r "${tkconfig}/tkConfig.sh" ; then
2088
                { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; }
2089
            else
2090
                . ${tkconfig}/tkConfig.sh
2091
                if test -z "${TK_INC_DIR}" ; then
2092
                    if test "${TK_PREFIX}" = "/usr" ; then
2093
                        ecos_tk_includes="${TK_XINCLUDES}"
2094
                    else
2095
                        ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}"
2096
                    fi
2097
                else
2098
                    ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}"
2099
                fi
2100
 
2101
                                if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
2102
 
2103
    libtk=""
2104
    for i in ${possibles}; do
2105
        if test -r "$i/"libtk${with_tcl_version}.a""; then
2106
            libtk=$i
2107
            break
2108
        fi
2109
    done
2110
 
2111
                    if test -r "${libtk}/libtk${with_tcl_version}.a" ; then
2112
                        TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}"
2113
                    fi
2114
                fi
2115
                if test -z "${TK_LIB_SPEC}" ; then
2116
 
2117
    libtk=""
2118
    for i in ${possibles}; do
2119
        if test -r "$i/"libtk.a""; then
2120
            libtk=$i
2121
            break
2122
        fi
2123
    done
2124
 
2125
                    if test -r "${libtk}/libtk.a" ; then
2126
                        TK_LIB_SPEC="-L${libtk} -ltk"
2127
                    fi
2128
                fi
2129
                if test -z "${TK_LIB_SPEC}" ; then
2130
                    { echo "configure: error: ${tkconfig}/tkConfig.sh does not define TK_LIB_SPEC" 1>&2; exit 1; }
2131
                fi
2132
                ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}"
2133
            fi
2134
        fi
2135
    fi
2136
 
2137
    echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6
2138
 
2139
 
2140
 
2141
 
2142
trap '' 1 2 15
2143
cat > confcache <<\EOF
2144
# This file is a shell script that caches the results of configure
2145
# tests run on this system so they can be shared between configure
2146
# scripts and configure runs.  It is not useful on other systems.
2147
# If it contains results you don't want to keep, you may remove or edit it.
2148
#
2149
# By default, configure uses ./config.cache as the cache file,
2150
# creating it if it does not exist already.  You can give configure
2151
# the --cache-file=FILE option to use a different cache file; that is
2152
# what configure does when it calls configure scripts in
2153
# subdirectories, so they share the cache.
2154
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2155
# config.status only pays attention to the cache file if you give it the
2156
# --recheck option to rerun configure.
2157
#
2158
EOF
2159
# The following way of writing the cache mishandles newlines in values,
2160
# but we know of no workaround that is simple, portable, and efficient.
2161
# So, don't put newlines in cache variables' values.
2162
# Ultrix sh set writes to stderr and can't be redirected directly,
2163
# and sets the high bit in the cache file unless we assign to the vars.
2164
(set) 2>&1 |
2165
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2166
  *ac_space=\ *)
2167
    # `set' does not quote correctly, so add quotes (double-quote substitution
2168
    # turns \\\\ into \\, and sed turns \\ into \).
2169
    sed -n \
2170
      -e "s/'/'\\\\''/g" \
2171
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2172
    ;;
2173
  *)
2174
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2175
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2176
    ;;
2177
  esac >> confcache
2178
if cmp -s $cache_file confcache; then
2179
  :
2180
else
2181
  if test -w $cache_file; then
2182
    echo "updating cache $cache_file"
2183
    cat confcache > $cache_file
2184
  else
2185
    echo "not updating unwritable cache $cache_file"
2186
  fi
2187
fi
2188
rm -f confcache
2189
 
2190
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2191
 
2192
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2193
# Let make expand exec_prefix.
2194
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2195
 
2196
# Any assignment to VPATH causes Sun make to only execute
2197
# the first set of double-colon rules, so remove it if not needed.
2198
# If there is a colon in the path, we need to keep it.
2199
if test "x$srcdir" = x.; then
2200
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2201
fi
2202
 
2203
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2204
 
2205
# Transform confdefs.h into DEFS.
2206
# Protect against shell expansion while executing Makefile rules.
2207
# Protect against Makefile macro expansion.
2208
cat > conftest.defs <<\EOF
2209
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2210
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2211
s%\[%\\&%g
2212
s%\]%\\&%g
2213
s%\$%$$%g
2214
EOF
2215
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2216
rm -f conftest.defs
2217
 
2218
 
2219
# Without the "./", some shells look in PATH for config.status.
2220
: ${CONFIG_STATUS=./config.status}
2221
 
2222
echo creating $CONFIG_STATUS
2223
rm -f $CONFIG_STATUS
2224
cat > $CONFIG_STATUS <
2225
#! /bin/sh
2226
# Generated automatically by configure.
2227
# Run this file to recreate the current configuration.
2228
# This directory was configured as follows,
2229
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2230
#
2231
# $0 $ac_configure_args
2232
#
2233
# Compiler output produced by configure, useful for debugging
2234
# configure, is in ./config.log if it exists.
2235
 
2236
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2237
for ac_option
2238
do
2239
  case "\$ac_option" in
2240
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2241
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2242
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2243
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2244
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2245
    exit 0 ;;
2246
  -help | --help | --hel | --he | --h)
2247
    echo "\$ac_cs_usage"; exit 0 ;;
2248
  *) echo "\$ac_cs_usage"; exit 1 ;;
2249
  esac
2250
done
2251
 
2252
ac_given_srcdir=$srcdir
2253
ac_given_INSTALL="$INSTALL"
2254
 
2255
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2256
EOF
2257
cat >> $CONFIG_STATUS <
2258
 
2259
# Protect against being on the right side of a sed subst in config.status.
2260
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2261
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2262
$ac_vpsub
2263
$extrasub
2264
s%@SHELL@%$SHELL%g
2265
s%@CFLAGS@%$CFLAGS%g
2266
s%@CPPFLAGS@%$CPPFLAGS%g
2267
s%@CXXFLAGS@%$CXXFLAGS%g
2268
s%@FFLAGS@%$FFLAGS%g
2269
s%@DEFS@%$DEFS%g
2270
s%@LDFLAGS@%$LDFLAGS%g
2271
s%@LIBS@%$LIBS%g
2272
s%@exec_prefix@%$exec_prefix%g
2273
s%@prefix@%$prefix%g
2274
s%@program_transform_name@%$program_transform_name%g
2275
s%@bindir@%$bindir%g
2276
s%@sbindir@%$sbindir%g
2277
s%@libexecdir@%$libexecdir%g
2278
s%@datadir@%$datadir%g
2279
s%@sysconfdir@%$sysconfdir%g
2280
s%@sharedstatedir@%$sharedstatedir%g
2281
s%@localstatedir@%$localstatedir%g
2282
s%@libdir@%$libdir%g
2283
s%@includedir@%$includedir%g
2284
s%@oldincludedir@%$oldincludedir%g
2285
s%@infodir@%$infodir%g
2286
s%@mandir@%$mandir%g
2287
s%@host@%$host%g
2288
s%@host_alias@%$host_alias%g
2289
s%@host_cpu@%$host_cpu%g
2290
s%@host_vendor@%$host_vendor%g
2291
s%@host_os@%$host_os%g
2292
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2293
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2294
s%@INSTALL_DATA@%$INSTALL_DATA%g
2295
s%@PACKAGE@%$PACKAGE%g
2296
s%@VERSION@%$VERSION%g
2297
s%@ACLOCAL@%$ACLOCAL%g
2298
s%@AUTOCONF@%$AUTOCONF%g
2299
s%@AUTOMAKE@%$AUTOMAKE%g
2300
s%@AUTOHEADER@%$AUTOHEADER%g
2301
s%@MAKEINFO@%$MAKEINFO%g
2302
s%@SET_MAKE@%$SET_MAKE%g
2303
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2304
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2305
s%@MAINT@%$MAINT%g
2306
s%@CC@%$CC%g
2307
s%@CXX@%$CXX%g
2308
s%@OBJEXT@%$OBJEXT%g
2309
s%@EXEEXT@%$EXEEXT%g
2310
s%@ecos_CFLAGS@%$ecos_CFLAGS%g
2311
s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
2312
s%@ecos_LDADD@%$ecos_LDADD%g
2313
s%@ecos_INCLUDES@%$ecos_INCLUDES%g
2314
s%@ecos_LIBS@%$ecos_LIBS%g
2315
s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
2316
s%@MSVC_TRUE@%$MSVC_TRUE%g
2317
s%@MSVC_FALSE@%$MSVC_FALSE%g
2318
s%@ecos_libcdl_incdir@%$ecos_libcdl_incdir%g
2319
s%@ecos_libcdl_libdir@%$ecos_libcdl_libdir%g
2320
s%@ecos_infra_incdir@%$ecos_infra_incdir%g
2321
s%@ecos_infra_libdir@%$ecos_infra_libdir%g
2322
s%@ecos_tk_includes@%$ecos_tk_includes%g
2323
s%@ecos_tk_libs@%$ecos_tk_libs%g
2324
 
2325
CEOF
2326
EOF
2327
 
2328
cat >> $CONFIG_STATUS <<\EOF
2329
 
2330
# Split the substitutions into bite-sized pieces for seds with
2331
# small command number limits, like on Digital OSF/1 and HP-UX.
2332
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2333
ac_file=1 # Number of current file.
2334
ac_beg=1 # First line for current file.
2335
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2336
ac_more_lines=:
2337
ac_sed_cmds=""
2338
while $ac_more_lines; do
2339
  if test $ac_beg -gt 1; then
2340
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2341
  else
2342
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2343
  fi
2344
  if test ! -s conftest.s$ac_file; then
2345
    ac_more_lines=false
2346
    rm -f conftest.s$ac_file
2347
  else
2348
    if test -z "$ac_sed_cmds"; then
2349
      ac_sed_cmds="sed -f conftest.s$ac_file"
2350
    else
2351
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2352
    fi
2353
    ac_file=`expr $ac_file + 1`
2354
    ac_beg=$ac_end
2355
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2356
  fi
2357
done
2358
if test -z "$ac_sed_cmds"; then
2359
  ac_sed_cmds=cat
2360
fi
2361
EOF
2362
 
2363
cat >> $CONFIG_STATUS <
2364
 
2365
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2366
EOF
2367
cat >> $CONFIG_STATUS <<\EOF
2368
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2369
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2370
  case "$ac_file" in
2371
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2372
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2373
  *) ac_file_in="${ac_file}.in" ;;
2374
  esac
2375
 
2376
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2377
 
2378
  # Remove last slash and all that follows it.  Not all systems have dirname.
2379
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2380
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2381
    # The file is in a subdirectory.
2382
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2383
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2384
    # A "../" for each directory in $ac_dir_suffix.
2385
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2386
  else
2387
    ac_dir_suffix= ac_dots=
2388
  fi
2389
 
2390
  case "$ac_given_srcdir" in
2391
  .)  srcdir=.
2392
      if test -z "$ac_dots"; then top_srcdir=.
2393
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2394
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2395
  *) # Relative path.
2396
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2397
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2398
  esac
2399
 
2400
  case "$ac_given_INSTALL" in
2401
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2402
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2403
  esac
2404
 
2405
  echo creating "$ac_file"
2406
  rm -f "$ac_file"
2407
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2408
  case "$ac_file" in
2409
  *Makefile*) ac_comsub="1i\\
2410
# $configure_input" ;;
2411
  *) ac_comsub= ;;
2412
  esac
2413
 
2414
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2415
  sed -e "$ac_comsub
2416
s%@configure_input@%$configure_input%g
2417
s%@srcdir@%$srcdir%g
2418
s%@top_srcdir@%$top_srcdir%g
2419
s%@INSTALL@%$INSTALL%g
2420
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2421
fi; done
2422
rm -f conftest.s*
2423
 
2424
EOF
2425
cat >> $CONFIG_STATUS <
2426
 
2427
EOF
2428
cat >> $CONFIG_STATUS <<\EOF
2429
 
2430
exit 0
2431
EOF
2432
chmod +x $CONFIG_STATUS
2433
rm -fr confdefs* $ac_clean_files
2434
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2435
 

powered by: WebSVN 2.1.0

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