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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [testbench/] [configure] - Blame information for rev 568

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

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

powered by: WebSVN 2.1.0

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