~ubuntu-branches/ubuntu/dapper/dbacl/dapper

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2005-05-07 12:59:53 UTC
  • Revision ID: james.westby@ubuntu.com-20050507125953-xzy2bwkb2qamglwm
Tags: upstream-1.9
ImportĀ upstreamĀ versionĀ 1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for dbacl 1.9.
 
4
#
 
5
# Report bugs to <laird@lbreyer.com>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='dbacl'
 
271
PACKAGE_TARNAME='dbacl'
 
272
PACKAGE_VERSION='1.9'
 
273
PACKAGE_STRING='dbacl 1.9'
 
274
PACKAGE_BUGREPORT='laird@lbreyer.com'
 
275
 
 
276
# Factoring default headers for most tests.
 
277
ac_includes_default="\
 
278
#include <stdio.h>
 
279
#if HAVE_SYS_TYPES_H
 
280
# include <sys/types.h>
 
281
#endif
 
282
#if HAVE_SYS_STAT_H
 
283
# include <sys/stat.h>
 
284
#endif
 
285
#if STDC_HEADERS
 
286
# include <stdlib.h>
 
287
# include <stddef.h>
 
288
#else
 
289
# if HAVE_STDLIB_H
 
290
#  include <stdlib.h>
 
291
# endif
 
292
#endif
 
293
#if HAVE_STRING_H
 
294
# if !STDC_HEADERS && HAVE_MEMORY_H
 
295
#  include <memory.h>
 
296
# endif
 
297
# include <string.h>
 
298
#endif
 
299
#if HAVE_STRINGS_H
 
300
# include <strings.h>
 
301
#endif
 
302
#if HAVE_INTTYPES_H
 
303
# include <inttypes.h>
 
304
#else
 
305
# if HAVE_STDINT_H
 
306
#  include <stdint.h>
 
307
# endif
 
308
#endif
 
309
#if HAVE_UNISTD_H
 
310
# include <unistd.h>
 
311
#endif"
 
312
 
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CFLAGSIEEE LEX LEXLIB LEX_OUTPUT_ROOT YACC LDADDINTER INCLUDESINTER LIBOBJS LTLIBOBJS'
 
314
ac_subst_files=''
 
315
 
 
316
# Initialize some variables set by options.
 
317
ac_init_help=
 
318
ac_init_version=false
 
319
# The variables have the same names as the options, with
 
320
# dashes changed to underlines.
 
321
cache_file=/dev/null
 
322
exec_prefix=NONE
 
323
no_create=
 
324
no_recursion=
 
325
prefix=NONE
 
326
program_prefix=NONE
 
327
program_suffix=NONE
 
328
program_transform_name=s,x,x,
 
329
silent=
 
330
site=
 
331
srcdir=
 
332
verbose=
 
333
x_includes=NONE
 
334
x_libraries=NONE
 
335
 
 
336
# Installation directory options.
 
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
338
# and all the variables that are supposed to be based on exec_prefix
 
339
# by default will actually change.
 
340
# Use braces instead of parens because sh, perl, etc. also accept them.
 
341
bindir='${exec_prefix}/bin'
 
342
sbindir='${exec_prefix}/sbin'
 
343
libexecdir='${exec_prefix}/libexec'
 
344
datadir='${prefix}/share'
 
345
sysconfdir='${prefix}/etc'
 
346
sharedstatedir='${prefix}/com'
 
347
localstatedir='${prefix}/var'
 
348
libdir='${exec_prefix}/lib'
 
349
includedir='${prefix}/include'
 
350
oldincludedir='/usr/include'
 
351
infodir='${prefix}/info'
 
352
mandir='${prefix}/man'
 
353
 
 
354
ac_prev=
 
355
for ac_option
 
356
do
 
357
  # If the previous option needs an argument, assign it.
 
358
  if test -n "$ac_prev"; then
 
359
    eval "$ac_prev=\$ac_option"
 
360
    ac_prev=
 
361
    continue
 
362
  fi
 
363
 
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
365
 
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
367
 
 
368
  case $ac_option in
 
369
 
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
371
    ac_prev=bindir ;;
 
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
373
    bindir=$ac_optarg ;;
 
374
 
 
375
  -build | --build | --buil | --bui | --bu)
 
376
    ac_prev=build_alias ;;
 
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
378
    build_alias=$ac_optarg ;;
 
379
 
 
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
382
    ac_prev=cache_file ;;
 
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
385
    cache_file=$ac_optarg ;;
 
386
 
 
387
  --config-cache | -C)
 
388
    cache_file=config.cache ;;
 
389
 
 
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
391
    ac_prev=datadir ;;
 
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
393
  | --da=*)
 
394
    datadir=$ac_optarg ;;
 
395
 
 
396
  -disable-* | --disable-*)
 
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
398
    # Reject names that are not valid shell variable names.
 
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
401
   { (exit 1); exit 1; }; }
 
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
403
    eval "enable_$ac_feature=no" ;;
 
404
 
 
405
  -enable-* | --enable-*)
 
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
407
    # Reject names that are not valid shell variable names.
 
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
410
   { (exit 1); exit 1; }; }
 
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
412
    case $ac_option in
 
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
414
      *) ac_optarg=yes ;;
 
415
    esac
 
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
417
 
 
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
420
  | --exec | --exe | --ex)
 
421
    ac_prev=exec_prefix ;;
 
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
424
  | --exec=* | --exe=* | --ex=*)
 
425
    exec_prefix=$ac_optarg ;;
 
426
 
 
427
  -gas | --gas | --ga | --g)
 
428
    # Obsolete; use --with-gas.
 
429
    with_gas=yes ;;
 
430
 
 
431
  -help | --help | --hel | --he | -h)
 
432
    ac_init_help=long ;;
 
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
434
    ac_init_help=recursive ;;
 
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
436
    ac_init_help=short ;;
 
437
 
 
438
  -host | --host | --hos | --ho)
 
439
    ac_prev=host_alias ;;
 
440
  -host=* | --host=* | --hos=* | --ho=*)
 
441
    host_alias=$ac_optarg ;;
 
442
 
 
443
  -includedir | --includedir | --includedi | --included | --include \
 
444
  | --includ | --inclu | --incl | --inc)
 
445
    ac_prev=includedir ;;
 
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
448
    includedir=$ac_optarg ;;
 
449
 
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
451
    ac_prev=infodir ;;
 
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
453
    infodir=$ac_optarg ;;
 
454
 
 
455
  -libdir | --libdir | --libdi | --libd)
 
456
    ac_prev=libdir ;;
 
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
458
    libdir=$ac_optarg ;;
 
459
 
 
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
461
  | --libexe | --libex | --libe)
 
462
    ac_prev=libexecdir ;;
 
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
464
  | --libexe=* | --libex=* | --libe=*)
 
465
    libexecdir=$ac_optarg ;;
 
466
 
 
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
468
  | --localstate | --localstat | --localsta | --localst \
 
469
  | --locals | --local | --loca | --loc | --lo)
 
470
    ac_prev=localstatedir ;;
 
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
474
    localstatedir=$ac_optarg ;;
 
475
 
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
477
    ac_prev=mandir ;;
 
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
479
    mandir=$ac_optarg ;;
 
480
 
 
481
  -nfp | --nfp | --nf)
 
482
    # Obsolete; use --without-fp.
 
483
    with_fp=no ;;
 
484
 
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
486
  | --no-cr | --no-c | -n)
 
487
    no_create=yes ;;
 
488
 
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
491
    no_recursion=yes ;;
 
492
 
 
493
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
494
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
495
  | --oldin | --oldi | --old | --ol | --o)
 
496
    ac_prev=oldincludedir ;;
 
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
500
    oldincludedir=$ac_optarg ;;
 
501
 
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
503
    ac_prev=prefix ;;
 
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
505
    prefix=$ac_optarg ;;
 
506
 
 
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
508
  | --program-pre | --program-pr | --program-p)
 
509
    ac_prev=program_prefix ;;
 
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
512
    program_prefix=$ac_optarg ;;
 
513
 
 
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
515
  | --program-suf | --program-su | --program-s)
 
516
    ac_prev=program_suffix ;;
 
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
519
    program_suffix=$ac_optarg ;;
 
520
 
 
521
  -program-transform-name | --program-transform-name \
 
522
  | --program-transform-nam | --program-transform-na \
 
523
  | --program-transform-n | --program-transform- \
 
524
  | --program-transform | --program-transfor \
 
525
  | --program-transfo | --program-transf \
 
526
  | --program-trans | --program-tran \
 
527
  | --progr-tra | --program-tr | --program-t)
 
528
    ac_prev=program_transform_name ;;
 
529
  -program-transform-name=* | --program-transform-name=* \
 
530
  | --program-transform-nam=* | --program-transform-na=* \
 
531
  | --program-transform-n=* | --program-transform-=* \
 
532
  | --program-transform=* | --program-transfor=* \
 
533
  | --program-transfo=* | --program-transf=* \
 
534
  | --program-trans=* | --program-tran=* \
 
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
536
    program_transform_name=$ac_optarg ;;
 
537
 
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
539
  | -silent | --silent | --silen | --sile | --sil)
 
540
    silent=yes ;;
 
541
 
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
543
    ac_prev=sbindir ;;
 
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
545
  | --sbi=* | --sb=*)
 
546
    sbindir=$ac_optarg ;;
 
547
 
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
550
  | --sharedst | --shareds | --shared | --share | --shar \
 
551
  | --sha | --sh)
 
552
    ac_prev=sharedstatedir ;;
 
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
556
  | --sha=* | --sh=*)
 
557
    sharedstatedir=$ac_optarg ;;
 
558
 
 
559
  -site | --site | --sit)
 
560
    ac_prev=site ;;
 
561
  -site=* | --site=* | --sit=*)
 
562
    site=$ac_optarg ;;
 
563
 
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
565
    ac_prev=srcdir ;;
 
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
567
    srcdir=$ac_optarg ;;
 
568
 
 
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
570
  | --syscon | --sysco | --sysc | --sys | --sy)
 
571
    ac_prev=sysconfdir ;;
 
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
574
    sysconfdir=$ac_optarg ;;
 
575
 
 
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
577
    ac_prev=target_alias ;;
 
578
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
579
    target_alias=$ac_optarg ;;
 
580
 
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
582
    verbose=yes ;;
 
583
 
 
584
  -version | --version | --versio | --versi | --vers | -V)
 
585
    ac_init_version=: ;;
 
586
 
 
587
  -with-* | --with-*)
 
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
589
    # Reject names that are not valid shell variable names.
 
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
592
   { (exit 1); exit 1; }; }
 
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
594
    case $ac_option in
 
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
596
      *) ac_optarg=yes ;;
 
597
    esac
 
598
    eval "with_$ac_package='$ac_optarg'" ;;
 
599
 
 
600
  -without-* | --without-*)
 
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
602
    # Reject names that are not valid shell variable names.
 
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
605
   { (exit 1); exit 1; }; }
 
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
607
    eval "with_$ac_package=no" ;;
 
608
 
 
609
  --x)
 
610
    # Obsolete; use --with-x.
 
611
    with_x=yes ;;
 
612
 
 
613
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
614
  | --x-incl | --x-inc | --x-in | --x-i)
 
615
    ac_prev=x_includes ;;
 
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
618
    x_includes=$ac_optarg ;;
 
619
 
 
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
622
    ac_prev=x_libraries ;;
 
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
625
    x_libraries=$ac_optarg ;;
 
626
 
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
628
Try \`$0 --help' for more information." >&2
 
629
   { (exit 1); exit 1; }; }
 
630
    ;;
 
631
 
 
632
  *=*)
 
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
634
    # Reject names that are not valid shell variable names.
 
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
637
   { (exit 1); exit 1; }; }
 
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
639
    eval "$ac_envvar='$ac_optarg'"
 
640
    export $ac_envvar ;;
 
641
 
 
642
  *)
 
643
    # FIXME: should be removed in autoconf 3.0.
 
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
648
    ;;
 
649
 
 
650
  esac
 
651
done
 
652
 
 
653
if test -n "$ac_prev"; then
 
654
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
656
   { (exit 1); exit 1; }; }
 
657
fi
 
658
 
 
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
670
# Be sure to have absolute paths.
 
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
 
673
do
 
674
  eval ac_val=$`echo $ac_var`
 
675
  case $ac_val in
 
676
    [\\/$]* | ?:[\\/]* ) ;;
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
678
   { (exit 1); exit 1; }; };;
 
679
  esac
 
680
done
 
681
 
 
682
# There might be people who depend on the old broken behavior: `$host'
 
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
 
685
build=$build_alias
 
686
host=$host_alias
 
687
target=$target_alias
 
688
 
 
689
# FIXME: To remove some day.
 
690
if test "x$host_alias" != x; then
 
691
  if test "x$build_alias" = x; then
 
692
    cross_compiling=maybe
 
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
694
    If a cross compiler is detected then cross compile mode will be used." >&2
 
695
  elif test "x$build_alias" != "x$host_alias"; then
 
696
    cross_compiling=yes
 
697
  fi
 
698
fi
 
699
 
 
700
ac_tool_prefix=
 
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
702
 
 
703
test "$silent" = yes && exec 6>/dev/null
 
704
 
 
705
 
 
706
# Find the source files, if location was not specified.
 
707
if test -z "$srcdir"; then
 
708
  ac_srcdir_defaulted=yes
 
709
  # Try the directory containing this script, then its parent.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
 
722
  srcdir=$ac_confdir
 
723
  if test ! -r $srcdir/$ac_unique_file; then
 
724
    srcdir=..
 
725
  fi
 
726
else
 
727
  ac_srcdir_defaulted=no
 
728
fi
 
729
if test ! -r $srcdir/$ac_unique_file; then
 
730
  if test "$ac_srcdir_defaulted" = yes; then
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
732
   { (exit 1); exit 1; }; }
 
733
  else
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
735
   { (exit 1); exit 1; }; }
 
736
  fi
 
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
 
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
742
ac_env_build_alias_set=${build_alias+set}
 
743
ac_env_build_alias_value=$build_alias
 
744
ac_cv_env_build_alias_set=${build_alias+set}
 
745
ac_cv_env_build_alias_value=$build_alias
 
746
ac_env_host_alias_set=${host_alias+set}
 
747
ac_env_host_alias_value=$host_alias
 
748
ac_cv_env_host_alias_set=${host_alias+set}
 
749
ac_cv_env_host_alias_value=$host_alias
 
750
ac_env_target_alias_set=${target_alias+set}
 
751
ac_env_target_alias_value=$target_alias
 
752
ac_cv_env_target_alias_set=${target_alias+set}
 
753
ac_cv_env_target_alias_value=$target_alias
 
754
ac_env_CC_set=${CC+set}
 
755
ac_env_CC_value=$CC
 
756
ac_cv_env_CC_set=${CC+set}
 
757
ac_cv_env_CC_value=$CC
 
758
ac_env_CFLAGS_set=${CFLAGS+set}
 
759
ac_env_CFLAGS_value=$CFLAGS
 
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
761
ac_cv_env_CFLAGS_value=$CFLAGS
 
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_env_LDFLAGS_value=$LDFLAGS
 
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
770
ac_env_CPP_set=${CPP+set}
 
771
ac_env_CPP_value=$CPP
 
772
ac_cv_env_CPP_set=${CPP+set}
 
773
ac_cv_env_CPP_value=$CPP
 
774
 
 
775
#
 
776
# Report the --help message.
 
777
#
 
778
if test "$ac_init_help" = "long"; then
 
779
  # Omit some internal or obsolete options to make the list less imposing.
 
780
  # This message is too long to be a string in the A/UX 3.1 sh.
 
781
  cat <<_ACEOF
 
782
\`configure' configures dbacl 1.9 to adapt to many kinds of systems.
 
783
 
 
784
Usage: $0 [OPTION]... [VAR=VALUE]...
 
785
 
 
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
787
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
788
 
 
789
Defaults for the options are specified in brackets.
 
790
 
 
791
Configuration:
 
792
  -h, --help              display this help and exit
 
793
      --help=short        display options specific to this package
 
794
      --help=recursive    display the short help of all the included packages
 
795
  -V, --version           display version information and exit
 
796
  -q, --quiet, --silent   do not print \`checking...' messages
 
797
      --cache-file=FILE   cache test results in FILE [disabled]
 
798
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
799
  -n, --no-create         do not create output files
 
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
801
 
 
802
_ACEOF
 
803
 
 
804
  cat <<_ACEOF
 
805
Installation directories:
 
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
807
                          [$ac_default_prefix]
 
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
809
                          [PREFIX]
 
810
 
 
811
By default, \`make install' will install all the files in
 
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
814
for instance \`--prefix=\$HOME'.
 
815
 
 
816
For better control, use the options below.
 
817
 
 
818
Fine tuning of the installation directories:
 
819
  --bindir=DIR           user executables [EPREFIX/bin]
 
820
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
821
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
822
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
823
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
824
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
825
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
826
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
827
  --includedir=DIR       C header files [PREFIX/include]
 
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
829
  --infodir=DIR          info documentation [PREFIX/info]
 
830
  --mandir=DIR           man documentation [PREFIX/man]
 
831
_ACEOF
 
832
 
 
833
  cat <<\_ACEOF
 
834
 
 
835
Program names:
 
836
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
837
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
838
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
839
 
 
840
System types:
 
841
  --build=BUILD     configure for building on BUILD [guessed]
 
842
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
843
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
844
_ACEOF
 
845
fi
 
846
 
 
847
if test -n "$ac_init_help"; then
 
848
  case $ac_init_help in
 
849
     short | recursive ) echo "Configuration of dbacl 1.9:";;
 
850
   esac
 
851
  cat <<\_ACEOF
 
852
 
 
853
Some influential environment variables:
 
854
  CC          C compiler command
 
855
  CFLAGS      C compiler flags
 
856
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
857
              nonstandard directory <lib dir>
 
858
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
859
              headers in a nonstandard directory <include dir>
 
860
  CPP         C preprocessor
 
861
 
 
862
Use these variables to override the choices made by `configure' or to help
 
863
it to find libraries and programs with nonstandard names/locations.
 
864
 
 
865
Report bugs to <laird@lbreyer.com>.
 
866
_ACEOF
 
867
fi
 
868
 
 
869
if test "$ac_init_help" = "recursive"; then
 
870
  # If there are subdirs, report their specific --help.
 
871
  ac_popdir=`pwd`
 
872
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
873
    test -d $ac_dir || continue
 
874
    ac_builddir=.
 
875
 
 
876
if test "$ac_dir" != .; then
 
877
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
878
  # A "../" for each directory in $ac_dir_suffix.
 
879
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
880
else
 
881
  ac_dir_suffix= ac_top_builddir=
 
882
fi
 
883
 
 
884
case $srcdir in
 
885
  .)  # No --srcdir option.  We are building in place.
 
886
    ac_srcdir=.
 
887
    if test -z "$ac_top_builddir"; then
 
888
       ac_top_srcdir=.
 
889
    else
 
890
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
891
    fi ;;
 
892
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
893
    ac_srcdir=$srcdir$ac_dir_suffix;
 
894
    ac_top_srcdir=$srcdir ;;
 
895
  *) # Relative path.
 
896
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
897
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
898
esac
 
899
 
 
900
# Do not use `cd foo && pwd` to compute absolute paths, because
 
901
# the directories may not exist.
 
902
case `pwd` in
 
903
.) ac_abs_builddir="$ac_dir";;
 
904
*)
 
905
  case "$ac_dir" in
 
906
  .) ac_abs_builddir=`pwd`;;
 
907
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
908
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
909
  esac;;
 
910
esac
 
911
case $ac_abs_builddir in
 
912
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
913
*)
 
914
  case ${ac_top_builddir}. in
 
915
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
916
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
917
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
918
  esac;;
 
919
esac
 
920
case $ac_abs_builddir in
 
921
.) ac_abs_srcdir=$ac_srcdir;;
 
922
*)
 
923
  case $ac_srcdir in
 
924
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
925
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
926
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
927
  esac;;
 
928
esac
 
929
case $ac_abs_builddir in
 
930
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
931
*)
 
932
  case $ac_top_srcdir in
 
933
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
934
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
935
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
936
  esac;;
 
937
esac
 
938
 
 
939
    cd $ac_dir
 
940
    # Check for guested configure; otherwise get Cygnus style configure.
 
941
    if test -f $ac_srcdir/configure.gnu; then
 
942
      echo
 
943
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
944
    elif test -f $ac_srcdir/configure; then
 
945
      echo
 
946
      $SHELL $ac_srcdir/configure  --help=recursive
 
947
    elif test -f $ac_srcdir/configure.ac ||
 
948
           test -f $ac_srcdir/configure.in; then
 
949
      echo
 
950
      $ac_configure --help
 
951
    else
 
952
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
953
    fi
 
954
    cd "$ac_popdir"
 
955
  done
 
956
fi
 
957
 
 
958
test -n "$ac_init_help" && exit 0
 
959
if $ac_init_version; then
 
960
  cat <<\_ACEOF
 
961
dbacl configure 1.9
 
962
generated by GNU Autoconf 2.59
 
963
 
 
964
Copyright (C) 2003 Free Software Foundation, Inc.
 
965
This configure script is free software; the Free Software Foundation
 
966
gives unlimited permission to copy, distribute and modify it.
 
967
_ACEOF
 
968
  exit 0
 
969
fi
 
970
exec 5>config.log
 
971
cat >&5 <<_ACEOF
 
972
This file contains any messages produced by compilers while
 
973
running configure, to aid debugging if configure makes a mistake.
 
974
 
 
975
It was created by dbacl $as_me 1.9, which was
 
976
generated by GNU Autoconf 2.59.  Invocation command line was
 
977
 
 
978
  $ $0 $@
 
979
 
 
980
_ACEOF
 
981
{
 
982
cat <<_ASUNAME
 
983
## --------- ##
 
984
## Platform. ##
 
985
## --------- ##
 
986
 
 
987
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
988
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
989
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
990
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
991
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
992
 
 
993
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
994
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
995
 
 
996
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
997
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
998
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
999
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1000
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1001
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1002
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1003
 
 
1004
_ASUNAME
 
1005
 
 
1006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1007
for as_dir in $PATH
 
1008
do
 
1009
  IFS=$as_save_IFS
 
1010
  test -z "$as_dir" && as_dir=.
 
1011
  echo "PATH: $as_dir"
 
1012
done
 
1013
 
 
1014
} >&5
 
1015
 
 
1016
cat >&5 <<_ACEOF
 
1017
 
 
1018
 
 
1019
## ----------- ##
 
1020
## Core tests. ##
 
1021
## ----------- ##
 
1022
 
 
1023
_ACEOF
 
1024
 
 
1025
 
 
1026
# Keep a trace of the command line.
 
1027
# Strip out --no-create and --no-recursion so they do not pile up.
 
1028
# Strip out --silent because we don't want to record it for future runs.
 
1029
# Also quote any args containing shell meta-characters.
 
1030
# Make two passes to allow for proper duplicate-argument suppression.
 
1031
ac_configure_args=
 
1032
ac_configure_args0=
 
1033
ac_configure_args1=
 
1034
ac_sep=
 
1035
ac_must_keep_next=false
 
1036
for ac_pass in 1 2
 
1037
do
 
1038
  for ac_arg
 
1039
  do
 
1040
    case $ac_arg in
 
1041
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1042
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1043
    | -silent | --silent | --silen | --sile | --sil)
 
1044
      continue ;;
 
1045
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1046
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1047
    esac
 
1048
    case $ac_pass in
 
1049
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1050
    2)
 
1051
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1052
      if test $ac_must_keep_next = true; then
 
1053
        ac_must_keep_next=false # Got value, back to normal.
 
1054
      else
 
1055
        case $ac_arg in
 
1056
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1057
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1058
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1059
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1060
            case "$ac_configure_args0 " in
 
1061
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1062
            esac
 
1063
            ;;
 
1064
          -* ) ac_must_keep_next=true ;;
 
1065
        esac
 
1066
      fi
 
1067
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1068
      # Get rid of the leading space.
 
1069
      ac_sep=" "
 
1070
      ;;
 
1071
    esac
 
1072
  done
 
1073
done
 
1074
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1075
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1076
 
 
1077
# When interrupted or exit'd, cleanup temporary files, and complete
 
1078
# config.log.  We remove comments because anyway the quotes in there
 
1079
# would cause problems or look ugly.
 
1080
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1081
# such as our DU 5.0 friend, will then `close' the trap.
 
1082
trap 'exit_status=$?
 
1083
  # Save into config.log some information that might help in debugging.
 
1084
  {
 
1085
    echo
 
1086
 
 
1087
    cat <<\_ASBOX
 
1088
## ---------------- ##
 
1089
## Cache variables. ##
 
1090
## ---------------- ##
 
1091
_ASBOX
 
1092
    echo
 
1093
    # The following way of writing the cache mishandles newlines in values,
 
1094
{
 
1095
  (set) 2>&1 |
 
1096
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1097
    *ac_space=\ *)
 
1098
      sed -n \
 
1099
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1100
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1101
      ;;
 
1102
    *)
 
1103
      sed -n \
 
1104
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1105
      ;;
 
1106
    esac;
 
1107
}
 
1108
    echo
 
1109
 
 
1110
    cat <<\_ASBOX
 
1111
## ----------------- ##
 
1112
## Output variables. ##
 
1113
## ----------------- ##
 
1114
_ASBOX
 
1115
    echo
 
1116
    for ac_var in $ac_subst_vars
 
1117
    do
 
1118
      eval ac_val=$`echo $ac_var`
 
1119
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1120
    done | sort
 
1121
    echo
 
1122
 
 
1123
    if test -n "$ac_subst_files"; then
 
1124
      cat <<\_ASBOX
 
1125
## ------------- ##
 
1126
## Output files. ##
 
1127
## ------------- ##
 
1128
_ASBOX
 
1129
      echo
 
1130
      for ac_var in $ac_subst_files
 
1131
      do
 
1132
        eval ac_val=$`echo $ac_var`
 
1133
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1134
      done | sort
 
1135
      echo
 
1136
    fi
 
1137
 
 
1138
    if test -s confdefs.h; then
 
1139
      cat <<\_ASBOX
 
1140
## ----------- ##
 
1141
## confdefs.h. ##
 
1142
## ----------- ##
 
1143
_ASBOX
 
1144
      echo
 
1145
      sed "/^$/d" confdefs.h | sort
 
1146
      echo
 
1147
    fi
 
1148
    test "$ac_signal" != 0 &&
 
1149
      echo "$as_me: caught signal $ac_signal"
 
1150
    echo "$as_me: exit $exit_status"
 
1151
  } >&5
 
1152
  rm -f core *.core &&
 
1153
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1154
    exit $exit_status
 
1155
     ' 0
 
1156
for ac_signal in 1 2 13 15; do
 
1157
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1158
done
 
1159
ac_signal=0
 
1160
 
 
1161
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1162
rm -rf conftest* confdefs.h
 
1163
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1164
echo >confdefs.h
 
1165
 
 
1166
# Predefined preprocessor variables.
 
1167
 
 
1168
cat >>confdefs.h <<_ACEOF
 
1169
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1170
_ACEOF
 
1171
 
 
1172
 
 
1173
cat >>confdefs.h <<_ACEOF
 
1174
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1175
_ACEOF
 
1176
 
 
1177
 
 
1178
cat >>confdefs.h <<_ACEOF
 
1179
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1180
_ACEOF
 
1181
 
 
1182
 
 
1183
cat >>confdefs.h <<_ACEOF
 
1184
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1185
_ACEOF
 
1186
 
 
1187
 
 
1188
cat >>confdefs.h <<_ACEOF
 
1189
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1190
_ACEOF
 
1191
 
 
1192
 
 
1193
# Let the site file select an alternate cache file if it wants to.
 
1194
# Prefer explicitly selected file to automatically selected ones.
 
1195
if test -z "$CONFIG_SITE"; then
 
1196
  if test "x$prefix" != xNONE; then
 
1197
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1198
  else
 
1199
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1200
  fi
 
1201
fi
 
1202
for ac_site_file in $CONFIG_SITE; do
 
1203
  if test -r "$ac_site_file"; then
 
1204
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1205
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1206
    sed 's/^/| /' "$ac_site_file" >&5
 
1207
    . "$ac_site_file"
 
1208
  fi
 
1209
done
 
1210
 
 
1211
if test -r "$cache_file"; then
 
1212
  # Some versions of bash will fail to source /dev/null (special
 
1213
  # files actually), so we avoid doing that.
 
1214
  if test -f "$cache_file"; then
 
1215
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1216
echo "$as_me: loading cache $cache_file" >&6;}
 
1217
    case $cache_file in
 
1218
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1219
      *)                      . ./$cache_file;;
 
1220
    esac
 
1221
  fi
 
1222
else
 
1223
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1224
echo "$as_me: creating cache $cache_file" >&6;}
 
1225
  >$cache_file
 
1226
fi
 
1227
 
 
1228
# Check that the precious variables saved in the cache have kept the same
 
1229
# value.
 
1230
ac_cache_corrupted=false
 
