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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [configure] - Blame information for rev 229

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
 
521
ac_ext=c
522
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523
ac_cpp='$CPP $CPPFLAGS'
524
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526
cross_compiling=$ac_cv_prog_cc_cross
527
 
528
ac_exeext=
529
ac_objext=o
530
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533
    ac_n= ac_c='
534
' ac_t='        '
535
  else
536
    ac_n=-n ac_c= ac_t=
537
  fi
538
else
539
  ac_n= ac_c='\c' ac_t=
540
fi
541
 
542
 
543
ac_aux_dir=
544
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545
  if test -f $ac_dir/install-sh; then
546
    ac_aux_dir=$ac_dir
547
    ac_install_sh="$ac_aux_dir/install-sh -c"
548
    break
549
  elif test -f $ac_dir/install.sh; then
550
    ac_aux_dir=$ac_dir
551
    ac_install_sh="$ac_aux_dir/install.sh -c"
552
    break
553
  fi
554
done
555
if test -z "$ac_aux_dir"; then
556
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557
fi
558
ac_config_guess=$ac_aux_dir/config.guess
559
ac_config_sub=$ac_aux_dir/config.sub
560
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
 
562
 
563
# Make sure we can run config.sub.
564
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
565
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
566
fi
567
 
568
echo $ac_n "checking host system type""... $ac_c" 1>&6
569 229 erez
echo "configure:570: checking host system type" >&5
570 224 markom
 
571
host_alias=$host
572
case "$host_alias" in
573
NONE)
574
  case $nonopt in
575
  NONE)
576
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
577
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
578
    fi ;;
579
  *) host_alias=$nonopt ;;
580
  esac ;;
581
esac
582
 
583
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
584
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
585
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
586
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
587
echo "$ac_t""$host" 1>&6
588
 
589
# Find a good install program.  We prefer a C program (faster),
590
# so one script is as good as another.  But avoid the broken or
591
# incompatible versions:
592
# SysV /etc/install, /usr/sbin/install
593
# SunOS /usr/etc/install
594
# IRIX /sbin/install
595
# AIX /bin/install
596
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
597
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
598
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
599
# ./install, which can be erroneously created by make from ./install.sh.
600
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
601 229 erez
echo "configure:602: checking for a BSD compatible install" >&5
602 224 markom
if test -z "$INSTALL"; then
603
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
604
  echo $ac_n "(cached) $ac_c" 1>&6
605
else
606
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
607
  for ac_dir in $PATH; do
608
    # Account for people who put trailing slashes in PATH elements.
609
    case "$ac_dir/" in
610
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
611
    *)
612
      # OSF1 and SCO ODT 3.0 have their own names for install.
613
      # Don't use installbsd from OSF since it installs stuff as root
614
      # by default.
615
      for ac_prog in ginstall scoinst install; do
616
        if test -f $ac_dir/$ac_prog; then
617
          if test $ac_prog = install &&
618
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
619
            # AIX install.  It has an incompatible calling convention.
620
            :
621
          else
622
            ac_cv_path_install="$ac_dir/$ac_prog -c"
623
            break 2
624
          fi
625
        fi
626
      done
627
      ;;
628
    esac
629
  done
630
  IFS="$ac_save_IFS"
631
 
632
fi
633
  if test "${ac_cv_path_install+set}" = set; then
634
    INSTALL="$ac_cv_path_install"
635
  else
636
    # As a last resort, use the slow shell script.  We don't cache a
637
    # path for INSTALL within a source directory, because that will
638
    # break other packages using the cache if that directory is
639
    # removed, or if the path is relative.
640
    INSTALL="$ac_install_sh"
641
  fi
642
fi
643
echo "$ac_t""$INSTALL" 1>&6
644
 
645
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646
# It thinks the first close brace ends the variable substitution.
647
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
648
 
649
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
650
 
651
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
652
 
653
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
654 229 erez
echo "configure:655: checking whether build environment is sane" >&5
655 224 markom
# Just in case
656
sleep 1
657
echo timestamp > conftestfile
658
# Do `set' in a subshell so we don't clobber the current shell's
659
# arguments.  Must try -L first in case configure is actually a
660
# symlink; some systems play weird games with the mod time of symlinks
661
# (eg FreeBSD returns the mod time of the symlink's containing
662
# directory).
663
if (
664
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
665
   if test "$*" = "X"; then
666
      # -L didn't work.
667
      set X `ls -t $srcdir/configure conftestfile`
668
   fi
669
   if test "$*" != "X $srcdir/configure conftestfile" \
670
      && test "$*" != "X conftestfile $srcdir/configure"; then
671
 
672
      # If neither matched, then we have a broken ls.  This can happen
673
      # if, for instance, CONFIG_SHELL is bash and it inherits a
674
      # broken ls alias from the environment.  This has actually
675
      # happened.  Such a system could not be considered "sane".
676
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
677
alias in your environment" 1>&2; exit 1; }
678
   fi
679
 
680
   test "$2" = conftestfile
681
   )
682
then
683
   # Ok.
684
   :
