~ubuntu-branches/ubuntu/feisty/cproto/feisty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Carsten Leonhardt
  • Date: 2000-09-02 21:14:55 UTC
  • Revision ID: james.westby@ubuntu.com-20000902211455-ixe8p17zhnuk6jft
Tags: upstream-4.6d
ImportĀ upstreamĀ versionĀ 4.6d

Show diffs side-by-side

added added

removed removed

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