1231
for ac_var in `(set) 2>&1 |
 
1232
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1233
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1234
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1235
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1236
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1237
  case $ac_old_set,$ac_new_set in
 
1238
    set,)
 
1239
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1240
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1241
      ac_cache_corrupted=: ;;
 
1242
    ,set)
 
1243
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1244
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1245
      ac_cache_corrupted=: ;;
 
1246
    ,);;
 
1247
    *)
 
1248
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1249
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1250
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1251
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1252
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1253
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1254
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1255
        ac_cache_corrupted=:
 
1256
      fi;;
 
1257
  esac
 
1258
  # Pass precious variables to config.status.
 
1259
  if test "$ac_new_set" = set; then
 
1260
    case $ac_new_val in
 
1261
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1262
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1263
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1264
    esac
 
1265
    case " $ac_configure_args " in
 
1266
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1267
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1268
    esac
 
1269
  fi
 
1270
done
 
1271
if $ac_cache_corrupted; then
 
1272
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1273
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1274
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1275
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1276
   { (exit 1); exit 1; }; }
 
1277
fi
 
1278
 
 
1279
ac_ext=c
 
1280
ac_cpp='$CPP $CPPFLAGS'
 
1281
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1282
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1283
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1284
 
 
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
ac_aux_dir=
 
1312
for ac_dir in config $srcdir/config; do
 
1313
  if test -f $ac_dir/install-sh; then
 
1314
    ac_aux_dir=$ac_dir
 
1315
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1316
    break
 
1317
  elif test -f $ac_dir/install.sh; then
 
1318
    ac_aux_dir=$ac_dir
 
1319
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1320
    break
 
1321
  elif test -f $ac_dir/shtool; then
 
1322
    ac_aux_dir=$ac_dir
 
1323
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1324
    break
 
1325
  fi
 
1326
done
 
1327
if test -z "$ac_aux_dir"; then
 
1328
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
 
1329
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
 
1330
   { (exit 1); exit 1; }; }
 
1331
fi
 
1332
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1333
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1334
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1335
 
 
1336
# Make sure we can run config.sub.
 
1337
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1338
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1339
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1340
   { (exit 1); exit 1; }; }
 
1341
 
 
1342
echo "$as_me:$LINENO: checking build system type" >&5
 
1343
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1344
if test "${ac_cv_build+set}" = set; then
 
1345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1346
else
 
1347
  ac_cv_build_alias=$build_alias
 
1348
test -z "$ac_cv_build_alias" &&
 
1349
  ac_cv_build_alias=`$ac_config_guess`
 
1350
test -z "$ac_cv_build_alias" &&
 
1351
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1352
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1353
   { (exit 1); exit 1; }; }
 
1354
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1355
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1356
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1357
   { (exit 1); exit 1; }; }
 
1358
 
 
1359
fi
 
1360
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1361
echo "${ECHO_T}$ac_cv_build" >&6
 
1362
build=$ac_cv_build
 
1363
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1364
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1365
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1366
 
 
1367
 
 
1368
echo "$as_me:$LINENO: checking host system type" >&5
 
1369
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1370
if test "${ac_cv_host+set}" = set; then
 
1371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1372
else
 
1373
  ac_cv_host_alias=$host_alias
 
1374
test -z "$ac_cv_host_alias" &&
 
1375
  ac_cv_host_alias=$ac_cv_build_alias
 
1376
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1377
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1378
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1379
   { (exit 1); exit 1; }; }
 
1380
 
 
1381
fi
 
1382
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1383
echo "${ECHO_T}$ac_cv_host" >&6
 
1384
host=$ac_cv_host
 
1385
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1386
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1387
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1388
 
 
1389
 
 
1390
echo "$as_me:$LINENO: checking target system type" >&5
 
1391
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1392
if test "${ac_cv_target+set}" = set; then
 
1393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1394
else
 
1395
  ac_cv_target_alias=$target_alias
 
1396
test "x$ac_cv_target_alias" = "x" &&
 
1397
  ac_cv_target_alias=$ac_cv_host_alias
 
1398
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1399
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1400
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1401
   { (exit 1); exit 1; }; }
 
1402
 
 
1403
fi
 
1404
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1405
echo "${ECHO_T}$ac_cv_target" >&6
 
1406
target=$ac_cv_target
 
1407
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1408
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1409
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1410
 
 
1411
 
 
1412
# The aliases save the names the user supplied, while $host etc.
 
1413
# will get canonicalized.
 
1414
test -n "$target_alias" &&
 
1415
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1416
    NONENONEs,x,x, &&
 
1417
  program_prefix=${target_alias}-
 
1418
 
 
1419
cat >>confdefs.h <<\_ACEOF
 
1420
#define _GNU_SOURCE 1
 
1421
_ACEOF
 
1422
 
 
1423
 
 
1424
am__api_version="1.4"
 
1425
# Find a good install program.  We prefer a C program (faster),
 
1426
# so one script is as good as another.  But avoid the broken or
 
1427
# incompatible versions:
 
1428
# SysV /etc/install, /usr/sbin/install
 
1429
# SunOS /usr/etc/install
 
1430
# IRIX /sbin/install
 
1431
# AIX /bin/install
 
1432
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1433
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1434
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1435
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1436
# OS/2's system install, which has a completely different semantic
 
1437
# ./install, which can be erroneously created by make from ./install.sh.
 
1438
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1439
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1440
if test -z "$INSTALL"; then
 
1441
if test "${ac_cv_path_install+set}" = set; then
 
1442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1443
else
 
1444
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1445
for as_dir in $PATH
 
1446
do
 
1447
  IFS=$as_save_IFS
 
1448
  test -z "$as_dir" && as_dir=.
 
1449
  # Account for people who put trailing slashes in PATH elements.
 
1450
case $as_dir/ in
 
1451
  ./ | .// | /cC/* | \
 
1452
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1453
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1454
  /usr/ucb/* ) ;;
 
1455
  *)
 
1456
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1457
    # Don't use installbsd from OSF since it installs stuff as root
 
1458
    # by default.
 
1459
    for ac_prog in ginstall scoinst install; do
 
1460
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1461
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1462
          if test $ac_prog = install &&
 
1463
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1464
            # AIX install.  It has an incompatible calling convention.
 
1465
            :
 
1466
          elif test $ac_prog = install &&
 
1467
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1468
            # program-specific install script used by HP pwplus--don't use.
 
1469
            :
 
1470
          else
 
1471
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1472
            break 3
 
1473
          fi
 
1474
        fi
 
1475
      done
 
1476
    done
 
1477
    ;;
 
1478
esac
 
1479
done
 
1480
 
 
1481
 
 
1482
fi
 
1483
  if test "${ac_cv_path_install+set}" = set; then
 
1484
    INSTALL=$ac_cv_path_install
 
1485
  else
 
1486
    # As a last resort, use the slow shell script.  We don't cache a
 
1487
    # path for INSTALL within a source directory, because that will
 
1488
    # break other packages using the cache if that directory is
 
1489
    # removed, or if the path is relative.
 
1490
    INSTALL=$ac_install_sh
 
1491
  fi
 
1492
fi
 
1493
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1494
echo "${ECHO_T}$INSTALL" >&6
 
1495
 
 
1496
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1497
# It thinks the first close brace ends the variable substitution.
 
1498
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1499
 
 
1500
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1501
 
 
1502
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1503
 
 
1504
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1505
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1506
# Just in case
 
1507
sleep 1
 
1508
echo timestamp > conftestfile
 
1509
# Do `set' in a subshell so we don't clobber the current shell's
 
1510
# arguments.  Must try -L first in case configure is actually a
 
1511
# symlink; some systems play weird games with the mod time of symlinks
 
1512
# (eg FreeBSD returns the mod time of the symlink's containing
 
1513
# directory).
 
1514
if (
 
1515
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1516
   if test "$*" = "X"; then
 
1517
      # -L didn't work.
 
1518
      set X `ls -t $srcdir/configure conftestfile`
 
1519
   fi
 
1520
   if test "$*" != "X $srcdir/configure conftestfile" \
 
1521
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1522
 
 
1523
      # If neither matched, then we have a broken ls.  This can happen
 
1524
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1525
      # broken ls alias from the environment.  This has actually
 
1526
      # happened.  Such a system could not be considered "sane".
 
1527
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1528
alias in your environment" >&5
 
1529
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1530
alias in your environment" >&2;}
 
1531
   { (exit 1); exit 1; }; }
 
1532
   fi
 
1533
 
 
1534
   test "$2" = conftestfile
 
1535
   )
 
1536
then
 
1537
   # Ok.
 
1538
   :
 
1539
else
 
1540
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1541
Check your system clock" >&5
 
1542
echo "$as_me: error: newly created file is older than distributed files!
 
1543
Check your system clock" >&2;}
 
1544
   { (exit 1); exit 1; }; }
 
1545
fi
 
1546
rm -f conftest*
 
1547
echo "$as_me:$LINENO: result: yes" >&5
 
1548
echo "${ECHO_T}yes" >&6
 
1549
test "$program_prefix" != NONE &&
 
1550
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1551
# Use a double $ so make ignores it.
 
1552
test "$program_suffix" != NONE &&
 
1553
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1554
# Double any \ or $.  echo might interpret backslashes.
 
1555
# By default was `s,x,x', remove it if useless.
 
1556
cat <<\_ACEOF >conftest.sed
 
1557
s/[\\$]/&&/g;s/;s,x,x,$//
 
1558
_ACEOF
 
1559
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1560
rm conftest.sed
 
1561
 
 
1562
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1563
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1564
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1565
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1567
else
 
1568
  cat >conftest.make <<\_ACEOF
 
1569
all:
 
1570
        @echo 'ac_maketemp="$(MAKE)"'
 
1571
_ACEOF
 
1572
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1573
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1574
if test -n "$ac_maketemp"; then
 
1575
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1576
else
 
1577
  eval ac_cv_prog_make_${ac_make}_set=no
 
1578
fi
 
1579
rm -f conftest.make
 
1580
fi
 
1581
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1582
  echo "$as_me:$LINENO: result: yes" >&5
 
1583
echo "${ECHO_T}yes" >&6
 
1584
  SET_MAKE=
 
1585
else
 
1586
  echo "$as_me:$LINENO: result: no" >&5
 
1587
echo "${ECHO_T}no" >&6
 
1588
  SET_MAKE="MAKE=${MAKE-make}"
 
1589
fi
 
1590
 
 
1591
 
 
1592
PACKAGE=dbacl
 
1593
 
 
1594
VERSION=1.9
 
1595
 
 
1596
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
1597
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1598
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1599
   { (exit 1); exit 1; }; }
 
1600
fi
 
1601
 
 
1602
 
 
1603
 
 
1604
missing_dir=`cd $ac_aux_dir && pwd`
 
1605
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
 
1606
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
 
1607
# Run test in a subshell; some versions of sh will print an error if
 
1608
# an executable is not found, even if stderr is redirected.
 
1609
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1610
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1611
   ACLOCAL=aclocal-${am__api_version}
 
1612
   echo "$as_me:$LINENO: result: found" >&5
 
1613
echo "${ECHO_T}found" >&6
 
1614
else
 
1615
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
 
1616
   echo "$as_me:$LINENO: result: missing" >&5
 
1617
echo "${ECHO_T}missing" >&6
 
1618
fi
 
1619
 
 
1620
echo "$as_me:$LINENO: checking for working autoconf" >&5
 
1621
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 
1622
# Run test in a subshell; some versions of sh will print an error if
 
1623
# an executable is not found, even if stderr is redirected.
 
1624
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1625
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
1626
   AUTOCONF=autoconf
 
1627
   echo "$as_me:$LINENO: result: found" >&5
 
1628
echo "${ECHO_T}found" >&6
 
1629
else
 
1630
   AUTOCONF="$missing_dir/missing autoconf"
 
1631
   echo "$as_me:$LINENO: result: missing" >&5
 
1632
echo "${ECHO_T}missing" >&6
 
1633
fi
 
1634
 
 
1635
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
 
1636
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
 
1637
# Run test in a subshell; some versions of sh will print an error if
 
1638
# an executable is not found, even if stderr is redirected.
 
1639
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1640
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1641
   AUTOMAKE=automake-${am__api_version}
 
1642
   echo "$as_me:$LINENO: result: found" >&5
 
1643
echo "${ECHO_T}found" >&6
 
1644
else
 
1645
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
 
1646
   echo "$as_me:$LINENO: result: missing" >&5
 
1647
echo "${ECHO_T}missing" >&6
 
1648
fi
 
1649
 
 
1650
echo "$as_me:$LINENO: checking for working autoheader" >&5
 
1651
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 
1652
# Run test in a subshell; some versions of sh will print an error if
 
1653
# an executable is not found, even if stderr is redirected.
 
1654
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1655
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
1656
   AUTOHEADER=autoheader
 
1657
   echo "$as_me:$LINENO: result: found" >&5
 
1658
echo "${ECHO_T}found" >&6
 
1659
else
 
1660
   AUTOHEADER="$missing_dir/missing autoheader"
 
1661
   echo "$as_me:$LINENO: result: missing" >&5
 
1662
echo "${ECHO_T}missing" >&6
 
1663
fi
 
1664
 
 
1665
echo "$as_me:$LINENO: checking for working makeinfo" >&5
 
1666
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 
1667
# Run test in a subshell; some versions of sh will print an error if
 
1668
# an executable is not found, even if stderr is redirected.
 
1669
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1670
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
1671
   MAKEINFO=makeinfo
 
1672
   echo "$as_me:$LINENO: result: found" >&5
 
1673
echo "${ECHO_T}found" >&6
 
1674
else
 
1675
   MAKEINFO="$missing_dir/missing makeinfo"
 
1676
   echo "$as_me:$LINENO: result: missing" >&5
 
1677
echo "${ECHO_T}missing" >&6
 
1678
fi
 
1679
 
 
1680
 
 
1681
 
 
1682
          ac_config_headers="$ac_config_headers src/config.h"
 
1683
 
 
1684
          ac_config_commands="$ac_config_commands default-1"
 
1685
 
 
1686
 
 
1687
## Checks for host information.
 
1688
ac_ext=c
 
1689
ac_cpp='$CPP $CPPFLAGS'
 
1690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1693
if test -n "$ac_tool_prefix"; then
 
1694
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1695
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1696
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1698
if test "${ac_cv_prog_CC+set}" = set; then
 
1699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1700
else
 
1701
  if test -n "$CC"; then
 
1702
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1703
else
 
1704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1705
for as_dir in $PATH
 
1706
do
 
1707
  IFS=$as_save_IFS
 
1708
  test -z "$as_dir" && as_dir=.
 
1709
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1710
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1711
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1712
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1713
    break 2
 
1714
  fi
 
1715
done
 
1716
done
 
1717
 
 
1718
fi
 
1719
fi
 
1720
CC=$ac_cv_prog_CC
 
1721
if test -n "$CC"; then
 
1722
  echo "$as_me:$LINENO: result: $CC" >&5
 
1723
echo "${ECHO_T}$CC" >&6
 
1724
else
 
1725
  echo "$as_me:$LINENO: result: no" >&5
 
1726
echo "${ECHO_T}no" >&6
 
1727
fi
 
1728
 
 
1729
fi
 
1730
if test -z "$ac_cv_prog_CC"; then
 
1731
  ac_ct_CC=$CC
 
1732
  # Extract the first word of "gcc", so it can be a program name with args.
 
1733
set dummy gcc; ac_word=$2
 
1734
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1736
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1738
else
 
1739
  if test -n "$ac_ct_CC"; then
 
1740
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1741
else
 
1742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1743
for as_dir in $PATH
 
1744
do
 
1745
  IFS=$as_save_IFS
 
1746
  test -z "$as_dir" && as_dir=.
 
1747
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1748
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1749
    ac_cv_prog_ac_ct_CC="gcc"
 
1750
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1751
    break 2
 
1752
  fi
 
1753
done
 
1754
done
 
1755
 
 
1756
fi
 
1757
fi
 
1758
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1759
if test -n "$ac_ct_CC"; then
 
1760
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1761
echo "${ECHO_T}$ac_ct_CC" >&6
 
1762
else
 
1763
  echo "$as_me:$LINENO: result: no" >&5
 
1764
echo "${ECHO_T}no" >&6
 
1765
fi
 
1766
 
 
1767
  CC=$ac_ct_CC
 
1768
else
 
1769
  CC="$ac_cv_prog_CC"
 
1770
fi
 
1771
 
 
1772
if test -z "$CC"; then
 
1773
  if test -n "$ac_tool_prefix"; then
 
1774
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1775
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1776
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1778
if test "${ac_cv_prog_CC+set}" = set; then
 
1779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1780
else
 
1781
  if test -n "$CC"; then
 
1782
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1783
else
 
1784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1785
for as_dir in $PATH
 
1786
do
 
1787
  IFS=$as_save_IFS
 
1788
  test -z "$as_dir" && as_dir=.
 
1789
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1790
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1791
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1792
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1793
    break 2
 
1794
  fi
 
1795
done
 
1796
done
 
1797
 
 
1798
fi
 
1799
fi
 
1800
CC=$ac_cv_prog_CC
 
1801
if test -n "$CC"; then
 
1802
  echo "$as_me:$LINENO: result: $CC" >&5
 
1803
echo "${ECHO_T}$CC" >&6
 
1804
else
 
1805
  echo "$as_me:$LINENO: result: no" >&5
 
1806
echo "${ECHO_T}no" >&6
 
1807
fi
 
1808
 
 
1809
fi
 
1810
if test -z "$ac_cv_prog_CC"; then
 
1811
  ac_ct_CC=$CC
 
1812
  # Extract the first word of "cc", so it can be a program name with args.
 
1813
set dummy cc; ac_word=$2
 
1814
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1816
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1818
else
 
1819
  if test -n "$ac_ct_CC"; then
 
1820
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1821
else
 
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1823
for as_dir in $PATH
 
1824
do
 
1825
  IFS=$as_save_IFS
 
1826
  test -z "$as_dir" && as_dir=.
 
1827
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1828
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1829
    ac_cv_prog_ac_ct_CC="cc"
 
1830
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1831
    break 2
 
1832
  fi
 
1833
done
 
1834
done
 
1835
 
 
1836
fi
 
1837
fi
 
1838
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1839
if test -n "$ac_ct_CC"; then
 
1840
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1841
echo "${ECHO_T}$ac_ct_CC" >&6
 
1842
else
 
1843
  echo "$as_me:$LINENO: result: no" >&5
 
1844
echo "${ECHO_T}no" >&6
 
1845
fi
 
1846
 
 
1847
  CC=$ac_ct_CC
 
1848
else
 
1849
  CC="$ac_cv_prog_CC"
 
1850
fi
 
1851
 
 
1852
fi
 
1853
if test -z "$CC"; then
 
1854
  # Extract the first word of "cc", so it can be a program name with args.
 
1855
set dummy cc; ac_word=$2
 
1856
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1858
if test "${ac_cv_prog_CC+set}" = set; then
 
1859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1860
else
 
1861
  if test -n "$CC"; then
 
1862
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1863
else
 
1864
  ac_prog_rejected=no
 
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1866
for as_dir in $PATH
 
1867
do
 
1868
  IFS=$as_save_IFS
 
1869
  test -z "$as_dir" && as_dir=.
 
1870
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1871
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1872
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1873
       ac_prog_rejected=yes
 
1874
       continue
 
1875
     fi
 
1876
    ac_cv_prog_CC="cc"
 
1877
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1878
    break 2
 
1879
  fi
 
1880
done
 
1881
done
 
1882
 
 
1883
if test $ac_prog_rejected = yes; then
 
1884
  # We found a bogon in the path, so make sure we never use it.
 
1885
  set dummy $ac_cv_prog_CC
 
1886
  shift
 
1887
  if test $# != 0; then
 
1888
    # We chose a different compiler from the bogus one.
 
1889
    # However, it has the same basename, so the bogon will be chosen
 
1890
    # first if we set CC to just the basename; use the full file name.
 
1891
    shift
 
1892
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1893
  fi
 
1894
fi
 
1895
fi
 
1896
fi
 
1897
CC=$ac_cv_prog_CC
 
1898
if test -n "$CC"; then
 
1899
  echo "$as_me:$LINENO: result: $CC" >&5
 
1900
echo "${ECHO_T}$CC" >&6
 
1901
else
 
1902
  echo "$as_me:$LINENO: result: no" >&5
 
1903
echo "${ECHO_T}no" >&6
 
1904
fi
 
1905
 
 
1906
fi
 
1907
if test -z "$CC"; then
 
1908
  if test -n "$ac_tool_prefix"; then
 
1909
  for ac_prog in cl
 
1910
  do
 
1911
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1912
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1913
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1915
if test "${ac_cv_prog_CC+set}" = set; then
 
1916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1917
else
 
1918
  if test -n "$CC"; then
 
1919
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1920
else
 
1921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1922
for as_dir in $PATH
 
1923
do
 
1924
  IFS=$as_save_IFS
 
1925
  test -z "$as_dir" && as_dir=.
 
1926
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1927
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1928
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1929
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1930
    break 2
 
1931
  fi
 
1932
done
 
1933
done
 
1934
 
 
1935
fi
 
1936
fi
 
1937
CC=$ac_cv_prog_CC
 
1938
if test -n "$CC"; then
 
1939
  echo "$as_me:$LINENO: result: $CC" >&5
 
1940
echo "${ECHO_T}$CC" >&6
 
1941
else
 
1942
  echo "$as_me:$LINENO: result: no" >&5
 
1943
echo "${ECHO_T}no" >&6
 
1944
fi
 
1945
 
 
1946
    test -n "$CC" && break
 
1947
  done
 
1948
fi
 
1949
if test -z "$CC"; then
 
1950
  ac_ct_CC=$CC
 
1951
  for ac_prog in cl
 
1952
do
 
1953
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1954
set dummy $ac_prog; ac_word=$2
 
1955
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1957
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1959
else
 
1960
  if test -n "$ac_ct_CC"; then
 
1961
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1962
else
 
1963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1964
for as_dir in $PATH
 
1965
do
 
1966
  IFS=$as_save_IFS
 
1967
  test -z "$as_dir" && as_dir=.
 
1968
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1969
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1970
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1971
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1972
    break 2
 
1973
  fi
 
1974
done
 
1975
done
 
1976
 
 
1977
fi
 
1978
fi
 
1979
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1980
if test -n "$ac_ct_CC"; then
 
1981
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1982
echo "${ECHO_T}$ac_ct_CC" >&6
 
1983
else
 
1984
  echo "$as_me:$LINENO: result: no" >&5
 
1985
echo "${ECHO_T}no" >&6
 
1986
fi
 
1987
 
 
1988
  test -n "$ac_ct_CC" && break
 
1989
done
 
1990
 
 
1991
  CC=$ac_ct_CC
 
1992
fi
 
1993
 
 
1994
fi
 
1995
 
 
1996
 
 
1997
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1998
See \`config.log' for more details." >&5
 
1999
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2000
See \`config.log' for more details." >&2;}
 
2001
   { (exit 1); exit 1; }; }
 
2002
 
 
2003
# Provide some information about the compiler.
 
2004
echo "$as_me:$LINENO:" \
 
2005
     "checking for C compiler version" >&5
 
2006
ac_compiler=`set X $ac_compile; echo $2`
 
2007
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2008
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2009
  ac_status=$?
 
2010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2011
  (exit $ac_status); }
 
2012
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2013
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2014
  ac_status=$?
 
2015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2016
  (exit $ac_status); }
 
2017
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2018
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2019
  ac_status=$?
 
2020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2021
  (exit $ac_status); }
 
2022
 
 
2023
cat >conftest.$ac_ext <<_ACEOF
 
2024
/* confdefs.h.  */
 
2025
_ACEOF
 
2026
cat confdefs.h >>conftest.$ac_ext
 
2027
cat >>conftest.$ac_ext <<_ACEOF
 
2028
/* end confdefs.h.  */
 
2029
 
 
2030
int
 
2031
main ()
 
2032
{
 
2033
 
 
2034
  ;
 
2035
  return 0;
 
2036
}
 
2037
_ACEOF
 
2038
ac_clean_files_save=$ac_clean_files
 
2039
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2040
# Try to create an executable without -o first, disregard a.out.
 
2041
# It will help us diagnose broken compilers, and finding out an intuition
 
2042
# of exeext.
 
2043
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2044
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2045
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2046
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2047
  (eval $ac_link_default) 2>&5
 
2048
  ac_status=$?
 
2049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2050
  (exit $ac_status); }; then
 
2051
  # Find the output, starting from the most likely.  This scheme is
 
2052
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2053
# resort.
 
2054
 
 
2055
# Be careful to initialize this variable, since it used to be cached.
 
2056
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2057
ac_cv_exeext=
 
2058
# b.out is created by i960 compilers.
 
2059
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2060
do
 
2061
  test -f "$ac_file" || continue
 
2062
  case $ac_file in
 
2063
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2064
        ;;
 
2065
    conftest.$ac_ext )
 
2066
        # This is the source file.
 
2067
        ;;
 
2068
    [ab].out )
 
2069
        # We found the default executable, but exeext='' is most
 
2070
        # certainly right.
 
2071
        break;;
 
2072
    *.* )
 
2073
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2074
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2075
        # but it would be cool to find out if it's true.  Does anybody
 
2076
        # maintain Libtool? --akim.
 
2077
        export ac_cv_exeext
 
2078
        break;;
 
2079
    * )
 
2080
        break;;
 
2081
  esac
 
2082
done
 
2083
else
 
2084
  echo "$as_me: failed program was:" >&5
 
2085
sed 's/^/| /' conftest.$ac_ext >&5
 
2086
 
 
2087
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2088
See \`config.log' for more details." >&5
 
2089
echo "$as_me: error: C compiler cannot create executables
 
2090
See \`config.log' for more details." >&2;}
 
2091
   { (exit 77); exit 77; }; }
 
2092
fi
 
2093
 
 
2094
ac_exeext=$ac_cv_exeext
 
2095
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2096
echo "${ECHO_T}$ac_file" >&6
 
2097
 
 
2098
# Check the compiler produces executables we can run.  If not, either
 
2099
# the compiler is broken, or we cross compile.
 
2100
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2101
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2102
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2103
# If not cross compiling, check that we can run a simple program.
 
2104
if test "$cross_compiling" != yes; then
 
2105
  if { ac_try='./$ac_file'
 
2106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2107
  (eval $ac_try) 2>&5
 
2108
  ac_status=$?
 
2109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2110
  (exit $ac_status); }; }; then
 
2111
    cross_compiling=no
 
2112
  else
 
2113
    if test "$cross_compiling" = maybe; then
 
2114
        cross_compiling=yes
 
2115
    else
 
2116
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2117
If you meant to cross compile, use \`--host'.
 
2118
See \`config.log' for more details." >&5
 
2119
echo "$as_me: error: cannot run C compiled programs.
 
2120
If you meant to cross compile, use \`--host'.
 
2121
See \`config.log' for more details." >&2;}
 
2122
   { (exit 1); exit 1; }; }
 
2123
    fi
 
2124
  fi
 
2125
fi
 
2126
echo "$as_me:$LINENO: result: yes" >&5
 
2127
echo "${ECHO_T}yes" >&6
 
2128
 
 
2129
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2130
ac_clean_files=$ac_clean_files_save
 
2131
# Check the compiler produces executables we can run.  If not, either
 
2132
# the compiler is broken, or we cross compile.
 
2133
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2134
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2135
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2136
echo "${ECHO_T}$cross_compiling" >&6
 
2137
 
 
2138
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2139
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2141
  (eval $ac_link) 2>&5
 
2142
  ac_status=$?
 
2143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2144
  (exit $ac_status); }; then
 
2145
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2146
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2147
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2148
# `rm'.
 
2149
for ac_file in conftest.exe conftest conftest.*; do
 
2150
  test -f "$ac_file" || continue
 
2151
  case $ac_file in
 
2152
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2153
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2154
          export ac_cv_exeext
 
2155
          break;;
 
2156
    * ) break;;
 
2157
  esac
 
2158
done
 
2159
else
 