685
else
686
   { echo "configure: error: newly created file is older than distributed files!
687
Check your system clock" 1>&2; exit 1; }
688
fi
689
rm -f conftest*
690
echo "$ac_t""yes" 1>&6
691
if test "$program_transform_name" = s,x,x,; then
692
  program_transform_name=
693
else
694
  # Double any \ or $.  echo might interpret backslashes.
695
  cat <<\EOF_SED > conftestsed
696
s,\\,\\\\,g; s,\$,$$,g
697
EOF_SED
698
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
699
  rm -f conftestsed
700
fi
701
test "$program_prefix" != NONE &&
702
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
703
# Use a double $ so make ignores it.
704
test "$program_suffix" != NONE &&
705
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
706
 
707
# sed with no file args requires a program.
708
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
709
 
710
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
711 229 erez
echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5
712 224 markom
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
713
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
714
  echo $ac_n "(cached) $ac_c" 1>&6
715
else
716
  cat > conftestmake <<\EOF
717
all:
718
        @echo 'ac_maketemp="${MAKE}"'
719
EOF
720
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
721
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
722
if test -n "$ac_maketemp"; then
723
  eval ac_cv_prog_make_${ac_make}_set=yes
724
else
725
  eval ac_cv_prog_make_${ac_make}_set=no
726
fi
727
rm -f conftestmake
728
fi
729
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
730
  echo "$ac_t""yes" 1>&6
731
  SET_MAKE=
732
else
733
  echo "$ac_t""no" 1>&6
734
  SET_MAKE="MAKE=${MAKE-make}"
735
fi
736
 
737
 
738
PACKAGE=or1ksimtest
739
 
740
VERSION=1.3
741
 
742
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
743
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
744
fi
745
cat >> confdefs.h <
746
#define PACKAGE "$PACKAGE"
747
EOF
748
 
749
cat >> confdefs.h <
750
#define VERSION "$VERSION"
751
EOF
752
 
753
 
754
 
755
missing_dir=`cd $ac_aux_dir && pwd`
756
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
757 229 erez
echo "configure:758: checking for working aclocal" >&5
758 224 markom
# Run test in a subshell; some versions of sh will print an error if
759
# an executable is not found, even if stderr is redirected.
760
# Redirect stdin to placate older versions of autoconf.  Sigh.
761
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
762
   ACLOCAL=aclocal
763
   echo "$ac_t""found" 1>&6
764
else
765
   ACLOCAL="$missing_dir/missing aclocal"
766
   echo "$ac_t""missing" 1>&6
767
fi
768
 
769
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
770 229 erez
echo "configure:771: checking for working autoconf" >&5
771 224 markom
# Run test in a subshell; some versions of sh will print an error if
772
# an executable is not found, even if stderr is redirected.
773
# Redirect stdin to placate older versions of autoconf.  Sigh.
774
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
775
   AUTOCONF=autoconf
776
   echo "$ac_t""found" 1>&6
777
else
778
   AUTOCONF="$missing_dir/missing autoconf"
779
   echo "$ac_t""missing" 1>&6
780
fi
781
 
782
echo $ac_n "checking for working automake""... $ac_c" 1>&6
783 229 erez
echo "configure:784: checking for working automake" >&5
784 224 markom
# Run test in a subshell; some versions of sh will print an error if
785
# an executable is not found, even if stderr is redirected.
786
# Redirect stdin to placate older versions of autoconf.  Sigh.
787
if (automake --version) < /dev/null > /dev/null 2>&1; then
788
   AUTOMAKE=automake
789
   echo "$ac_t""found" 1>&6
790
else
791
   AUTOMAKE="$missing_dir/missing automake"
792
   echo "$ac_t""missing" 1>&6
793
fi
794
 
795
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
796 229 erez
echo "configure:797: checking for working autoheader" >&5
797 224 markom
# Run test in a subshell; some versions of sh will print an error if
798
# an executable is not found, even if stderr is redirected.
799
# Redirect stdin to placate older versions of autoconf.  Sigh.
800
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
801
   AUTOHEADER=autoheader
802
   echo "$ac_t""found" 1>&6
803
else
804
   AUTOHEADER="$missing_dir/missing autoheader"
805
   echo "$ac_t""missing" 1>&6
806
fi
807
 
808
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
809 229 erez
echo "configure:810: checking for working makeinfo" >&5
810 224 markom
# Run test in a subshell; some versions of sh will print an error if
811
# an executable is not found, even if stderr is redirected.
812
# Redirect stdin to placate older versions of autoconf.  Sigh.
813
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
814
   MAKEINFO=makeinfo
815
   echo "$ac_t""found" 1>&6
816
else
817
   MAKEINFO="$missing_dir/missing makeinfo"
818
   echo "$ac_t""missing" 1>&6
819
fi
820
 
821
 
822
 
823
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
824 229 erez
echo "configure:825: checking whether ${MAKE-make} sets \${MAKE}" >&5
825 224 markom
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
826
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
827
  echo $ac_n "(cached) $ac_c" 1>&6
828
else
829
  cat > conftestmake <<\EOF
830
all:
831
        @echo 'ac_maketemp="${MAKE}"'
832
EOF
833
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
834
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
835
if test -n "$ac_maketemp"; then
836
  eval ac_cv_prog_make_${ac_make}_set=yes
837
else
838
  eval ac_cv_prog_make_${ac_make}_set=no
839
fi
840
rm -f conftestmake
841
fi
842
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
843
  echo "$ac_t""yes" 1>&6
844
  SET_MAKE=
845
else
846
  echo "$ac_t""no" 1>&6
847
  SET_MAKE="MAKE=${MAKE-make}"
848
fi
849
 
850
# Find a good install program.  We prefer a C program (faster),
851
# so one script is as good as another.  But avoid the broken or
852
# incompatible versions:
853
# SysV /etc/install, /usr/sbin/install
854
# SunOS /usr/etc/install
855
# IRIX /sbin/install
856
# AIX /bin/install
857
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
858
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
859
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
860
# ./install, which can be erroneously created by make from ./install.sh.
861
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
862 229 erez
echo "configure:863: checking for a BSD compatible install" >&5
863 224 markom
if test -z "$INSTALL"; then
864
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
865
  echo $ac_n "(cached) $ac_c" 1>&6
866
else
867
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
868
  for ac_dir in $PATH; do
869
    # Account for people who put trailing slashes in PATH elements.
870
    case "$ac_dir/" in
871
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
872
    *)
873
      # OSF1 and SCO ODT 3.0 have their own names for install.
874
      # Don't use installbsd from OSF since it installs stuff as root
875
      # by default.
876
      for ac_prog in ginstall scoinst install; do
877
        if test -f $ac_dir/$ac_prog; then
878
          if test $ac_prog = install &&
879
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
880
            # AIX install.  It has an incompatible calling convention.
881
            :
882
          else
883
            ac_cv_path_install="$ac_dir/$ac_prog -c"
884
            break 2
885
          fi
886
        fi
887
      done
888
      ;;
889
    esac
890
  done
891
  IFS="$ac_save_IFS"
892
 
893
fi
894
  if test "${ac_cv_path_install+set}" = set; then
895
    INSTALL="$ac_cv_path_install"
896
  else
897
    # As a last resort, use the slow shell script.  We don't cache a
898
    # path for INSTALL within a source directory, because that will
899
    # break other packages using the cache if that directory is
900
    # removed, or if the path is relative.
