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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_72/] [or1ksim/] [configure] - Blame information for rev 518

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

powered by: WebSVN 2.1.0

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