2160
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2161
See \`config.log' for more details." >&5
 
2162
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2163
See \`config.log' for more details." >&2;}
 
2164
   { (exit 1); exit 1; }; }
 
2165
fi
 
2166
 
 
2167
rm -f conftest$ac_cv_exeext
 
2168
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2169
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2170
 
 
2171
rm -f conftest.$ac_ext
 
2172
EXEEXT=$ac_cv_exeext
 
2173
ac_exeext=$EXEEXT
 
2174
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2175
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2176
if test "${ac_cv_objext+set}" = set; then
 
2177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2178
else
 
2179
  cat >conftest.$ac_ext <<_ACEOF
 
2180
/* confdefs.h.  */
 
2181
_ACEOF
 
2182
cat confdefs.h >>conftest.$ac_ext
 
2183
cat >>conftest.$ac_ext <<_ACEOF
 
2184
/* end confdefs.h.  */
 
2185
 
 
2186
int
 
2187
main ()
 
2188
{
 
2189
 
 
2190
  ;
 
2191
  return 0;
 
2192
}
 
2193
_ACEOF
 
2194
rm -f conftest.o conftest.obj
 
2195
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2196
  (eval $ac_compile) 2>&5
 
2197
  ac_status=$?
 
2198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2199
  (exit $ac_status); }; then
 
2200
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2201
  case $ac_file in
 
2202
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2203
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2204
       break;;
 
2205
  esac
 
2206
done
 
2207
else
 
2208
  echo "$as_me: failed program was:" >&5
 
2209
sed 's/^/| /' conftest.$ac_ext >&5
 
2210
 
 
2211
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2212
See \`config.log' for more details." >&5
 
2213
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2214
See \`config.log' for more details." >&2;}
 
2215
   { (exit 1); exit 1; }; }
 
2216
fi
 
2217
 
 
2218
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2219
fi
 
2220
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2221
echo "${ECHO_T}$ac_cv_objext" >&6
 
2222
OBJEXT=$ac_cv_objext
 
2223
ac_objext=$OBJEXT
 
2224
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2225
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2226
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2228
else
 
2229
  cat >conftest.$ac_ext <<_ACEOF
 
2230
/* confdefs.h.  */
 
2231
_ACEOF
 
2232
cat confdefs.h >>conftest.$ac_ext
 
2233
cat >>conftest.$ac_ext <<_ACEOF
 
2234
/* end confdefs.h.  */
 
2235
 
 
2236
int
 
2237
main ()
 
2238
{
 
2239
#ifndef __GNUC__
 
2240
       choke me
 
2241
#endif
 
2242
 
 
2243
  ;
 
2244
  return 0;
 
2245
}
 
2246
_ACEOF
 
2247
rm -f conftest.$ac_objext
 
2248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2249
  (eval $ac_compile) 2>conftest.er1
 
2250
  ac_status=$?
 
2251
  grep -v '^ *+' conftest.er1 >conftest.err
 
2252
  rm -f conftest.er1
 
2253
  cat conftest.err >&5
 
2254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2255
  (exit $ac_status); } &&
 
2256
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2258
  (eval $ac_try) 2>&5
 
2259
  ac_status=$?
 
2260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2261
  (exit $ac_status); }; } &&
 
2262
         { ac_try='test -s conftest.$ac_objext'
 
2263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2264
  (eval $ac_try) 2>&5
 
2265
  ac_status=$?
 
2266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2267
  (exit $ac_status); }; }; then
 
2268
  ac_compiler_gnu=yes
 
2269
else
 
2270
  echo "$as_me: failed program was:" >&5
 
2271
sed 's/^/| /' conftest.$ac_ext >&5
 
2272
 
 
2273
ac_compiler_gnu=no
 
2274
fi
 
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2276
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2277
 
 
2278
fi
 
2279
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2280
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2281
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2282
ac_test_CFLAGS=${CFLAGS+set}
 
2283
ac_save_CFLAGS=$CFLAGS
 
2284
CFLAGS="-g"
 
2285
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2286
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2287
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2289
else
 
2290
  cat >conftest.$ac_ext <<_ACEOF
 
2291
/* confdefs.h.  */
 
2292
_ACEOF
 
2293
cat confdefs.h >>conftest.$ac_ext
 
2294
cat >>conftest.$ac_ext <<_ACEOF
 
2295
/* end confdefs.h.  */
 
2296
 
 
2297
int
 
2298
main ()
 
2299
{
 
2300
 
 
2301
  ;
 
2302
  return 0;
 
2303
}
 
2304
_ACEOF
 
2305
rm -f conftest.$ac_objext
 
2306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2307
  (eval $ac_compile) 2>conftest.er1
 
2308
  ac_status=$?
 
2309
  grep -v '^ *+' conftest.er1 >conftest.err
 
2310
  rm -f conftest.er1
 
2311
  cat conftest.err >&5
 
2312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2313
  (exit $ac_status); } &&
 
2314
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2316
  (eval $ac_try) 2>&5
 
2317
  ac_status=$?
 
2318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2319
  (exit $ac_status); }; } &&
 
2320
         { ac_try='test -s conftest.$ac_objext'
 
2321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2322
  (eval $ac_try) 2>&5
 
2323
  ac_status=$?
 
2324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2325
  (exit $ac_status); }; }; then
 
2326
  ac_cv_prog_cc_g=yes
 
2327
else
 
2328
  echo "$as_me: failed program was:" >&5
 
2329
sed 's/^/| /' conftest.$ac_ext >&5
 
2330
 
 
2331
ac_cv_prog_cc_g=no
 
2332
fi
 
2333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2334
fi
 
2335
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2336
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2337
if test "$ac_test_CFLAGS" = set; then
 
2338
  CFLAGS=$ac_save_CFLAGS
 
2339
elif test $ac_cv_prog_cc_g = yes; then
 
2340
  if test "$GCC" = yes; then
 
2341
    CFLAGS="-g -O2"
 
2342
  else
 
2343
    CFLAGS="-g"
 
2344
  fi
 
2345
else
 
2346
  if test "$GCC" = yes; then
 
2347
    CFLAGS="-O2"
 
2348
  else
 
2349
    CFLAGS=
 
2350
  fi
 
2351
fi
 
2352
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2353
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2354
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2356
else
 
2357
  ac_cv_prog_cc_stdc=no
 
2358
ac_save_CC=$CC
 
2359
cat >conftest.$ac_ext <<_ACEOF
 
2360
/* confdefs.h.  */
 
2361
_ACEOF
 
2362
cat confdefs.h >>conftest.$ac_ext
 
2363
cat >>conftest.$ac_ext <<_ACEOF
 
2364
/* end confdefs.h.  */
 
2365
#include <stdarg.h>
 
2366
#include <stdio.h>
 
2367
#include <sys/types.h>
 
2368
#include <sys/stat.h>
 
2369
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2370
struct buf { int x; };
 
2371
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2372
static char *e (p, i)
 
2373
     char **p;
 
2374
     int i;
 
2375
{
 
2376
  return p[i];
 
2377
}
 
2378
static char *f (char * (*g) (char **, int), char **p, ...)
 
2379
{
 
2380
  char *s;
 
2381
  va_list v;
 
2382
  va_start (v,p);
 
2383
  s = g (p, va_arg (v,int));
 
2384
  va_end (v);
 
2385
  return s;
 
2386
}
 
2387
 
 
2388
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2389
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2390
   These don't provoke an error unfortunately, instead are silently treated
 
2391
   as 'x'.  The following induces an error, until -std1 is added to get
 
2392
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2393
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2394
   that's true only with -std1.  */
 
2395
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2396
 
 
2397
int test (int i, double x);
 
2398
struct s1 {int (*f) (int a);};
 
2399
struct s2 {int (*f) (double a);};
 
2400
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2401
int argc;
 
2402
char **argv;
 
2403
int
 
2404
main ()
 
2405
{
 
2406
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2407
  ;
 
2408
  return 0;
 
2409
}
 
2410
_ACEOF
 
2411
# Don't try gcc -ansi; that turns off useful extensions and
 
2412
# breaks some systems' header files.
 
2413
# AIX                   -qlanglvl=ansi
 
2414
# Ultrix and OSF/1      -std1
 
2415
# HP-UX 10.20 and later -Ae
 
2416
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2417
# SVR4                  -Xc -D__EXTENSIONS__
 
2418
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2419
do
 
2420
  CC="$ac_save_CC $ac_arg"
 
2421
  rm -f conftest.$ac_objext
 
2422
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2423
  (eval $ac_compile) 2>conftest.er1
 
2424
  ac_status=$?
 
2425
  grep -v '^ *+' conftest.er1 >conftest.err
 
2426
  rm -f conftest.er1
 
2427
  cat conftest.err >&5
 
2428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2429
  (exit $ac_status); } &&
 
2430
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2432
  (eval $ac_try) 2>&5
 
2433
  ac_status=$?
 
2434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2435
  (exit $ac_status); }; } &&
 
2436
         { ac_try='test -s conftest.$ac_objext'
 
2437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2438
  (eval $ac_try) 2>&5
 
2439
  ac_status=$?
 
2440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2441
  (exit $ac_status); }; }; then
 
2442
  ac_cv_prog_cc_stdc=$ac_arg
 
2443
break
 
2444
else
 
2445
  echo "$as_me: failed program was:" >&5
 
2446
sed 's/^/| /' conftest.$ac_ext >&5
 
2447
 
 
2448
fi
 
2449
rm -f conftest.err conftest.$ac_objext
 
2450
done
 
2451
rm -f conftest.$ac_ext conftest.$ac_objext
 
2452
CC=$ac_save_CC
 
2453
 
 
2454
fi
 
2455
 
 
2456
case "x$ac_cv_prog_cc_stdc" in
 
2457
  x|xno)
 
2458
    echo "$as_me:$LINENO: result: none needed" >&5
 
2459
echo "${ECHO_T}none needed" >&6 ;;
 
2460
  *)
 
2461
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2462
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2463
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2464
esac
 
2465
 
 
2466
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2467
# in C++ we need to declare it.  In case someone uses the same compiler
 
2468
# for both compiling C and C++ we need to have the C++ compiler decide
 
2469
# the declaration of exit, since it's the most demanding environment.
 
2470
cat >conftest.$ac_ext <<_ACEOF
 
2471
#ifndef __cplusplus
 
2472
  choke me
 
2473
#endif
 
2474
_ACEOF
 
2475
rm -f conftest.$ac_objext
 
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2477
  (eval $ac_compile) 2>conftest.er1
 
2478
  ac_status=$?
 
2479
  grep -v '^ *+' conftest.er1 >conftest.err
 
2480
  rm -f conftest.er1
 
2481
  cat conftest.err >&5
 
2482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2483
  (exit $ac_status); } &&
 
2484
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2486
  (eval $ac_try) 2>&5
 
2487
  ac_status=$?
 
2488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2489
  (exit $ac_status); }; } &&
 
2490
         { ac_try='test -s conftest.$ac_objext'
 
2491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2492
  (eval $ac_try) 2>&5
 
2493
  ac_status=$?
 
2494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2495
  (exit $ac_status); }; }; then
 
2496
  for ac_declaration in \
 
2497
   '' \
 
2498
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2499
   'extern "C" void std::exit (int); using std::exit;' \
 
2500
   'extern "C" void exit (int) throw ();' \
 
2501
   'extern "C" void exit (int);' \
 
2502
   'void exit (int);'
 
2503
do
 
2504
  cat >conftest.$ac_ext <<_ACEOF
 
2505
/* confdefs.h.  */
 
2506
_ACEOF
 
2507
cat confdefs.h >>conftest.$ac_ext
 
2508
cat >>conftest.$ac_ext <<_ACEOF
 
2509
/* end confdefs.h.  */
 
2510
$ac_declaration
 
2511
#include <stdlib.h>
 
2512
int
 
2513
main ()
 
2514
{
 
2515
exit (42);
 
2516
  ;
 
2517
  return 0;
 
2518
}
 
2519
_ACEOF
 
2520
rm -f conftest.$ac_objext
 
2521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2522
  (eval $ac_compile) 2>conftest.er1
 
2523
  ac_status=$?
 
2524
  grep -v '^ *+' conftest.er1 >conftest.err
 
2525
  rm -f conftest.er1
 
2526
  cat conftest.err >&5
 
2527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2528
  (exit $ac_status); } &&
 
2529
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2531
  (eval $ac_try) 2>&5
 
2532
  ac_status=$?
 
2533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2534
  (exit $ac_status); }; } &&
 
2535
         { ac_try='test -s conftest.$ac_objext'
 
2536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2537
  (eval $ac_try) 2>&5
 
2538
  ac_status=$?
 
2539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2540
  (exit $ac_status); }; }; then
 
2541
  :
 
2542
else
 
2543
  echo "$as_me: failed program was:" >&5
 
2544
sed 's/^/| /' conftest.$ac_ext >&5
 
2545
 
 
2546
continue
 
2547
fi
 
2548
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2549
  cat >conftest.$ac_ext <<_ACEOF
 
2550
/* confdefs.h.  */
 
2551
_ACEOF
 
2552
cat confdefs.h >>conftest.$ac_ext
 
2553
cat >>conftest.$ac_ext <<_ACEOF
 
2554
/* end confdefs.h.  */
 
2555
$ac_declaration
 
2556
int
 
2557
main ()
 
2558
{
 
2559
exit (42);
 
2560
  ;
 
2561
  return 0;
 
2562
}
 
2563
_ACEOF
 
2564
rm -f conftest.$ac_objext
 
2565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2566
  (eval $ac_compile) 2>conftest.er1
 
2567
  ac_status=$?
 
2568
  grep -v '^ *+' conftest.er1 >conftest.err
 
2569
  rm -f conftest.er1
 
2570
  cat conftest.err >&5
 
2571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2572
  (exit $ac_status); } &&
 
2573
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2575
  (eval $ac_try) 2>&5
 
2576
  ac_status=$?
 
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2578
  (exit $ac_status); }; } &&
 
2579
         { ac_try='test -s conftest.$ac_objext'
 
2580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2581
  (eval $ac_try) 2>&5
 
2582
  ac_status=$?
 
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2584
  (exit $ac_status); }; }; then
 
2585
  break
 
2586
else
 
2587
  echo "$as_me: failed program was:" >&5
 
2588
sed 's/^/| /' conftest.$ac_ext >&5
 
2589
 
 
2590
fi
 
2591
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2592
done
 
2593
rm -f conftest*
 
2594
if test -n "$ac_declaration"; then
 
2595
  echo '#ifdef __cplusplus' >>confdefs.h
 
2596
  echo $ac_declaration      >>confdefs.h
 
2597
  echo '#endif'             >>confdefs.h
 
2598
fi
 
2599
 
 
2600
else
 
2601
  echo "$as_me: failed program was:" >&5
 
2602
sed 's/^/| /' conftest.$ac_ext >&5
 
2603
 
 
2604
fi
 
2605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2606
ac_ext=c
 
2607
ac_cpp='$CPP $CPPFLAGS'
 
2608
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2609
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2610
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2611
 
 
2612
 
 
2613
ac_ext=c
 
2614
ac_cpp='$CPP $CPPFLAGS'
 
2615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2618
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2619
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2620
# On Suns, sometimes $CPP names a directory.
 
2621
if test -n "$CPP" && test -d "$CPP"; then
 
2622
  CPP=
 
2623
fi
 
2624
if test -z "$CPP"; then
 
2625
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2627
else
 
2628
      # Double quotes because CPP needs to be expanded
 
2629
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2630
    do
 
2631
      ac_preproc_ok=false
 
2632
for ac_c_preproc_warn_flag in '' yes
 
2633
do
 
2634
  # Use a header file that comes with gcc, so configuring glibc
 
2635
  # with a fresh cross-compiler works.
 
2636
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2637
  # <limits.h> exists even on freestanding compilers.
 
2638
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2639
  # not just through cpp. "Syntax error" is here to catch this case.
 
2640
  cat >conftest.$ac_ext <<_ACEOF
 
2641
/* confdefs.h.  */
 
2642
_ACEOF
 
2643
cat confdefs.h >>conftest.$ac_ext
 
2644
cat >>conftest.$ac_ext <<_ACEOF
 
2645
/* end confdefs.h.  */
 
2646
#ifdef __STDC__
 
2647
# include <limits.h>
 
2648
#else
 
2649
# include <assert.h>
 
2650
#endif
 
2651
                     Syntax error
 
2652
_ACEOF
 
2653
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2654
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2655
  ac_status=$?
 
2656
  grep -v '^ *+' conftest.er1 >conftest.err
 
2657
  rm -f conftest.er1
 
2658
  cat conftest.err >&5
 
2659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2660
  (exit $ac_status); } >/dev/null; then
 
2661
  if test -s conftest.err; then
 
2662
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2663
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2664
  else
 
2665
    ac_cpp_err=
 
2666
  fi
 
2667
else
 
2668
  ac_cpp_err=yes
 
2669
fi
 
2670
if test -z "$ac_cpp_err"; then
 
2671
  :
 
2672
else
 
2673
  echo "$as_me: failed program was:" >&5
 
2674
sed 's/^/| /' conftest.$ac_ext >&5
 
2675
 
 
2676
  # Broken: fails on valid input.
 
2677
continue
 
2678
fi
 
2679
rm -f conftest.err conftest.$ac_ext
 
2680
 
 
2681
  # OK, works on sane cases.  Now check whether non-existent headers
 
2682
  # can be detected and how.
 
2683
  cat >conftest.$ac_ext <<_ACEOF
 
2684
/* confdefs.h.  */
 
2685
_ACEOF
 
2686
cat confdefs.h >>conftest.$ac_ext
 
2687
cat >>conftest.$ac_ext <<_ACEOF
 
2688
/* end confdefs.h.  */
 
2689
#include <ac_nonexistent.h>
 
2690
_ACEOF
 
2691
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2692
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2693
  ac_status=$?
 
2694
  grep -v '^ *+' conftest.er1 >conftest.err
 
2695
  rm -f conftest.er1
 
2696
  cat conftest.err >&5
 
2697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2698
  (exit $ac_status); } >/dev/null; then
 
2699
  if test -s conftest.err; then
 
2700
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2701
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2702
  else
 
2703
    ac_cpp_err=
 
2704
  fi
 
2705
else
 
2706
  ac_cpp_err=yes
 
2707
fi
 
2708
if test -z "$ac_cpp_err"; then
 
2709
  # Broken: success on invalid input.
 
2710
continue
 
2711
else
 
2712
  echo "$as_me: failed program was:" >&5
 
2713
sed 's/^/| /' conftest.$ac_ext >&5
 
2714
 
 
2715
  # Passes both tests.
 
2716
ac_preproc_ok=:
 
2717
break
 
2718
fi
 
2719
rm -f conftest.err conftest.$ac_ext
 
2720
 
 
2721
done
 
2722
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2723
rm -f conftest.err conftest.$ac_ext
 
2724
if $ac_preproc_ok; then
 
2725
  break
 
2726
fi
 
2727
 
 
2728
    done
 
2729
    ac_cv_prog_CPP=$CPP
 
2730
 
 
2731
fi
 
2732
  CPP=$ac_cv_prog_CPP
 
2733
else
 
2734
  ac_cv_prog_CPP=$CPP
 
2735
fi
 
2736
echo "$as_me:$LINENO: result: $CPP" >&5
 
2737
echo "${ECHO_T}$CPP" >&6
 
2738
ac_preproc_ok=false
 
2739
for ac_c_preproc_warn_flag in '' yes
 
2740
do
 
2741
  # Use a header file that comes with gcc, so configuring glibc
 
2742
  # with a fresh cross-compiler works.
 
2743
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2744
  # <limits.h> exists even on freestanding compilers.
 
2745
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2746
  # not just through cpp. "Syntax error" is here to catch this case.
 
2747
  cat >conftest.$ac_ext <<_ACEOF
 
2748
/* confdefs.h.  */
 
2749
_ACEOF
 
2750
cat confdefs.h >>conftest.$ac_ext
 
2751
cat >>conftest.$ac_ext <<_ACEOF
 
2752
/* end confdefs.h.  */
 
2753
#ifdef __STDC__
 
2754
# include <limits.h>
 
2755
#else
 
2756
# include <assert.h>
 
2757
#endif
 
2758
                     Syntax error
 
2759
_ACEOF
 
2760
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2761
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2762
  ac_status=$?
 
2763
  grep -v '^ *+' conftest.er1 >conftest.err
 
2764
  rm -f conftest.er1
 
2765
  cat conftest.err >&5
 
2766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2767
  (exit $ac_status); } >/dev/null; then
 
2768
  if test -s conftest.err; then
 
2769
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2770
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2771
  else
 
2772
    ac_cpp_err=
 
2773
  fi
 
2774
else
 
2775
  ac_cpp_err=yes
 
2776
fi
 
2777
if test -z "$ac_cpp_err"; then
 
2778
  :
 
2779
else
 
2780
  echo "$as_me: failed program was:" >&5
 
2781
sed 's/^/| /' conftest.$ac_ext >&5
 
2782
 
 
2783
  # Broken: fails on valid input.
 
2784
continue
 
2785
fi
 
2786
rm -f conftest.err conftest.$ac_ext
 
2787
 
 
2788
  # OK, works on sane cases.  Now check whether non-existent headers
 
2789
  # can be detected and how.
 
2790
  cat >conftest.$ac_ext <<_ACEOF
 
2791
/* confdefs.h.  */
 
2792
_ACEOF
 
2793
cat confdefs.h >>conftest.$ac_ext
 
2794
cat >>conftest.$ac_ext <<_ACEOF
 
2795
/* end confdefs.h.  */
 
2796
#include <ac_nonexistent.h>
 
2797
_ACEOF
 
2798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2799
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2800
  ac_status=$?
 
2801
  grep -v '^ *+' conftest.er1 >conftest.err
 
2802
  rm -f conftest.er1
 
2803
  cat conftest.err >&5
 
2804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2805
  (exit $ac_status); } >/dev/null; then
 
2806
  if test -s conftest.err; then
 
2807
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2808
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2809
  else
 
2810
    ac_cpp_err=
 
2811
  fi
 
2812
else
 
2813
  ac_cpp_err=yes
 
2814
fi
 
2815
if test -z "$ac_cpp_err"; then
 
2816
  # Broken: success on invalid input.
 
2817
continue
 
2818
else
 
2819
  echo "$as_me: failed program was:" >&5
 
2820
sed 's/^/| /' conftest.$ac_ext >&5
 
2821
 
 
2822
  # Passes both tests.
 
2823
ac_preproc_ok=:
 
2824
break
 
2825
fi
 
2826
rm -f conftest.err conftest.$ac_ext
 
2827
 
 
2828
done
 
2829
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2830
rm -f conftest.err conftest.$ac_ext
 
2831
if $ac_preproc_ok; then
 
2832
  :
 
2833
else
 
2834
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2835
See \`config.log' for more details." >&5
 
2836
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2837
See \`config.log' for more details." >&2;}
 
2838
   { (exit 1); exit 1; }; }
 
2839
fi
 
2840
 
 
2841
ac_ext=c
 
2842
ac_cpp='$CPP $CPPFLAGS'
 
2843
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2844
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2845
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2846
 
 
2847
 
 
2848
echo "$as_me:$LINENO: checking for egrep" >&5
 
2849
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2850
if test "${ac_cv_prog_egrep+set}" = set; then
 
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2852
else
 
2853
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2854
    then ac_cv_prog_egrep='grep -E'
 
2855
    else ac_cv_prog_egrep='egrep'
 
2856
    fi
 
2857
fi
 
2858
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2859
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2860
 EGREP=$ac_cv_prog_egrep
 
2861
 
 
2862
 
 
2863
 
 
2864
echo "$as_me:$LINENO: checking for AIX" >&5
 
2865
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
2866
cat >conftest.$ac_ext <<_ACEOF
 
2867
/* confdefs.h.  */
 
2868
_ACEOF
 
2869
cat confdefs.h >>conftest.$ac_ext
 
2870
cat >>conftest.$ac_ext <<_ACEOF
 
2871
/* end confdefs.h.  */
 
2872
#ifdef _AIX
 
2873
  yes
 
2874
#endif
 
2875
 
 
2876
_ACEOF
 
2877
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2878
  $EGREP "yes" >/dev/null 2>&1; then
 
2879
  echo "$as_me:$LINENO: result: yes" >&5
 
2880
echo "${ECHO_T}yes" >&6
 
2881
cat >>confdefs.h <<\_ACEOF
 
2882
#define _ALL_SOURCE 1
 
2883
_ACEOF
 
2884
 
 
2885
else
 
2886
  echo "$as_me:$LINENO: result: no" >&5
 
2887
echo "${ECHO_T}no" >&6
 
2888
fi
 
2889
rm -f conftest*
 
2890
 
 
2891
 
 
2892
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
2893
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2894
if test "${ac_cv_header_stdc+set}" = set; then
 
2895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2896
else
 
2897
  cat >conftest.$ac_ext <<_ACEOF
 
2898
/* confdefs.h.  */
 
2899
_ACEOF
 
2900
cat confdefs.h >>conftest.$ac_ext
 
2901
cat >>conftest.$ac_ext <<_ACEOF
 
2902
/* end confdefs.h.  */
 
2903
#include <stdlib.h>
 
2904
#include <stdarg.h>
 
2905
#include <string.h>
 
2906
#include <float.h>
 
2907
 
 
2908
int
 
2909
main ()
 
2910
{
 
2911
 
 
2912
  ;
 
2913
  return 0;
 
2914
}
 
2915
_ACEOF
 
2916
rm -f conftest.$ac_objext
 
2917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2918
  (eval $ac_compile) 2>conftest.er1
 
2919
  ac_status=$?
 
2920
  grep -v '^ *+' conftest.er1 >conftest.err
 
2921
  rm -f conftest.er1
 
2922
  cat conftest.err >&5
 
2923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2924
  (exit $ac_status); } &&
 
2925
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2927
  (eval $ac_try) 2>&5
 
2928
  ac_status=$?
 
2929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2930
  (exit $ac_status); }; } &&
 
2931
         { ac_try='test -s conftest.$ac_objext'
 
2932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2933
  (eval $ac_try) 2>&5
 
2934
  ac_status=$?
 
2935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2936
  (exit $ac_status); }; }; then
 
2937
  ac_cv_header_stdc=yes
 
2938
else
 
2939
  echo "$as_me: failed program was:" >&5
 
2940
sed 's/^/| /' conftest.$ac_ext >&5
 
2941
 
 
2942
ac_cv_header_stdc=no
 
2943
fi
 
2944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2945
 
 
2946
if test $ac_cv_header_stdc = yes; then
 
2947
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
2948
  cat >conftest.$ac_ext <<_ACEOF
 
2949
/* confdefs.h.  */
 
2950
_ACEOF
 
2951
cat confdefs.h >>conftest.$ac_ext
 
2952
cat >>conftest.$ac_ext <<_ACEOF
 
2953
/* end confdefs.h.  */
 
2954
#include <string.h>
 
2955
 
 
2956
_ACEOF
 
2957
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2958
  $EGREP "memchr" >/dev/null 2>&1; then
 
2959
  :
 
2960
else
 
2961
  ac_cv_header_stdc=no
 
2962
fi
 
2963
rm -f conftest*
 
2964
 
 
2965
fi
 
2966
 
 
2967
if test $ac_cv_header_stdc = yes; then
 
2968
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
2969
  cat >conftest.$ac_ext <<_ACEOF
 
2970
/* confdefs.h.  */
 
2971
_ACEOF
 
2972
cat confdefs.h >>conftest.$ac_ext
 
2973
cat >>conftest.$ac_ext <<_ACEOF
 
2974
/* end confdefs.h.  */
 
2975
#include <stdlib.h>
 
2976
 
 
2977
_ACEOF
 
2978
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2979
  $EGREP "free" >/dev/null 2>&1; then
 
2980
  :
 
2981
else
 
2982
  ac_cv_header_stdc=no
 
2983
fi
 
2984
rm -f conftest*
 
2985
 
 
2986
fi
 
2987
 
 
2988
if test $ac_cv_header_stdc = yes; then
 
2989
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
2990
  if test "$cross_compiling" = yes; then
 
2991
  :
 
2992
else
 
2993
  cat >conftest.$ac_ext <<_ACEOF
 
2994
/* confdefs.h.  */
 
2995
_ACEOF
 
2996
cat confdefs.h >>conftest.$ac_ext
 
2997
cat >>conftest.$ac_ext <<_ACEOF
 
2998
/* end confdefs.h.  */
 
2999
#include <ctype.h>
 
3000
#if ((' ' & 0x0FF) == 0x020)
 
3001
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3002
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3003
#else
 
3004
# define ISLOWER(c) \
 
3005
                   (('a' <= (c) && (c) <= 'i') \
 
3006
                     || ('j' <= (c) && (c) <= 'r') \
 
3007
                     || ('s' <= (c) && (c) <= 'z'))
 
3008
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3009
#endif
 
3010
 
 
3011
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3012
int
 
3013
main ()
 
3014
{
 
3015
  int i;
 
3016
  for (i = 0; i < 256; i++)
 
3017
    if (XOR (islower (i), ISLOWER (i))
 
3018
        || toupper (i) != TOUPPER (i))
 
3019
      exit(2);
 
3020
  exit (0);
 
3021
}
 
3022
_ACEOF
 
3023
rm -f conftest$ac_exeext
 
3024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3025
  (eval $ac_link) 2>&5
 
3026
  ac_status=$?
 
3027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3028
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3030
  (eval $ac_try) 2>&5
 
3031
  ac_status=$?
 
3032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3033
  (exit $ac_status); }; }; then
 
3034
  :
 
3035
else
 
3036
  echo "$as_me: program exited with status $ac_status" >&5
 
3037
echo "$as_me: failed program was:" >&5
 
3038
sed 's/^/| /' conftest.$ac_ext >&5
 
3039
 
 
3040
( exit $ac_status )
 
3041
ac_cv_header_stdc=no
 
3042
fi
 
3043
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3044
fi
 
3045
fi
 
3046
fi
 
3047
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3048
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3049
if test $ac_cv_header_stdc = yes; then
 
3050
 
 
3051
cat >>confdefs.h <<\_ACEOF
 
3052
#define STDC_HEADERS 1
 
3053
_ACEOF
 
3054
 
 
3055
fi
 
3056
 
 
3057
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3058
 
 
3059
 
 
3060
 
 
3061
 
 
3062
 
 
3063
 
 
3064
 
 
3065
 
 
3066
 
 
3067
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3068
                  inttypes.h stdint.h unistd.h
 
3069
do
 
3070
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3071
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3072
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3073
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3075
else
 
3076
  cat >conftest.$ac_ext <<_ACEOF
 
3077
/* confdefs.h.  */
 
3078
_ACEOF
 
3079
cat confdefs.h >>conftest.$ac_ext
 
3080
cat >>conftest.$ac_ext <<_ACEOF
 
3081
/* end confdefs.h.  */
 
3082
$ac_includes_default
 
3083
 
 
3084
#include <$ac_header>
 
3085
_ACEOF
 
3086
rm -f conftest.$ac_objext
 
3087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3088
  (eval $ac_compile) 2>conftest.er1
 
3089
  ac_status=$?
 
3090
  grep -v '^ *+' conftest.er1 >conftest.err
 
3091
  rm -f conftest.er1
 
3092
  cat conftest.err >&5
 
3093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3094
  (exit $ac_status); } &&
 
3095
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3097
  (eval $ac_try) 2>&5
 
3098
  ac_status=$?
 
3099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3100
  (exit $ac_status); }; } &&
 
3101
         { ac_try='test -s conftest.$ac_objext'
 
3102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3103
  (eval $ac_try) 2>&5
 
3104
  ac_status=$?
 
3105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3106
  (exit $ac_status); }; }; then
 
3107
  eval "$as_ac_Header=yes"
 
3108
else
 
3109
  echo "$as_me: failed program was:" >&5
 
3110
sed 's/^/| /' conftest.$ac_ext >&5
 
3111
 
 
3112
eval "$as_ac_Header=no"
 
3113
fi
 
3114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3115
fi
 
3116
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3117
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3118
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3119
  cat >>confdefs.h <<_ACEOF
 
3120
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3121
_ACEOF
 
3122
 
 
3123
fi
 
3124
 
 
3125
done
 
3126
 
 
3127
 
 
3128
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3129
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3130
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3131
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3133
fi
 
3134
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3135
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3136
else
 
3137
  # Is the header compilable?
 
3138
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
3139
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
3140
cat >conftest.$ac_ext <<_ACEOF
 
3141
/* confdefs.h.  */
 
3142
_ACEOF
 
3143
cat confdefs.h >>conftest.$ac_ext
 
3144
cat >>conftest.$ac_ext <<_ACEOF
 
3145
/* end confdefs.h.  */
 
3146
$ac_includes_default
 
3147
#include <minix/config.h>
 
3148
_ACEOF
 
3149
rm -f conftest.$ac_objext
 
3150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3151
  (eval $ac_compile) 2>conftest.er1
 
3152
  ac_status=$?
 
3153
  grep -v '^ *+' conftest.er1 >conftest.err
 
3154
  rm -f conftest.er1
 
3155
  cat conftest.err >&5
 
3156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3157
  (exit $ac_status); } &&
 
3158
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3160
  (eval $ac_try) 2>&5
 
3161
  ac_status=$?
 
3162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3163
  (exit $ac_status); }; } &&
 
3164
         { ac_try='test -s conftest.$ac_objext'
 
3165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3166
  (eval $ac_try) 2>&5
 
3167
  ac_status=$?
 
3168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3169
  (exit $ac_status); }; }; then
 
3170
  ac_header_compiler=yes
 
3171
else
 
3172
  echo "$as_me: failed program was:" >&5
 
3173
sed 's/^/| /' conftest.$ac_ext >&5
 
3174
 
 
3175
ac_header_compiler=no
 
3176
fi
 
3177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3178
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3179
echo "${ECHO_T}$ac_header_compiler" >&6
 
3180
 
 
3181
# Is the header present?
 
3182
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
3183
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
3184
cat >conftest.$ac_ext <<_ACEOF
 
3185
/* confdefs.h.  */
 
3186
_ACEOF
 
3187
cat confdefs.h >>conftest.$ac_ext
 
3188
cat >>conftest.$ac_ext <<_ACEOF
 
3189
/* end confdefs.h.  */
 
3190
#include <minix/config.h>
 
3191
_ACEOF
 
3192
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3193
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3194
  ac_status=$?
 
3195
  grep -v '^ *+' conftest.er1 >conftest.err
 
3196
  rm -f conftest.er1
 
3197
  cat conftest.err >&5
 
3198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3199
  (exit $ac_status); } >/dev/null; then
 
3200
  if test -s conftest.err; then
 
3201
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3202
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3203
  else
 
3204
    ac_cpp_err=
 
3205
  fi
 
3206
else
 
3207
  ac_cpp_err=yes
 
3208
fi
 
3209
if test -z "$ac_cpp_err"; then
 
3210
  ac_header_preproc=yes
 
3211
else
 
3212
  echo "$as_me: failed program was:" >&5
 
3213
sed 's/^/| /' conftest.$ac_ext >&5
 
3214
 
 
3215
  ac_header_preproc=no
 
3216
fi
 
3217
rm -f conftest.err conftest.$ac_ext
 
3218
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3219
echo "${ECHO_T}$ac_header_preproc" >&6
 
3220
 
 
3221
# So?  What about this header?
 
3222
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3223
  yes:no: )
 
3224
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3225
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3226
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
3227
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
3228
    ac_header_preproc=yes
 
3229
    ;;
 
3230
  no:yes:* )
 
3231
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
3232
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
3233
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
3234
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
3235
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
3236
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
3237
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3238
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3239
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
3240
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
3241
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
3242
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
3243
    (
 
3244
      cat <<\_ASBOX
 
3245
## -------------------------------- ##
 
3246
## Report this to laird@lbreyer.com ##
 
3247
## -------------------------------- ##
 
3248
_ASBOX
 
3249
    ) |
 
3250
      sed "s/^/$as_me: WARNING:     /" >&2
 
3251
    ;;
 
3252
esac
 
3253
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3254
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3255
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3257
else
 
3258
  ac_cv_header_minix_config_h=$ac_header_preproc
 
3259
fi
 
3260
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3261
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3262
 
 
3263
fi
 
3264
if test $ac_cv_header_minix_config_h = yes; then
 
3265
  MINIX=yes
 
3266
else
 
3267
  MINIX=
 
3268
fi
 
3269
 
 
3270
 
 
3271
if test "$MINIX" = yes; then
 
3272
 
 
3273
cat >>confdefs.h <<\_ACEOF
 
3274
#define _POSIX_SOURCE 1
 
3275
_ACEOF
 
3276
 
 
3277
 
 
3278
cat >>confdefs.h <<\_ACEOF
 
3279
#define _POSIX_1_SOURCE 2
 
3280
_ACEOF
 
3281
 
 
3282
 
 
3283
cat >>confdefs.h <<\_ACEOF
 
3284
#define _MINIX 1
 
3285
_ACEOF
 
3286
 
 
3287
fi
 
3288
 
 
3289
 
 
3290
CFLAGSIEEE=""
 
3291
 
 
3292
case $host in
 
3293
        alpha*-linux*)
 
3294
 
 
3295
cat >>confdefs.h <<\_ACEOF
 
3296
#define OS_LINUX
 
3297
_ACEOF
 
3298
 
 
3299
                { echo "$as_me:$LINENO: using -mieee compilation flag to allow divide by zero." >&5
 
3300
echo "$as_me: using -mieee compilation flag to allow divide by zero." >&6;}
 
3301
                CFLAGSIEEE="-mieee"
 
3302
 
 
3303
                ;;
 
3304
        *-*-linux*)
 
3305
 
 
3306
cat >>confdefs.h <<\_ACEOF
 
3307
#define OS_LINUX
 
3308
_ACEOF
 
3309
 
 
3310
                ;;
 
3311
        *-*-sunos*)
 
3312
 
 
3313
cat >>confdefs.h <<\_ACEOF
 
3314
#define OS_SUN
 
3315
_ACEOF
 
3316
 
 
3317
                ;;
 
3318
        *-*-solaris*)
 
3319
 
 
3320
cat >>confdefs.h <<\_ACEOF
 
3321
#define OS_SUN
 
3322
_ACEOF
 
3323
 
 
3324
                ;;
 
3325
        *-*-darwin*)
 
3326
 
 
3327
cat >>confdefs.h <<\_ACEOF
 
3328
#define OS_DARWIN
 
3329
_ACEOF
 
3330
 
 
3331
                ;;
 
3332
        -*-*-*)
 
3333
 
 
3334
cat >>confdefs.h <<\_ACEOF
 
3335
#define OS_UNKNOWN
 
3336
_ACEOF
 
3337
 
 
3338
                ;;
 
3339
esac
 
3340
 
 
3341
 
 
3342
cat >>confdefs.h <<_ACEOF
 
3343
#define TARGETCPU "$target"
 
3344
_ACEOF
 
3345
 
 
3346
 
 
3347
## Checks for programs
 
3348
ac_ext=c
 
3349
ac_cpp='$CPP $CPPFLAGS'
 
3350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3353
if test -n "$ac_tool_prefix"; then
 
3354
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3355
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3356
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3357
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3358
if test "${ac_cv_prog_CC+set}" = set; then
 
3359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3360
else
 
3361
  if test -n "$CC"; then
 
3362
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3363
else
 
3364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3365
for as_dir in $PATH
 
3366
do
 
3367
  IFS=$as_save_IFS
 
3368
  test -z "$as_dir" && as_dir=.
 
3369
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3370
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3371
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3372
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3373
    break 2
 
3374
  fi
 
3375
done
 
3376
done
 
3377
 
 
3378
fi
 
3379
fi
 
3380
CC=$ac_cv_prog_CC
 
3381
if test -n "$CC"; then
 
3382
  echo "$as_me:$LINENO: result: $CC" >&5
 
3383
echo "${ECHO_T}$CC" >&6
 
3384
else
 
3385
  echo "$as_me:$LINENO: result: no" >&5
 
3386
echo "${ECHO_T}no" >&6
 
3387
fi
 
3388
 
 
3389
fi
 
3390
if test -z "$ac_cv_prog_CC"; then
 
3391
  ac_ct_CC=$CC
 
3392
  # Extract the first word of "gcc", so it can be a program name with args.
 
3393
set dummy gcc; ac_word=$2
 
3394
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3395
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3396
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3398
else
 
3399
  if test -n "$ac_ct_CC"; then
 
3400
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3401
else
 
3402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3403
for as_dir in $PATH
 
3404
do
 
3405
  IFS=$as_save_IFS
 
3406
  test -z "$as_dir" && as_dir=.
 
3407
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3408
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3409
    ac_cv_prog_ac_ct_CC="gcc"
 
3410
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3411
    break 2
 
3412
  fi
 
3413
done
 
3414
done
 
3415
 
 
3416
fi
 
3417
fi
 
3418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3419
if test -n "$ac_ct_CC"; then
 
3420
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3421
echo "${ECHO_T}$ac_ct_CC" >&6
 
3422
else
 
3423
  echo "$as_me:$LINENO: result: no" >&5
 
3424
echo "${ECHO_T}no" >&6
 
3425
fi
 
3426
 
 
3427
  CC=$ac_ct_CC
 
3428
else
 
3429
  CC="$ac_cv_prog_CC"
 
3430
fi
 
3431
 
 
3432
if test -z "$CC"; then
 
3433
  if test -n "$ac_tool_prefix"; then
 
3434
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3435
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3436
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3437
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3438
if test "${ac_cv_prog_CC+set}" = set; then
 
3439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3440
else
 
3441
  if test -n "$CC"; then
 
3442
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3443
else
 
3444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3445
for as_dir in $PATH
 
3446
do
 
3447
  IFS=$as_save_IFS
 
3448
  test -z "$as_dir" && as_dir=.
 
3449
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3450
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3451
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3452
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3453
    break 2
 
3454
  fi
 
3455
done
 
3456
done
 
3457
 
 
3458
fi
 
3459
fi
 
3460
CC=$ac_cv_prog_CC
 
3461
if test -n "$CC"; then
 
3462
  echo "$as_me:$LINENO: result: $CC" >&5
 
3463
echo "${ECHO_T}$CC" >&6
 
3464
else
 
3465
  echo "$as_me:$LINENO: result: no" >&5
 
3466
echo "${ECHO_T}no" >&6
 
3467
fi
 
3468
 
 
3469
fi
 
3470
if test -z "$ac_cv_prog_CC"; then
 
3471
  ac_ct_CC=$CC
 
3472
  # Extract the first word of "cc", so it can be a program name with args.
 
3473
set dummy cc; ac_word=$2
 
3474
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3475
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3476
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3478
else
 
3479
  if test -n "$ac_ct_CC"; then
 
3480
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3481
else
 
3482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3483
for as_dir in $PATH
 
3484
do
 
3485
  IFS=$as_save_IFS
 
3486
  test -z "$as_dir" && as_dir=.
 
3487
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3488
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3489
    ac_cv_prog_ac_ct_CC="cc"
 
3490
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3491
    break 2
 
3492
  fi
 
3493
done
 
3494
done
 
3495
 
 
3496
fi
 
3497
fi
 
3498
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3499
if test -n "$ac_ct_CC"; then
 
3500
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3501
echo "${ECHO_T}$ac_ct_CC" >&6
 
3502
else
 
3503
  echo "$as_me:$LINENO: result: no" >&5
 
3504
echo "${ECHO_T}no" >&6
 
3505
fi
 
3506
 
 
3507
  CC=$ac_ct_CC
 
3508
else
 
3509
  CC="$ac_cv_prog_CC"
 
3510
fi
 
3511
 
 
3512
fi
 
3513
if test -z "$CC"; then
 
3514
  # Extract the first word of "cc", so it can be a program name with args.
 
3515
set dummy cc; ac_word=$2
 
3516
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3518
if test "${ac_cv_prog_CC+set}" = set; then
 
3519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3520
else
 
3521
  if test -n "$CC"; then
 
3522
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3523
else
 
3524
  ac_prog_rejected=no
 
3525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3526
for as_dir in $PATH
 
3527
do
 
3528
  IFS=$as_save_IFS
 
3529
  test -z "$as_dir" && as_dir=.
 
3530
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3531
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3532
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3533
       ac_prog_rejected=yes
 
3534
       continue
 
3535
     fi
 
3536
    ac_cv_prog_CC="cc"
 
3537
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3538
    break 2
 
3539
  fi
 
3540
done
 
3541
done
 
3542
 
 
3543
if test $ac_prog_rejected = yes; then
 
3544
  # We found a bogon in the path, so make sure we never use it.
 
3545
  set dummy $ac_cv_prog_CC
 
3546
  shift
 
3547
  if test $# != 0; then
 
3548
    # We chose a different compiler from the bogus one.
 
3549
    # However, it has the same basename, so the bogon will be chosen
 
3550
    # first if we set CC to just the basename; use the full file name.
 
3551
    shift
 
3552
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3553
  fi
 
3554
fi
 
3555
fi
 
3556
fi
 
3557
CC=$ac_cv_prog_CC
 
3558
if test -n "$CC"; then
 
3559
  echo "$as_me:$LINENO: result: $CC" >&5
 
3560
echo "${ECHO_T}$CC" >&6
 
3561
else
 
3562
  echo "$as_me:$LINENO: result: no" >&5
 
3563
echo "${ECHO_T}no" >&6
 
3564
fi
 
3565
 
 
3566
fi
 
3567
if test -z "$CC"; then
 
3568
  if test -n "$ac_tool_prefix"; then
 
3569
  for ac_prog in cl
 
3570
  do
 
3571
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3572
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3573
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3575
if test "${ac_cv_prog_CC+set}" = set; then
 
3576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3577
else
 
3578
  if test -n "$CC"; then
 
3579
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3580
else
 
3581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3582
for as_dir in $PATH
 
3583
do
 
3584
  IFS=$as_save_IFS
 
3585
  test -z "$as_dir" && as_dir=.
 
3586
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3587
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3588
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3590
    break 2
 
3591
  fi
 
3592
done
 
3593
done
 
3594
 
 
3595
fi
 
3596
fi
 
3597
CC=$ac_cv_prog_CC
 
3598
if test -n "$CC"; then
 
3599
  echo "$as_me:$LINENO: result: $CC" >&5
 
3600
echo "${ECHO_T}$CC" >&6
 
3601
else
 
3602
  echo "$as_me:$LINENO: result: no" >&5
 
3603
echo "${ECHO_T}no" >&6
 
3604
fi
 
3605
 
 
3606
    test -n "$CC" && break
 
3607
  done
 
3608
fi
 
3609
if test -z "$CC"; then
 
3610
  ac_ct_CC=$CC
 
3611
  for ac_prog in cl
 
3612
do
 
3613
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3614
set dummy $ac_prog; ac_word=$2
 
3615
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3617
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3619
else
 
3620
  if test -n "$ac_ct_CC"; then
 
3621
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3622
else
 
3623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3624
for as_dir in $PATH
 
3625
do
 
3626
  IFS=$as_save_IFS
 
3627
  test -z "$as_dir" && as_dir=.
 
3628
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3629
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3630
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3631
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3632
    break 2
 
3633
  fi
 
3634
done
 
3635
done
 
3636
 
 
3637
fi
 
3638
fi
 
3639
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3640
if test -n "$ac_ct_CC"; then
 
3641
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3642
echo "${ECHO_T}$ac_ct_CC" >&6
 
3643
else
 
3644
  echo "$as_me:$LINENO: result: no" >&5
 
3645
echo "${ECHO_T}no" >&6
 
3646
fi
 
3647
 
 
3648
  test -n "$ac_ct_CC" && break
 
3649
done
 
3650
 
 
3651
  CC=$ac_ct_CC
 
3652
fi
 
3653
 
 
3654
fi
 
3655
 
 
3656
 
 
3657
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3658
See \`config.log' for more details." >&5
 
3659
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3660
See \`config.log' for more details." >&2;}
 
3661
   { (exit 1); exit 1; }; }
 
3662
 
 
3663
# Provide some information about the compiler.
 
3664
echo "$as_me:$LINENO:" \
 
3665
     "checking for C compiler version" >&5
 
3666
ac_compiler=`set X $ac_compile; echo $2`
 
3667
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3668
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3669
  ac_status=$?
 
3670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3671
  (exit $ac_status); }
 
3672
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3673
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3674
  ac_status=$?
 
3675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3676
  (exit $ac_status); }
 
3677
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3678
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3679
  ac_status=$?
 
3680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3681
  (exit $ac_status); }
 
3682
 
 
3683
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3684
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3685
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3687
else
 
3688
  cat >conftest.$ac_ext <<_ACEOF
 
3689
/* confdefs.h.  */
 
3690
_ACEOF
 
3691
cat confdefs.h >>conftest.$ac_ext
 
3692
cat >>conftest.$ac_ext <<_ACEOF
 
3693
/* end confdefs.h.  */
 
3694
 
 
3695
int
 
3696
main ()
 
3697
{
 
3698
#ifndef __GNUC__
 
3699
       choke me
 
3700
#endif
 
3701
 
 
3702
  ;
 
3703
  return 0;
 
3704
}
 
3705
_ACEOF
 
3706
rm -f conftest.$ac_objext
 
3707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3708
  (eval $ac_compile) 2>conftest.er1
 
3709
  ac_status=$?
 
3710
  grep -v '^ *+' conftest.er1 >conftest.err
 
3711
  rm -f conftest.er1
 
3712
  cat conftest.err >&5
 
3713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3714
  (exit $ac_status); } &&
 
3715
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3717
  (eval $ac_try) 2>&5
 
3718
  ac_status=$?
 
3719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3720
  (exit $ac_status); }; } &&
 
3721
         { ac_try='test -s conftest.$ac_objext'
 
3722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3723
  (eval $ac_try) 2>&5
 
3724
  ac_status=$?
 
3725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3726
  (exit $ac_status); }; }; then
 
3727
  ac_compiler_gnu=yes
 
3728
else
 
3729
  echo "$as_me: failed program was:" >&5
 
3730
sed 's/^/| /' conftest.$ac_ext >&5
 
3731
 
 
3732
ac_compiler_gnu=no
 
3733
fi
 
3734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3735
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3736
 
 
3737
fi
 
3738
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3739
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3740
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3741
ac_test_CFLAGS=${CFLAGS+set}
 
3742
ac_save_CFLAGS=$CFLAGS
 
3743
CFLAGS="-g"
 
3744
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3745
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3746
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3748
else
 
3749
  cat >conftest.$ac_ext <<_ACEOF
 
3750
/* confdefs.h.  */
 
3751
_ACEOF
 
3752
cat confdefs.h >>conftest.$ac_ext
 
3753
cat >>conftest.$ac_ext <<_ACEOF
 
3754
/* end confdefs.h.  */
 
3755
 
 
3756
int
 
3757
main ()
 
3758
{
 
3759
 
 
3760
  ;
 
3761
  return 0;
 
3762
}
 
3763
_ACEOF
 
3764
rm -f conftest.$ac_objext
 
3765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3766
  (eval $ac_compile) 2>conftest.er1
 
3767
  ac_status=$?
 
3768
  grep -v '^ *+' conftest.er1 >conftest.err
 
3769
  rm -f conftest.er1
 
3770
  cat conftest.err >&5
 
3771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3772
  (exit $ac_status); } &&
 
3773
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3775
  (eval $ac_try) 2>&5
 
3776
  ac_status=$?
 
3777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3778
  (exit $ac_status); }; } &&
 
3779
         { ac_try='test -s conftest.$ac_objext'
 
3780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3781
  (eval $ac_try) 2>&5
 
3782
  ac_status=$?
 
3783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3784
  (exit $ac_status); }; }; then
 
3785
  ac_cv_prog_cc_g=yes
 
3786
else
 
3787
  echo "$as_me: failed program was:" >&5
 
3788
sed 's/^/| /' conftest.$ac_ext >&5
 
3789
 
 
3790
ac_cv_prog_cc_g=no
 
3791
fi
 
3792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3793
fi
 
3794
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3795
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3796
if test "$ac_test_CFLAGS" = set; then
 
3797
  CFLAGS=$ac_save_CFLAGS
 
3798
elif test $ac_cv_prog_cc_g = yes; then
 
3799
  if test "$GCC" = yes; then
 
3800
    CFLAGS="-g -O2"
 
3801
  else
 
3802
    CFLAGS="-g"
 
3803
  fi
 
3804
else
 
3805
  if test "$GCC" = yes; then
 
3806
    CFLAGS="-O2"
 
3807
  else
 
3808
    CFLAGS=
 
3809
  fi
 
3810
fi
 
3811
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3812
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3813
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3815
else
 
3816
  ac_cv_prog_cc_stdc=no
 
3817
ac_save_CC=$CC
 
3818
cat >conftest.$ac_ext <<_ACEOF
 
3819
/* confdefs.h.  */
 
3820
_ACEOF
 
3821
cat confdefs.h >>conftest.$ac_ext
 
3822
cat >>conftest.$ac_ext <<_ACEOF
 
3823
/* end confdefs.h.  */
 
3824
#include <stdarg.h>
 
3825
#include <stdio.h>
 
3826
#include <sys/types.h>
 
3827
#include <sys/stat.h>
 
3828
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3829
struct buf { int x; };
 
3830
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3831
static char *e (p, i)
 
3832
     char **p;
 
3833
     int i;
 
3834
{
 
3835
  return p[i];
 
3836
}
 
3837
static char *f (char * (*g) (char **, int), char **p, ...)
 
3838
{
 
3839
  char *s;
 
3840
  va_list v;
 
3841
  va_start (v,p);
 
3842
  s = g (p, va_arg (v,int));
 
3843
  va_end (v);
 
3844
  return s;
 
3845
}
 
3846
 
 
3847
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3848
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3849
   These don't provoke an error unfortunately, instead are silently treated
 
3850
   as 'x'.  The following induces an error, until -std1 is added to get
 
3851
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3852
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3853
   that's true only with -std1.  */
 
3854
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3855
 
 
3856
int test (int i, double x);
 
3857
struct s1 {int (*f) (int a);};
 
3858
struct s2 {int (*f) (double a);};
 
3859
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3860
int argc;
 
3861
char **argv;
 
3862
int
 
3863
main ()
 
3864
{
 
3865
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3866
  ;
 
3867
  return 0;
 
3868
}
 
3869
_ACEOF
 
3870
# Don't try gcc -ansi; that turns off useful extensions and
 
3871
# breaks some systems' header files.
 
3872
# AIX                   -qlanglvl=ansi
 
3873
# Ultrix and OSF/1      -std1
 
3874
# HP-UX 10.20 and later -Ae
 
3875
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3876
# SVR4                  -Xc -D__EXTENSIONS__
 
3877
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3878
do
 
3879
  CC="$ac_save_CC $ac_arg"
 
3880
  rm -f conftest.$ac_objext
 
3881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3882
  (eval $ac_compile) 2>conftest.er1
 
3883
  ac_status=$?
 
3884
  grep -v '^ *+' conftest.er1 >conftest.err
 
3885
  rm -f conftest.er1
 
3886
  cat conftest.err >&5
 
3887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3888
  (exit $ac_status); } &&
 
3889
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3891
  (eval $ac_try) 2>&5
 
3892
  ac_status=$?
 
3893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3894
  (exit $ac_status); }; } &&
 
3895
         { ac_try='test -s conftest.$ac_objext'
 
3896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3897
  (eval $ac_try) 2>&5
 
3898
  ac_status=$?
 
3899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3900
  (exit $ac_status); }; }; then
 
3901
  ac_cv_prog_cc_stdc=$ac_arg
 
3902
break
 
3903
else
 
3904
  echo "$as_me: failed program was:" >&5
 
3905
sed 's/^/| /' conftest.$ac_ext >&5
 
3906
 
 
3907
fi
 
3908
rm -f conftest.err conftest.$ac_objext
 
3909
done
 
3910
rm -f conftest.$ac_ext conftest.$ac_objext
 
3911
CC=$ac_save_CC
 
3912
 
 
3913
fi
 
3914
 
 
3915
case "x$ac_cv_prog_cc_stdc" in
 
3916
  x|xno)
 
3917
    echo "$as_me:$LINENO: result: none needed" >&5
 
3918
echo "${ECHO_T}none needed" >&6 ;;
 
3919
  *)
 
3920
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3921
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3922
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3923
esac
 
3924
 
 
3925
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3926
# in C++ we need to declare it.  In case someone uses the same compiler
 
3927
# for both compiling C and C++ we need to have the C++ compiler decide
 
3928
# the declaration of exit, since it's the most demanding environment.
 
3929
cat >conftest.$ac_ext <<_ACEOF
 
3930
#ifndef __cplusplus
 
3931
  choke me
 
3932
#endif
 
3933
_ACEOF
 
3934
rm -f conftest.$ac_objext
 
3935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3936
  (eval $ac_compile) 2>conftest.er1
 
3937
  ac_status=$?
 
3938
  grep -v '^ *+' conftest.er1 >conftest.err
 
3939
  rm -f conftest.er1
 
3940
  cat conftest.err >&5
 
3941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3942
  (exit $ac_status); } &&
 
3943
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3945
  (eval $ac_try) 2>&5
 
3946
  ac_status=$?
 
3947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3948
  (exit $ac_status); }; } &&
 
3949
         { ac_try='test -s conftest.$ac_objext'
 
3950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3951
  (eval $ac_try) 2>&5
 
3952
  ac_status=$?
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); }; }; then
 
3955
  for ac_declaration in \
 
3956
   '' \
 
3957
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3958
   'extern "C" void std::exit (int); using std::exit;' \
 
3959
   'extern "C" void exit (int) throw ();' \
 
3960
   'extern "C" void exit (int);' \
 
3961
   'void exit (int);'
 
3962
do
 
3963
  cat >conftest.$ac_ext <<_ACEOF
 
3964
/* confdefs.h.  */
 
3965
_ACEOF
 
3966
cat confdefs.h >>conftest.$ac_ext
 
3967
cat >>conftest.$ac_ext <<_ACEOF
 
3968
/* end confdefs.h.  */
 
3969
$ac_declaration
 
3970
#include <stdlib.h>
 
3971
int
 
3972
main ()
 
3973
{
 
3974
exit (42);
 
3975
  ;
 
3976
  return 0;
 
3977
}
 
3978
_ACEOF
 
3979
rm -f conftest.$ac_objext
 
3980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3981
  (eval $ac_compile) 2>conftest.er1
 
3982
  ac_status=$?
 
3983
  grep -v '^ *+' conftest.er1 >conftest.err
 
3984
  rm -f conftest.er1
 
3985
  cat conftest.err >&5
 
3986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3987
  (exit $ac_status); } &&
 
3988
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3990
  (eval $ac_try) 2>&5
 
3991
  ac_status=$?
 
3992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3993
  (exit $ac_status); }; } &&
 
3994
         { ac_try='test -s conftest.$ac_objext'
 
3995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3996
  (eval $ac_try) 2>&5
 
3997
  ac_status=$?
 
3998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3999
  (exit $ac_status); }; }; then
 
4000
  :
 
4001
else
 
4002
  echo "$as_me: failed program was:" >&5
 
4003
sed 's/^/| /' conftest.$ac_ext >&5
 
4004
 
 
4005
continue
 
4006
fi
 
4007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4008
  cat >conftest.$ac_ext <<_ACEOF
 
4009
/* confdefs.h.  */
 
4010
_ACEOF
 
4011
cat confdefs.h >>conftest.$ac_ext
 
4012
cat >>conftest.$ac_ext <<_ACEOF
 
4013
/* end confdefs.h.  */
 
4014
$ac_declaration
 
4015
int
 
4016
main ()
 
4017
{
 
4018
exit (42);
 
4019
  ;
 
4020
  return 0;
 
4021
}
 
4022
_ACEOF
 
4023
rm -f conftest.$ac_objext
 
4024
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4025
  (eval $ac_compile) 2>conftest.er1
 
4026
  ac_status=$?
 
4027
  grep -v '^ *+' conftest.er1 >conftest.err
 
4028
  rm -f conftest.er1
 
4029
  cat conftest.err >&5
 
4030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4031
  (exit $ac_status); } &&
 
4032
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4034
  (eval $ac_try) 2>&5
 
4035
  ac_status=$?
 
4036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4037
  (exit $ac_status); }; } &&
 
4038
         { ac_try='test -s conftest.$ac_objext'
 
4039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4040
  (eval $ac_try) 2>&5
 
4041
  ac_status=$?
 
4042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4043
  (exit $ac_status); }; }; then
 
4044
  break
 
4045
else
 
4046
  echo "$as_me: failed program was:" >&5
 
4047
sed 's/^/| /' conftest.$ac_ext >&5
 
4048
 
 
4049
fi
 
4050
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4051
done
 
4052
rm -f conftest*
 
4053
if test -n "$ac_declaration"; then
 
4054
  echo '#ifdef __cplusplus' >>confdefs.h
 
4055
  echo $ac_declaration      >>confdefs.h
 
4056
  echo '#endif'             >>confdefs.h
 
4057
fi
 
4058
 
 
4059
else
 
4060
  echo "$as_me: failed program was:" >&5
 
4061
sed 's/^/| /' conftest.$ac_ext >&5
 
4062
 
 
4063
fi
 
4064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4065
ac_ext=c
 
4066
ac_cpp='$CPP $CPPFLAGS'
 
4067
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4068
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4069
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4070
 
 
4071
# Find a good install program.  We prefer a C program (faster),
 
4072
# so one script is as good as another.  But avoid the broken or
 
4073
# incompatible versions:
 
4074
# SysV /etc/install, /usr/sbin/install
 
4075
# SunOS /usr/etc/install
 
4076
# IRIX /sbin/install
 
4077
# AIX /bin/install
 
4078
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4079
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4080
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4081
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4082
# OS/2's system install, which has a completely different semantic
 
4083
# ./install, which can be erroneously created by make from ./install.sh.
 
4084
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
4085
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
4086
if test -z "$INSTALL"; then
 
4087
if test "${ac_cv_path_install+set}" = set; then
 
4088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4089
else
 
4090
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4091
for as_dir in $PATH
 
4092
do
 
4093
  IFS=$as_save_IFS
 
4094
  test -z "$as_dir" && as_dir=.
 
4095
  # Account for people who put trailing slashes in PATH elements.
 
4096
case $as_dir/ in
 
4097
  ./ | .// | /cC/* | \
 
4098
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4099
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
4100
  /usr/ucb/* ) ;;
 
4101
  *)
 
4102
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4103
    # Don't use installbsd from OSF since it installs stuff as root
 
4104
    # by default.
 
4105
    for ac_prog in ginstall scoinst install; do
 
4106
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4107
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
4108
          if test $ac_prog = install &&
 
4109
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4110
            # AIX install.  It has an incompatible calling convention.
 
4111
            :
 
4112
          elif test $ac_prog = install &&
 
4113
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4114
            # program-specific install script used by HP pwplus--don't use.
 
4115
            :
 
4116
          else
 
4117
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4118
            break 3
 
4119
          fi
 
4120
        fi
 
4121
      done
 
4122
    done
 
4123
    ;;
 
4124
esac
 
4125
done
 
4126
 
 
4127
 
 
4128
fi
 
4129
  if test "${ac_cv_path_install+set}" = set; then
 
4130
    INSTALL=$ac_cv_path_install
 
4131
  else
 
4132
    # As a last resort, use the slow shell script.  We don't cache a
 
4133
    # path for INSTALL within a source directory, because that will
 
4134
    # break other packages using the cache if that directory is
 
4135
    # removed, or if the path is relative.
 
4136
    INSTALL=$ac_install_sh
 
4137
  fi
 
4138
fi
 
4139
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
4140
echo "${ECHO_T}$INSTALL" >&6
 
4141
 
 
4142
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4143
# It thinks the first close brace ends the variable substitution.
 
4144
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4145
 
 
4146
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4147
 
 
4148
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4149
 
 
4150
missing_dir=`cd $ac_aux_dir && pwd`
 
4151
for ac_prog in flex lex
 
4152
do
 
4153
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4154
set dummy $ac_prog; ac_word=$2
 
4155
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4156
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4157
if test "${ac_cv_prog_LEX+set}" = set; then
 
4158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4159
else
 
4160
  if test -n "$LEX"; then
 
4161
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
4162
else
 
4163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4164
for as_dir in $PATH
 
4165
do
 
4166
  IFS=$as_save_IFS
 
4167
  test -z "$as_dir" && as_dir=.
 
4168
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4169
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4170
    ac_cv_prog_LEX="$ac_prog"
 
4171
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4172
    break 2
 
4173
  fi
 
4174
done
 
4175
done
 
4176
 
 
4177
fi
 
4178
fi
 
4179
LEX=$ac_cv_prog_LEX
 
4180
if test -n "$LEX"; then
 
4181
  echo "$as_me:$LINENO: result: $LEX" >&5
 
4182
echo "${ECHO_T}$LEX" >&6
 
4183
else
 
4184
  echo "$as_me:$LINENO: result: no" >&5
 
4185
echo "${ECHO_T}no" >&6
 
4186
fi
 
4187
 
 
4188
  test -n "$LEX" && break
 
4189
done
 
4190
test -n "$LEX" || LEX="$missing_dir/missing flex"
 
4191
 
 
4192
for ac_prog in flex lex
 
4193
do
 
4194
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4195
set dummy $ac_prog; ac_word=$2
 
4196
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4198
if test "${ac_cv_prog_LEX+set}" = set; then
 
4199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4200
else
 
4201
  if test -n "$LEX"; then
 
4202
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
4203
else
 
4204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4205
for as_dir in $PATH
 
4206
do
 
4207
  IFS=$as_save_IFS
 
4208
  test -z "$as_dir" && as_dir=.
 
4209
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4210
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4211
    ac_cv_prog_LEX="$ac_prog"
 
4212
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4213
    break 2
 
4214
  fi
 
4215
done
 
4216
done
 
4217
 
 
4218
fi
 
4219
fi
 
4220
LEX=$ac_cv_prog_LEX
 
4221
if test -n "$LEX"; then
 
4222
  echo "$as_me:$LINENO: result: $LEX" >&5
 
4223
echo "${ECHO_T}$LEX" >&6
 
4224
else
 
4225
  echo "$as_me:$LINENO: result: no" >&5
 
4226
echo "${ECHO_T}no" >&6
 
4227
fi
 
4228
 
 
4229
  test -n "$LEX" && break
 
4230
done
 
4231
test -n "$LEX" || LEX=":"
 
4232
 
 
4233
if test -z "$LEXLIB"
 
4234
then
 
4235
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 
4236
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 
4237
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 
4238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4239
else
 
4240
  ac_check_lib_save_LIBS=$LIBS
 
4241
LIBS="-lfl  $LIBS"
 
4242
cat >conftest.$ac_ext <<_ACEOF
 
4243
/* confdefs.h.  */
 
4244
_ACEOF
 
4245
cat confdefs.h >>conftest.$ac_ext
 
4246
cat >>conftest.$ac_ext <<_ACEOF
 
4247
/* end confdefs.h.  */
 
4248
 
 
4249
/* Override any gcc2 internal prototype to avoid an error.  */
 
4250
#ifdef __cplusplus
 
4251
extern "C"
 
4252
#endif
 
4253
/* We use char because int might match the return type of a gcc2
 
4254
   builtin and then its argument prototype would still apply.  */
 
4255
char yywrap ();
 
4256
int
 
4257
main ()
 
4258
{
 
4259
yywrap ();
 
4260
  ;
 
4261
  return 0;
 
4262
}
 
4263
_ACEOF
 
4264
rm -f conftest.$ac_objext conftest$ac_exeext
 
4265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4266
  (eval $ac_link) 2>conftest.er1
 
4267
  ac_status=$?
 
4268
  grep -v '^ *+' conftest.er1 >conftest.err
 
4269
  rm -f conftest.er1
 
4270
  cat conftest.err >&5
 
4271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4272
  (exit $ac_status); } &&
 
4273
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4275
  (eval $ac_try) 2>&5
 
4276
  ac_status=$?
 
4277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4278
  (exit $ac_status); }; } &&
 
4279
         { ac_try='test -s conftest$ac_exeext'
 
4280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4281
  (eval $ac_try) 2>&5
 
4282
  ac_status=$?
 
4283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4284
  (exit $ac_status); }; }; then
 
4285
  ac_cv_lib_fl_yywrap=yes
 
4286
else
 
4287
  echo "$as_me: failed program was:" >&5
 
4288
sed 's/^/| /' conftest.$ac_ext >&5
 
4289
 
 
4290
ac_cv_lib_fl_yywrap=no
 
4291
fi
 
4292
rm -f conftest.err conftest.$ac_objext \
 
4293
      conftest$ac_exeext conftest.$ac_ext
 
4294
LIBS=$ac_check_lib_save_LIBS
 
4295
fi
 
4296
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 
4297
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 
4298
if test $ac_cv_lib_fl_yywrap = yes; then
 
4299
  LEXLIB="-lfl"
 
4300
else
 
4301
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 
4302
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 
4303
if test "${ac_cv_lib_l_yywrap+set}" = set; then
 
4304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4305
else
 
4306
  ac_check_lib_save_LIBS=$LIBS
 
4307
LIBS="-ll  $LIBS"
 
4308
cat >conftest.$ac_ext <<_ACEOF
 
4309
/* confdefs.h.  */
 
4310
_ACEOF
 
4311
cat confdefs.h >>conftest.$ac_ext
 
4312
cat >>conftest.$ac_ext <<_ACEOF
 
4313
/* end confdefs.h.  */
 
4314
 
 
4315
/* Override any gcc2 internal prototype to avoid an error.  */
 
4316
#ifdef __cplusplus
 
4317
extern "C"
 
4318
#endif
 
4319
/* We use char because int might match the return type of a gcc2
 
4320
   builtin and then its argument prototype would still apply.  */
 
4321
char yywrap ();
 
4322
int
 
4323
main ()
 
4324
{
 
4325
yywrap ();
 
4326
  ;
 
4327
  return 0;
 
4328
}
 
4329
_ACEOF
 
4330
rm -f conftest.$ac_objext conftest$ac_exeext
 
4331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4332
  (eval $ac_link) 2>conftest.er1
 
4333
  ac_status=$?
 
4334
  grep -v '^ *+' conftest.er1 >conftest.err
 
4335
  rm -f conftest.er1
 
4336
  cat conftest.err >&5
 
4337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4338
  (exit $ac_status); } &&
 
4339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4341
  (eval $ac_try) 2>&5
 
4342
  ac_status=$?
 
4343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4344
  (exit $ac_status); }; } &&
 
4345
         { ac_try='test -s conftest$ac_exeext'
 
4346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4347
  (eval $ac_try) 2>&5
 
4348
  ac_status=$?
 
4349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4350
  (exit $ac_status); }; }; then
 
4351
  ac_cv_lib_l_yywrap=yes
 
4352
else
 
4353
  echo "$as_me: failed program was:" >&5
 
4354
sed 's/^/| /' conftest.$ac_ext >&5
 
4355
 
 
4356
ac_cv_lib_l_yywrap=no
 
4357
fi
 
4358
rm -f conftest.err conftest.$ac_objext \
 
4359
      conftest$ac_exeext conftest.$ac_ext
 
4360
LIBS=$ac_check_lib_save_LIBS
 
4361
fi
 
4362
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 
4363
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 
4364
if test $ac_cv_lib_l_yywrap = yes; then
 
4365
  LEXLIB="-ll"
 
4366
fi
 
4367
 
 
4368
fi
 
4369
 
 
4370
fi
 
4371
 
 
4372
if test "x$LEX" != "x:"; then
 
4373
  echo "$as_me:$LINENO: checking lex output file root" >&5
 
4374
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
 
4375
if test "${ac_cv_prog_lex_root+set}" = set; then
 
4376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4377
else
 
4378
  # The minimal lex program is just a single line: %%.  But some broken lexes
 
4379
# (Solaris, I think it was) want two %% lines, so accommodate them.
 
4380
cat >conftest.l <<_ACEOF
 
4381
%%
 
4382
%%
 
4383
_ACEOF
 
4384
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
 
4385
  (eval $LEX conftest.l) 2>&5
 
4386
  ac_status=$?
 
4387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4388
  (exit $ac_status); }
 
4389
if test -f lex.yy.c; then
 
4390
  ac_cv_prog_lex_root=lex.yy
 
4391
elif test -f lexyy.c; then
 
4392
  ac_cv_prog_lex_root=lexyy
 
4393
else
 
4394
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
4395
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
4396
   { (exit 1); exit 1; }; }
 
4397
fi
 
4398
fi
 
4399
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
4400
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
 
4401
rm -f conftest.l
 
4402
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
4403
 
 
4404
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
4405
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
 
4406
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
4407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4408
else
 
4409
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
4410
# default is implementation-dependent. Figure out which it is, since
 
4411
# not all implementations provide the %pointer and %array declarations.
 
4412
ac_cv_prog_lex_yytext_pointer=no
 
4413
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 
4414
ac_save_LIBS=$LIBS
 
4415
LIBS="$LIBS $LEXLIB"
 
4416
cat >conftest.$ac_ext <<_ACEOF
 
4417
`cat $LEX_OUTPUT_ROOT.c`
 
4418
_ACEOF
 
4419
rm -f conftest.$ac_objext conftest$ac_exeext
 
4420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4421
  (eval $ac_link) 2>conftest.er1
 
4422
  ac_status=$?
 
4423
  grep -v '^ *+' conftest.er1 >conftest.err
 
4424
  rm -f conftest.er1
 
4425
  cat conftest.err >&5
 
4426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4427
  (exit $ac_status); } &&
 
4428
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4430
  (eval $ac_try) 2>&5
 
4431
  ac_status=$?
 
4432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4433
  (exit $ac_status); }; } &&
 
4434
         { ac_try='test -s conftest$ac_exeext'
 
4435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4436
  (eval $ac_try) 2>&5
 
4437
  ac_status=$?
 
4438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4439
  (exit $ac_status); }; }; then
 
4440
  ac_cv_prog_lex_yytext_pointer=yes
 
4441
else
 
4442
  echo "$as_me: failed program was:" >&5
 
4443
sed 's/^/| /' conftest.$ac_ext >&5
 
4444
 
 
4445
fi
 
4446
rm -f conftest.err conftest.$ac_objext \
 
4447
      conftest$ac_exeext conftest.$ac_ext
 
4448
LIBS=$ac_save_LIBS
 
4449
rm -f "${LEX_OUTPUT_ROOT}.c"
 
4450
 
 
4451
fi
 
4452
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
4453
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
 
4454
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
4455
 
 
4456
cat >>confdefs.h <<\_ACEOF
 
4457
#define YYTEXT_POINTER 1
 
4458
_ACEOF
 
4459
 
 
4460
fi
 
4461
 
 
4462
fi
 
4463
 
 
4464
for ac_prog in 'bison -y' byacc
 
4465
do
 
4466
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4467
set dummy $ac_prog; ac_word=$2
 
4468
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4469
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4470
if test "${ac_cv_prog_YACC+set}" = set; then
 
4471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4472
else
 
4473
  if test -n "$YACC"; then
 
4474
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
4475
else
 
4476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4477
for as_dir in $PATH
 
4478
do
 
4479
  IFS=$as_save_IFS
 
4480
  test -z "$as_dir" && as_dir=.
 
4481
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4482
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4483
    ac_cv_prog_YACC="$ac_prog"
 
4484
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4485
    break 2
 
4486
  fi
 
4487
done
 
4488
done
 
4489
 
 
4490
fi
 
4491
fi
 
4492
YACC=$ac_cv_prog_YACC
 
4493
if test -n "$YACC"; then
 
4494
  echo "$as_me:$LINENO: result: $YACC" >&5
 
4495
echo "${ECHO_T}$YACC" >&6
 
4496
else
 
4497
  echo "$as_me:$LINENO: result: no" >&5
 
4498
echo "${ECHO_T}no" >&6
 
4499
fi
 
4500
 
 
4501
  test -n "$YACC" && break
 
4502
done
 
4503
test -n "$YACC" || YACC="yacc"
 
4504
 
 
4505
 
 
4506
## Checks for libraries.
 
4507
 
 
4508
echo "$as_me:$LINENO: checking for log in -lm" >&5
 
4509
echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
 
4510
if test "${ac_cv_lib_m_log+set}" = set; then
 
4511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4512
else
 
4513
  ac_check_lib_save_LIBS=$LIBS
 
4514
LIBS="-lm  $LIBS"
 
4515
cat >conftest.$ac_ext <<_ACEOF
 
4516
/* confdefs.h.  */
 
4517
_ACEOF
 
4518
cat confdefs.h >>conftest.$ac_ext
 
4519
cat >>conftest.$ac_ext <<_ACEOF
 
4520
/* end confdefs.h.  */
 
4521
 
 
4522
/* Override any gcc2 internal prototype to avoid an error.  */
 
4523
#ifdef __cplusplus
 
4524
extern "C"
 
4525
#endif
 
4526
/* We use char because int might match the return type of a gcc2
 
4527
   builtin and then its argument prototype would still apply.  */
 
4528
char log ();
 
4529
int
 
4530
main ()
 
4531
{
 
4532
log ();
 
4533
  ;
 
4534
  return 0;
 
4535
}
 
4536
_ACEOF
 
4537
rm -f conftest.$ac_objext conftest$ac_exeext
 
4538
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4539
  (eval $ac_link) 2>conftest.er1
 
4540
  ac_status=$?
 
4541
  grep -v '^ *+' conftest.er1 >conftest.err
 
4542
  rm -f conftest.er1
 
4543
  cat conftest.err >&5
 
4544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4545
  (exit $ac_status); } &&
 
4546
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4548
  (eval $ac_try) 2>&5
 
4549
  ac_status=$?
 
4550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4551
  (exit $ac_status); }; } &&
 
4552
         { ac_try='test -s conftest$ac_exeext'
 
4553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4554
  (eval $ac_try) 2>&5
 
4555
  ac_status=$?
 
4556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4557
  (exit $ac_status); }; }; then
 
4558
  ac_cv_lib_m_log=yes
 
4559
else
 
4560
  echo "$as_me: failed program was:" >&5
 
4561
sed 's/^/| /' conftest.$ac_ext >&5
 
4562
 
 
4563
ac_cv_lib_m_log=no
 
4564
fi
 
4565
rm -f conftest.err conftest.$ac_objext \
 
4566
      conftest$ac_exeext conftest.$ac_ext
 
4567
LIBS=$ac_check_lib_save_LIBS
 
4568
fi
 
4569
echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
 
4570
echo "${ECHO_T}$ac_cv_lib_m_log" >&6
 
4571
if test $ac_cv_lib_m_log = yes; then
 
4572
  cat >>confdefs.h <<_ACEOF
 
4573
#define HAVE_LIBM 1
 
4574
_ACEOF
 
4575
 
 
4576
  LIBS="-lm $LIBS"
 
4577
 
 
4578
fi
 
4579
 
 
4580
 
 
4581
 
 
4582
LDADDINTER=""
 
4583
 
 
4584
INCLUDESINTER=""
 
4585
 
 
4586
# Decide if mailinspect will be interactive
 
4587
echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
 
4588
echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
 
4589
if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
 
4590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4591
else
 
4592
  ac_check_lib_save_LIBS=$LIBS
 
4593
LIBS="-lncurses  $LIBS"
 
4594
cat >conftest.$ac_ext <<_ACEOF
 
4595
/* confdefs.h.  */
 
4596
_ACEOF
 
4597
cat confdefs.h >>conftest.$ac_ext
 
4598
cat >>conftest.$ac_ext <<_ACEOF
 
4599
/* end confdefs.h.  */
 
4600
 
 
4601
/* Override any gcc2 internal prototype to avoid an error.  */
 
4602
#ifdef __cplusplus
 
4603
extern "C"
 
4604
#endif
 
4605
/* We use char because int might match the return type of a gcc2
 
4606
   builtin and then its argument prototype would still apply.  */
 
4607
char initscr ();
 
4608
int
 
4609
main ()
 
4610
{
 
4611
initscr ();
 
4612
  ;
 
4613
  return 0;
 
4614
}
 
4615
_ACEOF
 
4616
rm -f conftest.$ac_objext conftest$ac_exeext
 
4617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4618
  (eval $ac_link) 2>conftest.er1
 
4619
  ac_status=$?
 
4620
  grep -v '^ *+' conftest.er1 >conftest.err
 
4621
  rm -f conftest.er1
 
4622
  cat conftest.err >&5
 
4623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4624
  (exit $ac_status); } &&
 
4625
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4627
  (eval $ac_try) 2>&5
 
4628
  ac_status=$?
 
4629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4630
  (exit $ac_status); }; } &&
 
4631
         { ac_try='test -s conftest$ac_exeext'
 
4632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4633
  (eval $ac_try) 2>&5
 
4634
  ac_status=$?
 
4635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4636
  (exit $ac_status); }; }; then
 
4637
  ac_cv_lib_ncurses_initscr=yes
 
4638
else
 
4639
  echo "$as_me: failed program was:" >&5
 
4640
sed 's/^/| /' conftest.$ac_ext >&5
 
4641
 
 
4642
ac_cv_lib_ncurses_initscr=no
 
4643
fi
 
4644
rm -f conftest.err conftest.$ac_objext \
 
4645
      conftest$ac_exeext conftest.$ac_ext
 
4646
LIBS=$ac_check_lib_save_LIBS
 
4647
fi
 
4648
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
 
4649
echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
 
4650
if test $ac_cv_lib_ncurses_initscr = yes; then
 
4651
 
 
4652
        echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
 
4653
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
 
4654
if test "${ac_cv_lib_readline_readline+set}" = set; then
 
4655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4656
else
 
4657
  ac_check_lib_save_LIBS=$LIBS
 
4658
LIBS="-lreadline  $LIBS"
 
4659
cat >conftest.$ac_ext <<_ACEOF
 
4660
/* confdefs.h.  */
 
4661
_ACEOF
 
4662
cat confdefs.h >>conftest.$ac_ext
 
4663
cat >>conftest.$ac_ext <<_ACEOF
 
4664
/* end confdefs.h.  */
 
4665
 
 
4666
/* Override any gcc2 internal prototype to avoid an error.  */
 
4667
#ifdef __cplusplus
 
4668
extern "C"
 
4669
#endif
 
4670
/* We use char because int might match the return type of a gcc2
 
4671
   builtin and then its argument prototype would still apply.  */
 
4672
char readline ();
 
4673
int
 
4674
main ()
 
4675
{
 
4676
readline ();
 
4677
  ;
 
4678
  return 0;
 
4679
}
 
4680
_ACEOF
 
4681
rm -f conftest.$ac_objext conftest$ac_exeext
 
4682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4683
  (eval $ac_link) 2>conftest.er1
 
4684
  ac_status=$?
 
4685
  grep -v '^ *+' conftest.er1 >conftest.err
 
4686
  rm -f conftest.er1
 
4687
  cat conftest.err >&5
 
4688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4689
  (exit $ac_status); } &&
 
4690
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4692
  (eval $ac_try) 2>&5
 
4693
  ac_status=$?
 
4694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4695
  (exit $ac_status); }; } &&
 
4696
         { ac_try='test -s conftest$ac_exeext'
 
4697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4698
  (eval $ac_try) 2>&5
 
4699
  ac_status=$?
 
4700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4701
  (exit $ac_status); }; }; then
 
4702
  ac_cv_lib_readline_readline=yes
 
4703
else
 
4704
  echo "$as_me: failed program was:" >&5
 
4705
sed 's/^/| /' conftest.$ac_ext >&5
 
4706
 
 
4707
ac_cv_lib_readline_readline=no
 
4708
fi
 
4709
rm -f conftest.err conftest.$ac_objext \
 
4710
      conftest$ac_exeext conftest.$ac_ext
 
4711
LIBS=$ac_check_lib_save_LIBS
 
4712
fi
 
4713
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
 
4714
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
 
4715
if test $ac_cv_lib_readline_readline = yes; then
 
4716
 
 
4717
                echo "$as_me:$LINENO: checking for SLsmg_init_smg in -lslang" >&5
 
4718
echo $ECHO_N "checking for SLsmg_init_smg in -lslang... $ECHO_C" >&6
 
4719
if test "${ac_cv_lib_slang_SLsmg_init_smg+set}" = set; then
 
4720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4721
else
 
4722
  ac_check_lib_save_LIBS=$LIBS
 
4723
LIBS="-lslang  $LIBS"
 
4724
cat >conftest.$ac_ext <<_ACEOF
 
4725
/* confdefs.h.  */
 
4726
_ACEOF
 
4727
cat confdefs.h >>conftest.$ac_ext
 
4728
cat >>conftest.$ac_ext <<_ACEOF
 
4729
/* end confdefs.h.  */
 
4730
 
 
4731
/* Override any gcc2 internal prototype to avoid an error.  */
 
4732
#ifdef __cplusplus
 
4733
extern "C"
 
4734
#endif
 
4735
/* We use char because int might match the return type of a gcc2
 
4736
   builtin and then its argument prototype would still apply.  */
 
4737
char SLsmg_init_smg ();
 
4738
int
 
4739
main ()
 
4740
{
 
4741
SLsmg_init_smg ();
 
4742
  ;
 
4743
  return 0;
 
4744
}
 
4745
_ACEOF
 
4746
rm -f conftest.$ac_objext conftest$ac_exeext
 
4747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4748
  (eval $ac_link) 2>conftest.er1
 
4749
  ac_status=$?
 
4750
  grep -v '^ *+' conftest.er1 >conftest.err
 
4751
  rm -f conftest.er1
 
4752
  cat conftest.err >&5
 
4753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4754
  (exit $ac_status); } &&
 
4755
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4757
  (eval $ac_try) 2>&5
 
4758
  ac_status=$?
 
4759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4760
  (exit $ac_status); }; } &&
 
4761
         { ac_try='test -s conftest$ac_exeext'
 
4762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4763
  (eval $ac_try) 2>&5
 
4764
  ac_status=$?
 
4765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4766
  (exit $ac_status); }; }; then
 
4767
  ac_cv_lib_slang_SLsmg_init_smg=yes
 
4768
else
 
4769
  echo "$as_me: failed program was:" >&5
 
4770
sed 's/^/| /' conftest.$ac_ext >&5
 
4771
 
 
4772
ac_cv_lib_slang_SLsmg_init_smg=no
 
4773
fi
 
4774
rm -f conftest.err conftest.$ac_objext \
 
4775
      conftest$ac_exeext conftest.$ac_ext
 
4776
LIBS=$ac_check_lib_save_LIBS
 
4777
fi
 
4778
echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLsmg_init_smg" >&5
 
4779
echo "${ECHO_T}$ac_cv_lib_slang_SLsmg_init_smg" >&6
 
4780
if test $ac_cv_lib_slang_SLsmg_init_smg = yes; then
 
4781
 
 
4782
                        LDADDINTER="-lslang -lreadline -lncurses"
 
4783
 
 
4784
                        INCLUDESINTER="-I/usr/include/slang"
 
4785
 
 
4786
 
 
4787
cat >>confdefs.h <<\_ACEOF
 
4788
#define HAVE_LIBNCURSES
 
4789
_ACEOF
 
4790
 
 
4791
 
 
4792
cat >>confdefs.h <<\_ACEOF
 
4793
#define HAVE_LIBSLANG
 
4794
_ACEOF
 
4795
 
 
4796
 
 
4797
cat >>confdefs.h <<\_ACEOF
 
4798
#define HAVE_LIBREADLINE
 
4799
_ACEOF
 
4800
 
 
4801
 
 
4802
else
 
4803
  { echo "$as_me:$LINENO: WARNING: libslang missing, disabling interactive mailinspect" >&5
 
4804
echo "$as_me: WARNING: libslang missing, disabling interactive mailinspect" >&2;}
 
4805
fi
 
4806
 
 
4807
 
 
4808
else
 
4809
  { echo "$as_me:$LINENO: WARNING: libreadline missing, disabling interactive mailinspect" >&5
 
4810
echo "$as_me: WARNING: libreadline missing, disabling interactive mailinspect" >&2;}
 
4811
fi
 
4812
 
 
4813
 
 
4814
else
 
4815
  { echo "$as_me:$LINENO: WARNING: libncurses missing (needed by readline), disabling interactive mailinspect" >&5
 
4816
echo "$as_me: WARNING: libncurses missing (needed by readline), disabling interactive mailinspect" >&2;}
 
4817
fi
 
4818
 
 
4819
 
 
4820
## Checks for header files.
 
4821
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4822
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4823
if test "${ac_cv_header_stdc+set}" = set; then
 
4824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4825
else
 
4826
  cat >conftest.$ac_ext <<_ACEOF
 
4827
/* confdefs.h.  */
 
4828
_ACEOF
 
4829
cat confdefs.h >>conftest.$ac_ext
 
4830
cat >>conftest.$ac_ext <<_ACEOF
 
4831
/* end confdefs.h.  */
 
4832
#include <stdlib.h>
 
4833
#include <stdarg.h>
 
4834
#include <string.h>
 
4835
#include <float.h>
 
4836
 
 
4837
int
 
4838
main ()
 
4839
{
 
4840
 
 
4841
  ;
 
4842
  return 0;
 
4843
}
 
4844
_ACEOF
 
4845
rm -f conftest.$ac_objext
 
4846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4847
  (eval $ac_compile) 2>conftest.er1
 
4848
  ac_status=$?
 
4849
  grep -v '^ *+' conftest.er1 >conftest.err
 
4850
  rm -f conftest.er1
 
4851
  cat conftest.err >&5
 
4852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4853
  (exit $ac_status); } &&
 
4854
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4856
  (eval $ac_try) 2>&5
 
4857
  ac_status=$?
 
4858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4859
  (exit $ac_status); }; } &&
 
4860
         { ac_try='test -s conftest.$ac_objext'
 
4861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4862
  (eval $ac_try) 2>&5
 
4863
  ac_status=$?
 
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4865
  (exit $ac_status); }; }; then
 
4866
  ac_cv_header_stdc=yes
 
4867
else
 
4868
  echo "$as_me: failed program was:" >&5
 
4869
sed 's/^/| /' conftest.$ac_ext >&5
 
4870
 
 
4871
ac_cv_header_stdc=no
 
4872
fi
 
4873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4874
 
 
4875
if test $ac_cv_header_stdc = yes; then
 
4876
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4877
  cat >conftest.$ac_ext <<_ACEOF
 
4878
/* confdefs.h.  */
 
4879
_ACEOF
 
4880
cat confdefs.h >>conftest.$ac_ext
 
4881
cat >>conftest.$ac_ext <<_ACEOF
 
4882
/* end confdefs.h.  */
 
4883
#include <string.h>
 
4884
 
 
4885
_ACEOF
 
4886
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4887
  $EGREP "memchr" >/dev/null 2>&1; then
 
4888
  :
 
4889
else
 
4890
  ac_cv_header_stdc=no
 
4891
fi
 
4892
rm -f conftest*
 
4893
 
 
4894
fi
 
4895
 
 
4896
if test $ac_cv_header_stdc = yes; then
 
4897
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4898
  cat >conftest.$ac_ext <<_ACEOF
 
4899
/* confdefs.h.  */
 
4900
_ACEOF
 
4901
cat confdefs.h >>conftest.$ac_ext
 
4902
cat >>conftest.$ac_ext <<_ACEOF
 
4903
/* end confdefs.h.  */
 
4904
#include <stdlib.h>
 
4905
 
 
4906
_ACEOF
 
4907
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4908
  $EGREP "free" >/dev/null 2>&1; then
 
4909
  :
 
4910
else
 
4911
  ac_cv_header_stdc=no
 
4912
fi
 
4913
rm -f conftest*
 
4914
 
 
4915
fi
 
4916
 
 
4917
if test $ac_cv_header_stdc = yes; then
 
4918
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4919
  if test "$cross_compiling" = yes; then
 
4920
  :
 
4921
else
 
4922
  cat >conftest.$ac_ext <<_ACEOF
 
4923
/* confdefs.h.  */
 
4924
_ACEOF
 
4925
cat confdefs.h >>conftest.$ac_ext
 
4926
cat >>conftest.$ac_ext <<_ACEOF
 
4927
/* end confdefs.h.  */
 
4928
#include <ctype.h>
 
4929
#if ((' ' & 0x0FF) == 0x020)
 
4930
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4931
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4932
#else
 
4933
# define ISLOWER(c) \
 
4934
                   (('a' <= (c) && (c) <= 'i') \
 
4935
                     || ('j' <= (c) && (c) <= 'r') \
 
4936
                     || ('s' <= (c) && (c) <= 'z'))
 
4937
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4938
#endif
 
4939
 
 
4940
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4941
int
 
4942
main ()
 
4943
{
 
4944
  int i;
 
4945
  for (i = 0; i < 256; i++)
 
4946
    if (XOR (islower (i), ISLOWER (i))
 
4947
        || toupper (i) != TOUPPER (i))
 
4948
      exit(2);
 
4949
  exit (0);
 
4950
}
 
4951
_ACEOF
 
4952
rm -f conftest$ac_exeext
 
4953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4954
  (eval $ac_link) 2>&5
 
4955
  ac_status=$?
 
4956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4957
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4959
  (eval $ac_try) 2>&5
 
4960
  ac_status=$?
 
4961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4962
  (exit $ac_status); }; }; then
 
4963
  :
 
4964
else
 
4965
  echo "$as_me: program exited with status $ac_status" >&5
 
4966
echo "$as_me: failed program was:" >&5
 
4967
sed 's/^/| /' conftest.$ac_ext >&5
 
4968
 
 
4969
( exit $ac_status )
 
4970
ac_cv_header_stdc=no
 
4971
fi
 
4972
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4973
fi
 
4974
fi
 
4975
fi
 
4976
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4977
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4978
if test $ac_cv_header_stdc = yes; then
 
4979
 
 
4980
cat >>confdefs.h <<\_ACEOF
 
4981
#define STDC_HEADERS 1
 
4982
_ACEOF
 
4983
 
 
4984
fi
 
4985
 
 
4986
 
 
4987
 
 
4988
 
 
4989
 
 
4990
 
 
4991
 
 
4992
for ac_header in features.h langinfo.h unistd.h sys/mman.h mman.h netinet/in.h
 
4993
do
 
4994
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4995
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4996
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4997
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5000
fi
 
5001
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5002
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5003
else
 
5004
  # Is the header compilable?
 
5005
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5006
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5007
cat >conftest.$ac_ext <<_ACEOF
 
5008
/* confdefs.h.  */
 
5009
_ACEOF
 
5010
cat confdefs.h >>conftest.$ac_ext
 
5011
cat >>conftest.$ac_ext <<_ACEOF
 
5012
/* end confdefs.h.  */
 
5013
$ac_includes_default
 
5014
#include <$ac_header>
 
5015
_ACEOF
 
5016
rm -f conftest.$ac_objext
 
5017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5018
  (eval $ac_compile) 2>conftest.er1
 
5019
  ac_status=$?
 
5020
  grep -v '^ *+' conftest.er1 >conftest.err
 
5021
  rm -f conftest.er1
 
5022
  cat conftest.err >&5
 
5023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5024
  (exit $ac_status); } &&
 
5025
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5027
  (eval $ac_try) 2>&5
 
5028
  ac_status=$?
 
5029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5030
  (exit $ac_status); }; } &&
 
5031
         { ac_try='test -s conftest.$ac_objext'
 
5032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5033
  (eval $ac_try) 2>&5
 
5034
  ac_status=$?
 
5035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5036
  (exit $ac_status); }; }; then
 
5037
  ac_header_compiler=yes
 
5038
else
 
5039
  echo "$as_me: failed program was:" >&5
 
5040
sed 's/^/| /' conftest.$ac_ext >&5
 
5041
 
 
5042
ac_header_compiler=no
 
5043
fi
 
5044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5045
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5046
echo "${ECHO_T}$ac_header_compiler" >&6
 
5047
 
 
5048
# Is the header present?
 
5049
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5050
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5051
cat >conftest.$ac_ext <<_ACEOF
 
5052
/* confdefs.h.  */
 
5053
_ACEOF
 
5054
cat confdefs.h >>conftest.$ac_ext
 
5055
cat >>conftest.$ac_ext <<_ACEOF
 
5056
/* end confdefs.h.  */
 
5057
#include <$ac_header>
 
5058
_ACEOF
 
5059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5060
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5061
  ac_status=$?
 
5062
  grep -v '^ *+' conftest.er1 >conftest.err
 
5063
  rm -f conftest.er1
 
5064
  cat conftest.err >&5
 
5065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5066
  (exit $ac_status); } >/dev/null; then
 
5067
  if test -s conftest.err; then
 
5068
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5069
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5070
  else
 
5071
    ac_cpp_err=
 
5072
  fi
 
5073
else
 
5074
  ac_cpp_err=yes
 
5075
fi
 
5076
if test -z "$ac_cpp_err"; then
 
5077
  ac_header_preproc=yes
 
5078
else
 
5079
  echo "$as_me: failed program was:" >&5
 
5080
sed 's/^/| /' conftest.$ac_ext >&5
 
5081
 
 
5082
  ac_header_preproc=no
 
5083
fi
 
5084
rm -f conftest.err conftest.$ac_ext
 
5085
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5086
echo "${ECHO_T}$ac_header_preproc" >&6
 
5087
 
 
5088
# So?  What about this header?
 
5089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5090
  yes:no: )
 
5091
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5092
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5093
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5094
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5095
    ac_header_preproc=yes
 
5096
    ;;
 
5097
  no:yes:* )
 
5098
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5099
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5100
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5101
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5102
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5103
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5104
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5105
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5106
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5107
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5108
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5109
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5110
    (
 
5111
      cat <<\_ASBOX
 
5112
## -------------------------------- ##
 
5113
## Report this to laird@lbreyer.com ##
 
5114
## -------------------------------- ##
 
5115
_ASBOX
 
5116
    ) |
 
5117
      sed "s/^/$as_me: WARNING:     /" >&2
 
5118
    ;;
 
5119
esac
 
5120
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5122
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5124
else
 
5125
  eval "$as_ac_Header=\$ac_header_preproc"
 
5126
fi
 
5127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5129
 
 
5130
fi
 
5131
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5132
  cat >>confdefs.h <<_ACEOF
 
5133
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5134
_ACEOF
 
5135
 
 
5136
fi
 
5137
 
 
5138
done
 
5139
 
 
5140
 
 
5141
 
 
5142
for ac_header in wchar.h wctype.h
 
5143
do
 
5144
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5145
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5146
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5147
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5148
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5150
fi
 
5151
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5152
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5153
else
 
5154
  # Is the header compilable?
 
5155
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5156
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5157
cat >conftest.$ac_ext <<_ACEOF
 
5158
/* confdefs.h.  */
 
5159
_ACEOF
 
5160
cat confdefs.h >>conftest.$ac_ext
 
5161
cat >>conftest.$ac_ext <<_ACEOF
 
5162
/* end confdefs.h.  */
 
5163
$ac_includes_default
 
5164
#include <$ac_header>
 
5165
_ACEOF
 
5166
rm -f conftest.$ac_objext
 
5167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5168
  (eval $ac_compile) 2>conftest.er1
 
5169
  ac_status=$?
 
5170
  grep -v '^ *+' conftest.er1 >conftest.err
 
5171
  rm -f conftest.er1
 
5172
  cat conftest.err >&5
 
5173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5174
  (exit $ac_status); } &&
 
5175
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5177
  (eval $ac_try) 2>&5
 
5178
  ac_status=$?
 
5179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5180
  (exit $ac_status); }; } &&
 
5181
         { ac_try='test -s conftest.$ac_objext'
 
5182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5183
  (eval $ac_try) 2>&5
 
5184
  ac_status=$?
 
5185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5186
  (exit $ac_status); }; }; then
 
5187
  ac_header_compiler=yes
 
5188
else
 
5189
  echo "$as_me: failed program was:" >&5
 
5190
sed 's/^/| /' conftest.$ac_ext >&5
 
5191
 
 
5192
ac_header_compiler=no
 
5193
fi
 
5194
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5195
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5196
echo "${ECHO_T}$ac_header_compiler" >&6
 
5197
 
 
5198
# Is the header present?
 
5199
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5200
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5201
cat >conftest.$ac_ext <<_ACEOF
 
5202
/* confdefs.h.  */
 
5203
_ACEOF
 
5204
cat confdefs.h >>conftest.$ac_ext
 
5205
cat >>conftest.$ac_ext <<_ACEOF
 
5206
/* end confdefs.h.  */
 
5207
#include <$ac_header>
 
5208
_ACEOF
 
5209
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5210
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5211
  ac_status=$?
 
5212
  grep -v '^ *+' conftest.er1 >conftest.err
 
5213
  rm -f conftest.er1
 
5214
  cat conftest.err >&5
 
5215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5216
  (exit $ac_status); } >/dev/null; then
 
5217
  if test -s conftest.err; then
 
5218
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5219
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5220
  else
 
5221
    ac_cpp_err=
 
5222
  fi
 
5223
else
 
5224
  ac_cpp_err=yes
 
5225
fi
 
5226
if test -z "$ac_cpp_err"; then
 
5227
  ac_header_preproc=yes
 
5228
else
 
5229
  echo "$as_me: failed program was:" >&5
 
5230
sed 's/^/| /' conftest.$ac_ext >&5
 
5231
 
 
5232
  ac_header_preproc=no
 
5233
fi
 
5234
rm -f conftest.err conftest.$ac_ext
 
5235
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5236
echo "${ECHO_T}$ac_header_preproc" >&6
 
5237
 
 
5238
# So?  What about this header?
 
5239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5240
  yes:no: )
 
5241
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5242
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5243
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5244
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5245
    ac_header_preproc=yes
 
5246
    ;;
 
5247
  no:yes:* )
 
5248
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5249
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5250
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5251
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5252
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5253
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5254
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5255
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5256
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5258
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5259
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5260
    (
 
5261
      cat <<\_ASBOX
 
5262
## -------------------------------- ##
 
5263
## Report this to laird@lbreyer.com ##
 
5264
## -------------------------------- ##
 
5265
_ASBOX
 
5266
    ) |
 
5267
      sed "s/^/$as_me: WARNING:     /" >&2
 
5268
    ;;
 
5269
esac
 
5270
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5271
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5272
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5274
else
 
5275
  eval "$as_ac_Header=\$ac_header_preproc"
 
5276
fi
 
5277
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5278
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5279
 
 
5280
fi
 
5281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5282
  cat >>confdefs.h <<_ACEOF
 
5283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5284
_ACEOF
 
5285
 
 
5286
else
 
5287
 
 
5288
        { echo "$as_me:$LINENO: WARNING: No wide character headers, disabling full internationalization." >&5
 
5289
echo "$as_me: WARNING: No wide character headers, disabling full internationalization." >&2;}
 
5290
 
 
5291
fi
 
5292
 
 
5293
done
 
5294
 
 
5295
 
 
5296
## Checks for typedefs, structures, and compiler characteristics.
 
5297
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
5298
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
5299
if test "${ac_cv_c_const+set}" = set; then
 
5300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5301
else
 
5302
  cat >conftest.$ac_ext <<_ACEOF
 
5303
/* confdefs.h.  */
 
5304
_ACEOF
 
5305
cat confdefs.h >>conftest.$ac_ext
 
5306
cat >>conftest.$ac_ext <<_ACEOF
 
5307
/* end confdefs.h.  */
 
5308
 
 
5309
int
 
5310
main ()
 
5311
{
 
5312
/* FIXME: Include the comments suggested by Paul. */
 
5313
#ifndef __cplusplus
 
5314
  /* Ultrix mips cc rejects this.  */
 
5315
  typedef int charset[2];
 
5316
  const charset x;
 
5317
  /* SunOS 4.1.1 cc rejects this.  */
 
5318
  char const *const *ccp;
 
5319
  char **p;
 
5320
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
5321
  struct point {int x, y;};
 
5322
  static struct point const zero = {0,0};
 
5323
  /* AIX XL C 1.02.0.0 rejects this.
 
5324
     It does not let you subtract one const X* pointer from another in
 
5325
     an arm of an if-expression whose if-part is not a constant
 
5326
     expression */
 
5327
  const char *g = "string";
 
5328
  ccp = &g + (g ? g-g : 0);
 
5329
  /* HPUX 7.0 cc rejects these. */
 
5330
  ++ccp;
 
5331
  p = (char**) ccp;
 
5332
  ccp = (char const *const *) p;
 
5333
  { /* SCO 3.2v4 cc rejects this.  */
 
5334
    char *t;
 
5335
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
5336
 
 
5337
    *t++ = 0;
 
5338
  }
 
5339
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
5340
    int x[] = {25, 17};
 
5341
    const int *foo = &x[0];
 
5342
    ++foo;
 
5343
  }
 
5344
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
5345
    typedef const int *iptr;
 
5346
    iptr p = 0;
 
5347
    ++p;
 
5348
  }
 
5349
  { /* AIX XL C 1.02.0.0 rejects this saying
 
5350
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
5351
    struct s { int j; const int *ap[3]; };
 
5352
    struct s *b; b->j = 5;
 
5353
  }
 
5354
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
5355
    const int foo = 10;
 
5356
  }
 
5357
#endif
 
5358
 
 
5359
  ;
 
5360
  return 0;
 
5361
}
 
5362
_ACEOF
 
5363
rm -f conftest.$ac_objext
 
5364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5365
  (eval $ac_compile) 2>conftest.er1
 
5366
  ac_status=$?
 
5367
  grep -v '^ *+' conftest.er1 >conftest.err
 
5368
  rm -f conftest.er1
 
5369
  cat conftest.err >&5
 
5370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5371
  (exit $ac_status); } &&
 
5372
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5374
  (eval $ac_try) 2>&5
 
5375
  ac_status=$?
 
5376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5377
  (exit $ac_status); }; } &&
 
5378
         { ac_try='test -s conftest.$ac_objext'
 
5379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5380
  (eval $ac_try) 2>&5
 
5381
  ac_status=$?
 
5382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5383
  (exit $ac_status); }; }; then
 
5384
  ac_cv_c_const=yes
 
5385
else
 
5386
  echo "$as_me: failed program was:" >&5
 
5387
sed 's/^/| /' conftest.$ac_ext >&5
 
5388
 
 
5389
ac_cv_c_const=no
 
5390
fi
 
5391
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5392
fi
 
5393
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
5394
echo "${ECHO_T}$ac_cv_c_const" >&6
 
5395
if test $ac_cv_c_const = no; then
 
5396
 
 
5397
cat >>confdefs.h <<\_ACEOF
 
5398
#define const
 
5399
_ACEOF
 
5400
 
 
5401
fi
 
5402
 
 
5403
echo "$as_me:$LINENO: checking for size_t" >&5
 
5404
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
5405
if test "${ac_cv_type_size_t+set}" = set; then
 
5406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5407
else
 
5408
  cat >conftest.$ac_ext <<_ACEOF
 
5409
/* confdefs.h.  */
 
5410
_ACEOF
 
5411
cat confdefs.h >>conftest.$ac_ext
 
5412
cat >>conftest.$ac_ext <<_ACEOF
 
5413
/* end confdefs.h.  */
 
5414
$ac_includes_default
 
5415
int
 
5416
main ()
 
5417
{
 
5418
if ((size_t *) 0)
 
5419
  return 0;
 
5420
if (sizeof (size_t))
 
5421
  return 0;
 
5422
  ;
 
5423
  return 0;
 
5424
}
 
5425
_ACEOF
 
5426
rm -f conftest.$ac_objext
 
5427
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5428
  (eval $ac_compile) 2>conftest.er1
 
5429
  ac_status=$?
 
5430
  grep -v '^ *+' conftest.er1 >conftest.err
 
5431
  rm -f conftest.er1
 
5432
  cat conftest.err >&5
 
5433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5434
  (exit $ac_status); } &&
 
5435
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5437
  (eval $ac_try) 2>&5
 
5438
  ac_status=$?
 
5439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5440
  (exit $ac_status); }; } &&
 
5441
         { ac_try='test -s conftest.$ac_objext'
 
5442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5443
  (eval $ac_try) 2>&5
 
5444
  ac_status=$?
 
5445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5446
  (exit $ac_status); }; }; then
 
5447
  ac_cv_type_size_t=yes
 
5448
else
 
5449
  echo "$as_me: failed program was:" >&5
 
5450
sed 's/^/| /' conftest.$ac_ext >&5
 
5451
 
 
5452
ac_cv_type_size_t=no
 
5453
fi
 
5454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5455
fi
 
5456
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
5457
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
5458
if test $ac_cv_type_size_t = yes; then
 
5459
  :
 
5460
else
 
5461
 
 
5462
cat >>confdefs.h <<_ACEOF
 
5463
#define size_t unsigned
 
5464
_ACEOF
 
5465
 
 
5466
fi
 
5467
 
 
5468
 
 
5469
## Checks for library functions.
 
5470
 
 
5471
  echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
 
5472
echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
 
5473
if test "${ac_cv_func_mbrtowc+set}" = set; then
 
5474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5475
else
 
5476
  cat >conftest.$ac_ext <<_ACEOF
 
5477
/* confdefs.h.  */
 
5478
_ACEOF
 
5479
cat confdefs.h >>conftest.$ac_ext
 
5480
cat >>conftest.$ac_ext <<_ACEOF
 
5481
/* end confdefs.h.  */
 
5482
#include <wchar.h>
 
5483
int
 
5484
main ()
 
5485
{
 
5486
mbstate_t state; return ! (sizeof state && mbrtowc);
 
5487
  ;
 
5488
  return 0;
 
5489
}
 
5490
_ACEOF
 
5491
rm -f conftest.$ac_objext conftest$ac_exeext
 
5492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5493
  (eval $ac_link) 2>conftest.er1
 
5494
  ac_status=$?
 
5495
  grep -v '^ *+' conftest.er1 >conftest.err
 
5496
  rm -f conftest.er1
 
5497
  cat conftest.err >&5
 
5498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5499
  (exit $ac_status); } &&
 
5500
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5502
  (eval $ac_try) 2>&5
 
5503
  ac_status=$?
 
5504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5505
  (exit $ac_status); }; } &&
 
5506
         { ac_try='test -s conftest$ac_exeext'
 
5507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5508
  (eval $ac_try) 2>&5
 
5509
  ac_status=$?
 
5510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5511
  (exit $ac_status); }; }; then
 
5512
  ac_cv_func_mbrtowc=yes
 
5513
else
 
5514
  echo "$as_me: failed program was:" >&5
 
5515
sed 's/^/| /' conftest.$ac_ext >&5
 
5516
 
 
5517
ac_cv_func_mbrtowc=no
 
5518
fi
 
5519
rm -f conftest.err conftest.$ac_objext \
 
5520
      conftest$ac_exeext conftest.$ac_ext
 
5521
fi
 
5522
echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
 
5523
echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
 
5524
  if test $ac_cv_func_mbrtowc = yes; then
 
5525
 
 
5526
cat >>confdefs.h <<\_ACEOF
 
5527
#define HAVE_MBRTOWC 1
 
5528
_ACEOF
 
5529
 
 
5530
  fi
 
5531
 
 
5532
 
 
5533
 
 
5534
for ac_header in stdlib.h unistd.h
 
5535
do
 
5536
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5537
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5538
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5539
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5540
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5542
fi
 
5543
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5544
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5545
else
 
5546
  # Is the header compilable?
 
5547
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5548
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5549
cat >conftest.$ac_ext <<_ACEOF
 
5550
/* confdefs.h.  */
 
5551
_ACEOF
 
5552
cat confdefs.h >>conftest.$ac_ext
 
5553
cat >>conftest.$ac_ext <<_ACEOF
 
5554
/* end confdefs.h.  */
 
5555
$ac_includes_default
 
5556
#include <$ac_header>
 
5557
_ACEOF
 
5558
rm -f conftest.$ac_objext
 
5559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5560
  (eval $ac_compile) 2>conftest.er1
 
5561
  ac_status=$?
 
5562
  grep -v '^ *+' conftest.er1 >conftest.err
 
5563
  rm -f conftest.er1
 
5564
  cat conftest.err >&5
 
5565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5566
  (exit $ac_status); } &&
 
5567
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5569
  (eval $ac_try) 2>&5
 
5570
  ac_status=$?
 
5571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5572
  (exit $ac_status); }; } &&
 
5573
         { ac_try='test -s conftest.$ac_objext'
 
5574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5575
  (eval $ac_try) 2>&5
 
5576
  ac_status=$?
 
5577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5578
  (exit $ac_status); }; }; then
 
5579
  ac_header_compiler=yes
 
5580
else
 
5581
  echo "$as_me: failed program was:" >&5
 
5582
sed 's/^/| /' conftest.$ac_ext >&5
 
5583
 
 
5584
ac_header_compiler=no
 
5585
fi
 
5586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5587
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5588
echo "${ECHO_T}$ac_header_compiler" >&6
 
5589
 
 
5590
# Is the header present?
 
5591
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5592
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5593
cat >conftest.$ac_ext <<_ACEOF
 
5594
/* confdefs.h.  */
 
5595
_ACEOF
 
5596
cat confdefs.h >>conftest.$ac_ext
 
5597
cat >>conftest.$ac_ext <<_ACEOF
 
5598
/* end confdefs.h.  */
 
5599
#include <$ac_header>
 
5600
_ACEOF
 
5601
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5602
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5603
  ac_status=$?
 
5604
  grep -v '^ *+' conftest.er1 >conftest.err
 
5605
  rm -f conftest.er1
 
5606
  cat conftest.err >&5
 
5607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5608
  (exit $ac_status); } >/dev/null; then
 
5609
  if test -s conftest.err; then
 
5610
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5611
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5612
  else
 
5613
    ac_cpp_err=
 
5614
  fi
 
5615
else
 
5616
  ac_cpp_err=yes
 
5617
fi
 
5618
if test -z "$ac_cpp_err"; then
 
5619
  ac_header_preproc=yes
 
5620
else
 
5621
  echo "$as_me: failed program was:" >&5
 
5622
sed 's/^/| /' conftest.$ac_ext >&5
 
5623
 
 
5624
  ac_header_preproc=no
 
5625
fi
 
5626
rm -f conftest.err conftest.$ac_ext
 
5627
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5628
echo "${ECHO_T}$ac_header_preproc" >&6
 
5629
 
 
5630
# So?  What about this header?
 
5631
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5632
  yes:no: )
 
5633
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5634
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5635
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5636
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5637
    ac_header_preproc=yes
 
5638
    ;;
 
5639
  no:yes:* )
 
5640
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5641
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5642
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5643
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5644
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5645
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5646
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5647
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5648
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5649
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5650
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5651
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5652
    (
 
5653
      cat <<\_ASBOX
 
5654
## -------------------------------- ##
 
5655
## Report this to laird@lbreyer.com ##
 
5656
## -------------------------------- ##
 
5657
_ASBOX
 
5658
    ) |
 
5659
      sed "s/^/$as_me: WARNING:     /" >&2
 
5660
    ;;
 
5661
esac
 
5662
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5663
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5664
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5666
else
 
5667
  eval "$as_ac_Header=\$ac_header_preproc"
 
5668
fi
 
5669
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5670
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5671
 
 
5672
fi
 
5673
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5674
  cat >>confdefs.h <<_ACEOF
 
5675
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5676
_ACEOF
 
5677
 
 
5678
fi
 
5679
 
 
5680
done
 
5681
 
 
5682
 
 
5683
for ac_func in getpagesize
 
5684
do
 
5685
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5686
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5687
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5688
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5690
else
 
5691
  cat >conftest.$ac_ext <<_ACEOF
 
5692
/* confdefs.h.  */
 
5693
_ACEOF
 
5694
cat confdefs.h >>conftest.$ac_ext
 
5695
cat >>conftest.$ac_ext <<_ACEOF
 
5696
/* end confdefs.h.  */
 
5697
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5698
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5699
#define $ac_func innocuous_$ac_func
 
5700
 
 
5701
/* System header to define __stub macros and hopefully few prototypes,
 
5702
    which can conflict with char $ac_func (); below.
 
5703
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5704
    <limits.h> exists even on freestanding compilers.  */
 
5705
 
 
5706
#ifdef __STDC__
 
5707
# include <limits.h>
 
5708
#else
 
5709
# include <assert.h>
 
5710
#endif
 
5711
 
 
5712
#undef $ac_func
 
5713
 
 
5714
/* Override any gcc2 internal prototype to avoid an error.  */
 
5715
#ifdef __cplusplus
 
5716
extern "C"
 
5717
{
 
5718
#endif
 
5719
/* We use char because int might match the return type of a gcc2
 
5720
   builtin and then its argument prototype would still apply.  */
 
5721
char $ac_func ();
 
5722
/* The GNU C library defines this for functions which it implements
 
5723
    to always fail with ENOSYS.  Some functions are actually named
 
5724
    something starting with __ and the normal name is an alias.  */
 
5725
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5726
choke me
 
5727
#else
 
5728
char (*f) () = $ac_func;
 
5729
#endif
 
5730
#ifdef __cplusplus
 
5731
}
 
5732
#endif
 
5733
 
 
5734
int
 
5735
main ()
 
5736
{
 
5737
return f != $ac_func;
 
5738
  ;
 
5739
  return 0;
 
5740
}
 
5741
_ACEOF
 
5742
rm -f conftest.$ac_objext conftest$ac_exeext
 
5743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5744
  (eval $ac_link) 2>conftest.er1
 
5745
  ac_status=$?
 
5746
  grep -v '^ *+' conftest.er1 >conftest.err
 
5747
  rm -f conftest.er1
 
5748
  cat conftest.err >&5
 
5749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5750
  (exit $ac_status); } &&
 
5751
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5753
  (eval $ac_try) 2>&5
 
5754
  ac_status=$?
 
5755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5756
  (exit $ac_status); }; } &&
 
5757
         { ac_try='test -s conftest$ac_exeext'
 
5758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5759
  (eval $ac_try) 2>&5
 
5760
  ac_status=$?
 
5761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5762
  (exit $ac_status); }; }; then
 
5763
  eval "$as_ac_var=yes"
 
5764
else
 
5765
  echo "$as_me: failed program was:" >&5
 
5766
sed 's/^/| /' conftest.$ac_ext >&5
 
5767
 
 
5768
eval "$as_ac_var=no"
 
5769
fi
 
5770
rm -f conftest.err conftest.$ac_objext \
 
5771
      conftest$ac_exeext conftest.$ac_ext
 
5772
fi
 
5773
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5774
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5775
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5776
  cat >>confdefs.h <<_ACEOF
 
5777
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5778
_ACEOF
 
5779
 
 
5780
fi
 
5781
done
 
5782
 
 
5783
echo "$as_me:$LINENO: checking for working mmap" >&5
 
5784
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
5785
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
5786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5787
else
 
5788
  if test "$cross_compiling" = yes; then
 
5789
  ac_cv_func_mmap_fixed_mapped=no
 
5790
else
 
5791
  cat >conftest.$ac_ext <<_ACEOF
 
5792
/* confdefs.h.  */
 
5793
_ACEOF
 
5794
cat confdefs.h >>conftest.$ac_ext
 
5795
cat >>conftest.$ac_ext <<_ACEOF
 
5796
/* end confdefs.h.  */
 
5797
$ac_includes_default
 
5798
/* malloc might have been renamed as rpl_malloc. */
 
5799
#undef malloc
 
5800
 
 
5801
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5802
   Here is a matrix of mmap possibilities:
 
5803
        mmap private not fixed
 
5804
        mmap private fixed at somewhere currently unmapped
 
5805
        mmap private fixed at somewhere already mapped
 
5806
        mmap shared not fixed
 
5807
        mmap shared fixed at somewhere currently unmapped
 
5808
        mmap shared fixed at somewhere already mapped
 
5809
   For private mappings, we should verify that changes cannot be read()
 
5810
   back from the file, nor mmap's back from the file at a different
 
5811
   address.  (There have been systems where private was not correctly
 
5812
   implemented like the infamous i386 svr4.0, and systems where the
 
5813
   VM page cache was not coherent with the file system buffer cache
 
5814
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5815
   For shared mappings, we should conversely verify that changes get
 
5816
   propagated back to all the places they're supposed to be.
 
5817
 
 
5818
   Grep wants private fixed already mapped.
 
5819
   The main things grep needs to know about mmap are:
 
5820
   * does it exist and is it safe to write into the mmap'd area
 
5821
   * how to use it (BSD variants)  */
 
5822
 
 
5823
#include <fcntl.h>
 
5824
#include <sys/mman.h>
 
5825
 
 
5826
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
5827
char *malloc ();
 
5828
#endif
 
5829
 
 
5830
/* This mess was copied from the GNU getpagesize.h.  */
 
5831
#if !HAVE_GETPAGESIZE
 
5832
/* Assume that all systems that can run configure have sys/param.h.  */
 
5833
# if !HAVE_SYS_PARAM_H
 
5834
#  define HAVE_SYS_PARAM_H 1
 
5835
# endif
 
5836
 
 
5837
# ifdef _SC_PAGESIZE
 
5838
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5839
# else /* no _SC_PAGESIZE */
 
5840
#  if HAVE_SYS_PARAM_H
 
5841
#   include <sys/param.h>
 
5842
#   ifdef EXEC_PAGESIZE
 
5843
#    define getpagesize() EXEC_PAGESIZE
 
5844
#   else /* no EXEC_PAGESIZE */
 
5845
#    ifdef NBPG
 
5846
#     define getpagesize() NBPG * CLSIZE
 
5847
#     ifndef CLSIZE
 
5848
#      define CLSIZE 1
 
5849
#     endif /* no CLSIZE */
 
5850
#    else /* no NBPG */
 
5851
#     ifdef NBPC
 
5852
#      define getpagesize() NBPC
 
5853
#     else /* no NBPC */
 
5854
#      ifdef PAGESIZE
 
5855
#       define getpagesize() PAGESIZE
 
5856
#      endif /* PAGESIZE */
 
5857
#     endif /* no NBPC */
 
5858
#    endif /* no NBPG */
 
5859
#   endif /* no EXEC_PAGESIZE */
 
5860
#  else /* no HAVE_SYS_PARAM_H */
 
5861
#   define getpagesize() 8192   /* punt totally */
 
5862
#  endif /* no HAVE_SYS_PARAM_H */
 
5863
# endif /* no _SC_PAGESIZE */
 
5864
 
 
5865
#endif /* no HAVE_GETPAGESIZE */
 
5866
 
 
5867
int
 
5868
main ()
 
5869
{
 
5870
  char *data, *data2, *data3;
 
5871
  int i, pagesize;
 
5872
  int fd;
 
5873
 
 
5874
  pagesize = getpagesize ();
 
5875
 
 
5876
  /* First, make a file with some known garbage in it. */
 
5877
  data = (char *) malloc (pagesize);
 
5878
  if (!data)
 
5879
    exit (1);
 
5880
  for (i = 0; i < pagesize; ++i)
 
5881
    *(data + i) = rand ();
 
5882
  umask (0);
 
5883
  fd = creat ("conftest.mmap", 0600);
 
5884
  if (fd < 0)
 
5885
    exit (1);
 
5886
  if (write (fd, data, pagesize) != pagesize)
 
5887
    exit (1);
 
5888
  close (fd);
 
5889
 
 
5890
  /* Next, try to mmap the file at a fixed address which already has
 
5891
     something else allocated at it.  If we can, also make sure that
 
5892
     we see the same garbage.  */
 
5893
  fd = open ("conftest.mmap", O_RDWR);
 
5894
  if (fd < 0)
 
5895
    exit (1);
 
5896
  data2 = (char *) malloc (2 * pagesize);
 
5897
  if (!data2)
 
5898
    exit (1);
 
5899
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
5900
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5901
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5902
    exit (1);
 
5903
  for (i = 0; i < pagesize; ++i)
 
5904
    if (*(data + i) != *(data2 + i))
 
5905
      exit (1);
 
5906
 
 
5907
  /* Finally, make sure that changes to the mapped area do not
 
5908
     percolate back to the file as seen by read().  (This is a bug on
 
5909
     some variants of i386 svr4.0.)  */
 
5910
  for (i = 0; i < pagesize; ++i)
 
5911
    *(data2 + i) = *(data2 + i) + 1;
 
5912
  data3 = (char *) malloc (pagesize);
 
5913
  if (!data3)
 
5914
    exit (1);
 
5915
  if (read (fd, data3, pagesize) != pagesize)
 
5916
    exit (1);
 
5917
  for (i = 0; i < pagesize; ++i)
 
5918
    if (*(data + i) != *(data3 + i))
 
5919
      exit (1);
 
5920
  close (fd);
 
5921
  exit (0);
 
5922
}
 
5923
_ACEOF
 
5924
rm -f conftest$ac_exeext
 
5925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5926
  (eval $ac_link) 2>&5
 
5927
  ac_status=$?
 
5928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5929
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5931
  (eval $ac_try) 2>&5
 
5932
  ac_status=$?
 
5933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5934
  (exit $ac_status); }; }; then
 
5935
  ac_cv_func_mmap_fixed_mapped=yes
 
5936
else
 
5937
  echo "$as_me: program exited with status $ac_status" >&5
 
5938
echo "$as_me: failed program was:" >&5
 
5939
sed 's/^/| /' conftest.$ac_ext >&5
 
5940
 
 
5941
( exit $ac_status )
 
5942
ac_cv_func_mmap_fixed_mapped=no
 
5943
fi
 
5944
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5945
fi
 
5946
fi
 
5947
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
5948
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
5949
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
5950
 
 
5951
cat >>confdefs.h <<\_ACEOF
 
5952
#define HAVE_MMAP 1
 
5953
_ACEOF
 
5954
 
 
5955
fi
 
5956
rm -f conftest.mmap
 
5957
 
 
5958
 
 
5959
for ac_func in vprintf
 
5960
do
 
5961
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5962
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5963
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5964
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5966
else
 
5967
  cat >conftest.$ac_ext <<_ACEOF
 
5968
/* confdefs.h.  */
 
5969
_ACEOF
 
5970
cat confdefs.h >>conftest.$ac_ext
 
5971
cat >>conftest.$ac_ext <<_ACEOF
 
5972
/* end confdefs.h.  */
 
5973
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5974
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5975
#define $ac_func innocuous_$ac_func
 
5976
 
 
5977
/* System header to define __stub macros and hopefully few prototypes,
 
5978
    which can conflict with char $ac_func (); below.
 
5979
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5980
    <limits.h> exists even on freestanding compilers.  */
 
5981
 
 
5982
#ifdef __STDC__
 
5983
# include <limits.h>
 
5984
#else
 
5985
# include <assert.h>
 
5986
#endif
 
5987
 
 
5988
#undef $ac_func
 
5989
 
 
5990
/* Override any gcc2 internal prototype to avoid an error.  */
 
5991
#ifdef __cplusplus
 
5992
extern "C"
 
5993
{
 
5994
#endif
 
5995
/* We use char because int might match the return type of a gcc2
 
5996
   builtin and then its argument prototype would still apply.  */
 
5997
char $ac_func ();
 
5998
/* The GNU C library defines this for functions which it implements
 
5999
    to always fail with ENOSYS.  Some functions are actually named
 
6000
    something starting with __ and the normal name is an alias.  */
 
6001
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6002
choke me
 
6003
#else
 
6004
char (*f) () = $ac_func;
 
6005
#endif
 
6006
#ifdef __cplusplus
 
6007
}
 
6008
#endif
 
6009
 
 
6010
int
 
6011
main ()
 
6012
{
 
6013
return f != $ac_func;
 
6014
  ;
 
6015
  return 0;
 
6016
}
 
6017
_ACEOF
 
6018
rm -f conftest.$ac_objext conftest$ac_exeext
 
6019
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6020
  (eval $ac_link) 2>conftest.er1
 
6021
  ac_status=$?
 
6022
  grep -v '^ *+' conftest.er1 >conftest.err
 
6023
  rm -f conftest.er1
 
6024
  cat conftest.err >&5
 
6025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6026
  (exit $ac_status); } &&
 
6027
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6029
  (eval $ac_try) 2>&5
 
6030
  ac_status=$?
 
6031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6032
  (exit $ac_status); }; } &&
 
6033
         { ac_try='test -s conftest$ac_exeext'
 
6034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6035
  (eval $ac_try) 2>&5
 
6036
  ac_status=$?
 
6037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6038
  (exit $ac_status); }; }; then
 
6039
  eval "$as_ac_var=yes"
 
6040
else
 
6041
  echo "$as_me: failed program was:" >&5
 
6042
sed 's/^/| /' conftest.$ac_ext >&5
 
6043
 
 
6044
eval "$as_ac_var=no"
 
6045
fi
 
6046
rm -f conftest.err conftest.$ac_objext \
 
6047
      conftest$ac_exeext conftest.$ac_ext
 
6048
fi
 
6049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6050
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6051
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6052
  cat >>confdefs.h <<_ACEOF
 
6053
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6054
_ACEOF
 
6055
 
 
6056
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
6057
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
6058
if test "${ac_cv_func__doprnt+set}" = set; then
 
6059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6060
else
 
6061
  cat >conftest.$ac_ext <<_ACEOF
 
6062
/* confdefs.h.  */
 
6063
_ACEOF
 
6064
cat confdefs.h >>conftest.$ac_ext
 
6065
cat >>conftest.$ac_ext <<_ACEOF
 
6066
/* end confdefs.h.  */
 
6067
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
6068
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6069
#define _doprnt innocuous__doprnt
 
6070
 
 
6071
/* System header to define __stub macros and hopefully few prototypes,
 
6072
    which can conflict with char _doprnt (); below.
 
6073
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6074
    <limits.h> exists even on freestanding compilers.  */
 
6075
 
 
6076
#ifdef __STDC__
 
6077
# include <limits.h>
 
6078
#else
 
6079
# include <assert.h>
 
6080
#endif
 
6081
 
 
6082
#undef _doprnt
 
6083
 
 
6084
/* Override any gcc2 internal prototype to avoid an error.  */
 
6085
#ifdef __cplusplus
 
6086
extern "C"
 
6087
{
 
6088
#endif
 
6089
/* We use char because int might match the return type of a gcc2
 
6090
   builtin and then its argument prototype would still apply.  */
 
6091
char _doprnt ();
 
6092
/* The GNU C library defines this for functions which it implements
 
6093
    to always fail with ENOSYS.  Some functions are actually named
 
6094
    something starting with __ and the normal name is an alias.  */
 
6095
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
6096
choke me
 
6097
#else
 
6098
char (*f) () = _doprnt;
 
6099
#endif
 
6100
#ifdef __cplusplus
 
6101
}
 
6102
#endif
 
6103
 
 
6104
int
 
6105
main ()
 
6106
{
 
6107
return f != _doprnt;
 
6108
  ;
 
6109
  return 0;
 
6110
}
 
6111
_ACEOF
 
6112
rm -f conftest.$ac_objext conftest$ac_exeext
 
6113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6114
  (eval $ac_link) 2>conftest.er1
 
6115
  ac_status=$?
 
6116
  grep -v '^ *+' conftest.er1 >conftest.err
 
6117
  rm -f conftest.er1
 
6118
  cat conftest.err >&5
 
6119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6120
  (exit $ac_status); } &&
 
6121
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6123
  (eval $ac_try) 2>&5
 
6124
  ac_status=$?
 
6125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6126
  (exit $ac_status); }; } &&
 
6127
         { ac_try='test -s conftest$ac_exeext'
 
6128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6129
  (eval $ac_try) 2>&5
 
6130
  ac_status=$?
 
6131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6132
  (exit $ac_status); }; }; then
 
6133
  ac_cv_func__doprnt=yes
 
6134
else
 
6135
  echo "$as_me: failed program was:" >&5
 
6136
sed 's/^/| /' conftest.$ac_ext >&5
 
6137
 
 
6138
ac_cv_func__doprnt=no
 
6139
fi
 
6140
rm -f conftest.err conftest.$ac_objext \
 
6141
      conftest$ac_exeext conftest.$ac_ext
 
6142
fi
 
6143
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
6144
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
6145
if test $ac_cv_func__doprnt = yes; then
 
6146
 
 
6147
cat >>confdefs.h <<\_ACEOF
 
6148
#define HAVE_DOPRNT 1
 
6149
_ACEOF
 
6150
 
 
6151
fi
 
6152
 
 
6153
fi
 
6154
done
 
6155
 
 
6156
 
 
6157
echo "$as_me:$LINENO: checking for function prototypes" >&5
 
6158
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
 
6159
if test "$ac_cv_prog_cc_stdc" != no; then
 
6160
  echo "$as_me:$LINENO: result: yes" >&5
 
6161
echo "${ECHO_T}yes" >&6
 
6162
 
 
6163
cat >>confdefs.h <<\_ACEOF
 
6164
#define PROTOTYPES 1
 
6165
_ACEOF
 
6166
 
 
6167
 
 
6168
cat >>confdefs.h <<\_ACEOF
 
6169
#define __PROTOTYPES 1
 
6170
_ACEOF
 
6171
 
 
6172
else
 
6173
  echo "$as_me:$LINENO: result: no" >&5
 
6174
echo "${ECHO_T}no" >&6
 
6175
fi
 
6176
 
 
6177
echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
 
6178
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
 
6179
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
 
6180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6181
else
 
6182
  ac_cv_func_setvbuf_reversed=no
 
6183
   cat >conftest.$ac_ext <<_ACEOF
 
6184
/* confdefs.h.  */
 
6185
_ACEOF
 
6186
cat confdefs.h >>conftest.$ac_ext
 
6187
cat >>conftest.$ac_ext <<_ACEOF
 
6188
/* end confdefs.h.  */
 
6189
#include <stdio.h>
 
6190
#         if PROTOTYPES
 
6191
           int (setvbuf) (FILE *, int, char *, size_t);
 
6192
#         endif
 
6193
int
 
6194
main ()
 
6195
{
 
6196
char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
 
6197
  ;
 
6198
  return 0;
 
6199
}
 
6200
_ACEOF
 
6201
rm -f conftest.$ac_objext conftest$ac_exeext
 
6202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6203
  (eval $ac_link) 2>conftest.er1
 
6204
  ac_status=$?
 
6205
  grep -v '^ *+' conftest.er1 >conftest.err
 
6206
  rm -f conftest.er1
 
6207
  cat conftest.err >&5
 
6208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6209
  (exit $ac_status); } &&
 
6210
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6212
  (eval $ac_try) 2>&5
 
6213
  ac_status=$?
 
6214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6215
  (exit $ac_status); }; } &&
 
6216
         { ac_try='test -s conftest$ac_exeext'
 
6217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6218
  (eval $ac_try) 2>&5
 
6219
  ac_status=$?
 
6220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6221
  (exit $ac_status); }; }; then
 
6222
  cat >conftest.$ac_ext <<_ACEOF
 
6223
/* confdefs.h.  */
 
6224
_ACEOF
 
6225
cat confdefs.h >>conftest.$ac_ext
 
6226
cat >>conftest.$ac_ext <<_ACEOF
 
6227
/* end confdefs.h.  */
 
6228
#include <stdio.h>
 
6229
#            if PROTOTYPES
 
6230
              int (setvbuf) (FILE *, int, char *, size_t);
 
6231
#            endif
 
6232
int
 
6233
main ()
 
6234
{
 
6235
char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
 
6236
  ;
 
6237
  return 0;
 
6238
}
 
6239
_ACEOF
 
6240
rm -f conftest.$ac_objext conftest$ac_exeext
 
6241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6242
  (eval $ac_link) 2>conftest.er1
 
6243
  ac_status=$?
 
6244
  grep -v '^ *+' conftest.er1 >conftest.err
 
6245
  rm -f conftest.er1
 
6246
  cat conftest.err >&5
 
6247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6248
  (exit $ac_status); } &&
 
6249
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6251
  (eval $ac_try) 2>&5
 
6252
  ac_status=$?
 
6253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6254
  (exit $ac_status); }; } &&
 
6255
         { ac_try='test -s conftest$ac_exeext'
 
6256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6257
  (eval $ac_try) 2>&5
 
6258
  ac_status=$?
 
6259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6260
  (exit $ac_status); }; }; then
 
6261
  # It compiles and links either way, so it must not be declared
 
6262
         # with a prototype and most likely this is a K&R C compiler.
 
6263
         # Try running it.
 
6264
         if test "$cross_compiling" = yes; then
 
6265
  : # Assume setvbuf is not reversed when cross-compiling.
 
6266
else
 
6267
  cat >conftest.$ac_ext <<_ACEOF
 
6268
/* confdefs.h.  */
 
6269
_ACEOF
 
6270
cat confdefs.h >>conftest.$ac_ext
 
6271
cat >>conftest.$ac_ext <<_ACEOF
 
6272
/* end confdefs.h.  */
 
6273
#include <stdio.h>
 
6274
int
 
6275
main ()
 
6276
{
 
6277
/* This call has the arguments reversed.
 
6278
                   A reversed system may check and see that the address of buf
 
6279
                   is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
 
6280
                char buf;
 
6281
                if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
 
6282
                  exit (1);
 
6283
                putchar ('\r');
 
6284
                exit (0); /* Non-reversed systems SEGV here.  */
 
6285
  ;
 
6286
  return 0;
 
6287
}
 
6288
_ACEOF
 
6289
rm -f conftest$ac_exeext
 
6290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6291
  (eval $ac_link) 2>&5
 
6292
  ac_status=$?
 
6293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6294
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6296
  (eval $ac_try) 2>&5
 
6297
  ac_status=$?
 
6298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6299
  (exit $ac_status); }; }; then
 
6300
  ac_cv_func_setvbuf_reversed=yes
 
6301
else
 
6302
  echo "$as_me: program exited with status $ac_status" >&5
 
6303
echo "$as_me: failed program was:" >&5
 
6304
sed 's/^/| /' conftest.$ac_ext >&5
 
6305
 
 
6306
( exit $ac_status )
 
6307
rm -f core *.core
 
6308
fi
 
6309
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6310
fi
 
6311
        ac_cv_func_setvbuf_reversed=yes
 
6312
else
 
6313
  echo "$as_me: failed program was:" >&5
 
6314
sed 's/^/| /' conftest.$ac_ext >&5
 
6315
 
 
6316
fi
 
6317
rm -f conftest.err conftest.$ac_objext \
 
6318
      conftest$ac_exeext conftest.$ac_ext
 
6319
else
 
6320
  echo "$as_me: failed program was:" >&5
 
6321
sed 's/^/| /' conftest.$ac_ext >&5
 
6322
 
 
6323
fi
 
6324
rm -f conftest.err conftest.$ac_objext \
 
6325
      conftest$ac_exeext conftest.$ac_ext
 
6326
fi
 
6327
echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
 
6328
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
 
6329
if test $ac_cv_func_setvbuf_reversed = yes; then
 
6330
 
 
6331
cat >>confdefs.h <<\_ACEOF
 
6332
#define SETVBUF_REVERSED 1
 
6333
_ACEOF
 
6334
 
 
6335
fi
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
for ac_func in getpagesize madvise sigaction
 
6341
do
 
6342
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6343
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6344
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6345
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6347
else
 
6348
  cat >conftest.$ac_ext <<_ACEOF
 
6349
/* confdefs.h.  */
 
6350
_ACEOF
 
6351
cat confdefs.h >>conftest.$ac_ext
 
6352
cat >>conftest.$ac_ext <<_ACEOF
 
6353
/* end confdefs.h.  */
 
6354
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6355
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6356
#define $ac_func innocuous_$ac_func
 
6357
 
 
6358
/* System header to define __stub macros and hopefully few prototypes,
 
6359
    which can conflict with char $ac_func (); below.
 
6360
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6361
    <limits.h> exists even on freestanding compilers.  */
 
6362
 
 
6363
#ifdef __STDC__
 
6364
# include <limits.h>
 
6365
#else
 
6366
# include <assert.h>
 
6367
#endif
 
6368
 
 
6369
#undef $ac_func
 
6370
 
 
6371
/* Override any gcc2 internal prototype to avoid an error.  */
 
6372
#ifdef __cplusplus
 
6373
extern "C"
 
6374
{
 
6375
#endif
 
6376
/* We use char because int might match the return type of a gcc2
 
6377
   builtin and then its argument prototype would still apply.  */
 
6378
char $ac_func ();
 
6379
/* The GNU C library defines this for functions which it implements
 
6380
    to always fail with ENOSYS.  Some functions are actually named
 
6381
    something starting with __ and the normal name is an alias.  */
 
6382
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6383
choke me
 
6384
#else
 
6385
char (*f) () = $ac_func;
 
6386
#endif
 
6387
#ifdef __cplusplus
 
6388
}
 
6389
#endif
 
6390
 
 
6391
int
 
6392
main ()
 
6393
{
 
6394
return f != $ac_func;
 
6395
  ;
 
6396
  return 0;
 
6397
}
 
6398
_ACEOF
 
6399
rm -f conftest.$ac_objext conftest$ac_exeext
 
6400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6401
  (eval $ac_link) 2>conftest.er1
 
6402
  ac_status=$?
 
6403
  grep -v '^ *+' conftest.er1 >conftest.err
 
6404
  rm -f conftest.er1
 
6405
  cat conftest.err >&5
 
6406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6407
  (exit $ac_status); } &&
 
6408
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6410
  (eval $ac_try) 2>&5
 
6411
  ac_status=$?
 
6412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6413
  (exit $ac_status); }; } &&
 
6414
         { ac_try='test -s conftest$ac_exeext'
 
6415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6416
  (eval $ac_try) 2>&5
 
6417
  ac_status=$?
 
6418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6419
  (exit $ac_status); }; }; then
 
6420
  eval "$as_ac_var=yes"
 
6421
else
 
6422
  echo "$as_me: failed program was:" >&5
 
6423
sed 's/^/| /' conftest.$ac_ext >&5
 
6424
 
 
6425
eval "$as_ac_var=no"
 
6426
fi
 
6427
rm -f conftest.err conftest.$ac_objext \
 
6428
      conftest$ac_exeext conftest.$ac_ext
 
6429
fi
 
6430
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6431
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6432
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6433
  cat >>confdefs.h <<_ACEOF
 
6434
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6435
_ACEOF
 
6436
 
 
6437
fi
 
6438
done
 
6439
 
 
6440
## the AX_FUNC_POSIX_MEMALIGN was downloaded from the AC archive,
 
6441
## http://ac-archive.sourceforge.net/doc/acinclude.html and added
 
6442
## to the acinclude.m4 file. After aclocal was run, it got put into aclocal.m4
 
6443
echo "$as_me:$LINENO: checking for working posix_memalign" >&5
 
6444
echo $ECHO_N "checking for working posix_memalign... $ECHO_C" >&6
 
6445
if test "${ax_cv_func_posix_memalign_works+set}" = set; then
 
6446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6447
else
 
6448
  if test "$cross_compiling" = yes; then
 
6449
  ax_cv_func_posix_memalign_works=no
 
6450
else
 
6451
  cat >conftest.$ac_ext <<_ACEOF
 
6452
/* confdefs.h.  */
 
6453
_ACEOF
 
6454
cat confdefs.h >>conftest.$ac_ext
 
6455
cat >>conftest.$ac_ext <<_ACEOF
 
6456
/* end confdefs.h.  */
 
6457
 
 
6458
#include <stdlib.h>
 
6459
 
 
6460
int
 
6461
main ()
 
6462
{
 
6463
  void *buffer;
 
6464
 
 
6465
  /* Some versions of glibc incorrectly perform the alignment check on
 
6466
   * the size word. */
 
6467
  exit (posix_memalign (&buffer, sizeof(void *), 123) != 0);
 
6468
}
 
6469
 
 
6470
_ACEOF
 
6471
rm -f conftest$ac_exeext
 
6472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6473
  (eval $ac_link) 2>&5
 
6474
  ac_status=$?
 
6475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6476
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6478
  (eval $ac_try) 2>&5
 
6479
  ac_status=$?
 
6480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6481
  (exit $ac_status); }; }; then
 
6482
  ax_cv_func_posix_memalign_works=yes
 
6483
else
 
6484
  echo "$as_me: program exited with status $ac_status" >&5
 
6485
echo "$as_me: failed program was:" >&5
 
6486
sed 's/^/| /' conftest.$ac_ext >&5
 
6487
 
 
6488
( exit $ac_status )
 
6489
ax_cv_func_posix_memalign_works=no
 
6490
fi
 
6491
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6492
fi
 
6493
fi
 
6494
echo "$as_me:$LINENO: result: $ax_cv_func_posix_memalign_works" >&5
 
6495
echo "${ECHO_T}$ax_cv_func_posix_memalign_works" >&6
 
6496
if test "$ax_cv_func_posix_memalign_works" = "yes" ; then
 
6497
 
 
6498
cat >>confdefs.h <<\_ACEOF
 
6499
#define HAVE_POSIX_MEMALIGN 1
 
6500
_ACEOF
 
6501
 
 
6502
fi
 
6503
 
 
6504
if test x$ac_cv_func_posix_memalign_works = xno; then
 
6505
 
 
6506
 
 
6507
for ac_func in memalign valloc
 
6508
do
 
6509
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6510
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6511
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6512
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6514
else
 
6515
  cat >conftest.$ac_ext <<_ACEOF
 
6516
/* confdefs.h.  */
 
6517
_ACEOF
 
6518
cat confdefs.h >>conftest.$ac_ext
 
6519
cat >>conftest.$ac_ext <<_ACEOF
 
6520
/* end confdefs.h.  */
 
6521
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6522
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6523
#define $ac_func innocuous_$ac_func
 
6524
 
 
6525
/* System header to define __stub macros and hopefully few prototypes,
 
6526
    which can conflict with char $ac_func (); below.
 
6527
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6528
    <limits.h> exists even on freestanding compilers.  */
 
6529
 
 
6530
#ifdef __STDC__
 
6531
# include <limits.h>
 
6532
#else
 
6533
# include <assert.h>
 
6534
#endif
 
6535
 
 
6536
#undef $ac_func
 
6537
 
 
6538
/* Override any gcc2 internal prototype to avoid an error.  */
 
6539
#ifdef __cplusplus
 
6540
extern "C"
 
6541
{
 
6542
#endif
 
6543
/* We use char because int might match the return type of a gcc2
 
6544
   builtin and then its argument prototype would still apply.  */
 
6545
char $ac_func ();
 
6546
/* The GNU C library defines this for functions which it implements
 
6547
    to always fail with ENOSYS.  Some functions are actually named
 
6548
    something starting with __ and the normal name is an alias.  */
 
6549
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6550
choke me
 
6551
#else
 
6552
char (*f) () = $ac_func;
 
6553
#endif
 
6554
#ifdef __cplusplus
 
6555
}
 
6556
#endif
 
6557
 
 
6558
int
 
6559
main ()
 
6560
{
 
6561
return f != $ac_func;
 
6562
  ;
 
6563
  return 0;
 
6564
}
 
6565
_ACEOF
 
6566
rm -f conftest.$ac_objext conftest$ac_exeext
 
6567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6568
  (eval $ac_link) 2>conftest.er1
 
6569
  ac_status=$?
 
6570
  grep -v '^ *+' conftest.er1 >conftest.err
 
6571
  rm -f conftest.er1
 
6572
  cat conftest.err >&5
 
6573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6574
  (exit $ac_status); } &&
 
6575
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6577
  (eval $ac_try) 2>&5
 
6578
  ac_status=$?
 
6579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6580
  (exit $ac_status); }; } &&
 
6581
         { ac_try='test -s conftest$ac_exeext'
 
6582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6583
  (eval $ac_try) 2>&5
 
6584
  ac_status=$?
 
6585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6586
  (exit $ac_status); }; }; then
 
6587
  eval "$as_ac_var=yes"
 
6588
else
 
6589
  echo "$as_me: failed program was:" >&5
 
6590
sed 's/^/| /' conftest.$ac_ext >&5
 
6591
 
 
6592
eval "$as_ac_var=no"
 
6593
fi
 
6594
rm -f conftest.err conftest.$ac_objext \
 
6595
      conftest$ac_exeext conftest.$ac_ext
 
6596
fi
 
6597
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6598
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6599
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6600
  cat >>confdefs.h <<_ACEOF
 
6601
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6602
_ACEOF
 
6603
 break
 
6604
fi
 
6605
done
 
6606
 
 
6607
fi
 
6608
 
 
6609
for ac_func in wcstol
 
6610
do
 
6611
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6612
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6613
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6614
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6616
else
 
6617
  cat >conftest.$ac_ext <<_ACEOF
 
6618
/* confdefs.h.  */
 
6619
_ACEOF
 
6620
cat confdefs.h >>conftest.$ac_ext
 
6621
cat >>conftest.$ac_ext <<_ACEOF
 
6622
/* end confdefs.h.  */
 
6623
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6624
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6625
#define $ac_func innocuous_$ac_func
 
6626
 
 
6627
/* System header to define __stub macros and hopefully few prototypes,
 
6628
    which can conflict with char $ac_func (); below.
 
6629
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6630
    <limits.h> exists even on freestanding compilers.  */
 
6631
 
 
6632
#ifdef __STDC__
 
6633
# include <limits.h>
 
6634
#else
 
6635
# include <assert.h>
 
6636
#endif
 
6637
 
 
6638
#undef $ac_func
 
6639
 
 
6640
/* Override any gcc2 internal prototype to avoid an error.  */
 
6641
#ifdef __cplusplus
 
6642
extern "C"
 
6643
{
 
6644
#endif
 
6645
/* We use char because int might match the return type of a gcc2
 
6646
   builtin and then its argument prototype would still apply.  */
 
6647
char $ac_func ();
 
6648
/* The GNU C library defines this for functions which it implements
 
6649
    to always fail with ENOSYS.  Some functions are actually named
 
6650
    something starting with __ and the normal name is an alias.  */
 
6651
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6652
choke me
 
6653
#else
 
6654
char (*f) () = $ac_func;
 
6655
#endif
 
6656
#ifdef __cplusplus
 
6657
}
 
6658
#endif
 
6659
 
 
6660
int
 
6661
main ()
 
6662
{
 
6663
return f != $ac_func;
 
6664
  ;
 
6665
  return 0;
 
6666
}
 
6667
_ACEOF
 
6668
rm -f conftest.$ac_objext conftest$ac_exeext
 
6669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6670
  (eval $ac_link) 2>conftest.er1
 
6671
  ac_status=$?
 
6672
  grep -v '^ *+' conftest.er1 >conftest.err
 
6673
  rm -f conftest.er1
 
6674
  cat conftest.err >&5
 
6675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6676
  (exit $ac_status); } &&
 
6677
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6679
  (eval $ac_try) 2>&5
 
6680
  ac_status=$?
 
6681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6682
  (exit $ac_status); }; } &&
 
6683
         { ac_try='test -s conftest$ac_exeext'
 
6684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6685
  (eval $ac_try) 2>&5
 
6686
  ac_status=$?
 
6687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6688
  (exit $ac_status); }; }; then
 
6689
  eval "$as_ac_var=yes"
 
6690
else
 
6691
  echo "$as_me: failed program was:" >&5
 
6692
sed 's/^/| /' conftest.$ac_ext >&5
 
6693
 
 
6694
eval "$as_ac_var=no"
 
6695
fi
 
6696
rm -f conftest.err conftest.$ac_objext \
 
6697
      conftest$ac_exeext conftest.$ac_ext
 
6698
fi
 
6699
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6700
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6701
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6702
  cat >>confdefs.h <<_ACEOF
 
6703
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6704
_ACEOF
 
6705
 
 
6706
else
 
6707
 
 
6708
        { echo "$as_me:$LINENO: WARNING: Incomplete Unicode implementation, some HTML conversions may suffer." >&5
 
6709
echo "$as_me: WARNING: Incomplete Unicode implementation, some HTML conversions may suffer." >&2;}
 
6710
 
 
6711
fi
 
6712
done
 
6713
 
 
6714
 
 
6715
 
 
6716
                                                            ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/tests/Makefile man/Makefile ts/Makefile"
 
6717
 
 
6718
cat >confcache <<\_ACEOF
 
6719
# This file is a shell script that caches the results of configure
 
6720
# tests run on this system so they can be shared between configure
 
6721
# scripts and configure runs, see configure's option --config-cache.
 
6722
# It is not useful on other systems.  If it contains results you don't
 
6723
# want to keep, you may remove or edit it.
 
6724
#
 
6725
# config.status only pays attention to the cache file if you give it
 
6726
# the --recheck option to rerun configure.
 
6727
#
 
6728
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
6729
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
6730
# following values.
 
6731
 
 
6732
_ACEOF
 
6733
 
 
6734
# The following way of writing the cache mishandles newlines in values,
 
6735
# but we know of no workaround that is simple, portable, and efficient.
 
6736
# So, don't put newlines in cache variables' values.
 
6737
# Ultrix sh set writes to stderr and can't be redirected directly,
 
6738
# and sets the high bit in the cache file unless we assign to the vars.
 
6739
{
 
6740
  (set) 2>&1 |
 
6741
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
6742
    *ac_space=\ *)
 
6743
      # `set' does not quote correctly, so add quotes (double-quote
 