901
    INSTALL="$ac_install_sh"
902
  fi
903
fi
904
echo "$ac_t""$INSTALL" 1>&6
905
 
906
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
907
# It thinks the first close brace ends the variable substitution.
908
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
909
 
910
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
911
 
912
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
913
 
914
echo $ac_n "checking build system type""... $ac_c" 1>&6
915 229 erez
echo "configure:916: checking build system type" >&5
916 224 markom
 
917
build_alias=$build
918
case "$build_alias" in
919
NONE)
920
  case $nonopt in
921
  NONE) build_alias=$host_alias ;;
922
  *) build_alias=$nonopt ;;
923
  esac ;;
924
esac
925
 
926
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
927
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
928
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
929
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
930
echo "$ac_t""$build" 1>&6
931
 
932
if test $host != $build; then
933
  ac_tool_prefix=${host_alias}-
934
else
935
  ac_tool_prefix=
936
fi
937
 
938 229 erez
# Extract the first word of "${ac_tool_prefix}$target-gcc", so it can be a program name with args.
939
set dummy ${ac_tool_prefix}$target-gcc; ac_word=$2
940 224 markom
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 229 erez
echo "configure:942: checking for $ac_word" >&5
942 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
943
  echo $ac_n "(cached) $ac_c" 1>&6
944
else
945
  if test -n "$CC"; then
946
  ac_cv_prog_CC="$CC" # Let the user override the test.
947
else
948
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
949
  ac_dummy="$PATH"
950
  for ac_dir in $ac_dummy; do
951
    test -z "$ac_dir" && ac_dir=.
952
    if test -f $ac_dir/$ac_word; then
953 229 erez
      ac_cv_prog_CC="${ac_tool_prefix}$target-gcc"
954 224 markom
      break
955
    fi
956
  done
957
  IFS="$ac_save_ifs"
958
fi
959
fi
960
CC="$ac_cv_prog_CC"
961
if test -n "$CC"; then
962
  echo "$ac_t""$CC" 1>&6
963
else
964
  echo "$ac_t""no" 1>&6
965
fi
966
 
967
 
968
if test -z "$ac_cv_prog_CC"; then
969
if test -n "$ac_tool_prefix"; then
970 229 erez
  # Extract the first word of "$target-gcc", so it can be a program name with args.
971
set dummy $target-gcc; ac_word=$2
972 224 markom
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 229 erez
echo "configure:974: checking for $ac_word" >&5
974 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
975
  echo $ac_n "(cached) $ac_c" 1>&6
976
else
977
  if test -n "$CC"; then
978
  ac_cv_prog_CC="$CC" # Let the user override the test.
979
else
980
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
981
  ac_dummy="$PATH"
982
  for ac_dir in $ac_dummy; do
983
    test -z "$ac_dir" && ac_dir=.
984
    if test -f $ac_dir/$ac_word; then
985 229 erez
      ac_cv_prog_CC="$target-gcc"
986 224 markom
      break
987
    fi
988
  done
989
  IFS="$ac_save_ifs"
990
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
991
fi
992
fi
993
CC="$ac_cv_prog_CC"
994
if test -n "$CC"; then
995
  echo "$ac_t""$CC" 1>&6
996
else
997
  echo "$ac_t""no" 1>&6
998
fi
999
 
1000
else
1001
  CC="cc"
1002
fi
1003
fi
1004
 
1005 229 erez
# Extract the first word of "${ac_tool_prefix}$target-ranlib", so it can be a program name with args.
1006
set dummy ${ac_tool_prefix}$target-ranlib; ac_word=$2
1007 224 markom
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1008 229 erez
echo "configure:1009: checking for $ac_word" >&5
1009 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1010
  echo $ac_n "(cached) $ac_c" 1>&6
1011
else
1012
  if test -n "$RANLIB"; then
1013
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1014
else
1015
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1016
  ac_dummy="$PATH"
1017
  for ac_dir in $ac_dummy; do
1018
    test -z "$ac_dir" && ac_dir=.
1019
    if test -f $ac_dir/$ac_word; then
1020 229 erez
      ac_cv_prog_RANLIB="${ac_tool_prefix}$target-ranlib"
1021 224 markom
      break
1022
    fi
1023
  done
1024
  IFS="$ac_save_ifs"
1025
fi
1026
fi
1027
RANLIB="$ac_cv_prog_RANLIB"
1028
if test -n "$RANLIB"; then
1029
  echo "$ac_t""$RANLIB" 1>&6
1030
else
1031
  echo "$ac_t""no" 1>&6
1032
fi
1033
 
1034
 
1035
if test -z "$ac_cv_prog_RANLIB"; then
1036
if test -n "$ac_tool_prefix"; then
1037 229 erez
  # Extract the first word of "$target-ranlib", so it can be a program name with args.
1038
set dummy $target-ranlib; ac_word=$2
1039 224 markom
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 229 erez
echo "configure:1041: checking for $ac_word" >&5
1041 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1042
  echo $ac_n "(cached) $ac_c" 1>&6
1043
else
1044
  if test -n "$RANLIB"; then
1045
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1046
else
1047
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1048
  ac_dummy="$PATH"
1049
  for ac_dir in $ac_dummy; do
1050
    test -z "$ac_dir" && ac_dir=.
1051
    if test -f $ac_dir/$ac_word; then
1052 229 erez
      ac_cv_prog_RANLIB="$target-ranlib"
1053 224 markom
      break
1054
    fi
1055
  done
1056
  IFS="$ac_save_ifs"
1057
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
1058
fi
1059
fi
1060
RANLIB="$ac_cv_prog_RANLIB"
1061
if test -n "$RANLIB"; then
1062
  echo "$ac_t""$RANLIB" 1>&6
1063
else
1064
  echo "$ac_t""no" 1>&6
1065
fi
1066
 
1067
else
1068
  RANLIB="ranlib"
1069
fi
1070
fi
1071
 
1072 229 erez
# Extract the first word of "${ac_tool_prefix}$target-ld", so it can be a program name with args.
1073
set dummy ${ac_tool_prefix}$target-ld; ac_word=$2
1074 224 markom
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 229 erez
echo "configure:1076: checking for $ac_word" >&5
1076 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1077
  echo $ac_n "(cached) $ac_c" 1>&6
