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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [or1ksim/] [configure] - Blame information for rev 1075

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

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

powered by: WebSVN 2.1.0

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