6744
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
6745
      sed -n \
 
6746
        "s/'/'\\\\''/g;
 
6747
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
6748
      ;;
 
6749
    *)
 
6750
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
6751
      sed -n \
 
6752
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
6753
      ;;
 
6754
    esac;
 
6755
} |
 
6756
  sed '
 
6757
     t clear
 
6758
     : clear
 
6759
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
6760
     t end
 
6761
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
6762
     : end' >>confcache
 
6763
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
6764
  if test -w $cache_file; then
 
6765
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
6766
    cat confcache >$cache_file
 
6767
  else
 
6768
    echo "not updating unwritable cache $cache_file"
 
6769
  fi
 
6770
fi
 
6771
rm -f confcache
 
6772
 
 
6773
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
6774
# Let make expand exec_prefix.
 
6775
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
6776
 
 
6777
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
6778
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
6779
# trailing colons and then remove the whole line if VPATH becomes empty
 
6780
# (actually we leave an empty line to preserve line numbers).
 
6781
if test "x$srcdir" = x.; then
 
6782
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
6783
s/:*\$(srcdir):*/:/;
 
6784
s/:*\${srcdir}:*/:/;
 
6785
s/:*@srcdir@:*/:/;
 
6786
s/^\([^=]*=[     ]*\):*/\1/;
 