1078
else
1079
  if test -n "$LD"; then
1080
  ac_cv_prog_LD="$LD" # Let the user override the test.
1081
else
1082
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1083
  ac_dummy="$PATH"
1084
  for ac_dir in $ac_dummy; do
1085
    test -z "$ac_dir" && ac_dir=.
1086
    if test -f $ac_dir/$ac_word; then
1087 229 erez
      ac_cv_prog_LD="${ac_tool_prefix}$target-ld"
1088 224 markom
      break
1089
    fi
1090
  done
1091
  IFS="$ac_save_ifs"
1092
fi
1093
fi
1094
LD="$ac_cv_prog_LD"
1095
if test -n "$LD"; then
1096
  echo "$ac_t""$LD" 1>&6
1097
else
1098
  echo "$ac_t""no" 1>&6
1099
fi
1100
 
1101
 
1102
if test -z "$ac_cv_prog_LD"; then
1103
if test -n "$ac_tool_prefix"; then
1104 229 erez
  # Extract the first word of "$target-ld", so it can be a program name with args.
1105
set dummy $target-ld; ac_word=$2
1106 224 markom
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 229 erez
echo "configure:1108: checking for $ac_word" >&5
1108 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1109
  echo $ac_n "(cached) $ac_c" 1>&6
1110
else
1111
  if test -n "$LD"; then
1112
  ac_cv_prog_LD="$LD" # Let the user override the test.
1113
else
1114
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1115
  ac_dummy="$PATH"
1116
  for ac_dir in $ac_dummy; do
1117
    test -z "$ac_dir" && ac_dir=.
1118
    if test -f $ac_dir/$ac_word; then
1119 229 erez
      ac_cv_prog_LD="$target-ld"
1120 224 markom
      break
1121
    fi
1122
  done
1123
  IFS="$ac_save_ifs"
1124
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1125
fi
1126
fi
1127
LD="$ac_cv_prog_LD"
1128
if test -n "$LD"; then
1129
  echo "$ac_t""$LD" 1>&6
1130
else
1131
  echo "$ac_t""no" 1>&6
1132
fi
1133
 
1134
else
1135
  LD="ld"
1136
fi
1137
fi
1138
 
1139
# Extract the first word of "gcc", so it can be a program name with args.
1140
set dummy gcc; ac_word=$2
1141
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 229 erez
echo "configure:1143: checking for $ac_word" >&5
1143 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1144
  echo $ac_n "(cached) $ac_c" 1>&6
1145
else
1146
  if test -n "$CC"; then
1147
  ac_cv_prog_CC="$CC" # Let the user override the test.
1148
else
1149
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1150
  ac_dummy="$PATH"
1151
  for ac_dir in $ac_dummy; do
1152
    test -z "$ac_dir" && ac_dir=.
1153
    if test -f $ac_dir/$ac_word; then
1154
      ac_cv_prog_CC="gcc"
1155
      break
1156
    fi
1157
  done
1158
  IFS="$ac_save_ifs"
1159
fi
1160
fi
1161
CC="$ac_cv_prog_CC"
1162
if test -n "$CC"; then
1163
  echo "$ac_t""$CC" 1>&6
1164
else
1165
  echo "$ac_t""no" 1>&6
1166
fi
1167
 
1168
if test -z "$CC"; then
1169
  # Extract the first word of "cc", so it can be a program name with args.
1170
set dummy cc; ac_word=$2
1171
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 229 erez
echo "configure:1173: checking for $ac_word" >&5
1173 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1174
  echo $ac_n "(cached) $ac_c" 1>&6
1175
else
1176
  if test -n "$CC"; then
1177
  ac_cv_prog_CC="$CC" # Let the user override the test.
1178
else
1179
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1180
  ac_prog_rejected=no
1181
  ac_dummy="$PATH"
1182
  for ac_dir in $ac_dummy; do
1183
    test -z "$ac_dir" && ac_dir=.
1184
    if test -f $ac_dir/$ac_word; then
1185
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1186
        ac_prog_rejected=yes
1187
        continue
1188
      fi
1189
      ac_cv_prog_CC="cc"
1190
      break
1191
    fi
1192
  done
1193
  IFS="$ac_save_ifs"
1194
if test $ac_prog_rejected = yes; then
1195
  # We found a bogon in the path, so make sure we never use it.
1196
  set dummy $ac_cv_prog_CC
1197
  shift
1198
  if test $# -gt 0; then
1199
    # We chose a different compiler from the bogus one.
1200
    # However, it has the same basename, so the bogon will be chosen
1201
    # first if we set CC to just the basename; use the full file name.
1202
    shift
1203
    set dummy "$ac_dir/$ac_word" "$@"
1204
    shift
1205
    ac_cv_prog_CC="$@"
1206
  fi
1207
fi
1208
fi
1209
fi
1210
CC="$ac_cv_prog_CC"
1211
if test -n "$CC"; then
1212
  echo "$ac_t""$CC" 1>&6
1213
else
1214
  echo "$ac_t""no" 1>&6
1215
fi
1216
 
1217
  if test -z "$CC"; then
1218
    case "`uname -s`" in
1219
    *win32* | *WIN32*)
1220
      # Extract the first word of "cl", so it can be a program name with args.
1221
set dummy cl; ac_word=$2
1222
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 229 erez
echo "configure:1224: checking for $ac_word" >&5
1224 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1225
  echo $ac_n "(cached) $ac_c" 1>&6
1226
else
1227
  if test -n "$CC"; then
1228
  ac_cv_prog_CC="$CC" # Let the user override the test.
1229
else
1230
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231
  ac_dummy="$PATH"
1232
  for ac_dir in $ac_dummy; do
1233
    test -z "$ac_dir" && ac_dir=.
1234
    if test -f $ac_dir/$ac_word; then
1235
      ac_cv_prog_CC="cl"
1236
      break
1237
    fi
1238
  done
1239
  IFS="$ac_save_ifs"
1240
fi
1241
fi
1242
CC="$ac_cv_prog_CC"
1243
if test -n "$CC"; then
1244
  echo "$ac_t""$CC" 1>&6
1245
else
1246
  echo "$ac_t""no" 1>&6
