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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [configure] - Blame information for rev 7

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

powered by: WebSVN 2.1.0

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