6787
s/:*$//;
 
6788
s/^[^=]*=[       ]*$//;
 
6789
}'
 
6790
fi
 
6791
 
 
6792
DEFS=-DHAVE_CONFIG_H
 
6793
 
 
6794
ac_libobjs=
 
6795
ac_ltlibobjs=
 
6796
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
6797
  # 1. Remove the extension, and $U if already installed.
 
6798
  ac_i=`echo "$ac_i" |
 
6799
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
6800
  # 2. Add them.
 
6801
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
6802
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
6803
done
 
6804
LIBOBJS=$ac_libobjs
 
6805
 
 
6806
LTLIBOBJS=$ac_ltlibobjs
 
6807
 
 
6808
 
 
6809
 
 
6810
: ${CONFIG_STATUS=./config.status}
 
6811
ac_clean_files_save=$ac_clean_files
 
6812
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
6813
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
6814
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
6815
cat >$CONFIG_STATUS <<_ACEOF
 
6816
#! $SHELL
 
6817
# Generated by $as_me.
 
6818
# Run this file to recreate the current configuration.
 
6819
# Compiler output produced by configure, useful for debugging
 
6820
# configure, is in config.log if it exists.
 
6821
 
 
6822
debug=false
 
6823
ac_cs_recheck=false
 
6824
ac_cs_silent=false
 
6825
SHELL=\${CONFIG_SHELL-$SHELL}
 
6826
_ACEOF
 
6827
 
 
6828
cat >>$CONFIG_STATUS <<\_ACEOF
 
6829
## --------------------- ##
 
6830
## M4sh Initialization.  ##
 
6831
## --------------------- ##
 
6832
 
 
6833
# Be Bourne compatible
 
6834
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
6835
  emulate sh
 
6836
  NULLCMD=:
 
6837
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
6838
  # is contrary to our usage.  Disable this feature.
 
6839
  alias -g '${1+"$@"}'='"$@"'
 
6840
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
6841
  set -o posix
 
6842
fi
 
6843
DUALCASE=1; export DUALCASE # for MKS sh
 
6844
 
 
6845
# Support unset when possible.
 
6846
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6847
  as_unset=unset
 
6848
else
 
6849
  as_unset=false
 
6850
fi
 
6851
 
 
6852
 
 
6853
# Work around bugs in pre-3.0 UWIN ksh.
 
6854
$as_unset ENV MAIL MAILPATH
 
6855
PS1='$ '
 
6856
PS2='> '
 
6857
PS4='+ '
 
6858
 
 
6859
# NLS nuisances.
 
6860
for as_var in \
 
6861
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
6862
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
6863
  LC_TELEPHONE LC_TIME
 
6864
do
 
6865
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
6866
    eval $as_var=C; export $as_var
 
6867
  else
 
6868
    $as_unset $as_var
 
6869
  fi
 
6870
done
 
6871
 
 
6872
# Required to use basename.
 
6873
if expr a : '\(a\)' >/dev/null 2>&1; then
 
6874
  as_expr=expr
 
6875
else
 
6876
  as_expr=false
 
6877
fi
 
6878
 
 
6879
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
6880
  as_basename=basename
 
6881
else
 
6882
  as_basename=false
 
6883
fi
 
6884
 
 
6885
 
 
6886
# Name of the executable.
 
6887
as_me=`$as_basename "$0" ||
 