1247
fi
1248
 ;;
1249
    esac
1250
  fi
1251
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1252
fi
1253
 
1254
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1255 229 erez
echo "configure:1256: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1256 224 markom
 
1257
ac_ext=c
1258
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1259
ac_cpp='$CPP $CPPFLAGS'
1260
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1261
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1262
cross_compiling=$ac_cv_prog_cc_cross
1263
 
1264
cat > conftest.$ac_ext << EOF
1265
 
1266 229 erez
#line 1267 "configure"
1267 224 markom
#include "confdefs.h"
1268
 
1269
main(){return(0);}
1270
EOF
1271 229 erez
if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1272 224 markom
  ac_cv_prog_cc_works=yes
1273
  # If we can't run a trivial program, we are probably using a cross compiler.
1274
  if (./conftest; exit) 2>/dev/null; then
1275
    ac_cv_prog_cc_cross=no
1276
  else
1277
    ac_cv_prog_cc_cross=yes
1278
  fi
1279
else
1280
  echo "configure: failed program was:" >&5
1281
  cat conftest.$ac_ext >&5
1282
  ac_cv_prog_cc_works=no
1283
fi
1284
rm -fr conftest*
1285
ac_ext=c
1286
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1287
ac_cpp='$CPP $CPPFLAGS'
1288
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1289
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1290
cross_compiling=$ac_cv_prog_cc_cross
1291
 
1292
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1293
if test $ac_cv_prog_cc_works = no; then
1294
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1295
fi
1296
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1297 229 erez
echo "configure:1298: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1298 224 markom
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1299
cross_compiling=$ac_cv_prog_cc_cross
1300
 
1301
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1302 229 erez
echo "configure:1303: checking whether we are using GNU C" >&5
1303 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1304
  echo $ac_n "(cached) $ac_c" 1>&6
1305
else
1306
  cat > conftest.c <
1307
#ifdef __GNUC__
1308
  yes;
1309
#endif
1310
EOF
1311 229 erez
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1312 224 markom
  ac_cv_prog_gcc=yes
1313
else
1314
  ac_cv_prog_gcc=no
1315
fi
1316
fi
1317
 
1318
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1319
 
1320
if test $ac_cv_prog_gcc = yes; then
1321
  GCC=yes
1322
else
1323
  GCC=
1324
fi
1325
 
1326
ac_test_CFLAGS="${CFLAGS+set}"
1327
ac_save_CFLAGS="$CFLAGS"
1328
CFLAGS=
1329
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1330 229 erez
echo "configure:1331: checking whether ${CC-cc} accepts -g" >&5
1331 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1332
  echo $ac_n "(cached) $ac_c" 1>&6
1333
else
1334
  echo 'void f(){}' > conftest.c
1335
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1336
  ac_cv_prog_cc_g=yes
1337
else
1338
  ac_cv_prog_cc_g=no
1339
fi
1340
rm -f conftest*
1341
 
1342
fi
1343
 
1344
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1345
if test "$ac_test_CFLAGS" = set; then
1346
  CFLAGS="$ac_save_CFLAGS"
1347
elif test $ac_cv_prog_cc_g = yes; then
1348
  if test "$GCC" = yes; then
1349
    CFLAGS="-g -O2"
1350
  else
1351
    CFLAGS="-g"
1352
  fi
1353
else
1354
  if test "$GCC" = yes; then
1355
    CFLAGS="-O2"
1356
  else
1357
    CFLAGS=
1358
  fi
1359
fi
1360
 
1361
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1362 229 erez
echo "configure:1363: checking for POSIXized ISC" >&5
1363 224 markom
if test -d /etc/conf/kconfig.d &&
1364
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1365
then
1366
  echo "$ac_t""yes" 1>&6
1367
  ISC=yes # If later tests want to check for ISC.
1368
  cat >> confdefs.h <<\EOF
1369
#define _POSIX_SOURCE 1
1370
EOF
1371
 
1372
  if test "$GCC" = yes; then
1373
    CC="$CC -posix"
1374
  else
1375
    CC="$CC -Xp"
1376
  fi
1377
else
1378
  echo "$ac_t""no" 1>&6
1379
  ISC=
1380
fi
1381
 
1382
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1383 229 erez
echo "configure:1384: checking how to run the C preprocessor" >&5
1384 224 markom
# On Suns, sometimes $CPP names a directory.
1385
if test -n "$CPP" && test -d "$CPP"; then
1386
  CPP=
1387
fi
1388
if test -z "$CPP"; then
1389
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1390
  echo $ac_n "(cached) $ac_c" 1>&6
1391
else
1392
    # This must be in double quotes, not single quotes, because CPP may get
1393
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1394
  CPP="${CC-cc} -E"
1395
  # On the NeXT, cc -E runs the code through the compiler's parser,
1396
  # not just through cpp.
1397
  cat > conftest.$ac_ext <
