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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [rdi-share/] [configure] - Blame information for rev 106

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

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

powered by: WebSVN 2.1.0

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