6888
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
6889
         X"$0" : 'X\(//\)$' \| \
 
6890
         X"$0" : 'X\(/\)$' \| \
 
6891
         .     : '\(.\)' 2>/dev/null ||
 
6892
echo X/"$0" |
 
6893
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
6894
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
6895
          /^X\/\(\/\).*/{ s//\1/; q; }
 
6896
          s/.*/./; q'`
 
6897
 
 
6898
 
 
6899
# PATH needs CR, and LINENO needs CR and PATH.
 
6900
# Avoid depending upon Character Ranges.
 
6901
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
6902
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
6903
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
6904
as_cr_digits='0123456789'
 
6905
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
6906
 
 
6907
# The user is always right.
 
6908
if test "${PATH_SEPARATOR+set}" != set; then
 
6909
  echo "#! /bin/sh" >conf$$.sh
 
6910
  echo  "exit 0"   >>conf$$.sh
 
6911
  chmod +x conf$$.sh
 
6912
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6913
    PATH_SEPARATOR=';'
 
6914
  else
 
6915
    PATH_SEPARATOR=:
 
6916
  fi
 
6917
  rm -f conf$$.sh
 
6918
fi
 
6919
 
 
6920
 
 
6921
  as_lineno_1=$LINENO
 
6922
  as_lineno_2=$LINENO
 
6923
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
6924
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
6925
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
6926
  # Find who we are.  Look in the path if we contain no path at all
 
6927
  # relative or not.
 
6928
  case $0 in
 
6929
    *[\\/]* ) as_myself=$0 ;;
 
