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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_61/] [or1ksim/] [configure] - Blame information for rev 513

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

powered by: WebSVN 2.1.0

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