1398 229 erez
#line 1399 "configure"
1399 224 markom
#include "confdefs.h"
1400
#include 
1401
Syntax Error
1402
EOF
1403
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1404 229 erez
{ (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1405 224 markom
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1406
if test -z "$ac_err"; then
1407
  :
1408
else
1409
  echo "$ac_err" >&5
1410
  echo "configure: failed program was:" >&5
1411
  cat conftest.$ac_ext >&5
1412
  rm -rf conftest*
1413
  CPP="${CC-cc} -E -traditional-cpp"
1414
  cat > conftest.$ac_ext <
1415 229 erez
#line 1416 "configure"
1416 224 markom
#include "confdefs.h"
1417
#include 
1418
Syntax Error
1419
EOF
1420
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1421 229 erez
{ (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1422 224 markom
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1423
if test -z "$ac_err"; then
1424
  :
1425
else
1426
  echo "$ac_err" >&5
1427
  echo "configure: failed program was:" >&5
1428
  cat conftest.$ac_ext >&5
1429
  rm -rf conftest*
1430
  CPP="${CC-cc} -nologo -E"
1431
  cat > conftest.$ac_ext <
1432 229 erez
#line 1433 "configure"
1433 224 markom
#include "confdefs.h"
1434
#include 
1435
Syntax Error
1436
EOF
1437
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1438 229 erez
{ (eval echo configure:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1439 224 markom
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1440
if test -z "$ac_err"; then
1441
  :
1442
else
1443
  echo "$ac_err" >&5
1444
  echo "configure: failed program was:" >&5
1445
  cat conftest.$ac_ext >&5
1446
  rm -rf conftest*
1447
  CPP=/lib/cpp
1448
fi
1449
rm -f conftest*
1450
fi
1451
rm -f conftest*
1452
fi
1453
rm -f conftest*
1454
  ac_cv_prog_CPP="$CPP"
1455
fi
1456
  CPP="$ac_cv_prog_CPP"
1457
else
1458
  ac_cv_prog_CPP="$CPP"
1459
fi
1460
echo "$ac_t""$CPP" 1>&6
1461
 
1462
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1463 229 erez
echo "configure:1464: checking for ANSI C header files" >&5
1464 224 markom
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1465
  echo $ac_n "(cached) $ac_c" 1>&6
1466
else
1467
  cat > conftest.$ac_ext <
1468 229 erez
#line 1469 "configure"
1469 224 markom
#include "confdefs.h"
1470
#include 
1471
#include 
1472
#include 
1473
#include 
1474
EOF
1475
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1476 229 erez
{ (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1477 224 markom
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1478
if test -z "$ac_err"; then
1479
  rm -rf conftest*
1480
  ac_cv_header_stdc=yes
1481
else
1482
  echo "$ac_err" >&5
1483
  echo "configure: failed program was:" >&5
1484
  cat conftest.$ac_ext >&5
1485
  rm -rf conftest*
1486
  ac_cv_header_stdc=no
1487
fi
1488
rm -f conftest*
1489
 
1490
if test $ac_cv_header_stdc = yes; then
1491
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1492
cat > conftest.$ac_ext <
1493 229 erez
#line 1494 "configure"
1494 224 markom
#include "confdefs.h"
1495
#include 
1496
EOF
1497
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1498
  egrep "memchr" >/dev/null 2>&1; then
1499
  :
1500
else
1501
  rm -rf conftest*
1502
  ac_cv_header_stdc=no
1503
fi
1504
rm -f conftest*
1505
 
1506
fi
1507
 
1508
if test $ac_cv_header_stdc = yes; then
1509
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1510
cat > conftest.$ac_ext <
1511 229 erez
#line 1512 "configure"
1512 224 markom
#include "confdefs.h"
1513
#include 
1514
EOF
1515
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516
  egrep "free" >/dev/null 2>&1; then
1517
  :
1518
else
1519
  rm -rf conftest*
1520
  ac_cv_header_stdc=no
1521
fi
1522
rm -f conftest*
1523
 
1524
fi
1525
 
1526
if test $ac_cv_header_stdc = yes; then
1527
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1528
if test "$cross_compiling" = yes; then
1529
  :
1530
else
1531
  cat > conftest.$ac_ext <
1532 229 erez
#line 1533 "configure"
1533 224 markom
#include "confdefs.h"
1534
#include 
1535
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1536
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1537
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1538
int main () { int i; for (i = 0; i < 256; i++)
1539
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1540
exit (0); }
1541
 
1542
EOF
1543 229 erez
if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1544 224 markom
then
1545
  :
1546
else
1547
  echo "configure: failed program was:" >&5
1548
  cat conftest.$ac_ext >&5
1549
  rm -fr conftest*
1550
  ac_cv_header_stdc=no
1551
fi
1552
rm -fr conftest*
1553
fi
1554
 
1555
fi
1556
fi
1557
 
1558
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1559
if test $ac_cv_header_stdc = yes; then
1560
  cat >> confdefs.h <<\EOF
1561
#define STDC_HEADERS 1
1562
EOF
1563
 
1564
fi
1565
 
1566
 
1567
MAKE_SHELL=/bin/sh
1568
 
1569
 
1570
if test $ac_cv_prog_gcc = yes; then
1571
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1572 229 erez
echo "configure:1573: checking whether ${CC-cc} needs -traditional" >&5
1573 224 markom
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1574
  echo $ac_n "(cached) $ac_c" 1>&6
1575
else
1576
    ac_pattern="Autoconf.*'x'"
1577
  cat > conftest.$ac_ext <
1578 229 erez
#line 1579 "configure"
1579 224 markom
#include "confdefs.h"
1580
#include 
1581
Autoconf TIOCGETP
1582
EOF
1583
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1584
  egrep "$ac_pattern" >/dev/null 2>&1; then
1585
  rm -rf conftest*
1586
  ac_cv_prog_gcc_traditional=yes
1587
else
1588
  rm -rf conftest*
1589
  ac_cv_prog_gcc_traditional=no
1590
fi
1591
rm -f conftest*
1592
 
1593
 
1594
  if test $ac_cv_prog_gcc_traditional = no; then
1595
    cat > conftest.$ac_ext <
1596 229 erez
#line 1597 "configure"
1597 224 markom
#include "confdefs.h"
1598
#include 
1599
Autoconf TCGETA
1600
EOF
1601
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1602
  egrep "$ac_pattern" >/dev/null 2>&1; then
1603
  rm -rf conftest*
1604
  ac_cv_prog_gcc_traditional=yes
1605
fi
1606
rm -f conftest*
1607
 
1608
  fi
1609
fi
1610
 
1611
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1612
  if test $ac_cv_prog_gcc_traditional = yes; then
1613
    CC="$CC -traditional"
1614
  fi
1615
fi
1616
 
1617
 
1618
set -- $CFLAGS
1619
COMPILE_OR1K=unknown
1620 229 erez
case $target in
1621 224 markom
        or1k*|or32*)
1622
                CFLAGS="$CFLAGS -nostdlib"
1623
                COMPILE=or1k
1624
                ;;
1625
esac
1626
 
1627
 
1628
if test x$COMPILE = xor1k; then
1629
  OR1K_EXCEPT_TRUE=
1630
  OR1K_EXCEPT_FALSE='#'
1631
else
1632
  OR1K_EXCEPT_TRUE='#'
1633
  OR1K_EXCEPT_FALSE=
1634
fi
1635
CFLAGS="$CFLAGS -Wall -mhard-div"
1636
 
1637
 
1638
INCLUDES="-I\${top_srcdir}/support"
1639
 
1640
echo $ac_n "checking for working const""... $ac_c" 1>&6
1641 229 erez
echo "configure:1642: checking for working const" >&5
1642 224 markom
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1643
  echo $ac_n "(cached) $ac_c" 1>&6
1644
else
1645
  cat > conftest.$ac_ext <
1646 229 erez
#line 1647 "configure"
1647 224 markom
#include "confdefs.h"
1648
 
1649
int main() {
1650
 
1651
/* Ultrix mips cc rejects this.  */
1652
typedef int charset[2]; const charset x;
1653
/* SunOS 4.1.1 cc rejects this.  */
1654
char const *const *ccp;
1655
char **p;
1656
/* NEC SVR4.0.2 mips cc rejects this.  */
1657
struct point {int x, y;};
1658
static struct point const zero = {0,0};
1659
/* AIX XL C 1.02.0.0 rejects this.
1660
   It does not let you subtract one const X* pointer from another in an arm
1661
   of an if-expression whose if-part is not a constant expression */
1662
const char *g = "string";
1663
ccp = &g + (g ? g-g : 0);
1664
/* HPUX 7.0 cc rejects these. */
1665
++ccp;
1666
p = (char**) ccp;
1667
ccp = (char const *const *) p;
1668
{ /* SCO 3.2v4 cc rejects this.  */
1669
  char *t;
1670
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1671
 
1672
  *t++ = 0;
1673
}
1674
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1675
  int x[] = {25, 17};
1676
  const int *foo = &x[0];
1677
  ++foo;
1678
}
1679
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1680
  typedef const int *iptr;
1681
  iptr p = 0;
1682
  ++p;
1683
}
1684
{ /* AIX XL C 1.02.0.0 rejects this saying
1685
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1686
  struct s { int j; const int *ap[3]; };
1687
  struct s *b; b->j = 5;
1688
}
1689
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1690
  const int foo = 10;
1691
}
1692
 
1693
; return 0; }
1694
EOF
1695 229 erez
if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1696 224 markom
  rm -rf conftest*
1697
  ac_cv_c_const=yes
1698
else
1699
  echo "configure: failed program was:" >&5
1700
  cat conftest.$ac_ext >&5
1701
  rm -rf conftest*
1702
  ac_cv_c_const=no
1703
fi
1704
rm -f conftest*
1705
fi
1706
 
1707
echo "$ac_t""$ac_cv_c_const" 1>&6
1708
if test $ac_cv_c_const = no; then
1709
  cat >> confdefs.h <<\EOF
1710
#define const
1711
EOF
1712
 
1713
fi
1714
 
1715
echo $ac_n "checking for inline""... $ac_c" 1>&6
1716 229 erez
echo "configure:1717: checking for inline" >&5
1717 224 markom
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1718
  echo $ac_n "(cached) $ac_c" 1>&6
1719
else
1720
  ac_cv_c_inline=no
1721
for ac_kw in inline __inline__ __inline; do
1722
  cat > conftest.$ac_ext <
1723 229 erez
#line 1724 "configure"
1724 224 markom
#include "confdefs.h"
1725
 
1726
int main() {
1727
} $ac_kw foo() {
1728
; return 0; }
1729
EOF
1730 229 erez
if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1731 224 markom
  rm -rf conftest*
1732
  ac_cv_c_inline=$ac_kw; break
1733
else
1734
  echo "configure: failed program was:" >&5
1735
  cat conftest.$ac_ext >&5
1736
fi
1737
rm -f conftest*
1738
done
1739
 
1740
fi
1741
 
1742
echo "$ac_t""$ac_cv_c_inline" 1>&6
1743
case "$ac_cv_c_inline" in
1744
  inline | yes) ;;
1745
  no) cat >> confdefs.h <<\EOF
1746
#define inline
1747
EOF
1748
 ;;
1749
  *)  cat >> confdefs.h <
1750
#define inline $ac_cv_c_inline
1751
EOF
1752
 ;;
1753
esac
1754
 
1755
 
1756
trap '' 1 2 15
1757
 
1758
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1759
 
1760
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1761
# Let make expand exec_prefix.
1762
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1763
 
1764
# Any assignment to VPATH causes Sun make to only execute
1765
# the first set of double-colon rules, so remove it if not needed.
1766
# If there is a colon in the path, we need to keep it.
1767
if test "x$srcdir" = x.; then
1768
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1769
fi
1770
 
1771
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1772
 
1773
# Transform confdefs.h into DEFS.
1774
# Protect against shell expansion while executing Makefile rules.
1775
# Protect against Makefile macro expansion.
1776
cat > conftest.defs <<\EOF
1777
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1778
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1779
s%\[%\\&%g
1780
s%\]%\\&%g
1781
s%\$%$$%g
1782
EOF
1783
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1784
rm -f conftest.defs
1785
 
1786
 
1787
# Without the "./", some shells look in PATH for config.status.
1788
: ${CONFIG_STATUS=./config.status}
1789
 
1790
echo creating $CONFIG_STATUS
1791
rm -f $CONFIG_STATUS
1792
cat > $CONFIG_STATUS <
1793
#! /bin/sh
1794
# Generated automatically by configure.
1795
# Run this file to recreate the current configuration.
1796
# This directory was configured as follows,
1797
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1798
#
1799
# $0 $ac_configure_args
1800
#
1801
# Compiler output produced by configure, useful for debugging
1802
# configure, is in ./config.log if it exists.
1803
 
1804
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1805
for ac_option
1806
do
1807
  case "\$ac_option" in
1808
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1809
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1810
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1811
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1812
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1813
    exit 0 ;;
1814
  -help | --help | --hel | --he | --h)
1815
    echo "\$ac_cs_usage"; exit 0 ;;
1816
  *) echo "\$ac_cs_usage"; exit 1 ;;
1817
  esac
1818
done
1819
 
1820
ac_given_srcdir=$srcdir
1821
ac_given_INSTALL="$INSTALL"
1822
 
1823
trap 'rm -fr `echo "Makefile support/Makefile uos/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1824
EOF
1825
cat >> $CONFIG_STATUS <
1826
 
1827
# Protect against being on the right side of a sed subst in config.status.
1828
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1829
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1830
$ac_vpsub
1831
$extrasub
1832
s%@SHELL@%$SHELL%g
1833
s%@CFLAGS@%$CFLAGS%g
1834
s%@CPPFLAGS@%$CPPFLAGS%g
1835
s%@CXXFLAGS@%$CXXFLAGS%g
1836
s%@FFLAGS@%$FFLAGS%g
1837
s%@DEFS@%$DEFS%g
1838
s%@LDFLAGS@%$LDFLAGS%g
1839
s%@LIBS@%$LIBS%g
1840
s%@exec_prefix@%$exec_prefix%g
1841
s%@prefix@%$prefix%g
1842
s%@program_transform_name@%$program_transform_name%g
1843
s%@bindir@%$bindir%g
1844
s%@sbindir@%$sbindir%g
1845
s%@libexecdir@%$libexecdir%g
1846
s%@datadir@%$datadir%g
1847
s%@sysconfdir@%$sysconfdir%g
1848
s%@sharedstatedir@%$sharedstatedir%g
1849
s%@localstatedir@%$localstatedir%g
1850
s%@libdir@%$libdir%g
1851
s%@includedir@%$includedir%g
1852
s%@oldincludedir@%$oldincludedir%g
1853
s%@infodir@%$infodir%g
1854
s%@mandir@%$mandir%g
1855
s%@host@%$host%g
1856
s%@host_alias@%$host_alias%g
1857
s%@host_cpu@%$host_cpu%g
1858
s%@host_vendor@%$host_vendor%g
1859
s%@host_os@%$host_os%g
1860
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1861
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1862
s%@INSTALL_DATA@%$INSTALL_DATA%g
1863
s%@PACKAGE@%$PACKAGE%g
1864
s%@VERSION@%$VERSION%g
1865
s%@ACLOCAL@%$ACLOCAL%g
1866
s%@AUTOCONF@%$AUTOCONF%g
1867
s%@AUTOMAKE@%$AUTOMAKE%g
1868
s%@AUTOHEADER@%$AUTOHEADER%g
1869
s%@MAKEINFO@%$MAKEINFO%g
1870
s%@SET_MAKE@%$SET_MAKE%g
1871
s%@build@%$build%g
1872
s%@build_alias@%$build_alias%g
1873
s%@build_cpu@%$build_cpu%g
1874
s%@build_vendor@%$build_vendor%g
1875
s%@build_os@%$build_os%g
1876
s%@CC@%$CC%g
1877
s%@RANLIB@%$RANLIB%g
1878
s%@LD@%$LD%g
1879
s%@CPP@%$CPP%g
1880
s%@MAKE_SHELL@%$MAKE_SHELL%g
1881
s%@OR1K_EXCEPT_TRUE@%$OR1K_EXCEPT_TRUE%g
1882
s%@OR1K_EXCEPT_FALSE@%$OR1K_EXCEPT_FALSE%g
1883
s%@INCLUDES@%$INCLUDES%g
1884
 
1885
CEOF
1886
EOF
1887
 
1888
cat >> $CONFIG_STATUS <<\EOF
1889
 
1890
# Split the substitutions into bite-sized pieces for seds with
1891
# small command number limits, like on Digital OSF/1 and HP-UX.
1892
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1893
ac_file=1 # Number of current file.
1894
ac_beg=1 # First line for current file.
1895
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1896
ac_more_lines=:
1897
ac_sed_cmds=""
1898
while $ac_more_lines; do
1899
  if test $ac_beg -gt 1; then
1900
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1901
  else
1902
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1903
  fi
1904
  if test ! -s conftest.s$ac_file; then
1905
    ac_more_lines=false
1906
    rm -f conftest.s$ac_file
1907
  else
1908
    if test -z "$ac_sed_cmds"; then
1909
      ac_sed_cmds="sed -f conftest.s$ac_file"
1910
    else
1911
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1912
    fi
1913
    ac_file=`expr $ac_file + 1`
1914
    ac_beg=$ac_end
1915
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1916
  fi
1917
done
1918
if test -z "$ac_sed_cmds"; then
1919
  ac_sed_cmds=cat
1920
fi
1921
EOF
1922
 
1923
cat >> $CONFIG_STATUS <
1924
 
1925
CONFIG_FILES=\${CONFIG_FILES-"Makefile support/Makefile uos/Makefile"}
1926
EOF
1927
cat >> $CONFIG_STATUS <<\EOF
1928
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1929
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1930
  case "$ac_file" in
1931
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1932
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1933
  *) ac_file_in="${ac_file}.in" ;;
1934
  esac
1935
 
1936
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1937
 
1938
  # Remove last slash and all that follows it.  Not all systems have dirname.
1939
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1940
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1941
    # The file is in a subdirectory.
1942
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1943
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1944
    # A "../" for each directory in $ac_dir_suffix.
1945
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1946
  else
1947
    ac_dir_suffix= ac_dots=
1948
  fi
1949
 
1950
  case "$ac_given_srcdir" in
1951
  .)  srcdir=.
1952
      if test -z "$ac_dots"; then top_srcdir=.
1953
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1954
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1955
  *) # Relative path.
1956
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1957
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1958
  esac
1959
 
1960
  case "$ac_given_INSTALL" in
1961
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1962
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1963
  esac
1964
 
1965
  echo creating "$ac_file"
1966
  rm -f "$ac_file"
1967
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1968
  case "$ac_file" in
1969
  *Makefile*) ac_comsub="1i\\
1970
# $configure_input" ;;
1971
  *) ac_comsub= ;;
1972
  esac
1973
 
1974
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1975
  sed -e "$ac_comsub
1976
s%@configure_input@%$configure_input%g
1977
s%@srcdir@%$srcdir%g
1978
s%@top_srcdir@%$top_srcdir%g
1979
s%@INSTALL@%$INSTALL%g
1980
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1981
fi; done
1982
rm -f conftest.s*
1983
 
1984
EOF
1985
cat >> $CONFIG_STATUS <
1986
 
1987
EOF
1988
cat >> $CONFIG_STATUS <<\EOF
1989
 
1990
exit 0
1991
EOF
1992
chmod +x $CONFIG_STATUS
1993
rm -fr confdefs* $ac_clean_files
1994
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1995
 

powered by: WebSVN 2.1.0

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