6930
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6931
for as_dir in $PATH
 
6932
do
 
6933
  IFS=$as_save_IFS
 
6934
  test -z "$as_dir" && as_dir=.
 
6935
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
6936
done
 
6937
 
 
6938
       ;;
 
6939
  esac
 
6940
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
6941
  # in which case we are not to be found in the path.
 
6942
  if test "x$as_myself" = x; then
 
6943
    as_myself=$0
 
6944
  fi
 
6945
  if test ! -f "$as_myself"; then
 
6946
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
6947
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
6948
   { (exit 1); exit 1; }; }
 
6949
  fi
 
6950
  case $CONFIG_SHELL in
 
6951
  '')
 
6952
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6953
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
6954
do
 
6955
  IFS=$as_save_IFS
 
6956
  test -z "$as_dir" && as_dir=.
 
6957
  for as_base in sh bash ksh sh5; do
 
6958
         case $as_dir in
 
6959
         /*)
 
6960
           if ("$as_dir/$as_base" -c '
 
6961
  as_lineno_1=$LINENO
 
6962
  as_lineno_2=$LINENO
 
6963
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
6964
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
6965
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
6966
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
6967
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
6968
             CONFIG_SHELL=$as_dir/$as_base
 
6969
             export CONFIG_SHELL
 
6970
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
6971
           fi;;
 
6972
         esac
 
6973
       done
 
6974
done
 
6975
;;
 
6976
  esac
 
6977
 
 
6978
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
6979
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
6980
  # line-number line before each line; the second 'sed' does the real
 
6981
  # work.  The second script uses 'N' to pair each line-number line
 
6982
  # with the numbered line, and appends trailing '-' during
 
6983
  # substitution so that $LINENO is not a special case at line end.
 
6984
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
6985
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
6986
  sed '=' <$as_myself |
 
6987
    sed '
 
6988
      N
 
6989
      s,$,-,
 
6990
      : loop
 
6991
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
6992
      t loop
 
6993
      s,-$,,
 
6994
      s,^['$as_cr_digits']*\n,,
 
6995
    ' >$as_me.lineno &&
 
6996
  chmod +x $as_me.lineno ||
 
6997
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
6998
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
6999
   { (exit 1); exit 1; }; }
 
7000
 
 
7001
  # Don't try to exec as it changes $[0], causing all sort of problems
 
7002
  # (the dirname of $[0] is not the place where we might find the
 
7003
  # original and so on.  Autoconf is especially sensible to this).
 
7004
  . ./$as_me.lineno
 
7005
  # Exit status is that of the last command.
 
7006
  exit
 
7007
}
 
7008
 
 
7009
 
 
7010
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
7011
  *c*,-n*) ECHO_N= ECHO_C='
 
7012
' ECHO_T='      ' ;;
 
7013
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
7014
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
7015
esac
 
7016
 
 
7017
if expr a : '\(a\)' >/dev/null 2>&1; then
 
7018
  as_expr=expr
 
7019
else
 
7020
  as_expr=false
 
7021
fi
 
7022
 
 
7023
rm -f conf$$ conf$$.exe conf$$.file
 
7024
echo >conf$$.file
 
7025
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7026
  # We could just check for DJGPP; but this test a) works b) is more generic
 
7027
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
7028
  if test -f conf$$.exe; then
 
7029
    # Don't use ln at all; we don't have any links
 
7030
    as_ln_s='cp -p'
 
7031
  else
 
7032
    as_ln_s='ln -s'
 
7033
  fi
 
7034
elif ln conf$$.file conf$$ 2>/dev/null; then
 
7035
  as_ln_s=ln
 
7036
else
 
7037
  as_ln_s='cp -p'
 
7038
fi
 
7039
rm -f conf$$ conf$$.exe conf$$.file
 
7040
 
 
7041
if mkdir -p . 2>/dev/null; then
 
7042
  as_mkdir_p=:
 
7043
else
 
7044
  test -d ./-p && rmdir ./-p
 
7045
  as_mkdir_p=false
 
7046
fi
 
7047
 
 
7048
as_executable_p="test -f"
 
7049
 
 
7050
# Sed expression to map a string onto a valid CPP name.
 
7051
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
7052
 
 
7053
# Sed expression to map a string onto a valid variable name.
 
7054
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
7055
 
 
7056
 
 
7057
# IFS
 
7058
# We need space, tab and new line, in precisely that order.
 
7059
as_nl='
 
7060
'
 
7061
IFS="   $as_nl"
 
7062
 
 
7063
# CDPATH.
 
7064
$as_unset CDPATH
 
7065
 
 
7066
exec 6>&1
 
7067
 
 
7068
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
7069
# report actual input values of CONFIG_FILES etc. instead of their
 
7070
# values after options handling.  Logging --version etc. is OK.
 
7071
exec 5>>config.log
 
7072
{
 
7073
  echo
 
7074
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
7075
## Running $as_me. ##
 
7076
_ASBOX
 
7077
} >&5
 
7078
cat >&5 <<_CSEOF
 
7079
 
 
7080
This file was extended by dbacl $as_me 1.9, which was
 
7081
generated by GNU Autoconf 2.59.  Invocation command line was
 
7082
 
 
7083
  CONFIG_FILES    = $CONFIG_FILES
 
7084
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
7085
  CONFIG_LINKS    = $CONFIG_LINKS
 
7086
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
7087
  $ $0 $@
 
7088
 
 
7089
_CSEOF
 
7090
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
7091
echo >&5
 
7092
_ACEOF
 
7093
 
 
7094
# Files that config.status was made for.
 
7095
if test -n "$ac_config_files"; then
 
7096
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
7097
fi
 
7098
 
 
7099
if test -n "$ac_config_headers"; then
 
7100
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
7101
fi
 
7102
 
 
7103
if test -n "$ac_config_links"; then
 
7104
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
7105
fi
 
7106
 
 
7107
if test -n "$ac_config_commands"; then
 
7108
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
7109
fi
 
7110
 
 
7111
cat >>$CONFIG_STATUS <<\_ACEOF
 
7112
 
 
7113
ac_cs_usage="\
 
7114
\`$as_me' instantiates files from templates according to the
 
7115
current configuration.
 
7116
 
 
7117
Usage: $0 [OPTIONS] [FILE]...
 
7118
 
 
7119
  -h, --help       print this help, then exit
 
7120
  -V, --version    print version number, then exit
 
7121
  -q, --quiet      do not print progress messages
 
7122
  -d, --debug      don't remove temporary files
 
7123
      --recheck    update $as_me by reconfiguring in the same conditions
 
7124
  --file=FILE[:TEMPLATE]
 
7125
                   instantiate the configuration file FILE
 
7126
  --header=FILE[:TEMPLATE]
 
7127
                   instantiate the configuration header FILE
 
7128
 
 
7129
Configuration files:
 
7130
$config_files
 
7131
 
 
7132
Configuration headers:
 
7133
$config_headers
 
7134
 
 
7135
Configuration commands:
 
7136
$config_commands
 
7137
 
 
7138
Report bugs to <bug-autoconf@gnu.org>."
 
7139
_ACEOF
 
7140
 
 
7141
cat >>$CONFIG_STATUS <<_ACEOF
 
7142
ac_cs_version="\\
 
7143
dbacl config.status 1.9
 
7144
configured by $0, generated by GNU Autoconf 2.59,
 
7145
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
7146
 
 
7147
Copyright (C) 2003 Free Software Foundation, Inc.
 
7148
This config.status script is free software; the Free Software Foundation
 
7149
gives unlimited permission to copy, distribute and modify it."
 
7150
srcdir=$srcdir
 
7151
INSTALL="$INSTALL"
 
7152
_ACEOF
 
7153
 
 
7154
cat >>$CONFIG_STATUS <<\_ACEOF
 
7155
# If no file are specified by the user, then we need to provide default
 
7156
# value.  By we need to know if files were specified by the user.
 
7157
ac_need_defaults=:
 
7158
while test $# != 0
 
7159
do
 
7160
  case $1 in
 
7161
  --*=*)
 
7162
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
7163
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
7164
    ac_shift=:
 
7165
    ;;
 
7166
  -*)
 
7167
    ac_option=$1
 
7168
    ac_optarg=$2
 
7169
    ac_shift=shift
 
7170
    ;;
 
7171
  *) # This is not an option, so the user has probably given explicit
 
7172
     # arguments.
 
7173
     ac_option=$1
 
7174
     ac_need_defaults=false;;
 
7175
  esac
 
7176
 
 
7177
  case $ac_option in
 
7178
  # Handling of the options.
 
7179
_ACEOF
 
7180
cat >>$CONFIG_STATUS <<\_ACEOF
 
7181
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
7182
    ac_cs_recheck=: ;;
 
7183
  --version | --vers* | -V )
 
7184
    echo "$ac_cs_version"; exit 0 ;;
 
7185
  --he | --h)
 
7186
    # Conflict between --help and --header
 
7187
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
7188
Try \`$0 --help' for more information." >&5
 
7189
echo "$as_me: error: ambiguous option: $1
 
7190
Try \`$0 --help' for more information." >&2;}
 
7191
   { (exit 1); exit 1; }; };;
 
7192
  --help | --hel | -h )
 
7193
    echo "$ac_cs_usage"; exit 0 ;;
 
7194
  --debug | --d* | -d )
 
7195
    debug=: ;;
 
7196
  --file | --fil | --fi | --f )
 
7197
    $ac_shift
 
7198
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
7199
    ac_need_defaults=false;;
 
7200
  --header | --heade | --head | --hea )
 
7201
    $ac_shift
 
7202
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
7203
    ac_need_defaults=false;;
 
7204
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
7205
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
7206
    ac_cs_silent=: ;;
 
7207
 
 
7208
  # This is an error.
 
7209
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
7210
Try \`$0 --help' for more information." >&5
 
7211
echo "$as_me: error: unrecognized option: $1
 
7212
Try \`$0 --help' for more information." >&2;}
 
7213
   { (exit 1); exit 1; }; } ;;
 
7214
 
 
7215
  *) ac_config_targets="$ac_config_targets $1" ;;
 
7216
 
 
7217
  esac
 
7218
  shift
 
7219
done
 
7220
 
 
7221
ac_configure_extra_args=
 
7222
 
 
7223
if $ac_cs_silent; then
 
7224
  exec 6>/dev/null
 
7225
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
7226
fi
 
7227
 
 
7228
_ACEOF
 
7229
cat >>$CONFIG_STATUS <<_ACEOF
 
7230
if \$ac_cs_recheck; then
 
7231
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
7232
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7233
fi
 
7234
 
 
7235
_ACEOF
 
7236
 
 
7237
cat >>$CONFIG_STATUS <<_ACEOF
 
7238
#
 
7239
# INIT-COMMANDS section.
 
7240
#
 
7241
 
 
7242
 
 
7243
 
 
7244
_ACEOF
 
7245
 
 
7246
 
 
7247
 
 
7248
cat >>$CONFIG_STATUS <<\_ACEOF
 
7249
for ac_config_target in $ac_config_targets
 
7250
do
 
7251
  case "$ac_config_target" in
 
7252
  # Handling of arguments.
 
7253
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
7254
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
7255
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
7256
  "src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
 
7257
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
7258
  "ts/Makefile" ) CONFIG_FILES="$CONFIG_FILES ts/Makefile" ;;
 
7259
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
7260
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
7261
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
7262
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
7263
   { (exit 1); exit 1; }; };;
 
7264
  esac
 
7265
done
 
7266
 
 
7267
# If the user did not use the arguments to specify the items to instantiate,
 
7268
# then the envvar interface is used.  Set only those that are not.
 
7269
# We use the long form for the default assignment because of an extremely
 
7270
# bizarre bug on SunOS 4.1.3.
 
7271
if $ac_need_defaults; then
 
7272
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
7273
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
7274
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
7275
fi
 
7276
 
 
7277
# Have a temporary directory for convenience.  Make it in the build tree
 
7278
# simply because there is no reason to put it here, and in addition,
 
7279
# creating and moving files from /tmp can sometimes cause problems.
 
7280
# Create a temporary directory, and hook for its removal unless debugging.
 
7281
$debug ||
 
7282
{
 
7283
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
7284
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7285
}
 
7286
 
 
7287
# Create a (secure) tmp directory for tmp files.
 
7288
 
 
7289
{
 
7290
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
7291
  test -n "$tmp" && test -d "$tmp"
 
7292
}  ||
 
7293
{
 
7294
  tmp=./confstat$$-$RANDOM
 
7295
  (umask 077 && mkdir $tmp)
 
7296
} ||
 
7297
{
 
7298
   echo "$me: cannot create a temporary directory in ." >&2
 
7299
   { (exit 1); exit 1; }
 
7300
}
 
7301
 
 
7302
_ACEOF
 
7303
 
 
7304
cat >>$CONFIG_STATUS <<_ACEOF
 
7305
 
 
7306
#
 
7307
# CONFIG_FILES section.
 
7308
#
 
7309
 
 
7310
# No need to generate the scripts if there are no CONFIG_FILES.
 
7311
# This happens for instance when ./config.status config.h
 
7312
if test -n "\$CONFIG_FILES"; then
 
7313
  # Protect against being on the right side of a sed subst in config.status.
 
7314
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
7315
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
7316
s,@SHELL@,$SHELL,;t t
 
7317
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
7318
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
7319
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
7320
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
7321
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
7322
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
7323
s,@exec_prefix@,$exec_prefix,;t t
 
7324
s,@prefix@,$prefix,;t t
 
7325
s,@program_transform_name@,$program_transform_name,;t t
 
7326
s,@bindir@,$bindir,;t t
 
7327
s,@sbindir@,$sbindir,;t t
 
7328
s,@libexecdir@,$libexecdir,;t t
 
7329
s,@datadir@,$datadir,;t t
 
7330
s,@sysconfdir@,$sysconfdir,;t t
 
7331
s,@sharedstatedir@,$sharedstatedir,;t t
 
7332
s,@localstatedir@,$localstatedir,;t t
 
7333
s,@libdir@,$libdir,;t t
 
7334
s,@includedir@,$includedir,;t t
 
7335
s,@oldincludedir@,$oldincludedir,;t t
 
7336
s,@infodir@,$infodir,;t t
 
7337
s,@mandir@,$mandir,;t t
 
7338
s,@build_alias@,$build_alias,;t t
 
7339
s,@host_alias@,$host_alias,;t t
 
7340
s,@target_alias@,$target_alias,;t t
 
7341
s,@DEFS@,$DEFS,;t t
 
7342
s,@ECHO_C@,$ECHO_C,;t t
 
7343
s,@ECHO_N@,$ECHO_N,;t t
 
7344
s,@ECHO_T@,$ECHO_T,;t t
 
7345
s,@LIBS@,$LIBS,;t t
 
7346
s,@build@,$build,;t t
 
7347
s,@build_cpu@,$build_cpu,;t t
 
7348
s,@build_vendor@,$build_vendor,;t t
 
7349
s,@build_os@,$build_os,;t t
 
7350
s,@host@,$host,;t t
 
7351
s,@host_cpu@,$host_cpu,;t t
 
7352
s,@host_vendor@,$host_vendor,;t t
 
7353
s,@host_os@,$host_os,;t t
 
7354
s,@target@,$target,;t t
 
7355
s,@target_cpu@,$target_cpu,;t t
 
7356
s,@target_vendor@,$target_vendor,;t t
 
7357
s,@target_os@,$target_os,;t t
 
7358
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
7359
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
7360
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
7361
s,@PACKAGE@,$PACKAGE,;t t
 
7362
s,@VERSION@,$VERSION,;t t
 
7363
s,@ACLOCAL@,$ACLOCAL,;t t
 
7364
s,@AUTOCONF@,$AUTOCONF,;t t
 
7365
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
7366
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
7367
s,@MAKEINFO@,$MAKEINFO,;t t
 
7368
s,@SET_MAKE@,$SET_MAKE,;t t
 
7369
s,@CC@,$CC,;t t
 
7370
s,@CFLAGS@,$CFLAGS,;t t
 
7371
s,@LDFLAGS@,$LDFLAGS,;t t
 
7372
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
7373
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
7374
s,@EXEEXT@,$EXEEXT,;t t
 
7375
s,@OBJEXT@,$OBJEXT,;t t
 
7376
s,@CPP@,$CPP,;t t
 
7377
s,@EGREP@,$EGREP,;t t
 
7378
s,@CFLAGSIEEE@,$CFLAGSIEEE,;t t
 
7379
s,@LEX@,$LEX,;t t
 
7380
s,@LEXLIB@,$LEXLIB,;t t
 
7381
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
 
7382
s,@YACC@,$YACC,;t t
 
7383
s,@LDADDINTER@,$LDADDINTER,;t t
 
7384
s,@INCLUDESINTER@,$INCLUDESINTER,;t t
 
7385
s,@LIBOBJS@,$LIBOBJS,;t t
 
7386
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
7387
CEOF
 
7388
 
 
7389
_ACEOF
 
7390
 
 
7391
  cat >>$CONFIG_STATUS <<\_ACEOF
 
7392
  # Split the substitutions into bite-sized pieces for seds with
 
7393
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
7394
  ac_max_sed_lines=48
 
7395
  ac_sed_frag=1 # Number of current file.
 
7396
  ac_beg=1 # First line for current file.
 
7397
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
7398
  ac_more_lines=:
 
7399
  ac_sed_cmds=
 
7400
  while $ac_more_lines; do
 
7401
    if test $ac_beg -gt 1; then
 
7402
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
7403
    else
 
7404
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
7405
    fi
 
7406
    if test ! -s $tmp/subs.frag; then
 
7407
      ac_more_lines=false
 
7408
    else
 
7409
      # The purpose of the label and of the branching condition is to
 
7410
      # speed up the sed processing (if there are no `@' at all, there
 
7411
      # is no need to browse any of the substitutions).
 
7412
      # These are the two extra sed commands mentioned above.
 
7413
      (echo ':t
 
7414
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
7415
      if test -z "$ac_sed_cmds"; then
 
7416
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
7417
      else
 
7418
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
7419
      fi
 
7420
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
7421
      ac_beg=$ac_end
 
7422
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
7423
    fi
 
7424
  done
 
7425
  if test -z "$ac_sed_cmds"; then
 
7426
    ac_sed_cmds=cat
 
7427
  fi
 
7428
fi # test -n "$CONFIG_FILES"
 
7429
 
 
7430
_ACEOF
 
7431
cat >>$CONFIG_STATUS <<\_ACEOF
 
7432
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
7433
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
7434
  case $ac_file in
 
7435
  - | *:- | *:-:* ) # input from stdin
 
7436
        cat >$tmp/stdin
 
7437
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7438
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7439
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7440
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7441
  * )   ac_file_in=$ac_file.in ;;
 
7442
  esac
 
7443
 
 
7444
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
7445
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
7446
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7447
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7448
         X"$ac_file" : 'X\(//\)$' \| \
 
7449
         X"$ac_file" : 'X\(/\)' \| \
 
7450
         .     : '\(.\)' 2>/dev/null ||
 
7451
echo X"$ac_file" |
 
7452
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7453
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7454
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7455
          /^X\(\/\).*/{ s//\1/; q; }
 
7456
          s/.*/./; q'`
 
7457
  { if $as_mkdir_p; then
 
7458
    mkdir -p "$ac_dir"
 
7459
  else
 
7460
    as_dir="$ac_dir"
 
7461
    as_dirs=
 
7462
    while test ! -d "$as_dir"; do
 
7463
      as_dirs="$as_dir $as_dirs"
 
7464
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
7465
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7466
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7467
         X"$as_dir" : 'X\(//\)$' \| \
 
7468
         X"$as_dir" : 'X\(/\)' \| \
 
7469
         .     : '\(.\)' 2>/dev/null ||
 
7470
echo X"$as_dir" |
 
7471
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7472
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7473
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7474
          /^X\(\/\).*/{ s//\1/; q; }
 
7475
          s/.*/./; q'`
 
7476
    done
 
7477
    test ! -n "$as_dirs" || mkdir $as_dirs
 
7478
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
7479
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
7480
   { (exit 1); exit 1; }; }; }
 
7481
 
 
7482
  ac_builddir=.
 
7483
 
 
7484
if test "$ac_dir" != .; then
 
7485
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
7486
  # A "../" for each directory in $ac_dir_suffix.
 
7487
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
7488
else
 
7489
  ac_dir_suffix= ac_top_builddir=
 
7490
fi
 
7491
 
 
7492
case $srcdir in
 
7493
  .)  # No --srcdir option.  We are building in place.
 
