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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_36/] [or1ksim/] [configure] - Blame information for rev 92

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

powered by: WebSVN 2.1.0

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