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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_43/] [or1ksim/] [testbench/] [configure] - Blame information for rev 258

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

powered by: WebSVN 2.1.0

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