7494
    ac_srcdir=.
 
7495
    if test -z "$ac_top_builddir"; then
 
7496
       ac_top_srcdir=.
 
7497
    else
 
7498
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
7499
    fi ;;
 
7500
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
7501
    ac_srcdir=$srcdir$ac_dir_suffix;
 
7502
    ac_top_srcdir=$srcdir ;;
 
7503
  *) # Relative path.
 
7504
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
7505
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
7506
esac
 
7507
 
 
7508
# Do not use `cd foo && pwd` to compute absolute paths, because
 
7509
# the directories may not exist.
 
7510
case `pwd` in
 
7511
.) ac_abs_builddir="$ac_dir";;
 
7512
*)
 
7513
  case "$ac_dir" in
 
7514
  .) ac_abs_builddir=`pwd`;;
 
7515
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
7516
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
7517
  esac;;
 
7518
esac
 
7519
case $ac_abs_builddir in
 
7520
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
7521
*)
 
7522
  case ${ac_top_builddir}. in
 
7523
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
7524
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
7525
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
7526
  esac;;
 
7527
esac
 
7528
case $ac_abs_builddir in
 
7529
.) ac_abs_srcdir=$ac_srcdir;;
 
7530
*)
 
7531
  case $ac_srcdir in
 
7532
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
7533
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
7534
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
7535
  esac;;
 
7536
esac
 
7537
case $ac_abs_builddir in
 
7538
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
7539
*)
 
7540
  case $ac_top_srcdir in
 
7541
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
7542
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
7543
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
7544
  esac;;
 
7545
esac
 
7546
 
 
7547
 
 
7548
  case $INSTALL in
 
7549
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
7550
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
7551
  esac
 
7552
 
 
7553
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
7554
  # use $as_me), people would be surprised to read:
 
7555
  #    /* config.h.  Generated by config.status.  */
 
7556
  if test x"$ac_file" = x-; then
 
7557
    configure_input=
 
7558
  else
 
7559
    configure_input="$ac_file.  "
 
7560
  fi
 
7561
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
7562
                                     sed 's,.*/,,'` by configure."
 
7563
 
 
7564
  # First look for the input files in the build tree, otherwise in the
 
7565
  # src tree.
 
7566
  ac_file_inputs=`IFS=:
 
7567
    for f in $ac_file_in; do
 
7568
      case $f in
 
7569
      -) echo $tmp/stdin ;;
 
7570
      [\\/$]*)
 
7571
         # Absolute (can't be DOS-style, as IFS=:)
 
7572
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7573
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7574
   { (exit 1); exit 1; }; }
 
7575
         echo "$f";;
 
7576
      *) # Relative
 
7577
         if test -f "$f"; then
 
7578
           # Build tree
 
7579
           echo "$f"
 
7580
         elif test -f "$srcdir/$f"; then
 
7581
           # Source tree
 
7582
           echo "$srcdir/$f"
 
7583
         else
 
7584
           # /dev/null tree
 
7585
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7586
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7587
   { (exit 1); exit 1; }; }
 
7588
         fi;;
 
7589
      esac
 
7590
    done` || { (exit 1); exit 1; }
 
7591
 
 
7592
  if test x"$ac_file" != x-; then
 
7593
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
7594
echo "$as_me: creating $ac_file" >&6;}
 
7595
    rm -f "$ac_file"
 
7596
  fi
 
7597
_ACEOF
 
7598
cat >>$CONFIG_STATUS <<_ACEOF
 
7599
  sed "$ac_vpsub
 
7600
$extrasub
 
7601
_ACEOF
 
7602
cat >>$CONFIG_STATUS <<\_ACEOF
 
7603
:t
 
7604
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
7605
s,@configure_input@,$configure_input,;t t
 
7606
s,@srcdir@,$ac_srcdir,;t t
 
7607
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
7608
s,@top_srcdir@,$ac_top_srcdir,;t t
 
7609
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
7610
s,@builddir@,$ac_builddir,;t t
 
7611
s,@abs_builddir@,$ac_abs_builddir,;t t
 
7612
s,@top_builddir@,$ac_top_builddir,;t t
 
7613
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
7614
s,@INSTALL@,$ac_INSTALL,;t t
 
7615
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
7616
  rm -f $tmp/stdin
 
7617
  if test x"$ac_file" != x-; then
 
7618
    mv $tmp/out $ac_file
 
7619
  else
 
7620
    cat $tmp/out
 
7621
    rm -f $tmp/out
 
7622
  fi
 
7623
 
 
7624
done
 
7625
_ACEOF
 
7626
cat >>$CONFIG_STATUS <<\_ACEOF
 
7627
 
 
7628
#
 
7629
# CONFIG_HEADER section.
 
7630
#
 
7631
 
 
7632
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
7633
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
7634
#
 
7635
# ac_d sets the value in "#define NAME VALUE" lines.
 
7636
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
7637
ac_dB='[         ].*$,\1#\2'
 
7638
ac_dC=' '
 
7639
ac_dD=',;t'
 
7640
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
7641
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
7642
ac_uB='$,\1#\2define\3'
 
7643
ac_uC=' '
 
7644
ac_uD=',;t'
 
7645
 
 
7646
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
7647
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
7648
  case $ac_file in
 
7649
  - | *:- | *:-:* ) # input from stdin
 
7650
        cat >$tmp/stdin
 
7651
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7652
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7653
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7654
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7655
  * )   ac_file_in=$ac_file.in ;;
 
7656
  esac
 
7657
 
 
7658
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
7659
echo "$as_me: creating $ac_file" >&6;}
 
7660
 
 
7661
  # First look for the input files in the build tree, otherwise in the
 
7662
  # src tree.
 
7663
  ac_file_inputs=`IFS=:
 
7664
    for f in $ac_file_in; do
 
7665
      case $f in
 
7666
      -) echo $tmp/stdin ;;
 
7667
      [\\/$]*)
 
7668
         # Absolute (can't be DOS-style, as IFS=:)
 
7669
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7670
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7671
   { (exit 1); exit 1; }; }
 
7672
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
7673
         echo "$f";;
 
7674
      *) # Relative
 
7675
         if test -f "$f"; then
 
7676
           # Build tree
 
7677
           echo "$f"
 
7678
         elif test -f "$srcdir/$f"; then
 
7679
           # Source tree
 
7680
           echo "$srcdir/$f"
 
7681
         else
 
7682
           # /dev/null tree
 
7683
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7684
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7685
   { (exit 1); exit 1; }; }
 
7686
         fi;;
 
7687
      esac
 
7688
    done` || { (exit 1); exit 1; }
 
7689
  # Remove the trailing spaces.
 
7690
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
7691
 
 
7692
_ACEOF
 
7693
 
 
7694
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
7695
# `conftest.undefs', that substitutes the proper values into
 
7696
# config.h.in to produce config.h.  The first handles `#define'
 
7697
# templates, and the second `#undef' templates.
 
7698
# And first: Protect against being on the right side of a sed subst in
 
7699
# config.status.  Protect against being in an unquoted here document
 
7700
# in config.status.
 
7701
rm -f conftest.defines conftest.undefs
 
7702
# Using a here document instead of a string reduces the quoting nightmare.
 
7703
# Putting comments in sed scripts is not portable.
 
7704
#
 
7705
# `end' is used to avoid that the second main sed command (meant for
 
7706
# 0-ary CPP macros) applies to n-ary macro definitions.
 
7707
# See the Autoconf documentation for `clear'.
 
7708
cat >confdef2sed.sed <<\_ACEOF
 
7709
s/[\\&,]/\\&/g
 
7710
s,[\\$`],\\&,g
 
7711
t clear
 
7712
: clear
 
7713
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
7714
t end
 
7715
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
7716
: end
 
7717
_ACEOF
 
7718
# If some macros were called several times there might be several times
 
7719
# the same #defines, which is useless.  Nevertheless, we may not want to
 
7720
# sort them, since we want the *last* AC-DEFINE to be honored.
 
7721
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
7722
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
7723
rm -f confdef2sed.sed
 
7724
 
 
7725
# This sed command replaces #undef with comments.  This is necessary, for
 
7726
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
7727
# on some systems where configure will not decide to define it.
 
7728
cat >>conftest.undefs <<\_ACEOF
 
7729
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
7730
_ACEOF
 
7731
 
 
7732
# Break up conftest.defines because some shells have a limit on the size
 
7733
# of here documents, and old seds have small limits too (100 cmds).
 
7734
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
7735
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
7736
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
7737
echo '  :' >>$CONFIG_STATUS
 
7738
rm -f conftest.tail
 
7739
while grep . conftest.defines >/dev/null
 
7740
do
 
7741
  # Write a limited-size here document to $tmp/defines.sed.
 
7742
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
7743
  # Speed up: don't consider the non `#define' lines.
 
7744
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
7745
  # Work around the forget-to-reset-the-flag bug.
 
7746
  echo 't clr' >>$CONFIG_STATUS
 
7747
  echo ': clr' >>$CONFIG_STATUS
 
7748
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
7749
  echo 'CEOF
 
7750
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
7751
  rm -f $tmp/in
 
7752
  mv $tmp/out $tmp/in
 
7753
' >>$CONFIG_STATUS
 
7754
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
7755
  rm -f conftest.defines
 
7756
  mv conftest.tail conftest.defines
 
7757
done
 
7758
rm -f conftest.defines
 
7759
echo '  fi # grep' >>$CONFIG_STATUS
 
7760
echo >>$CONFIG_STATUS
 
7761
 
 
7762
# Break up conftest.undefs because some shells have a limit on the size
 
7763
# of here documents, and old seds have small limits too (100 cmds).
 
7764
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
7765
rm -f conftest.tail
 
7766
while grep . conftest.undefs >/dev/null
 
7767
do
 
7768
  # Write a limited-size here document to $tmp/undefs.sed.
 
7769
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
7770
  # Speed up: don't consider the non `#undef'
 
7771
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
7772
  # Work around the forget-to-reset-the-flag bug.
 
7773
  echo 't clr' >>$CONFIG_STATUS
 
7774
  echo ': clr' >>$CONFIG_STATUS
 
7775
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
7776
  echo 'CEOF
 
7777
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
7778
  rm -f $tmp/in
 
7779
  mv $tmp/out $tmp/in
 
7780
' >>$CONFIG_STATUS
 
7781
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
7782
  rm -f conftest.undefs
 
7783
  mv conftest.tail conftest.undefs
 
7784
done
 
7785
rm -f conftest.undefs
 
7786
 
 
7787
cat >>$CONFIG_STATUS <<\_ACEOF
 
7788
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
7789
  # use $as_me), people would be surprised to read:
 
7790
  #    /* config.h.  Generated by config.status.  */
 
7791
  if test x"$ac_file" = x-; then
 
7792
    echo "/* Generated by configure.  */" >$tmp/config.h
 
7793
  else
 
7794
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
7795
  fi
 
7796
  cat $tmp/in >>$tmp/config.h
 
7797
  rm -f $tmp/in
 
7798
  if test x"$ac_file" != x-; then
 
7799
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
7800
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
7801
echo "$as_me: $ac_file is unchanged" >&6;}
 
7802
    else
 
7803
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
7804
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7805
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7806
         X"$ac_file" : 'X\(//\)$' \| \
 
7807
         X"$ac_file" : 'X\(/\)' \| \
 
7808
         .     : '\(.\)' 2>/dev/null ||
 
7809
echo X"$ac_file" |
 
7810
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7811
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7812
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7813
          /^X\(\/\).*/{ s//\1/; q; }
 
7814
          s/.*/./; q'`
 
7815
      { if $as_mkdir_p; then
 
7816
    mkdir -p "$ac_dir"
 
7817
  else
 
7818
    as_dir="$ac_dir"
 
7819
    as_dirs=
 
7820
    while test ! -d "$as_dir"; do
 
7821
      as_dirs="$as_dir $as_dirs"
 
7822
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
7823
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7824
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7825
         X"$as_dir" : 'X\(//\)$' \| \
 
7826
         X"$as_dir" : 'X\(/\)' \| \
 
7827
         .     : '\(.\)' 2>/dev/null ||
 
7828
echo X"$as_dir" |
 
7829
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7830
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7831
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7832
          /^X\(\/\).*/{ s//\1/; q; }
 
7833
          s/.*/./; q'`
 
7834
    done
 
7835
    test ! -n "$as_dirs" || mkdir $as_dirs
 
7836
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
7837
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
7838
   { (exit 1); exit 1; }; }; }
 
7839
 
 
7840
      rm -f $ac_file
 
7841
      mv $tmp/config.h $ac_file
 
7842
    fi
 
7843
  else
 
7844
    cat $tmp/config.h
 
7845
    rm -f $tmp/config.h
 
7846
  fi
 
7847
done
 
7848
_ACEOF
 
7849
cat >>$CONFIG_STATUS <<\_ACEOF
 
7850
 
 
7851
#
 
7852
# CONFIG_COMMANDS section.
 
7853
#
 
7854
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
7855
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
7856
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7857
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
7858
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7859
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
7860
         X"$ac_dest" : 'X\(//\)$' \| \
 
7861
         X"$ac_dest" : 'X\(/\)' \| \
 
7862
         .     : '\(.\)' 2>/dev/null ||
 
7863
echo X"$ac_dest" |
 
7864
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7865
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7866
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7867
          /^X\(\/\).*/{ s//\1/; q; }
 
7868
          s/.*/./; q'`
 
7869
  { if $as_mkdir_p; then
 
7870
    mkdir -p "$ac_dir"
 
7871
  else
 
7872
    as_dir="$ac_dir"
 
7873
    as_dirs=
 
7874
    while test ! -d "$as_dir"; do
 
7875
      as_dirs="$as_dir $as_dirs"
 
7876
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
7877
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7878
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7879
         X"$as_dir" : 'X\(//\)$' \| \
 
7880
         X"$as_dir" : 'X\(/\)' \| \
 
7881
         .     : '\(.\)' 2>/dev/null ||
 
7882
echo X"$as_dir" |
 
7883
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7884
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7885
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7886
          /^X\(\/\).*/{ s//\1/; q; }
 
7887
          s/.*/./; q'`
 
7888
    done
 
7889
    test ! -n "$as_dirs" || mkdir $as_dirs
 
7890
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
7891
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
7892
   { (exit 1); exit 1; }; }; }
 
7893
 
 
7894
  ac_builddir=.
 
7895
 
 
7896
if test "$ac_dir" != .; then
 
7897
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
7898
  # A "../" for each directory in $ac_dir_suffix.
 
7899
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
7900
else
 
7901
  ac_dir_suffix= ac_top_builddir=
 
7902
fi
 
7903
 
 
7904
case $srcdir in
 
7905
  .)  # No --srcdir option.  We are building in place.
 
7906
    ac_srcdir=.
 
7907
    if test -z "$ac_top_builddir"; then
 
7908
       ac_top_srcdir=.
 
7909
    else
 
7910
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
7911
    fi ;;
 
7912
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
7913
    ac_srcdir=$srcdir$ac_dir_suffix;
 
7914
    ac_top_srcdir=$srcdir ;;
 
7915
  *) # Relative path.
 
7916
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
7917
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
7918
esac
 
7919
 
 
7920
# Do not use `cd foo && pwd` to compute absolute paths, because
 
7921
# the directories may not exist.
 
7922
case `pwd` in
 
7923
.) ac_abs_builddir="$ac_dir";;
 
7924
*)
 
7925
  case "$ac_dir" in
 
7926
  .) ac_abs_builddir=`pwd`;;
 
7927
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
7928
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
7929
  esac;;
 
7930
esac
 
7931
case $ac_abs_builddir in
 
7932
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
7933
*)
 
7934
  case ${ac_top_builddir}. in
 
7935
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
7936
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
7937
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
7938
  esac;;
 
7939
esac
 
7940
case $ac_abs_builddir in
 
7941
.) ac_abs_srcdir=$ac_srcdir;;
 
7942
*)
 
7943
  case $ac_srcdir in
 
7944
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
7945
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
7946
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
7947
  esac;;
 
7948
esac
 
7949
case $ac_abs_builddir in
 
7950
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
7951
*)
 
7952
  case $ac_top_srcdir in
 
7953
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
7954
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
7955
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
7956
  esac;;
 
7957
esac
 
7958
 
 
7959
 
 
7960
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
7961
echo "$as_me: executing $ac_dest commands" >&6;}
 
7962
  case $ac_dest in
 
7963
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
 
7964
  esac
 
7965
done
 
7966
_ACEOF
 
7967
 
 
7968
cat >>$CONFIG_STATUS <<\_ACEOF
 
7969
 
 
7970
{ (exit 0); exit 0; }
 
7971
_ACEOF
 
7972
chmod +x $CONFIG_STATUS
 
7973
ac_clean_files=$ac_clean_files_save
 
7974
 
 
7975
 
 
7976
# configure is writing to config.log, and then calls config.status.
 
7977
# config.status does its own redirection, appending to config.log.
 
7978
# Unfortunately, on DOS this fails, as config.log is still kept open
 
7979
# by configure, so config.status won't be able to write to it; its
 
7980
# output is simply discarded.  So we exec the FD to /dev/null,
 
7981
# effectively closing config.log, so it can be properly (re)opened and
 
7982
# appended to by config.status.  When coming back to configure, we
 
7983
# need to make the FD available again.
 
7984
if test "$no_create" != yes; then
 
7985
  ac_cs_success=:
 
7986
  ac_config_status_args=
 
7987
  test "$silent" = yes &&
 
7988
    ac_config_status_args="$ac_config_status_args --quiet"
 
7989
  exec 5>/dev/null
 
7990
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
7991
  exec 5>>config.log
 
7992
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
7993
  # would make configure fail if this is the last instruction.
 
7994
  $ac_cs_success || { (exit 1); exit 1; }
 
7995
fi
 
7996