2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
224
as_executable_p="test -f"
226
# Sed expression to map a string onto a valid CPP name.
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
# We need space, tab and new line, in precisely that order.
244
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245
# so uname gets run too.
246
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253
ac_default_prefix=/usr/local
254
ac_config_libobj_dir=.
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Maximum number of lines to put in a shell here document.
262
# This variable seems obsolete. It should probably be removed, and
263
# only ac_max_sed_lines should be used.
264
: ${ac_max_here_lines=38}
266
# Identity of this package.
273
ac_unique_file="ctags.h"
274
# Factoring default headers for most tests.
275
ac_includes_default="\
278
# include <sys/types.h>
281
# include <sys/stat.h>
292
# if !STDC_HEADERS && HAVE_MEMORY_H
298
# include <strings.h>
301
# include <inttypes.h>
311
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 install_targets CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S STRIP sort_found CPP EGREP LIBOBJS LTLIBOBJS'
314
# Initialize some variables set by options.
316
ac_init_version=false
317
# The variables have the same names as the options, with
318
# dashes changed to underlines.
326
program_transform_name=s,x,x,
334
# Installation directory options.
335
# These are left unexpanded so users can "make install exec_prefix=/foo"
336
# and all the variables that are supposed to be based on exec_prefix
337
# by default will actually change.
338
# Use braces instead of parens because sh, perl, etc. also accept them.
339
bindir='${exec_prefix}/bin'
340
sbindir='${exec_prefix}/sbin'
341
libexecdir='${exec_prefix}/libexec'
342
datadir='${prefix}/share'
343
sysconfdir='${prefix}/etc'
344
sharedstatedir='${prefix}/com'
345
localstatedir='${prefix}/var'
346
libdir='${exec_prefix}/lib'
347
includedir='${prefix}/include'
348
oldincludedir='/usr/include'
349
infodir='${prefix}/info'
350
mandir='${prefix}/man'
355
# If the previous option needs an argument, assign it.
356
if test -n "$ac_prev"; then
357
eval "$ac_prev=\$ac_option"
362
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
# Accept the important Cygnus configure options, so we can diagnose typos.
368
-bindir | --bindir | --bindi | --bind | --bin | --bi)
370
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
-build | --build | --buil | --bui | --bu)
374
ac_prev=build_alias ;;
375
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
376
build_alias=$ac_optarg ;;
378
-cache-file | --cache-file | --cache-fil | --cache-fi \
379
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380
ac_prev=cache_file ;;
381
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383
cache_file=$ac_optarg ;;
386
cache_file=config.cache ;;
388
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392
datadir=$ac_optarg ;;
394
-disable-* | --disable-*)
395
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396
# Reject names that are not valid shell variable names.
397
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
399
{ (exit 1); exit 1; }; }
400
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401
eval "enable_$ac_feature=no" ;;
403
-enable-* | --enable-*)
404
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405
# Reject names that are not valid shell variable names.
406
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
408
{ (exit 1); exit 1; }; }
409
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
eval "enable_$ac_feature='$ac_optarg'" ;;
416
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418
| --exec | --exe | --ex)
419
ac_prev=exec_prefix ;;
420
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422
| --exec=* | --exe=* | --ex=*)
423
exec_prefix=$ac_optarg ;;
425
-gas | --gas | --ga | --g)
426
# Obsolete; use --with-gas.
429
-help | --help | --hel | --he | -h)
431
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432
ac_init_help=recursive ;;
433
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434
ac_init_help=short ;;
436
-host | --host | --hos | --ho)
437
ac_prev=host_alias ;;
438
-host=* | --host=* | --hos=* | --ho=*)
439
host_alias=$ac_optarg ;;
441
-includedir | --includedir | --includedi | --included | --include \
442
| --includ | --inclu | --incl | --inc)
443
ac_prev=includedir ;;
444
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445
| --includ=* | --inclu=* | --incl=* | --inc=*)
446
includedir=$ac_optarg ;;
448
-infodir | --infodir | --infodi | --infod | --info | --inf)
450
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451
infodir=$ac_optarg ;;
453
-libdir | --libdir | --libdi | --libd)
455
-libdir=* | --libdir=* | --libdi=* | --libd=*)
458
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459
| --libexe | --libex | --libe)
460
ac_prev=libexecdir ;;
461
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462
| --libexe=* | --libex=* | --libe=*)
463
libexecdir=$ac_optarg ;;
465
-localstatedir | --localstatedir | --localstatedi | --localstated \
466
| --localstate | --localstat | --localsta | --localst \
467
| --locals | --local | --loca | --loc | --lo)
468
ac_prev=localstatedir ;;
469
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
471
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472
localstatedir=$ac_optarg ;;
474
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480
# Obsolete; use --without-fp.
483
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
484
| --no-cr | --no-c | -n)
487
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
488
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493
| --oldin | --oldi | --old | --ol | --o)
494
ac_prev=oldincludedir ;;
495
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498
oldincludedir=$ac_optarg ;;
500
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
-program-prefix | --program-prefix | --program-prefi | --program-pref \
506
| --program-pre | --program-pr | --program-p)
507
ac_prev=program_prefix ;;
508
-program-prefix=* | --program-prefix=* | --program-prefi=* \
509
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510
program_prefix=$ac_optarg ;;
512
-program-suffix | --program-suffix | --program-suffi | --program-suff \
513
| --program-suf | --program-su | --program-s)
514
ac_prev=program_suffix ;;
515
-program-suffix=* | --program-suffix=* | --program-suffi=* \
516
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517
program_suffix=$ac_optarg ;;
519
-program-transform-name | --program-transform-name \
520
| --program-transform-nam | --program-transform-na \
521
| --program-transform-n | --program-transform- \
522
| --program-transform | --program-transfor \
523
| --program-transfo | --program-transf \
524
| --program-trans | --program-tran \
525
| --progr-tra | --program-tr | --program-t)
526
ac_prev=program_transform_name ;;
527
-program-transform-name=* | --program-transform-name=* \
528
| --program-transform-nam=* | --program-transform-na=* \
529
| --program-transform-n=* | --program-transform-=* \
530
| --program-transform=* | --program-transfor=* \
531
| --program-transfo=* | --program-transf=* \
532
| --program-trans=* | --program-tran=* \
533
| --progr-tra=* | --program-tr=* | --program-t=*)
534
program_transform_name=$ac_optarg ;;
536
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
537
| -silent | --silent | --silen | --sile | --sil)
540
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544
sbindir=$ac_optarg ;;
546
-sharedstatedir | --sharedstatedir | --sharedstatedi \
547
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548
| --sharedst | --shareds | --shared | --share | --shar \
550
ac_prev=sharedstatedir ;;
551
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555
sharedstatedir=$ac_optarg ;;
557
-site | --site | --sit)
559
-site=* | --site=* | --sit=*)
562
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568
| --syscon | --sysco | --sysc | --sys | --sy)
569
ac_prev=sysconfdir ;;
570
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572
sysconfdir=$ac_optarg ;;
574
-target | --target | --targe | --targ | --tar | --ta | --t)
575
ac_prev=target_alias ;;
576
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577
target_alias=$ac_optarg ;;
579
-v | -verbose | --verbose | --verbos | --verbo | --verb)
582
-version | --version | --versio | --versi | --vers | -V)
586
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587
# Reject names that are not valid shell variable names.
588
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589
{ echo "$as_me: error: invalid package name: $ac_package" >&2
590
{ (exit 1); exit 1; }; }
591
ac_package=`echo $ac_package| sed 's/-/_/g'`
593
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
eval "with_$ac_package='$ac_optarg'" ;;
598
-without-* | --without-*)
599
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600
# Reject names that are not valid shell variable names.
601
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602
{ echo "$as_me: error: invalid package name: $ac_package" >&2
603
{ (exit 1); exit 1; }; }
604
ac_package=`echo $ac_package | sed 's/-/_/g'`
605
eval "with_$ac_package=no" ;;
608
# Obsolete; use --with-x.
611
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612
| --x-incl | --x-inc | --x-in | --x-i)
613
ac_prev=x_includes ;;
614
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616
x_includes=$ac_optarg ;;
618
-x-libraries | --x-libraries | --x-librarie | --x-librari \
619
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620
ac_prev=x_libraries ;;
621
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623
x_libraries=$ac_optarg ;;
625
-*) { echo "$as_me: error: unrecognized option: $ac_option
626
Try \`$0 --help' for more information." >&2
627
{ (exit 1); exit 1; }; }
631
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632
# Reject names that are not valid shell variable names.
633
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635
{ (exit 1); exit 1; }; }
636
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637
eval "$ac_envvar='$ac_optarg'"
641
# FIXME: should be removed in autoconf 3.0.
642
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
if test -n "$ac_prev"; then
652
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653
{ echo "$as_me: error: missing argument to $ac_option" >&2
654
{ (exit 1); exit 1; }; }
657
# Be sure to have absolute paths.
658
for ac_var in exec_prefix prefix
660
eval ac_val=$`echo $ac_var`
662
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664
{ (exit 1); exit 1; }; };;
668
# Be sure to have absolute paths.
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670
localstatedir libdir includedir oldincludedir infodir mandir
672
eval ac_val=$`echo $ac_var`
674
[\\/$]* | ?:[\\/]* ) ;;
675
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676
{ (exit 1); exit 1; }; };;
680
# There might be people who depend on the old broken behavior: `$host'
681
# used to hold the argument of --host etc.
682
# FIXME: To remove some day.
687
# FIXME: To remove some day.
688
if test "x$host_alias" != x; then
689
if test "x$build_alias" = x; then
690
cross_compiling=maybe
691
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692
If a cross compiler is detected then cross compile mode will be used." >&2
693
elif test "x$build_alias" != "x$host_alias"; then
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
test "$silent" = yes && exec 6>/dev/null
704
# Find the source files, if location was not specified.
705
if test -z "$srcdir"; then
706
ac_srcdir_defaulted=yes
707
# Try the directory containing this script, then its parent.
708
ac_confdir=`(dirname "$0") 2>/dev/null ||
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710
X"$0" : 'X\(//\)[^/]' \| \
711
X"$0" : 'X\(//\)$' \| \
712
X"$0" : 'X\(/\)' \| \
713
. : '\(.\)' 2>/dev/null ||
715
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
717
/^X\(\/\/\)$/{ s//\1/; q; }
718
/^X\(\/\).*/{ s//\1/; q; }
721
if test ! -r $srcdir/$ac_unique_file; then
725
ac_srcdir_defaulted=no
727
if test ! -r $srcdir/$ac_unique_file; then
728
if test "$ac_srcdir_defaulted" = yes; then
729
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730
{ (exit 1); exit 1; }; }
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733
{ (exit 1); exit 1; }; }
736
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738
{ (exit 1); exit 1; }; }
739
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740
ac_env_build_alias_set=${build_alias+set}
741
ac_env_build_alias_value=$build_alias
742
ac_cv_env_build_alias_set=${build_alias+set}
743
ac_cv_env_build_alias_value=$build_alias
744
ac_env_host_alias_set=${host_alias+set}
745
ac_env_host_alias_value=$host_alias
746
ac_cv_env_host_alias_set=${host_alias+set}
747
ac_cv_env_host_alias_value=$host_alias
748
ac_env_target_alias_set=${target_alias+set}
749
ac_env_target_alias_value=$target_alias
750
ac_cv_env_target_alias_set=${target_alias+set}
751
ac_cv_env_target_alias_value=$target_alias
752
ac_env_CC_set=${CC+set}
754
ac_cv_env_CC_set=${CC+set}
755
ac_cv_env_CC_value=$CC
756
ac_env_CFLAGS_set=${CFLAGS+set}
757
ac_env_CFLAGS_value=$CFLAGS
758
ac_cv_env_CFLAGS_set=${CFLAGS+set}
759
ac_cv_env_CFLAGS_value=$CFLAGS
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
761
ac_env_LDFLAGS_value=$LDFLAGS
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
764
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765
ac_env_CPPFLAGS_value=$CPPFLAGS
766
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768
ac_env_CPP_set=${CPP+set}
769
ac_env_CPP_value=$CPP
770
ac_cv_env_CPP_set=${CPP+set}
771
ac_cv_env_CPP_value=$CPP
774
# Report the --help message.
776
if test "$ac_init_help" = "long"; then
777
# Omit some internal or obsolete options to make the list less imposing.
778
# This message is too long to be a string in the A/UX 3.1 sh.
780
\`configure' configures this package to adapt to many kinds of systems.
782
Usage: $0 [OPTION]... [VAR=VALUE]...
784
To assign environment variables (e.g., CC, CFLAGS...), specify them as
785
VAR=VALUE. See below for descriptions of some of the useful variables.
787
Defaults for the options are specified in brackets.
790
-h, --help display this help and exit
791
--help=short display options specific to this package
792
--help=recursive display the short help of all the included packages
793
-V, --version display version information and exit
794
-q, --quiet, --silent do not print \`checking...' messages
795
--cache-file=FILE cache test results in FILE [disabled]
796
-C, --config-cache alias for \`--cache-file=config.cache'
797
-n, --no-create do not create output files
798
--srcdir=DIR find the sources in DIR [configure dir or \`..']
803
Installation directories:
804
--prefix=PREFIX install architecture-independent files in PREFIX
806
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809
By default, \`make install' will install all the files in
810
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812
for instance \`--prefix=\$HOME'.
814
For better control, use the options below.
816
Fine tuning of the installation directories:
817
--bindir=DIR user executables [EPREFIX/bin]
818
--sbindir=DIR system admin executables [EPREFIX/sbin]
819
--libexecdir=DIR program executables [EPREFIX/libexec]
820
--datadir=DIR read-only architecture-independent data [PREFIX/share]
821
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
824
--libdir=DIR object code libraries [EPREFIX/lib]
825
--includedir=DIR C header files [PREFIX/include]
826
--oldincludedir=DIR C header files for non-gcc [/usr/include]
827
--infodir=DIR info documentation [PREFIX/info]
828
--mandir=DIR man documentation [PREFIX/man]
835
if test -n "$ac_init_help"; then
840
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
841
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
842
--disable-etags disable the installation of links for etags
843
--disable-extended-format
844
disable extension flags; use original ctags file
846
--disable-external-sort use internal sort algorithm instead of sort program
847
--enable-custom-config=FILE
848
enable custom config file for site-wide defaults
849
--enable-macro-patterns use patterns as default method to locate macros
850
instead of line numbers
851
--enable-maintainer-mode
852
use maintainer makefile
853
--enable-shell-globbing=DIR
854
does shell expand wildcards (yes|no)? yes
855
--enable-tmpdir=DIR default directory for temporary files ARG=/tmp
858
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860
--with-posix-regex use Posix regex interface, if available
861
--with-readlib include readtags library object during install
863
Some influential environment variables:
864
CC C compiler command
865
CFLAGS C compiler flags
866
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867
nonstandard directory <lib dir>
868
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869
headers in a nonstandard directory <include dir>
872
Use these variables to override the choices made by `configure' or to help
873
it to find libraries and programs with nonstandard names/locations.
878
if test "$ac_init_help" = "recursive"; then
879
# If there are subdirs, report their specific --help.
881
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882
test -d $ac_dir || continue
885
if test "$ac_dir" != .; then
886
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887
# A "../" for each directory in $ac_dir_suffix.
888
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890
ac_dir_suffix= ac_top_builddir=
894
.) # No --srcdir option. We are building in place.
896
if test -z "$ac_top_builddir"; then
899
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901
[\\/]* | ?:[\\/]* ) # Absolute path.
902
ac_srcdir=$srcdir$ac_dir_suffix;
903
ac_top_srcdir=$srcdir ;;
905
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906
ac_top_srcdir=$ac_top_builddir$srcdir ;;
908
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
912
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916
# Check for guested configure; otherwise get Cygnus style configure.
917
if test -f $ac_srcdir/configure.gnu; then
919
$SHELL $ac_srcdir/configure.gnu --help=recursive
920
elif test -f $ac_srcdir/configure; then
922
$SHELL $ac_srcdir/configure --help=recursive
923
elif test -f $ac_srcdir/configure.ac ||
924
test -f $ac_srcdir/configure.in; then
928
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934
test -n "$ac_init_help" && exit 0
935
if $ac_init_version; then
938
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939
Free Software Foundation, Inc.
940
This configure script is free software; the Free Software Foundation
941
gives unlimited permission to copy, distribute and modify it.
947
This file contains any messages produced by compilers while
948
running configure, to aid debugging if configure makes a mistake.
950
It was created by $as_me, which was
951
generated by GNU Autoconf 2.57. Invocation command line was
962
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963
uname -m = `(uname -m) 2>/dev/null || echo unknown`
964
uname -r = `(uname -r) 2>/dev/null || echo unknown`
965
uname -s = `(uname -s) 2>/dev/null || echo unknown`
966
uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985
test -z "$as_dir" && as_dir=.
1001
# Keep a trace of the command line.
1002
# Strip out --no-create and --no-recursion so they do not pile up.
1003
# Strip out --silent because we don't want to record it for future runs.
1004
# Also quote any args containing shell meta-characters.
1005
# Make two passes to allow for proper duplicate-argument suppression.
1010
ac_must_keep_next=false
1016
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1017
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018
| -silent | --silent | --silen | --sile | --sil)
1020
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1021
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1024
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1026
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1027
if test $ac_must_keep_next = true; then
1028
ac_must_keep_next=false # Got value, back to normal.
1031
*=* | --config-cache | -C | -disable-* | --disable-* \
1032
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1033
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1034
| -with-* | --with-* | -without-* | --without-* | --x)
1035
case "$ac_configure_args0 " in
1036
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1039
-* ) ac_must_keep_next=true ;;
1042
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1043
# Get rid of the leading space.
1049
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1050
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1052
# When interrupted or exit'd, cleanup temporary files, and complete
1053
# config.log. We remove comments because anyway the quotes in there
1054
# would cause problems or look ugly.
1055
# WARNING: Be sure not to use single quotes in there, as some shells,
1056
# such as our DU 5.0 friend, will then `close' the trap.
1057
trap 'exit_status=$?
1058
# Save into config.log some information that might help in debugging.
1063
## ---------------- ##
1064
## Cache variables. ##
1065
## ---------------- ##
1068
# The following way of writing the cache mishandles newlines in values,
1071
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1074
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1075
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1086
## ----------------- ##
1087
## Output variables. ##
1088
## ----------------- ##
1091
for ac_var in $ac_subst_vars
1093
eval ac_val=$`echo $ac_var`
1094
echo "$ac_var='"'"'$ac_val'"'"'"
1098
if test -n "$ac_subst_files"; then
1105
for ac_var in $ac_subst_files
1107
eval ac_val=$`echo $ac_var`
1108
echo "$ac_var='"'"'$ac_val'"'"'"
1113
if test -s confdefs.h; then
1120
sed "/^$/d" confdefs.h | sort
1123
test "$ac_signal" != 0 &&
1124
echo "$as_me: caught signal $ac_signal"
1125
echo "$as_me: exit $exit_status"
1127
rm -f core core.* *.core &&
1128
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1131
for ac_signal in 1 2 13 15; do
1132
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1137
rm -rf conftest* confdefs.h
1138
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1141
# Predefined preprocessor variables.
1143
cat >>confdefs.h <<_ACEOF
1144
#define PACKAGE_NAME "$PACKAGE_NAME"
1148
cat >>confdefs.h <<_ACEOF
1149
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153
cat >>confdefs.h <<_ACEOF
1154
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1158
cat >>confdefs.h <<_ACEOF
1159
#define PACKAGE_STRING "$PACKAGE_STRING"
1163
cat >>confdefs.h <<_ACEOF
1164
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168
# Let the site file select an alternate cache file if it wants to.
1169
# Prefer explicitly selected file to automatically selected ones.
1170
if test -z "$CONFIG_SITE"; then
1171
if test "x$prefix" != xNONE; then
1172
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1174
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1177
for ac_site_file in $CONFIG_SITE; do
1178
if test -r "$ac_site_file"; then
1179
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1180
echo "$as_me: loading site script $ac_site_file" >&6;}
1181
sed 's/^/| /' "$ac_site_file" >&5
1186
if test -r "$cache_file"; then
1187
# Some versions of bash will fail to source /dev/null (special
1188
# files actually), so we avoid doing that.
1189
if test -f "$cache_file"; then
1190
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1191
echo "$as_me: loading cache $cache_file" >&6;}
1193
[\\/]* | ?:[\\/]* ) . $cache_file;;
1194
*) . ./$cache_file;;
1198
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1199
echo "$as_me: creating cache $cache_file" >&6;}
1203
# Check that the precious variables saved in the cache have kept the same
1205
ac_cache_corrupted=false
1206
for ac_var in `(set) 2>&1 |
1207
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1208
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1209
eval ac_new_set=\$ac_env_${ac_var}_set
1210
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1211
eval ac_new_val="\$ac_env_${ac_var}_value"
1212
case $ac_old_set,$ac_new_set in
1214
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1215
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1216
ac_cache_corrupted=: ;;
1218
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1219
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1220
ac_cache_corrupted=: ;;
1223
if test "x$ac_old_val" != "x$ac_new_val"; then
1224
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1225
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1226
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1227
echo "$as_me: former value: $ac_old_val" >&2;}
1228
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1229
echo "$as_me: current value: $ac_new_val" >&2;}
1230
ac_cache_corrupted=:
1233
# Pass precious variables to config.status.
1234
if test "$ac_new_set" = set; then
1236
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1237
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1238
*) ac_arg=$ac_var=$ac_new_val ;;
1240
case " $ac_configure_args " in
1241
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1242
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246
if $ac_cache_corrupted; then
1247
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1248
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1249
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1250
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1251
{ (exit 1); exit 1; }; }
1255
ac_cpp='$CPP $CPPFLAGS'
1256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278
ac_config_headers="$ac_config_headers config.h"
1281
echo 'Exuberant Ctags, version 5.5.4'
1282
uname -mrsv 2>/dev/null
1288
# Check whether --with-posix-regex or --without-posix-regex was given.
1289
if test "${with_posix_regex+set}" = set; then
1290
withval="$with_posix_regex"
1295
# Check whether --with-readlib or --without-readlib was given.
1296
if test "${with_readlib+set}" = set; then
1297
withval="$with_readlib"
1302
# Check whether --enable-etags or --disable-etags was given.
1303
if test "${enable_etags+set}" = set; then
1304
enableval="$enable_etags"
1308
# Check whether --enable-extended-format or --disable-extended-format was given.
1309
if test "${enable_extended_format+set}" = set; then
1310
enableval="$enable_extended_format"
1311
cat >>confdefs.h <<\_ACEOF
1312
#define DEFAULT_FILE_FORMAT 1
1316
cat >>confdefs.h <<\_ACEOF
1317
#define DEFAULT_FILE_FORMAT 2
1322
# Check whether --enable-external-sort or --disable-external-sort was given.
1323
if test "${enable_external_sort+set}" = set; then
1324
enableval="$enable_external_sort"
1328
# Check whether --enable-custom-config or --disable-custom-config was given.
1329
if test "${enable_custom_config+set}" = set; then
1330
enableval="$enable_custom_config"
1334
# Check whether --enable-macro-patterns or --disable-macro-patterns was given.
1335
if test "${enable_macro_patterns+set}" = set; then
1336
enableval="$enable_macro_patterns"
1340
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1341
if test "${enable_maintainer_mode+set}" = set; then
1342
enableval="$enable_maintainer_mode"
1346
# Check whether --enable-shell-globbing or --disable-shell-globbing was given.
1347
if test "${enable_shell_globbing+set}" = set; then
1348
enableval="$enable_shell_globbing"
1352
# Check whether --enable-tmpdir or --disable-tmpdir was given.
1353
if test "${enable_tmpdir+set}" = set; then
1354
enableval="$enable_tmpdir"
1355
tmpdir_specified=yes
1360
if test "$enable_maintainer_mode" = yes ; then
1361
echo "$as_me:$LINENO: result: enabling maintainer mode" >&5
1362
echo "${ECHO_T}enabling maintainer mode" >&6
1365
install_targets="install-ctags"
1366
echo "$as_me:$LINENO: checking whether to install link to etags" >&5
1367
echo $ECHO_N "checking whether to install link to etags... $ECHO_C" >&6
1368
if test no != "$enable_etags"; then
1369
echo "$as_me:$LINENO: result: yes" >&5
1370
echo "${ECHO_T}yes" >&6
1371
install_targets="$install_targets install-etags"
1373
echo "$as_me:$LINENO: result: no" >&5
1374
echo "${ECHO_T}no" >&6
1376
echo "$as_me:$LINENO: checking whether to install readtags object file" >&5
1377
echo $ECHO_N "checking whether to install readtags object file... $ECHO_C" >&6
1378
if test yes = "$with_readlib"; then
1379
echo "$as_me:$LINENO: result: yes" >&5
1380
echo "${ECHO_T}yes" >&6
1381
install_targets="$install_targets install-lib"
1383
echo "$as_me:$LINENO: result: no" >&5
1384
echo "${ECHO_T}no" >&6
1388
if test "$enable_custom_config" = no -o "$enable_custom_config" = yes ; then
1389
echo "$as_me:$LINENO: result: no name supplied for custom configuration file" >&5
1390
echo "${ECHO_T}no name supplied for custom configuration file" >&6
1391
elif test -n "$enable_custom_config" ; then
1392
cat >>confdefs.h <<_ACEOF
1393
#define CUSTOM_CONFIGURATION_FILE "$enable_custom_config"
1396
echo "$as_me:$LINENO: result: $enable_custom_config will be used as custom configuration file" >&5
1397
echo "${ECHO_T}$enable_custom_config will be used as custom configuration file" >&6
1400
if test "$enable_macro_patterns" = yes ; then
1401
cat >>confdefs.h <<\_ACEOF
1402
#define MACROS_USE_PATTERNS 1
1405
echo "$as_me:$LINENO: result: tag file will use patterns for macros by default" >&5
1406
echo "${ECHO_T}tag file will use patterns for macros by default" >&6
1411
ac_cpp='$CPP $CPPFLAGS'
1412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415
if test -n "$ac_tool_prefix"; then
1416
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1417
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1418
echo "$as_me:$LINENO: checking for $ac_word" >&5
1419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420
if test "${ac_cv_prog_CC+set}" = set; then
1421
echo $ECHO_N "(cached) $ECHO_C" >&6
1423
if test -n "$CC"; then
1424
ac_cv_prog_CC="$CC" # Let the user override the test.
1426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430
test -z "$as_dir" && as_dir=.
1431
for ac_exec_ext in '' $ac_executable_extensions; do
1432
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1434
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443
if test -n "$CC"; then
1444
echo "$as_me:$LINENO: result: $CC" >&5
1445
echo "${ECHO_T}$CC" >&6
1447
echo "$as_me:$LINENO: result: no" >&5
1448
echo "${ECHO_T}no" >&6
1452
if test -z "$ac_cv_prog_CC"; then
1454
# Extract the first word of "gcc", so it can be a program name with args.
1455
set dummy gcc; ac_word=$2
1456
echo "$as_me:$LINENO: checking for $ac_word" >&5
1457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459
echo $ECHO_N "(cached) $ECHO_C" >&6
1461
if test -n "$ac_ct_CC"; then
1462
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468
test -z "$as_dir" && as_dir=.
1469
for ac_exec_ext in '' $ac_executable_extensions; do
1470
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471
ac_cv_prog_ac_ct_CC="gcc"
1472
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481
if test -n "$ac_ct_CC"; then
1482
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483
echo "${ECHO_T}$ac_ct_CC" >&6
1485
echo "$as_me:$LINENO: result: no" >&5
1486
echo "${ECHO_T}no" >&6
1494
if test -z "$CC"; then
1495
if test -n "$ac_tool_prefix"; then
1496
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1497
set dummy ${ac_tool_prefix}cc; ac_word=$2
1498
echo "$as_me:$LINENO: checking for $ac_word" >&5
1499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500
if test "${ac_cv_prog_CC+set}" = set; then
1501
echo $ECHO_N "(cached) $ECHO_C" >&6
1503
if test -n "$CC"; then
1504
ac_cv_prog_CC="$CC" # Let the user override the test.
1506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510
test -z "$as_dir" && as_dir=.
1511
for ac_exec_ext in '' $ac_executable_extensions; do
1512
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513
ac_cv_prog_CC="${ac_tool_prefix}cc"
1514
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523
if test -n "$CC"; then
1524
echo "$as_me:$LINENO: result: $CC" >&5
1525
echo "${ECHO_T}$CC" >&6
1527
echo "$as_me:$LINENO: result: no" >&5
1528
echo "${ECHO_T}no" >&6
1532
if test -z "$ac_cv_prog_CC"; then
1534
# Extract the first word of "cc", so it can be a program name with args.
1535
set dummy cc; ac_word=$2
1536
echo "$as_me:$LINENO: checking for $ac_word" >&5
1537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1539
echo $ECHO_N "(cached) $ECHO_C" >&6
1541
if test -n "$ac_ct_CC"; then
1542
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548
test -z "$as_dir" && as_dir=.
1549
for ac_exec_ext in '' $ac_executable_extensions; do
1550
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551
ac_cv_prog_ac_ct_CC="cc"
1552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1561
if test -n "$ac_ct_CC"; then
1562
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1563
echo "${ECHO_T}$ac_ct_CC" >&6
1565
echo "$as_me:$LINENO: result: no" >&5
1566
echo "${ECHO_T}no" >&6
1575
if test -z "$CC"; then
1576
# Extract the first word of "cc", so it can be a program name with args.
1577
set dummy cc; ac_word=$2
1578
echo "$as_me:$LINENO: checking for $ac_word" >&5
1579
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580
if test "${ac_cv_prog_CC+set}" = set; then
1581
echo $ECHO_N "(cached) $ECHO_C" >&6
1583
if test -n "$CC"; then
1584
ac_cv_prog_CC="$CC" # Let the user override the test.
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591
test -z "$as_dir" && as_dir=.
1592
for ac_exec_ext in '' $ac_executable_extensions; do
1593
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1595
ac_prog_rejected=yes
1599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605
if test $ac_prog_rejected = yes; then
1606
# We found a bogon in the path, so make sure we never use it.
1607
set dummy $ac_cv_prog_CC
1609
if test $# != 0; then
1610
# We chose a different compiler from the bogus one.
1611
# However, it has the same basename, so the bogon will be chosen
1612
# first if we set CC to just the basename; use the full file name.
1614
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1620
if test -n "$CC"; then
1621
echo "$as_me:$LINENO: result: $CC" >&5
1622
echo "${ECHO_T}$CC" >&6
1624
echo "$as_me:$LINENO: result: no" >&5
1625
echo "${ECHO_T}no" >&6
1629
if test -z "$CC"; then
1630
if test -n "$ac_tool_prefix"; then
1633
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1634
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1635
echo "$as_me:$LINENO: checking for $ac_word" >&5
1636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637
if test "${ac_cv_prog_CC+set}" = set; then
1638
echo $ECHO_N "(cached) $ECHO_C" >&6
1640
if test -n "$CC"; then
1641
ac_cv_prog_CC="$CC" # Let the user override the test.
1643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647
test -z "$as_dir" && as_dir=.
1648
for ac_exec_ext in '' $ac_executable_extensions; do
1649
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660
if test -n "$CC"; then
1661
echo "$as_me:$LINENO: result: $CC" >&5
1662
echo "${ECHO_T}$CC" >&6
1664
echo "$as_me:$LINENO: result: no" >&5
1665
echo "${ECHO_T}no" >&6
1668
test -n "$CC" && break
1671
if test -z "$CC"; then
1675
# Extract the first word of "$ac_prog", so it can be a program name with args.
1676
set dummy $ac_prog; ac_word=$2
1677
echo "$as_me:$LINENO: checking for $ac_word" >&5
1678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680
echo $ECHO_N "(cached) $ECHO_C" >&6
1682
if test -n "$ac_ct_CC"; then
1683
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689
test -z "$as_dir" && as_dir=.
1690
for ac_exec_ext in '' $ac_executable_extensions; do
1691
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692
ac_cv_prog_ac_ct_CC="$ac_prog"
1693
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702
if test -n "$ac_ct_CC"; then
1703
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704
echo "${ECHO_T}$ac_ct_CC" >&6
1706
echo "$as_me:$LINENO: result: no" >&5
1707
echo "${ECHO_T}no" >&6
1710
test -n "$ac_ct_CC" && break
1719
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1720
See \`config.log' for more details." >&5
1721
echo "$as_me: error: no acceptable C compiler found in \$PATH
1722
See \`config.log' for more details." >&2;}
1723
{ (exit 1); exit 1; }; }
1725
# Provide some information about the compiler.
1726
echo "$as_me:$LINENO:" \
1727
"checking for C compiler version" >&5
1728
ac_compiler=`set X $ac_compile; echo $2`
1729
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1730
(eval $ac_compiler --version </dev/null >&5) 2>&5
1732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733
(exit $ac_status); }
1734
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1735
(eval $ac_compiler -v </dev/null >&5) 2>&5
1737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738
(exit $ac_status); }
1739
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1740
(eval $ac_compiler -V </dev/null >&5) 2>&5
1742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743
(exit $ac_status); }
1745
cat >conftest.$ac_ext <<_ACEOF
1746
#line $LINENO "configure"
1749
cat confdefs.h >>conftest.$ac_ext
1750
cat >>conftest.$ac_ext <<_ACEOF
1751
/* end confdefs.h. */
1761
ac_clean_files_save=$ac_clean_files
1762
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1763
# Try to create an executable without -o first, disregard a.out.
1764
# It will help us diagnose broken compilers, and finding out an intuition
1766
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1767
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1768
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1769
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1770
(eval $ac_link_default) 2>&5
1772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773
(exit $ac_status); }; then
1774
# Find the output, starting from the most likely. This scheme is
1775
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1778
# Be careful to initialize this variable, since it used to be cached.
1779
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1781
# b.out is created by i960 compilers.
1782
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1784
test -f "$ac_file" || continue
1786
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1789
# This is the source file.
1792
# We found the default executable, but exeext='' is most
1796
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1797
# FIXME: I believe we export ac_cv_exeext for Libtool,
1798
# but it would be cool to find out if it's true. Does anybody
1799
# maintain Libtool? --akim.
1807
echo "$as_me: failed program was:" >&5
1808
sed 's/^/| /' conftest.$ac_ext >&5
1810
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1811
See \`config.log' for more details." >&5
1812
echo "$as_me: error: C compiler cannot create executables
1813
See \`config.log' for more details." >&2;}
1814
{ (exit 77); exit 77; }; }
1817
ac_exeext=$ac_cv_exeext
1818
echo "$as_me:$LINENO: result: $ac_file" >&5
1819
echo "${ECHO_T}$ac_file" >&6
1821
# Check the compiler produces executables we can run. If not, either
1822
# the compiler is broken, or we cross compile.
1823
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1824
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1825
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1826
# If not cross compiling, check that we can run a simple program.
1827
if test "$cross_compiling" != yes; then
1828
if { ac_try='./$ac_file'
1829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833
(exit $ac_status); }; }; then
1836
if test "$cross_compiling" = maybe; then
1839
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1840
If you meant to cross compile, use \`--host'.
1841
See \`config.log' for more details." >&5
1842
echo "$as_me: error: cannot run C compiled programs.
1843
If you meant to cross compile, use \`--host'.
1844
See \`config.log' for more details." >&2;}
1845
{ (exit 1); exit 1; }; }
1849
echo "$as_me:$LINENO: result: yes" >&5
1850
echo "${ECHO_T}yes" >&6
1852
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1853
ac_clean_files=$ac_clean_files_save
1854
# Check the compiler produces executables we can run. If not, either
1855
# the compiler is broken, or we cross compile.
1856
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1857
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1858
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1859
echo "${ECHO_T}$cross_compiling" >&6
1861
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1862
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1863
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1864
(eval $ac_link) 2>&5
1866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867
(exit $ac_status); }; then
1868
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1869
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1870
# work properly (i.e., refer to `conftest.exe'), while it won't with
1872
for ac_file in conftest.exe conftest conftest.*; do
1873
test -f "$ac_file" || continue
1875
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1876
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1883
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1884
See \`config.log' for more details." >&5
1885
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1886
See \`config.log' for more details." >&2;}
1887
{ (exit 1); exit 1; }; }
1890
rm -f conftest$ac_cv_exeext
1891
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1892
echo "${ECHO_T}$ac_cv_exeext" >&6
1894
rm -f conftest.$ac_ext
1895
EXEEXT=$ac_cv_exeext
1897
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1898
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1899
if test "${ac_cv_objext+set}" = set; then
1900
echo $ECHO_N "(cached) $ECHO_C" >&6
1902
cat >conftest.$ac_ext <<_ACEOF
1903
#line $LINENO "configure"
1906
cat confdefs.h >>conftest.$ac_ext
1907
cat >>conftest.$ac_ext <<_ACEOF
1908
/* end confdefs.h. */
1918
rm -f conftest.o conftest.obj
1919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920
(eval $ac_compile) 2>&5
1922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923
(exit $ac_status); }; then
1924
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1926
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1927
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1932
echo "$as_me: failed program was:" >&5
1933
sed 's/^/| /' conftest.$ac_ext >&5
1935
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1936
See \`config.log' for more details." >&5
1937
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1938
See \`config.log' for more details." >&2;}
1939
{ (exit 1); exit 1; }; }
1942
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1944
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1945
echo "${ECHO_T}$ac_cv_objext" >&6
1946
OBJEXT=$ac_cv_objext
1948
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1949
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1950
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1951
echo $ECHO_N "(cached) $ECHO_C" >&6
1953
cat >conftest.$ac_ext <<_ACEOF
1954
#line $LINENO "configure"
1957
cat confdefs.h >>conftest.$ac_ext
1958
cat >>conftest.$ac_ext <<_ACEOF
1959
/* end confdefs.h. */
1972
rm -f conftest.$ac_objext
1973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974
(eval $ac_compile) 2>&5
1976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977
(exit $ac_status); } &&
1978
{ ac_try='test -s conftest.$ac_objext'
1979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983
(exit $ac_status); }; }; then
1986
echo "$as_me: failed program was:" >&5
1987
sed 's/^/| /' conftest.$ac_ext >&5
1991
rm -f conftest.$ac_objext conftest.$ac_ext
1992
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1995
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1996
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1997
GCC=`test $ac_compiler_gnu = yes && echo yes`
1998
ac_test_CFLAGS=${CFLAGS+set}
1999
ac_save_CFLAGS=$CFLAGS
2001
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2002
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2003
if test "${ac_cv_prog_cc_g+set}" = set; then
2004
echo $ECHO_N "(cached) $ECHO_C" >&6
2006
cat >conftest.$ac_ext <<_ACEOF
2007
#line $LINENO "configure"
2010
cat confdefs.h >>conftest.$ac_ext
2011
cat >>conftest.$ac_ext <<_ACEOF
2012
/* end confdefs.h. */
2022
rm -f conftest.$ac_objext
2023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024
(eval $ac_compile) 2>&5
2026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027
(exit $ac_status); } &&
2028
{ ac_try='test -s conftest.$ac_objext'
2029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033
(exit $ac_status); }; }; then
2036
echo "$as_me: failed program was:" >&5
2037
sed 's/^/| /' conftest.$ac_ext >&5
2041
rm -f conftest.$ac_objext conftest.$ac_ext
2043
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2044
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2045
if test "$ac_test_CFLAGS" = set; then
2046
CFLAGS=$ac_save_CFLAGS
2047
elif test $ac_cv_prog_cc_g = yes; then
2048
if test "$GCC" = yes; then
2054
if test "$GCC" = yes; then
2060
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2061
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2062
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2063
echo $ECHO_N "(cached) $ECHO_C" >&6
2065
ac_cv_prog_cc_stdc=no
2067
cat >conftest.$ac_ext <<_ACEOF
2068
#line $LINENO "configure"
2071
cat confdefs.h >>conftest.$ac_ext
2072
cat >>conftest.$ac_ext <<_ACEOF
2073
/* end confdefs.h. */
2076
#include <sys/types.h>
2077
#include <sys/stat.h>
2078
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2079
struct buf { int x; };
2080
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2081
static char *e (p, i)
2087
static char *f (char * (*g) (char **, int), char **p, ...)
2092
s = g (p, va_arg (v,int));
2096
int test (int i, double x);
2097
struct s1 {int (*f) (int a);};
2098
struct s2 {int (*f) (double a);};
2099
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2105
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2110
# Don't try gcc -ansi; that turns off useful extensions and
2111
# breaks some systems' header files.
2112
# AIX -qlanglvl=ansi
2113
# Ultrix and OSF/1 -std1
2114
# HP-UX 10.20 and later -Ae
2115
# HP-UX older versions -Aa -D_HPUX_SOURCE
2116
# SVR4 -Xc -D__EXTENSIONS__
2117
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2119
CC="$ac_save_CC $ac_arg"
2120
rm -f conftest.$ac_objext
2121
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122
(eval $ac_compile) 2>&5
2124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125
(exit $ac_status); } &&
2126
{ ac_try='test -s conftest.$ac_objext'
2127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131
(exit $ac_status); }; }; then
2132
ac_cv_prog_cc_stdc=$ac_arg
2135
echo "$as_me: failed program was:" >&5
2136
sed 's/^/| /' conftest.$ac_ext >&5
2139
rm -f conftest.$ac_objext
2141
rm -f conftest.$ac_ext conftest.$ac_objext
2146
case "x$ac_cv_prog_cc_stdc" in
2148
echo "$as_me:$LINENO: result: none needed" >&5
2149
echo "${ECHO_T}none needed" >&6 ;;
2151
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2152
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2153
CC="$CC $ac_cv_prog_cc_stdc" ;;
2156
# Some people use a C++ compiler to compile C. Since we use `exit',
2157
# in C++ we need to declare it. In case someone uses the same compiler
2158
# for both compiling C and C++ we need to have the C++ compiler decide
2159
# the declaration of exit, since it's the most demanding environment.
2160
cat >conftest.$ac_ext <<_ACEOF
2165
rm -f conftest.$ac_objext
2166
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167
(eval $ac_compile) 2>&5
2169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170
(exit $ac_status); } &&
2171
{ ac_try='test -s conftest.$ac_objext'
2172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176
(exit $ac_status); }; }; then
2177
for ac_declaration in \
2179
'#include <stdlib.h>' \
2180
'extern "C" void std::exit (int) throw (); using std::exit;' \
2181
'extern "C" void std::exit (int); using std::exit;' \
2182
'extern "C" void exit (int) throw ();' \
2183
'extern "C" void exit (int);' \
2186
cat >conftest.$ac_ext <<_ACEOF
2187
#line $LINENO "configure"
2190
cat confdefs.h >>conftest.$ac_ext
2191
cat >>conftest.$ac_ext <<_ACEOF
2192
/* end confdefs.h. */
2203
rm -f conftest.$ac_objext
2204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205
(eval $ac_compile) 2>&5
2207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208
(exit $ac_status); } &&
2209
{ ac_try='test -s conftest.$ac_objext'
2210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214
(exit $ac_status); }; }; then
2217
echo "$as_me: failed program was:" >&5
2218
sed 's/^/| /' conftest.$ac_ext >&5
2222
rm -f conftest.$ac_objext conftest.$ac_ext
2223
cat >conftest.$ac_ext <<_ACEOF
2224
#line $LINENO "configure"
2227
cat confdefs.h >>conftest.$ac_ext
2228
cat >>conftest.$ac_ext <<_ACEOF
2229
/* end confdefs.h. */
2239
rm -f conftest.$ac_objext
2240
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241
(eval $ac_compile) 2>&5
2243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244
(exit $ac_status); } &&
2245
{ ac_try='test -s conftest.$ac_objext'
2246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
(exit $ac_status); }; }; then
2253
echo "$as_me: failed program was:" >&5
2254
sed 's/^/| /' conftest.$ac_ext >&5
2257
rm -f conftest.$ac_objext conftest.$ac_ext
2260
if test -n "$ac_declaration"; then
2261
echo '#ifdef __cplusplus' >>confdefs.h
2262
echo $ac_declaration >>confdefs.h
2263
echo '#endif' >>confdefs.h
2267
echo "$as_me: failed program was:" >&5
2268
sed 's/^/| /' conftest.$ac_ext >&5
2271
rm -f conftest.$ac_objext conftest.$ac_ext
2273
ac_cpp='$CPP $CPPFLAGS'
2274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281
echo "$as_me:$LINENO: checking \"HP-UX native compiler\"" >&5
2282
echo $ECHO_N "checking \"HP-UX native compiler\"... $ECHO_C" >&6
2283
if test "$CC" = "cc"; then
2284
echo "$as_me:$LINENO: result: yes; adding compiler options for ANSI support" >&5
2285
echo "${ECHO_T}yes; adding compiler options for ANSI support" >&6
2286
CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
2288
echo "$as_me:$LINENO: result: no" >&5
2289
echo "${ECHO_T}no" >&6
2293
if uname -r | grep '5\.' >/dev/null 2>&1; then
2294
echo "$as_me:$LINENO: checking \"Solaris native compiler\"" >&5
2295
echo $ECHO_N "checking \"Solaris native compiler\"... $ECHO_C" >&6
2296
if test "$CC" = "cc" -a "`which cc`" = "/usr/ucb/cc"; then
2297
echo "$as_me:$LINENO: result: yes; adding compiler option for ANSI support" >&5
2298
echo "${ECHO_T}yes; adding compiler option for ANSI support" >&6
2301
echo "$as_me:$LINENO: result: no" >&5
2302
echo "${ECHO_T}no" >&6
2308
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2309
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2311
if test "$LN_S" = "ln -s"; then
2312
echo "$as_me:$LINENO: result: yes" >&5
2313
echo "${ECHO_T}yes" >&6
2315
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2316
echo "${ECHO_T}no, using $LN_S" >&6
2319
# Extract the first word of "strip", so it can be a program name with args.
2320
set dummy strip; ac_word=$2
2321
echo "$as_me:$LINENO: checking for $ac_word" >&5
2322
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323
if test "${ac_cv_prog_STRIP+set}" = set; then
2324
echo $ECHO_N "(cached) $ECHO_C" >&6
2326
if test -n "$STRIP"; then
2327
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333
test -z "$as_dir" && as_dir=.
2334
for ac_exec_ext in '' $ac_executable_extensions; do
2335
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336
ac_cv_prog_STRIP="strip"
2337
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2346
STRIP=$ac_cv_prog_STRIP
2347
if test -n "$STRIP"; then
2348
echo "$as_me:$LINENO: result: $STRIP" >&5
2349
echo "${ECHO_T}$STRIP" >&6
2351
echo "$as_me:$LINENO: result: no" >&5
2352
echo "${ECHO_T}no" >&6
2358
echo "$as_me:$LINENO: checking directory to use for temporary files" >&5
2359
echo $ECHO_N "checking directory to use for temporary files... $ECHO_C" >&6
2360
if test -n "$enable_tmpdir"; then
2361
tmpdir="$enable_tmpdir"
2362
elif test -n "$TMPDIR"; then
2364
elif test -n "$TMPDIR"; then
2366
elif test -n "$TMP"; then
2368
elif test -n "$TEMP"; then
2370
elif test -d "c:/"; then
2375
if test -d $tmpdir ; then
2376
echo "$as_me:$LINENO: result: $tmpdir" >&5
2377
echo "${ECHO_T}$tmpdir" >&6
2378
cat >>confdefs.h <<_ACEOF
2379
#define TMPDIR "$tmpdir"
2383
{ { echo "$as_me:$LINENO: error: $tmpdir does not exist" >&5
2384
echo "$as_me: error: $tmpdir does not exist" >&2;}
2385
{ (exit 1); exit 1; }; }
2388
echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
2389
echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
2390
if test "${ac_cv_sys_interpreter+set}" = set; then
2391
echo $ECHO_N "(cached) $ECHO_C" >&6
2397
(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
2398
if test $? -ne 69; then
2399
ac_cv_sys_interpreter=yes
2401
ac_cv_sys_interpreter=no
2405
echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
2406
echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
2407
interpval=$ac_cv_sys_interpreter
2409
if test yes = "$interpval"; then
2410
cat >>confdefs.h <<\_ACEOF
2411
#define SYS_INTERPRETER 1
2416
echo "$as_me:$LINENO: checking \"for case-insensitive filenames\"" >&5
2417
echo $ECHO_N "checking \"for case-insensitive filenames\"... $ECHO_C" >&6
2419
if test -f CONFTEST.CIF; then
2420
echo "$as_me:$LINENO: result: yes" >&5
2421
echo "${ECHO_T}yes" >&6
2422
cat >>confdefs.h <<\_ACEOF
2423
#define CASE_INSENSITIVE_FILENAMES 1
2427
echo "$as_me:$LINENO: result: no" >&5
2428
echo "${ECHO_T}no" >&6
2432
echo "$as_me:$LINENO: checking selected sort method" >&5
2433
echo $ECHO_N "checking selected sort method... $ECHO_C" >&6
2434
if test no = "$enable_external_sort"; then
2435
echo "$as_me:$LINENO: result: simple internal algorithm" >&5
2436
echo "${ECHO_T}simple internal algorithm" >&6
2438
echo "$as_me:$LINENO: result: external sort utility" >&5
2439
echo "${ECHO_T}external sort utility" >&6
2440
enable_external_sort=no
2441
# Extract the first word of "sort", so it can be a program name with args.
2442
set dummy sort; ac_word=$2
2443
echo "$as_me:$LINENO: checking for $ac_word" >&5
2444
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445
if test "${ac_cv_prog_sort_found+set}" = set; then
2446
echo $ECHO_N "(cached) $ECHO_C" >&6
2448
if test -n "$sort_found"; then
2449
ac_cv_prog_sort_found="$sort_found" # Let the user override the test.
2451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455
test -z "$as_dir" && as_dir=.
2456
for ac_exec_ext in '' $ac_executable_extensions; do
2457
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458
ac_cv_prog_sort_found="yes"
2459
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465
test -z "$ac_cv_prog_sort_found" && ac_cv_prog_sort_found="no"
2468
sort_found=$ac_cv_prog_sort_found
2469
if test -n "$sort_found"; then
2470
echo "$as_me:$LINENO: result: $sort_found" >&5
2471
echo "${ECHO_T}$sort_found" >&6
2473
echo "$as_me:$LINENO: result: no" >&5
2474
echo "${ECHO_T}no" >&6
2477
if test "$sort_found" = yes ; then
2478
echo "$as_me:$LINENO: checking if sort accepts our command line" >&5
2479
echo $ECHO_N "checking if sort accepts our command line... $ECHO_C" >&6
2480
touch ${tmpdir}/sort.test
2481
sort -u -f -o ${tmpdir}/sort.test ${tmpdir}/sort.test 1>/dev/null 2>&1
2482
if test $? -ne 0 ; then
2483
echo "$as_me:$LINENO: result: no" >&5
2484
echo "${ECHO_T}no" >&6
2486
echo "$as_me:$LINENO: result: yes" >&5
2487
echo "${ECHO_T}yes" >&6
2488
cat >>confdefs.h <<\_ACEOF
2489
#define EXTERNAL_SORT 1
2492
enable_external_sort=yes
2494
rm -f ${tmpdir}/sort.test
2497
if test "$enable_external_sort" != yes ; then
2498
echo "$as_me:$LINENO: result: using internal sort algorithm as fallback" >&5
2499
echo "${ECHO_T}using internal sort algorithm as fallback" >&6
2506
ac_cpp='$CPP $CPPFLAGS'
2507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2511
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2512
# On Suns, sometimes $CPP names a directory.
2513
if test -n "$CPP" && test -d "$CPP"; then
2516
if test -z "$CPP"; then
2517
if test "${ac_cv_prog_CPP+set}" = set; then
2518
echo $ECHO_N "(cached) $ECHO_C" >&6
2520
# Double quotes because CPP needs to be expanded
2521
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2524
for ac_c_preproc_warn_flag in '' yes
2526
# Use a header file that comes with gcc, so configuring glibc
2527
# with a fresh cross-compiler works.
2528
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2529
# <limits.h> exists even on freestanding compilers.
2530
# On the NeXT, cc -E runs the code through the compiler's parser,
2531
# not just through cpp. "Syntax error" is here to catch this case.
2532
cat >conftest.$ac_ext <<_ACEOF
2533
#line $LINENO "configure"
2536
cat confdefs.h >>conftest.$ac_ext
2537
cat >>conftest.$ac_ext <<_ACEOF
2538
/* end confdefs.h. */
2540
# include <limits.h>
2542
# include <assert.h>
2546
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2549
grep -v '^ *+' conftest.er1 >conftest.err
2551
cat conftest.err >&5
2552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553
(exit $ac_status); } >/dev/null; then
2554
if test -s conftest.err; then
2555
ac_cpp_err=$ac_c_preproc_warn_flag
2562
if test -z "$ac_cpp_err"; then
2565
echo "$as_me: failed program was:" >&5
2566
sed 's/^/| /' conftest.$ac_ext >&5
2568
# Broken: fails on valid input.
2571
rm -f conftest.err conftest.$ac_ext
2573
# OK, works on sane cases. Now check whether non-existent headers
2574
# can be detected and how.
2575
cat >conftest.$ac_ext <<_ACEOF
2576
#line $LINENO "configure"
2579
cat confdefs.h >>conftest.$ac_ext
2580
cat >>conftest.$ac_ext <<_ACEOF
2581
/* end confdefs.h. */
2582
#include <ac_nonexistent.h>
2584
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2585
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2587
grep -v '^ *+' conftest.er1 >conftest.err
2589
cat conftest.err >&5
2590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591
(exit $ac_status); } >/dev/null; then
2592
if test -s conftest.err; then
2593
ac_cpp_err=$ac_c_preproc_warn_flag
2600
if test -z "$ac_cpp_err"; then
2601
# Broken: success on invalid input.
2604
echo "$as_me: failed program was:" >&5
2605
sed 's/^/| /' conftest.$ac_ext >&5
2607
# Passes both tests.
2611
rm -f conftest.err conftest.$ac_ext
2614
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2615
rm -f conftest.err conftest.$ac_ext
2616
if $ac_preproc_ok; then
2628
echo "$as_me:$LINENO: result: $CPP" >&5
2629
echo "${ECHO_T}$CPP" >&6
2631
for ac_c_preproc_warn_flag in '' yes
2633
# Use a header file that comes with gcc, so configuring glibc
2634
# with a fresh cross-compiler works.
2635
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2636
# <limits.h> exists even on freestanding compilers.
2637
# On the NeXT, cc -E runs the code through the compiler's parser,
2638
# not just through cpp. "Syntax error" is here to catch this case.
2639
cat >conftest.$ac_ext <<_ACEOF
2640
#line $LINENO "configure"
2643
cat confdefs.h >>conftest.$ac_ext
2644
cat >>conftest.$ac_ext <<_ACEOF
2645
/* end confdefs.h. */
2647
# include <limits.h>
2649
# include <assert.h>
2653
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2654
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656
grep -v '^ *+' conftest.er1 >conftest.err
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
2669
if test -z "$ac_cpp_err"; then
2672
echo "$as_me: failed program was:" >&5
2673
sed 's/^/| /' conftest.$ac_ext >&5
2675
# Broken: fails on valid input.
2678
rm -f conftest.err conftest.$ac_ext
2680
# OK, works on sane cases. Now check whether non-existent headers
2681
# can be detected and how.
2682
cat >conftest.$ac_ext <<_ACEOF
2683
#line $LINENO "configure"
2686
cat confdefs.h >>conftest.$ac_ext
2687
cat >>conftest.$ac_ext <<_ACEOF
2688
/* end confdefs.h. */
2689
#include <ac_nonexistent.h>
2691
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694
grep -v '^ *+' conftest.er1 >conftest.err
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
2707
if test -z "$ac_cpp_err"; then
2708
# Broken: success on invalid input.
2711
echo "$as_me: failed program was:" >&5
2712
sed 's/^/| /' conftest.$ac_ext >&5
2714
# Passes both tests.
2718
rm -f conftest.err conftest.$ac_ext
2721
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2722
rm -f conftest.err conftest.$ac_ext
2723
if $ac_preproc_ok; then
2726
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2727
See \`config.log' for more details." >&5
2728
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2729
See \`config.log' for more details." >&2;}
2730
{ (exit 1); exit 1; }; }
2734
ac_cpp='$CPP $CPPFLAGS'
2735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
echo "$as_me:$LINENO: checking for egrep" >&5
2741
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2742
if test "${ac_cv_prog_egrep+set}" = set; then
2743
echo $ECHO_N "(cached) $ECHO_C" >&6
2745
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2746
then ac_cv_prog_egrep='grep -E'
2747
else ac_cv_prog_egrep='egrep'
2750
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2751
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2752
EGREP=$ac_cv_prog_egrep
2755
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2756
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2757
if test "${ac_cv_header_stdc+set}" = set; then
2758
echo $ECHO_N "(cached) $ECHO_C" >&6
2760
cat >conftest.$ac_ext <<_ACEOF
2761
#line $LINENO "configure"
2764
cat confdefs.h >>conftest.$ac_ext
2765
cat >>conftest.$ac_ext <<_ACEOF
2766
/* end confdefs.h. */
2780
rm -f conftest.$ac_objext
2781
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782
(eval $ac_compile) 2>&5
2784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
(exit $ac_status); } &&
2786
{ ac_try='test -s conftest.$ac_objext'
2787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); }; }; then
2792
ac_cv_header_stdc=yes
2794
echo "$as_me: failed program was:" >&5
2795
sed 's/^/| /' conftest.$ac_ext >&5
2797
ac_cv_header_stdc=no
2799
rm -f conftest.$ac_objext conftest.$ac_ext
2801
if test $ac_cv_header_stdc = yes; then
2802
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2803
cat >conftest.$ac_ext <<_ACEOF
2804
#line $LINENO "configure"
2807
cat confdefs.h >>conftest.$ac_ext
2808
cat >>conftest.$ac_ext <<_ACEOF
2809
/* end confdefs.h. */
2813
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814
$EGREP "memchr" >/dev/null 2>&1; then
2817
ac_cv_header_stdc=no
2823
if test $ac_cv_header_stdc = yes; then
2824
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2825
cat >conftest.$ac_ext <<_ACEOF
2826
#line $LINENO "configure"
2829
cat confdefs.h >>conftest.$ac_ext
2830
cat >>conftest.$ac_ext <<_ACEOF
2831
/* end confdefs.h. */
2835
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2836
$EGREP "free" >/dev/null 2>&1; then
2839
ac_cv_header_stdc=no
2845
if test $ac_cv_header_stdc = yes; then
2846
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2847
if test "$cross_compiling" = yes; then
2850
cat >conftest.$ac_ext <<_ACEOF
2851
#line $LINENO "configure"
2854
cat confdefs.h >>conftest.$ac_ext
2855
cat >>conftest.$ac_ext <<_ACEOF
2856
/* end confdefs.h. */
2858
#if ((' ' & 0x0FF) == 0x020)
2859
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2860
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2862
# define ISLOWER(c) \
2863
(('a' <= (c) && (c) <= 'i') \
2864
|| ('j' <= (c) && (c) <= 'r') \
2865
|| ('s' <= (c) && (c) <= 'z'))
2866
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2869
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2874
for (i = 0; i < 256; i++)
2875
if (XOR (islower (i), ISLOWER (i))
2876
|| toupper (i) != TOUPPER (i))
2881
rm -f conftest$ac_exeext
2882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2883
(eval $ac_link) 2>&5
2885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891
(exit $ac_status); }; }; then
2894
echo "$as_me: program exited with status $ac_status" >&5
2895
echo "$as_me: failed program was:" >&5
2896
sed 's/^/| /' conftest.$ac_ext >&5
2899
ac_cv_header_stdc=no
2901
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2905
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2906
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2907
if test $ac_cv_header_stdc = yes; then
2909
cat >>confdefs.h <<\_ACEOF
2910
#define STDC_HEADERS 1
2915
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2925
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2926
inttypes.h stdint.h unistd.h
2928
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2929
echo "$as_me:$LINENO: checking for $ac_header" >&5
2930
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2931
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2932
echo $ECHO_N "(cached) $ECHO_C" >&6
2934
cat >conftest.$ac_ext <<_ACEOF
2935
#line $LINENO "configure"
2938
cat confdefs.h >>conftest.$ac_ext
2939
cat >>conftest.$ac_ext <<_ACEOF
2940
/* end confdefs.h. */
2941
$ac_includes_default
2943
#include <$ac_header>
2945
rm -f conftest.$ac_objext
2946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947
(eval $ac_compile) 2>&5
2949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
(exit $ac_status); } &&
2951
{ ac_try='test -s conftest.$ac_objext'
2952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956
(exit $ac_status); }; }; then
2957
eval "$as_ac_Header=yes"
2959
echo "$as_me: failed program was:" >&5
2960
sed 's/^/| /' conftest.$ac_ext >&5
2962
eval "$as_ac_Header=no"
2964
rm -f conftest.$ac_objext conftest.$ac_ext
2966
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2967
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2968
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2969
cat >>confdefs.h <<_ACEOF
2970
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2984
for ac_header in dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h
2986
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2987
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2988
echo "$as_me:$LINENO: checking for $ac_header" >&5
2989
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2990
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2991
echo $ECHO_N "(cached) $ECHO_C" >&6
2993
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2994
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2996
# Is the header compilable?
2997
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2998
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2999
cat >conftest.$ac_ext <<_ACEOF
3000
#line $LINENO "configure"
3003
cat confdefs.h >>conftest.$ac_ext
3004
cat >>conftest.$ac_ext <<_ACEOF
3005
/* end confdefs.h. */
3006
$ac_includes_default
3007
#include <$ac_header>
3009
rm -f conftest.$ac_objext
3010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3011
(eval $ac_compile) 2>&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); } &&
3015
{ ac_try='test -s conftest.$ac_objext'
3016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); }; }; then
3021
ac_header_compiler=yes
3023
echo "$as_me: failed program was:" >&5
3024
sed 's/^/| /' conftest.$ac_ext >&5
3026
ac_header_compiler=no
3028
rm -f conftest.$ac_objext conftest.$ac_ext
3029
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3030
echo "${ECHO_T}$ac_header_compiler" >&6
3032
# Is the header present?
3033
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3034
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3035
cat >conftest.$ac_ext <<_ACEOF
3036
#line $LINENO "configure"
3039
cat confdefs.h >>conftest.$ac_ext
3040
cat >>conftest.$ac_ext <<_ACEOF
3041
/* end confdefs.h. */
3042
#include <$ac_header>
3044
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047
grep -v '^ *+' conftest.er1 >conftest.err
3049
cat conftest.err >&5
3050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051
(exit $ac_status); } >/dev/null; then
3052
if test -s conftest.err; then
3053
ac_cpp_err=$ac_c_preproc_warn_flag
3060
if test -z "$ac_cpp_err"; then
3061
ac_header_preproc=yes
3063
echo "$as_me: failed program was:" >&5
3064
sed 's/^/| /' conftest.$ac_ext >&5
3066
ac_header_preproc=no
3068
rm -f conftest.err conftest.$ac_ext
3069
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3070
echo "${ECHO_T}$ac_header_preproc" >&6
3072
# So? What about this header?
3073
case $ac_header_compiler:$ac_header_preproc in
3075
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3076
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3077
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3078
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3081
## ------------------------------------ ##
3082
## Report this to bug-autoconf@gnu.org. ##
3083
## ------------------------------------ ##
3086
sed "s/^/$as_me: WARNING: /" >&2
3089
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3090
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3091
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3092
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3093
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3094
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3097
## ------------------------------------ ##
3098
## Report this to bug-autoconf@gnu.org. ##
3099
## ------------------------------------ ##
3102
sed "s/^/$as_me: WARNING: /" >&2
3105
echo "$as_me:$LINENO: checking for $ac_header" >&5
3106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3107
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3108
echo $ECHO_N "(cached) $ECHO_C" >&6
3110
eval "$as_ac_Header=$ac_header_preproc"
3112
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3116
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3117
cat >>confdefs.h <<_ACEOF
3118
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3128
for ac_header in time.h types.h unistd.h
3130
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3131
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3132
echo "$as_me:$LINENO: checking for $ac_header" >&5
3133
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3134
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135
echo $ECHO_N "(cached) $ECHO_C" >&6
3137
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3138
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3140
# Is the header compilable?
3141
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3142
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3143
cat >conftest.$ac_ext <<_ACEOF
3144
#line $LINENO "configure"
3147
cat confdefs.h >>conftest.$ac_ext
3148
cat >>conftest.$ac_ext <<_ACEOF
3149
/* end confdefs.h. */
3150
$ac_includes_default
3151
#include <$ac_header>
3153
rm -f conftest.$ac_objext
3154
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155
(eval $ac_compile) 2>&5
3157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158
(exit $ac_status); } &&
3159
{ ac_try='test -s conftest.$ac_objext'
3160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164
(exit $ac_status); }; }; then
3165
ac_header_compiler=yes
3167
echo "$as_me: failed program was:" >&5
3168
sed 's/^/| /' conftest.$ac_ext >&5
3170
ac_header_compiler=no
3172
rm -f conftest.$ac_objext conftest.$ac_ext
3173
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3174
echo "${ECHO_T}$ac_header_compiler" >&6
3176
# Is the header present?
3177
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3178
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3179
cat >conftest.$ac_ext <<_ACEOF
3180
#line $LINENO "configure"
3183
cat confdefs.h >>conftest.$ac_ext
3184
cat >>conftest.$ac_ext <<_ACEOF
3185
/* end confdefs.h. */
3186
#include <$ac_header>
3188
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191
grep -v '^ *+' conftest.er1 >conftest.err
3193
cat conftest.err >&5
3194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195
(exit $ac_status); } >/dev/null; then
3196
if test -s conftest.err; then
3197
ac_cpp_err=$ac_c_preproc_warn_flag
3204
if test -z "$ac_cpp_err"; then
3205
ac_header_preproc=yes
3207
echo "$as_me: failed program was:" >&5
3208
sed 's/^/| /' conftest.$ac_ext >&5
3210
ac_header_preproc=no
3212
rm -f conftest.err conftest.$ac_ext
3213
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3214
echo "${ECHO_T}$ac_header_preproc" >&6
3216
# So? What about this header?
3217
case $ac_header_compiler:$ac_header_preproc in
3219
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3220
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3221
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3222
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3225
## ------------------------------------ ##
3226
## Report this to bug-autoconf@gnu.org. ##
3227
## ------------------------------------ ##
3230
sed "s/^/$as_me: WARNING: /" >&2
3233
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3234
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3235
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3236
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3237
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3238
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3241
## ------------------------------------ ##
3242
## Report this to bug-autoconf@gnu.org. ##
3243
## ------------------------------------ ##
3246
sed "s/^/$as_me: WARNING: /" >&2
3249
echo "$as_me:$LINENO: checking for $ac_header" >&5
3250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252
echo $ECHO_N "(cached) $ECHO_C" >&6
3254
eval "$as_ac_Header=$ac_header_preproc"
3256
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3260
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3261
cat >>confdefs.h <<_ACEOF
3262
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3273
for ac_header in sys/dir.h sys/stat.h sys/times.h sys/types.h
3275
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3276
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3277
echo "$as_me:$LINENO: checking for $ac_header" >&5
3278
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3279
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3280
echo $ECHO_N "(cached) $ECHO_C" >&6
3282
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3283
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3285
# Is the header compilable?
3286
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3287
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3288
cat >conftest.$ac_ext <<_ACEOF
3289
#line $LINENO "configure"
3292
cat confdefs.h >>conftest.$ac_ext
3293
cat >>conftest.$ac_ext <<_ACEOF
3294
/* end confdefs.h. */
3295
$ac_includes_default
3296
#include <$ac_header>
3298
rm -f conftest.$ac_objext
3299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300
(eval $ac_compile) 2>&5
3302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303
(exit $ac_status); } &&
3304
{ ac_try='test -s conftest.$ac_objext'
3305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309
(exit $ac_status); }; }; then
3310
ac_header_compiler=yes
3312
echo "$as_me: failed program was:" >&5
3313
sed 's/^/| /' conftest.$ac_ext >&5
3315
ac_header_compiler=no
3317
rm -f conftest.$ac_objext conftest.$ac_ext
3318
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3319
echo "${ECHO_T}$ac_header_compiler" >&6
3321
# Is the header present?
3322
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3323
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3324
cat >conftest.$ac_ext <<_ACEOF
3325
#line $LINENO "configure"
3328
cat confdefs.h >>conftest.$ac_ext
3329
cat >>conftest.$ac_ext <<_ACEOF
3330
/* end confdefs.h. */
3331
#include <$ac_header>
3333
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336
grep -v '^ *+' conftest.er1 >conftest.err
3338
cat conftest.err >&5
3339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340
(exit $ac_status); } >/dev/null; then
3341
if test -s conftest.err; then
3342
ac_cpp_err=$ac_c_preproc_warn_flag
3349
if test -z "$ac_cpp_err"; then
3350
ac_header_preproc=yes
3352
echo "$as_me: failed program was:" >&5
3353
sed 's/^/| /' conftest.$ac_ext >&5
3355
ac_header_preproc=no
3357
rm -f conftest.err conftest.$ac_ext
3358
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3359
echo "${ECHO_T}$ac_header_preproc" >&6
3361
# So? What about this header?
3362
case $ac_header_compiler:$ac_header_preproc in
3364
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3365
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3366
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3367
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3370
## ------------------------------------ ##
3371
## Report this to bug-autoconf@gnu.org. ##
3372
## ------------------------------------ ##
3375
sed "s/^/$as_me: WARNING: /" >&2
3378
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3379
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3380
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3381
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3382
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3383
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3386
## ------------------------------------ ##
3387
## Report this to bug-autoconf@gnu.org. ##
3388
## ------------------------------------ ##
3391
sed "s/^/$as_me: WARNING: /" >&2
3394
echo "$as_me:$LINENO: checking for $ac_header" >&5
3395
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3396
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3397
echo $ECHO_N "(cached) $ECHO_C" >&6
3399
eval "$as_ac_Header=$ac_header_preproc"
3401
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3402
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3405
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3406
cat >>confdefs.h <<_ACEOF
3407
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3418
echo "$as_me:$LINENO: checking \"if L_tmpnam is defined in stdio.h\"" >&5
3419
echo $ECHO_N "checking \"if L_tmpnam is defined in stdio.h\"... $ECHO_C" >&6
3420
cat >conftest.$ac_ext <<_ACEOF
3421
#line $LINENO "configure"
3424
cat confdefs.h >>conftest.$ac_ext
3425
cat >>conftest.$ac_ext <<_ACEOF
3426
/* end confdefs.h. */
3433
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434
$EGREP "yes" >/dev/null 2>&1; then
3436
echo "$as_me:$LINENO: result: yes" >&5
3437
echo "${ECHO_T}yes" >&6
3442
echo "$as_me:$LINENO: result: no" >&5
3443
echo "${ECHO_T}no" >&6
3444
cat >>confdefs.h <<\_ACEOF
3454
echo "$as_me:$LINENO: checking \"if INT_MAX is defined in limits.h\"" >&5
3455
echo $ECHO_N "checking \"if INT_MAX is defined in limits.h\"... $ECHO_C" >&6
3456
cat >conftest.$ac_ext <<_ACEOF
3457
#line $LINENO "configure"
3460
cat confdefs.h >>conftest.$ac_ext
3461
cat >>conftest.$ac_ext <<_ACEOF
3462
/* end confdefs.h. */
3469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470
$EGREP "yes" >/dev/null 2>&1; then
3472
echo "$as_me:$LINENO: result: yes" >&5
3473
echo "${ECHO_T}yes" >&6
3478
echo "$as_me:$LINENO: result: no" >&5
3479
echo "${ECHO_T}no" >&6
3481
echo "$as_me:$LINENO: checking \"if MAXINT is defined in limits.h\"" >&5
3482
echo $ECHO_N "checking \"if MAXINT is defined in limits.h\"... $ECHO_C" >&6
3483
cat >conftest.$ac_ext <<_ACEOF
3484
#line $LINENO "configure"
3487
cat confdefs.h >>conftest.$ac_ext
3488
cat >>conftest.$ac_ext <<_ACEOF
3489
/* end confdefs.h. */
3496
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497
$EGREP "yes" >/dev/null 2>&1; then
3499
echo "$as_me:$LINENO: result: yes" >&5
3500
echo "${ECHO_T}yes" >&6
3501
cat >>confdefs.h <<\_ACEOF
3502
#define INT_MAX MAXINT
3508
echo "$as_me:$LINENO: result: no" >&5
3509
echo "${ECHO_T}no" >&6
3510
cat >>confdefs.h <<\_ACEOF
3511
#define INT_MAX 32767
3525
echo "$as_me:$LINENO: checking for size_t" >&5
3526
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3527
if test "${ac_cv_type_size_t+set}" = set; then
3528
echo $ECHO_N "(cached) $ECHO_C" >&6
3530
cat >conftest.$ac_ext <<_ACEOF
3531
#line $LINENO "configure"
3534
cat confdefs.h >>conftest.$ac_ext
3535
cat >>conftest.$ac_ext <<_ACEOF
3536
/* end confdefs.h. */
3537
$ac_includes_default
3543
if (sizeof (size_t))
3549
rm -f conftest.$ac_objext
3550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551
(eval $ac_compile) 2>&5
3553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554
(exit $ac_status); } &&
3555
{ ac_try='test -s conftest.$ac_objext'
3556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560
(exit $ac_status); }; }; then
3561
ac_cv_type_size_t=yes
3563
echo "$as_me: failed program was:" >&5
3564
sed 's/^/| /' conftest.$ac_ext >&5
3566
ac_cv_type_size_t=no
3568
rm -f conftest.$ac_objext conftest.$ac_ext
3570
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3571
echo "${ECHO_T}$ac_cv_type_size_t" >&6
3572
if test $ac_cv_type_size_t = yes; then
3576
cat >>confdefs.h <<_ACEOF
3577
#define size_t unsigned
3582
echo "$as_me:$LINENO: checking for off_t" >&5
3583
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3584
if test "${ac_cv_type_off_t+set}" = set; then
3585
echo $ECHO_N "(cached) $ECHO_C" >&6
3587
cat >conftest.$ac_ext <<_ACEOF
3588
#line $LINENO "configure"
3591
cat confdefs.h >>conftest.$ac_ext
3592
cat >>conftest.$ac_ext <<_ACEOF
3593
/* end confdefs.h. */
3594
$ac_includes_default
3606
rm -f conftest.$ac_objext
3607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608
(eval $ac_compile) 2>&5
3610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611
(exit $ac_status); } &&
3612
{ ac_try='test -s conftest.$ac_objext'
3613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617
(exit $ac_status); }; }; then
3618
ac_cv_type_off_t=yes
3620
echo "$as_me: failed program was:" >&5
3621
sed 's/^/| /' conftest.$ac_ext >&5
3625
rm -f conftest.$ac_objext conftest.$ac_ext
3627
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3628
echo "${ECHO_T}$ac_cv_type_off_t" >&6
3629
if test $ac_cv_type_off_t = yes; then
3633
cat >>confdefs.h <<_ACEOF
3640
echo "$as_me:$LINENO: checking \"for fpos_t\"" >&5
3641
echo $ECHO_N "checking \"for fpos_t\"... $ECHO_C" >&6
3642
cat >conftest.$ac_ext <<_ACEOF
3643
#line $LINENO "configure"
3646
cat confdefs.h >>conftest.$ac_ext
3647
cat >>conftest.$ac_ext <<_ACEOF
3648
/* end confdefs.h. */
3652
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653
$EGREP "fpos_t" >/dev/null 2>&1; then
3654
echo "$as_me:$LINENO: result: yes" >&5
3655
echo "${ECHO_T}yes" >&6
3658
echo "$as_me:$LINENO: result: no" >&5
3659
echo "${ECHO_T}no" >&6
3660
cat >>confdefs.h <<\_ACEOF
3669
echo "$as_me:$LINENO: checking \"for clock_t\"" >&5
3670
echo $ECHO_N "checking \"for clock_t\"... $ECHO_C" >&6
3671
cat >conftest.$ac_ext <<_ACEOF
3672
#line $LINENO "configure"
3675
cat confdefs.h >>conftest.$ac_ext
3676
cat >>conftest.$ac_ext <<_ACEOF
3677
/* end confdefs.h. */
3681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682
$EGREP "clock_t" >/dev/null 2>&1; then
3683
echo "$as_me:$LINENO: result: yes" >&5
3684
echo "${ECHO_T}yes" >&6
3687
echo "$as_me:$LINENO: result: no" >&5
3688
echo "${ECHO_T}no" >&6
3689
cat >>confdefs.h <<\_ACEOF
3690
#define clock_t long
3700
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3701
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3702
if test "${ac_cv_c_const+set}" = set; then
3703
echo $ECHO_N "(cached) $ECHO_C" >&6
3705
cat >conftest.$ac_ext <<_ACEOF
3706
#line $LINENO "configure"
3709
cat confdefs.h >>conftest.$ac_ext
3710
cat >>conftest.$ac_ext <<_ACEOF
3711
/* end confdefs.h. */
3716
/* FIXME: Include the comments suggested by Paul. */
3718
/* Ultrix mips cc rejects this. */
3719
typedef int charset[2];
3721
/* SunOS 4.1.1 cc rejects this. */
3722
char const *const *ccp;
3724
/* NEC SVR4.0.2 mips cc rejects this. */
3725
struct point {int x, y;};
3726
static struct point const zero = {0,0};
3727
/* AIX XL C 1.02.0.0 rejects this.
3728
It does not let you subtract one const X* pointer from another in
3729
an arm of an if-expression whose if-part is not a constant
3731
const char *g = "string";
3732
ccp = &g + (g ? g-g : 0);
3733
/* HPUX 7.0 cc rejects these. */
3736
ccp = (char const *const *) p;
3737
{ /* SCO 3.2v4 cc rejects this. */
3739
char const *s = 0 ? (char *) 0 : (char const *) 0;
3743
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3745
const int *foo = &x[0];
3748
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3749
typedef const int *iptr;
3753
{ /* AIX XL C 1.02.0.0 rejects this saying
3754
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3755
struct s { int j; const int *ap[3]; };
3756
struct s *b; b->j = 5;
3758
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3767
rm -f conftest.$ac_objext
3768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769
(eval $ac_compile) 2>&5
3771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772
(exit $ac_status); } &&
3773
{ ac_try='test -s conftest.$ac_objext'
3774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
(exit $ac_status); }; }; then
3781
echo "$as_me: failed program was:" >&5
3782
sed 's/^/| /' conftest.$ac_ext >&5
3786
rm -f conftest.$ac_objext conftest.$ac_ext
3788
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3789
echo "${ECHO_T}$ac_cv_c_const" >&6
3790
if test $ac_cv_c_const = no; then
3792
cat >>confdefs.h <<\_ACEOF
3801
echo "$as_me:$LINENO: checking if struct stat contains st_ino" >&5
3802
echo $ECHO_N "checking if struct stat contains st_ino... $ECHO_C" >&6
3803
cat >conftest.$ac_ext <<_ACEOF
3804
#line $LINENO "configure"
3807
cat confdefs.h >>conftest.$ac_ext
3808
cat >>conftest.$ac_ext <<_ACEOF
3809
/* end confdefs.h. */
3810
#include <sys/stat.h>
3824
rm -f conftest.$ac_objext
3825
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826
(eval $ac_compile) 2>&5
3828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829
(exit $ac_status); } &&
3830
{ ac_try='test -s conftest.$ac_objext'
3831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835
(exit $ac_status); }; }; then
3838
echo "$as_me: failed program was:" >&5
3839
sed 's/^/| /' conftest.$ac_ext >&5
3843
rm -f conftest.$ac_objext conftest.$ac_ext
3844
echo "$as_me:$LINENO: result: $have_st_ino" >&5
3845
echo "${ECHO_T}$have_st_ino" >&6
3846
if test yes = "$have_st_ino"; then
3847
cat >>confdefs.h <<\_ACEOF
3848
#define HAVE_STAT_ST_INO 1
3856
for ac_func in fnmatch
3858
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3859
echo "$as_me:$LINENO: checking for $ac_func" >&5
3860
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3861
if eval "test \"\${$as_ac_var+set}\" = set"; then
3862
echo $ECHO_N "(cached) $ECHO_C" >&6
3864
cat >conftest.$ac_ext <<_ACEOF
3865
#line $LINENO "configure"
3868
cat confdefs.h >>conftest.$ac_ext
3869
cat >>conftest.$ac_ext <<_ACEOF
3870
/* end confdefs.h. */
3871
/* System header to define __stub macros and hopefully few prototypes,
3872
which can conflict with char $ac_func (); below.
3873
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874
<limits.h> exists even on freestanding compilers. */
3876
# include <limits.h>
3878
# include <assert.h>
3880
/* Override any gcc2 internal prototype to avoid an error. */
3885
/* We use char because int might match the return type of a gcc2
3886
builtin and then its argument prototype would still apply. */
3888
/* The GNU C library defines this for functions which it implements
3889
to always fail with ENOSYS. Some functions are actually named
3890
something starting with __ and the normal name is an alias. */
3891
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3894
char (*f) () = $ac_func;
3903
return f != $ac_func;
3908
rm -f conftest.$ac_objext conftest$ac_exeext
3909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910
(eval $ac_link) 2>&5
3912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913
(exit $ac_status); } &&
3914
{ ac_try='test -s conftest$ac_exeext'
3915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
(exit $ac_status); }; }; then
3920
eval "$as_ac_var=yes"
3922
echo "$as_me: failed program was:" >&5
3923
sed 's/^/| /' conftest.$ac_ext >&5
3925
eval "$as_ac_var=no"
3927
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3930
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3931
if test `eval echo '${'$as_ac_var'}'` = yes; then
3932
cat >>confdefs.h <<_ACEOF
3933
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3940
for ac_func in strstr
3942
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3943
echo "$as_me:$LINENO: checking for $ac_func" >&5
3944
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3945
if eval "test \"\${$as_ac_var+set}\" = set"; then
3946
echo $ECHO_N "(cached) $ECHO_C" >&6
3948
cat >conftest.$ac_ext <<_ACEOF
3949
#line $LINENO "configure"
3952
cat confdefs.h >>conftest.$ac_ext
3953
cat >>conftest.$ac_ext <<_ACEOF
3954
/* end confdefs.h. */
3955
/* System header to define __stub macros and hopefully few prototypes,
3956
which can conflict with char $ac_func (); below.
3957
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958
<limits.h> exists even on freestanding compilers. */
3960
# include <limits.h>
3962
# include <assert.h>
3964
/* Override any gcc2 internal prototype to avoid an error. */
3969
/* We use char because int might match the return type of a gcc2
3970
builtin and then its argument prototype would still apply. */
3972
/* The GNU C library defines this for functions which it implements
3973
to always fail with ENOSYS. Some functions are actually named
3974
something starting with __ and the normal name is an alias. */
3975
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3978
char (*f) () = $ac_func;
3987
return f != $ac_func;
3992
rm -f conftest.$ac_objext conftest$ac_exeext
3993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3994
(eval $ac_link) 2>&5
3996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997
(exit $ac_status); } &&
3998
{ ac_try='test -s conftest$ac_exeext'
3999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003
(exit $ac_status); }; }; then
4004
eval "$as_ac_var=yes"
4006
echo "$as_me: failed program was:" >&5
4007
sed 's/^/| /' conftest.$ac_ext >&5
4009
eval "$as_ac_var=no"
4011
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4014
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4015
if test `eval echo '${'$as_ac_var'}'` = yes; then
4016
cat >>confdefs.h <<_ACEOF
4017
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4025
for ac_func in strcasecmp stricmp
4027
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4028
echo "$as_me:$LINENO: checking for $ac_func" >&5
4029
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4030
if eval "test \"\${$as_ac_var+set}\" = set"; then
4031
echo $ECHO_N "(cached) $ECHO_C" >&6
4033
cat >conftest.$ac_ext <<_ACEOF
4034
#line $LINENO "configure"
4037
cat confdefs.h >>conftest.$ac_ext
4038
cat >>conftest.$ac_ext <<_ACEOF
4039
/* end confdefs.h. */
4040
/* System header to define __stub macros and hopefully few prototypes,
4041
which can conflict with char $ac_func (); below.
4042
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043
<limits.h> exists even on freestanding compilers. */
4045
# include <limits.h>
4047
# include <assert.h>
4049
/* Override any gcc2 internal prototype to avoid an error. */
4054
/* We use char because int might match the return type of a gcc2
4055
builtin and then its argument prototype would still apply. */
4057
/* The GNU C library defines this for functions which it implements
4058
to always fail with ENOSYS. Some functions are actually named
4059
something starting with __ and the normal name is an alias. */
4060
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4063
char (*f) () = $ac_func;
4072
return f != $ac_func;
4077
rm -f conftest.$ac_objext conftest$ac_exeext
4078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079
(eval $ac_link) 2>&5
4081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
(exit $ac_status); } &&
4083
{ ac_try='test -s conftest$ac_exeext'
4084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
(exit $ac_status); }; }; then
4089
eval "$as_ac_var=yes"
4091
echo "$as_me: failed program was:" >&5
4092
sed 's/^/| /' conftest.$ac_ext >&5
4094
eval "$as_ac_var=no"
4096
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4098
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4099
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4100
if test `eval echo '${'$as_ac_var'}'` = yes; then
4101
cat >>confdefs.h <<_ACEOF
4102
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4110
for ac_func in strncasecmp strnicmp
4112
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113
echo "$as_me:$LINENO: checking for $ac_func" >&5
4114
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115
if eval "test \"\${$as_ac_var+set}\" = set"; then
4116
echo $ECHO_N "(cached) $ECHO_C" >&6
4118
cat >conftest.$ac_ext <<_ACEOF
4119
#line $LINENO "configure"
4122
cat confdefs.h >>conftest.$ac_ext
4123
cat >>conftest.$ac_ext <<_ACEOF
4124
/* end confdefs.h. */
4125
/* System header to define __stub macros and hopefully few prototypes,
4126
which can conflict with char $ac_func (); below.
4127
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128
<limits.h> exists even on freestanding compilers. */
4130
# include <limits.h>
4132
# include <assert.h>
4134
/* Override any gcc2 internal prototype to avoid an error. */
4139
/* We use char because int might match the return type of a gcc2
4140
builtin and then its argument prototype would still apply. */
4142
/* The GNU C library defines this for functions which it implements
4143
to always fail with ENOSYS. Some functions are actually named
4144
something starting with __ and the normal name is an alias. */
4145
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4148
char (*f) () = $ac_func;
4157
return f != $ac_func;
4162
rm -f conftest.$ac_objext conftest$ac_exeext
4163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164
(eval $ac_link) 2>&5
4166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167
(exit $ac_status); } &&
4168
{ ac_try='test -s conftest$ac_exeext'
4169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173
(exit $ac_status); }; }; then
4174
eval "$as_ac_var=yes"
4176
echo "$as_me: failed program was:" >&5
4177
sed 's/^/| /' conftest.$ac_ext >&5
4179
eval "$as_ac_var=no"
4181
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4183
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4184
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4185
if test `eval echo '${'$as_ac_var'}'` = yes; then
4186
cat >>confdefs.h <<_ACEOF
4187
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4194
for ac_func in fgetpos
4196
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4197
echo "$as_me:$LINENO: checking for $ac_func" >&5
4198
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4199
if eval "test \"\${$as_ac_var+set}\" = set"; then
4200
echo $ECHO_N "(cached) $ECHO_C" >&6
4202
cat >conftest.$ac_ext <<_ACEOF
4203
#line $LINENO "configure"
4206
cat confdefs.h >>conftest.$ac_ext
4207
cat >>conftest.$ac_ext <<_ACEOF
4208
/* end confdefs.h. */
4209
/* System header to define __stub macros and hopefully few prototypes,
4210
which can conflict with char $ac_func (); below.
4211
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212
<limits.h> exists even on freestanding compilers. */
4214
# include <limits.h>
4216
# include <assert.h>
4218
/* Override any gcc2 internal prototype to avoid an error. */
4223
/* We use char because int might match the return type of a gcc2
4224
builtin and then its argument prototype would still apply. */
4226
/* The GNU C library defines this for functions which it implements
4227
to always fail with ENOSYS. Some functions are actually named
4228
something starting with __ and the normal name is an alias. */
4229
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4232
char (*f) () = $ac_func;
4241
return f != $ac_func;
4246
rm -f conftest.$ac_objext conftest$ac_exeext
4247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248
(eval $ac_link) 2>&5
4250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
(exit $ac_status); } &&
4252
{ ac_try='test -s conftest$ac_exeext'
4253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
(exit $ac_status); }; }; then
4258
eval "$as_ac_var=yes"
4260
echo "$as_me: failed program was:" >&5
4261
sed 's/^/| /' conftest.$ac_ext >&5
4263
eval "$as_ac_var=no"
4265
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4267
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4268
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4269
if test `eval echo '${'$as_ac_var'}'` = yes; then
4270
cat >>confdefs.h <<_ACEOF
4271
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4278
if test "$have_fgetpos" != yes ; then
4280
echo "$as_me:$LINENO: checking \"if SEEK_SET is defined in stdio.h\"" >&5
4281
echo $ECHO_N "checking \"if SEEK_SET is defined in stdio.h\"... $ECHO_C" >&6
4282
cat >conftest.$ac_ext <<_ACEOF
4283
#line $LINENO "configure"
4286
cat confdefs.h >>conftest.$ac_ext
4287
cat >>conftest.$ac_ext <<_ACEOF
4288
/* end confdefs.h. */
4295
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4296
$EGREP "yes" >/dev/null 2>&1; then
4298
echo "$as_me:$LINENO: result: yes" >&5
4299
echo "${ECHO_T}yes" >&6
4304
echo "$as_me:$LINENO: result: no" >&5
4305
echo "${ECHO_T}no" >&6
4307
echo "$as_me:$LINENO: checking \"if SEEK_SET is defined in unistd.h\"" >&5
4308
echo $ECHO_N "checking \"if SEEK_SET is defined in unistd.h\"... $ECHO_C" >&6
4309
cat >conftest.$ac_ext <<_ACEOF
4310
#line $LINENO "configure"
4313
cat confdefs.h >>conftest.$ac_ext
4314
cat >>conftest.$ac_ext <<_ACEOF
4315
/* end confdefs.h. */
4322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323
$EGREP "yes" >/dev/null 2>&1; then
4325
echo "$as_me:$LINENO: result: yes" >&5
4326
echo "${ECHO_T}yes" >&6
4331
echo "$as_me:$LINENO: result: no" >&5
4332
echo "${ECHO_T}no" >&6
4333
cat >>confdefs.h <<\_ACEOF
4348
for ac_func in mkstemp
4350
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4351
echo "$as_me:$LINENO: checking for $ac_func" >&5
4352
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4353
if eval "test \"\${$as_ac_var+set}\" = set"; then
4354
echo $ECHO_N "(cached) $ECHO_C" >&6
4356
cat >conftest.$ac_ext <<_ACEOF
4357
#line $LINENO "configure"
4360
cat confdefs.h >>conftest.$ac_ext
4361
cat >>conftest.$ac_ext <<_ACEOF
4362
/* end confdefs.h. */
4363
/* System header to define __stub macros and hopefully few prototypes,
4364
which can conflict with char $ac_func (); below.
4365
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366
<limits.h> exists even on freestanding compilers. */
4368
# include <limits.h>
4370
# include <assert.h>
4372
/* Override any gcc2 internal prototype to avoid an error. */
4377
/* We use char because int might match the return type of a gcc2
4378
builtin and then its argument prototype would still apply. */
4380
/* The GNU C library defines this for functions which it implements
4381
to always fail with ENOSYS. Some functions are actually named
4382
something starting with __ and the normal name is an alias. */
4383
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4386
char (*f) () = $ac_func;
4395
return f != $ac_func;
4400
rm -f conftest.$ac_objext conftest$ac_exeext
4401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4402
(eval $ac_link) 2>&5
4404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405
(exit $ac_status); } &&
4406
{ ac_try='test -s conftest$ac_exeext'
4407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411
(exit $ac_status); }; }; then
4412
eval "$as_ac_var=yes"
4414
echo "$as_me: failed program was:" >&5
4415
sed 's/^/| /' conftest.$ac_ext >&5
4417
eval "$as_ac_var=no"
4419
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4421
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4422
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4423
if test `eval echo '${'$as_ac_var'}'` = yes; then
4424
cat >>confdefs.h <<_ACEOF
4425
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4431
if test "$have_mkstemp" != yes ; then
4433
for ac_func in tempnam
4435
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4436
echo "$as_me:$LINENO: checking for $ac_func" >&5
4437
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4438
if eval "test \"\${$as_ac_var+set}\" = set"; then
4439
echo $ECHO_N "(cached) $ECHO_C" >&6
4441
cat >conftest.$ac_ext <<_ACEOF
4442
#line $LINENO "configure"
4445
cat confdefs.h >>conftest.$ac_ext
4446
cat >>conftest.$ac_ext <<_ACEOF
4447
/* end confdefs.h. */
4448
/* System header to define __stub macros and hopefully few prototypes,
4449
which can conflict with char $ac_func (); below.
4450
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451
<limits.h> exists even on freestanding compilers. */
4453
# include <limits.h>
4455
# include <assert.h>
4457
/* Override any gcc2 internal prototype to avoid an error. */
4462
/* We use char because int might match the return type of a gcc2
4463
builtin and then its argument prototype would still apply. */
4465
/* The GNU C library defines this for functions which it implements
4466
to always fail with ENOSYS. Some functions are actually named
4467
something starting with __ and the normal name is an alias. */
4468
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4471
char (*f) () = $ac_func;
4480
return f != $ac_func;
4485
rm -f conftest.$ac_objext conftest$ac_exeext
4486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487
(eval $ac_link) 2>&5
4489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490
(exit $ac_status); } &&
4491
{ ac_try='test -s conftest$ac_exeext'
4492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496
(exit $ac_status); }; }; then
4497
eval "$as_ac_var=yes"
4499
echo "$as_me: failed program was:" >&5
4500
sed 's/^/| /' conftest.$ac_ext >&5
4502
eval "$as_ac_var=no"
4504
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4506
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4507
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4508
if test `eval echo '${'$as_ac_var'}'` = yes; then
4509
cat >>confdefs.h <<_ACEOF
4510
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4517
if test "$have_mkstemp" != yes -a "$have_tempnam" != yes; then
4519
for ac_func in chmod
4521
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4522
echo "$as_me:$LINENO: checking for $ac_func" >&5
4523
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4524
if eval "test \"\${$as_ac_var+set}\" = set"; then
4525
echo $ECHO_N "(cached) $ECHO_C" >&6
4527
cat >conftest.$ac_ext <<_ACEOF
4528
#line $LINENO "configure"
4531
cat confdefs.h >>conftest.$ac_ext
4532
cat >>conftest.$ac_ext <<_ACEOF
4533
/* end confdefs.h. */
4534
/* System header to define __stub macros and hopefully few prototypes,
4535
which can conflict with char $ac_func (); below.
4536
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537
<limits.h> exists even on freestanding compilers. */
4539
# include <limits.h>
4541
# include <assert.h>
4543
/* Override any gcc2 internal prototype to avoid an error. */
4548
/* We use char because int might match the return type of a gcc2
4549
builtin and then its argument prototype would still apply. */
4551
/* The GNU C library defines this for functions which it implements
4552
to always fail with ENOSYS. Some functions are actually named
4553
something starting with __ and the normal name is an alias. */
4554
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4557
char (*f) () = $ac_func;
4566
return f != $ac_func;
4571
rm -f conftest.$ac_objext conftest$ac_exeext
4572
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4573
(eval $ac_link) 2>&5
4575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576
(exit $ac_status); } &&
4577
{ ac_try='test -s conftest$ac_exeext'
4578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582
(exit $ac_status); }; }; then
4583
eval "$as_ac_var=yes"
4585
echo "$as_me: failed program was:" >&5
4586
sed 's/^/| /' conftest.$ac_ext >&5
4588
eval "$as_ac_var=no"
4590
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4592
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4593
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4594
if test `eval echo '${'$as_ac_var'}'` = yes; then
4595
cat >>confdefs.h <<_ACEOF
4596
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4602
if test "$tmpdir_specified" = yes ; then
4603
echo "$as_me:$LINENO: result: use of tmpnam overrides temporary directory selection" >&5
4604
echo "${ECHO_T}use of tmpnam overrides temporary directory selection" >&6
4611
for ac_func in opendir findfirst _findfirst
4613
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4614
echo "$as_me:$LINENO: checking for $ac_func" >&5
4615
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4616
if eval "test \"\${$as_ac_var+set}\" = set"; then
4617
echo $ECHO_N "(cached) $ECHO_C" >&6
4619
cat >conftest.$ac_ext <<_ACEOF
4620
#line $LINENO "configure"
4623
cat confdefs.h >>conftest.$ac_ext
4624
cat >>conftest.$ac_ext <<_ACEOF
4625
/* end confdefs.h. */
4626
/* System header to define __stub macros and hopefully few prototypes,
4627
which can conflict with char $ac_func (); below.
4628
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4629
<limits.h> exists even on freestanding compilers. */
4631
# include <limits.h>
4633
# include <assert.h>
4635
/* Override any gcc2 internal prototype to avoid an error. */
4640
/* We use char because int might match the return type of a gcc2
4641
builtin and then its argument prototype would still apply. */
4643
/* The GNU C library defines this for functions which it implements
4644
to always fail with ENOSYS. Some functions are actually named
4645
something starting with __ and the normal name is an alias. */
4646
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4649
char (*f) () = $ac_func;
4658
return f != $ac_func;
4663
rm -f conftest.$ac_objext conftest$ac_exeext
4664
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665
(eval $ac_link) 2>&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); } &&
4669
{ ac_try='test -s conftest$ac_exeext'
4670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674
(exit $ac_status); }; }; then
4675
eval "$as_ac_var=yes"
4677
echo "$as_me: failed program was:" >&5
4678
sed 's/^/| /' conftest.$ac_ext >&5
4680
eval "$as_ac_var=no"
4682
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4685
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4686
if test `eval echo '${'$as_ac_var'}'` = yes; then
4687
cat >>confdefs.h <<_ACEOF
4688
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4695
for ac_func in strerror
4697
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4698
echo "$as_me:$LINENO: checking for $ac_func" >&5
4699
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4700
if eval "test \"\${$as_ac_var+set}\" = set"; then
4701
echo $ECHO_N "(cached) $ECHO_C" >&6
4703
cat >conftest.$ac_ext <<_ACEOF
4704
#line $LINENO "configure"
4707
cat confdefs.h >>conftest.$ac_ext
4708
cat >>conftest.$ac_ext <<_ACEOF
4709
/* end confdefs.h. */
4710
/* System header to define __stub macros and hopefully few prototypes,
4711
which can conflict with char $ac_func (); below.
4712
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713
<limits.h> exists even on freestanding compilers. */
4715
# include <limits.h>
4717
# include <assert.h>
4719
/* Override any gcc2 internal prototype to avoid an error. */
4724
/* We use char because int might match the return type of a gcc2
4725
builtin and then its argument prototype would still apply. */
4727
/* The GNU C library defines this for functions which it implements
4728
to always fail with ENOSYS. Some functions are actually named
4729
something starting with __ and the normal name is an alias. */
4730
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4733
char (*f) () = $ac_func;
4742
return f != $ac_func;
4747
rm -f conftest.$ac_objext conftest$ac_exeext
4748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749
(eval $ac_link) 2>&5
4751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752
(exit $ac_status); } &&
4753
{ ac_try='test -s conftest$ac_exeext'
4754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758
(exit $ac_status); }; }; then
4759
eval "$as_ac_var=yes"
4761
echo "$as_me: failed program was:" >&5
4762
sed 's/^/| /' conftest.$ac_ext >&5
4764
eval "$as_ac_var=no"
4766
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4768
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4769
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4770
if test `eval echo '${'$as_ac_var'}'` = yes; then
4771
cat >>confdefs.h <<_ACEOF
4772
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4780
for ac_func in clock times
4782
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4783
echo "$as_me:$LINENO: checking for $ac_func" >&5
4784
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4785
if eval "test \"\${$as_ac_var+set}\" = set"; then
4786
echo $ECHO_N "(cached) $ECHO_C" >&6
4788
cat >conftest.$ac_ext <<_ACEOF
4789
#line $LINENO "configure"
4792
cat confdefs.h >>conftest.$ac_ext
4793
cat >>conftest.$ac_ext <<_ACEOF
4794
/* end confdefs.h. */
4795
/* System header to define __stub macros and hopefully few prototypes,
4796
which can conflict with char $ac_func (); below.
4797
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798
<limits.h> exists even on freestanding compilers. */
4800
# include <limits.h>
4802
# include <assert.h>
4804
/* Override any gcc2 internal prototype to avoid an error. */
4809
/* We use char because int might match the return type of a gcc2
4810
builtin and then its argument prototype would still apply. */
4812
/* The GNU C library defines this for functions which it implements
4813
to always fail with ENOSYS. Some functions are actually named
4814
something starting with __ and the normal name is an alias. */
4815
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4818
char (*f) () = $ac_func;
4827
return f != $ac_func;
4832
rm -f conftest.$ac_objext conftest$ac_exeext
4833
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834
(eval $ac_link) 2>&5
4836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837
(exit $ac_status); } &&
4838
{ ac_try='test -s conftest$ac_exeext'
4839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
(exit $ac_status); }; }; then
4844
eval "$as_ac_var=yes"
4846
echo "$as_me: failed program was:" >&5
4847
sed 's/^/| /' conftest.$ac_ext >&5
4849
eval "$as_ac_var=no"
4851
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4853
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4854
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4855
if test `eval echo '${'$as_ac_var'}'` = yes; then
4856
cat >>confdefs.h <<_ACEOF
4857
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4864
for ac_func in remove
4866
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4867
echo "$as_me:$LINENO: checking for $ac_func" >&5
4868
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4869
if eval "test \"\${$as_ac_var+set}\" = set"; then
4870
echo $ECHO_N "(cached) $ECHO_C" >&6
4872
cat >conftest.$ac_ext <<_ACEOF
4873
#line $LINENO "configure"
4876
cat confdefs.h >>conftest.$ac_ext
4877
cat >>conftest.$ac_ext <<_ACEOF
4878
/* end confdefs.h. */
4879
/* System header to define __stub macros and hopefully few prototypes,
4880
which can conflict with char $ac_func (); below.
4881
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4882
<limits.h> exists even on freestanding compilers. */
4884
# include <limits.h>
4886
# include <assert.h>
4888
/* Override any gcc2 internal prototype to avoid an error. */
4893
/* We use char because int might match the return type of a gcc2
4894
builtin and then its argument prototype would still apply. */
4896
/* The GNU C library defines this for functions which it implements
4897
to always fail with ENOSYS. Some functions are actually named
4898
something starting with __ and the normal name is an alias. */
4899
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4902
char (*f) () = $ac_func;
4911
return f != $ac_func;
4916
rm -f conftest.$ac_objext conftest$ac_exeext
4917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4918
(eval $ac_link) 2>&5
4920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921
(exit $ac_status); } &&
4922
{ ac_try='test -s conftest$ac_exeext'
4923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927
(exit $ac_status); }; }; then
4928
eval "$as_ac_var=yes"
4930
echo "$as_me: failed program was:" >&5
4931
sed 's/^/| /' conftest.$ac_ext >&5
4933
eval "$as_ac_var=no"
4935
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4937
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4938
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4939
if test `eval echo '${'$as_ac_var'}'` = yes; then
4940
cat >>confdefs.h <<_ACEOF
4941
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4946
echo "$as_me:$LINENO: checking \"if remove is defined in unistd.h\"" >&5
4947
echo $ECHO_N "checking \"if remove is defined in unistd.h\"... $ECHO_C" >&6
4948
cat >conftest.$ac_ext <<_ACEOF
4949
#line $LINENO "configure"
4952
cat confdefs.h >>conftest.$ac_ext
4953
cat >>conftest.$ac_ext <<_ACEOF
4954
/* end confdefs.h. */
4961
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962
$EGREP "yes" >/dev/null 2>&1; then
4964
echo "$as_me:$LINENO: result: yes" >&5
4965
echo "${ECHO_T}yes" >&6
4970
echo "$as_me:$LINENO: result: no" >&5
4971
echo "${ECHO_T}no" >&6
4972
cat >>confdefs.h <<\_ACEOF
4973
#define remove unlink
4985
for ac_func in truncate
4987
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4988
echo "$as_me:$LINENO: checking for $ac_func" >&5
4989
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4990
if eval "test \"\${$as_ac_var+set}\" = set"; then
4991
echo $ECHO_N "(cached) $ECHO_C" >&6
4993
cat >conftest.$ac_ext <<_ACEOF
4994
#line $LINENO "configure"
4997
cat confdefs.h >>conftest.$ac_ext
4998
cat >>conftest.$ac_ext <<_ACEOF
4999
/* end confdefs.h. */
5000
/* System header to define __stub macros and hopefully few prototypes,
5001
which can conflict with char $ac_func (); below.
5002
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003
<limits.h> exists even on freestanding compilers. */
5005
# include <limits.h>
5007
# include <assert.h>
5009
/* Override any gcc2 internal prototype to avoid an error. */
5014
/* We use char because int might match the return type of a gcc2
5015
builtin and then its argument prototype would still apply. */
5017
/* The GNU C library defines this for functions which it implements
5018
to always fail with ENOSYS. Some functions are actually named
5019
something starting with __ and the normal name is an alias. */
5020
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5023
char (*f) () = $ac_func;
5032
return f != $ac_func;
5037
rm -f conftest.$ac_objext conftest$ac_exeext
5038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039
(eval $ac_link) 2>&5
5041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042
(exit $ac_status); } &&
5043
{ ac_try='test -s conftest$ac_exeext'
5044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048
(exit $ac_status); }; }; then
5049
eval "$as_ac_var=yes"
5051
echo "$as_me: failed program was:" >&5
5052
sed 's/^/| /' conftest.$ac_ext >&5
5054
eval "$as_ac_var=no"
5056
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5059
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5060
if test `eval echo '${'$as_ac_var'}'` = yes; then
5061
cat >>confdefs.h <<_ACEOF
5062
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5068
if test "$have_truncate" != yes ; then
5070
for ac_func in ftruncate
5072
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5073
echo "$as_me:$LINENO: checking for $ac_func" >&5
5074
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5075
if eval "test \"\${$as_ac_var+set}\" = set"; then
5076
echo $ECHO_N "(cached) $ECHO_C" >&6
5078
cat >conftest.$ac_ext <<_ACEOF
5079
#line $LINENO "configure"
5082
cat confdefs.h >>conftest.$ac_ext
5083
cat >>conftest.$ac_ext <<_ACEOF
5084
/* end confdefs.h. */
5085
/* System header to define __stub macros and hopefully few prototypes,
5086
which can conflict with char $ac_func (); below.
5087
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088
<limits.h> exists even on freestanding compilers. */
5090
# include <limits.h>
5092
# include <assert.h>
5094
/* Override any gcc2 internal prototype to avoid an error. */
5099
/* We use char because int might match the return type of a gcc2
5100
builtin and then its argument prototype would still apply. */
5102
/* The GNU C library defines this for functions which it implements
5103
to always fail with ENOSYS. Some functions are actually named
5104
something starting with __ and the normal name is an alias. */
5105
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5108
char (*f) () = $ac_func;
5117
return f != $ac_func;
5122
rm -f conftest.$ac_objext conftest$ac_exeext
5123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124
(eval $ac_link) 2>&5
5126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127
(exit $ac_status); } &&
5128
{ ac_try='test -s conftest$ac_exeext'
5129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133
(exit $ac_status); }; }; then
5134
eval "$as_ac_var=yes"
5136
echo "$as_me: failed program was:" >&5
5137
sed 's/^/| /' conftest.$ac_ext >&5
5139
eval "$as_ac_var=no"
5141
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5143
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5144
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5145
if test `eval echo '${'$as_ac_var'}'` = yes; then
5146
cat >>confdefs.h <<_ACEOF
5147
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5153
if test "$have_ftruncate" != yes ; then
5155
for ac_func in chsize
5157
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158
echo "$as_me:$LINENO: checking for $ac_func" >&5
5159
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160
if eval "test \"\${$as_ac_var+set}\" = set"; then
5161
echo $ECHO_N "(cached) $ECHO_C" >&6
5163
cat >conftest.$ac_ext <<_ACEOF
5164
#line $LINENO "configure"
5167
cat confdefs.h >>conftest.$ac_ext
5168
cat >>conftest.$ac_ext <<_ACEOF
5169
/* end confdefs.h. */
5170
/* System header to define __stub macros and hopefully few prototypes,
5171
which can conflict with char $ac_func (); below.
5172
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173
<limits.h> exists even on freestanding compilers. */
5175
# include <limits.h>
5177
# include <assert.h>
5179
/* Override any gcc2 internal prototype to avoid an error. */
5184
/* We use char because int might match the return type of a gcc2
5185
builtin and then its argument prototype would still apply. */
5187
/* The GNU C library defines this for functions which it implements
5188
to always fail with ENOSYS. Some functions are actually named
5189
something starting with __ and the normal name is an alias. */
5190
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193
char (*f) () = $ac_func;
5202
return f != $ac_func;
5207
rm -f conftest.$ac_objext conftest$ac_exeext
5208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209
(eval $ac_link) 2>&5
5211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
(exit $ac_status); } &&
5213
{ ac_try='test -s conftest$ac_exeext'
5214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218
(exit $ac_status); }; }; then
5219
eval "$as_ac_var=yes"
5221
echo "$as_me: failed program was:" >&5
5222
sed 's/^/| /' conftest.$ac_ext >&5
5224
eval "$as_ac_var=no"
5226
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5228
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5229
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5230
if test `eval echo '${'$as_ac_var'}'` = yes; then
5231
cat >>confdefs.h <<_ACEOF
5232
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5242
for ac_func in setenv
5244
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5245
echo "$as_me:$LINENO: checking for $ac_func" >&5
5246
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5247
if eval "test \"\${$as_ac_var+set}\" = set"; then
5248
echo $ECHO_N "(cached) $ECHO_C" >&6
5250
cat >conftest.$ac_ext <<_ACEOF
5251
#line $LINENO "configure"
5254
cat confdefs.h >>conftest.$ac_ext
5255
cat >>conftest.$ac_ext <<_ACEOF
5256
/* end confdefs.h. */
5257
/* System header to define __stub macros and hopefully few prototypes,
5258
which can conflict with char $ac_func (); below.
5259
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5260
<limits.h> exists even on freestanding compilers. */
5262
# include <limits.h>
5264
# include <assert.h>
5266
/* Override any gcc2 internal prototype to avoid an error. */
5271
/* We use char because int might match the return type of a gcc2
5272
builtin and then its argument prototype would still apply. */
5274
/* The GNU C library defines this for functions which it implements
5275
to always fail with ENOSYS. Some functions are actually named
5276
something starting with __ and the normal name is an alias. */
5277
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280
char (*f) () = $ac_func;
5289
return f != $ac_func;
5294
rm -f conftest.$ac_objext conftest$ac_exeext
5295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296
(eval $ac_link) 2>&5
5298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299
(exit $ac_status); } &&
5300
{ ac_try='test -s conftest$ac_exeext'
5301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
(exit $ac_status); }; }; then
5306
eval "$as_ac_var=yes"
5308
echo "$as_me: failed program was:" >&5
5309
sed 's/^/| /' conftest.$ac_ext >&5
5311
eval "$as_ac_var=no"
5313
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5315
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5316
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5317
if test `eval echo '${'$as_ac_var'}'` = yes; then
5318
cat >>confdefs.h <<_ACEOF
5319
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5325
if test "$have_setenv" != yes ; then
5327
for ac_func in putenv
5329
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5330
echo "$as_me:$LINENO: checking for $ac_func" >&5
5331
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5332
if eval "test \"\${$as_ac_var+set}\" = set"; then
5333
echo $ECHO_N "(cached) $ECHO_C" >&6
5335
cat >conftest.$ac_ext <<_ACEOF
5336
#line $LINENO "configure"
5339
cat confdefs.h >>conftest.$ac_ext
5340
cat >>conftest.$ac_ext <<_ACEOF
5341
/* end confdefs.h. */
5342
/* System header to define __stub macros and hopefully few prototypes,
5343
which can conflict with char $ac_func (); below.
5344
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345
<limits.h> exists even on freestanding compilers. */
5347
# include <limits.h>
5349
# include <assert.h>
5351
/* Override any gcc2 internal prototype to avoid an error. */
5356
/* We use char because int might match the return type of a gcc2
5357
builtin and then its argument prototype would still apply. */
5359
/* The GNU C library defines this for functions which it implements
5360
to always fail with ENOSYS. Some functions are actually named
5361
something starting with __ and the normal name is an alias. */
5362
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365
char (*f) () = $ac_func;
5374
return f != $ac_func;
5379
rm -f conftest.$ac_objext conftest$ac_exeext
5380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5381
(eval $ac_link) 2>&5
5383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384
(exit $ac_status); } &&
5385
{ ac_try='test -s conftest$ac_exeext'
5386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390
(exit $ac_status); }; }; then
5391
eval "$as_ac_var=yes"
5393
echo "$as_me: failed program was:" >&5
5394
sed 's/^/| /' conftest.$ac_ext >&5
5396
eval "$as_ac_var=no"
5398
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5400
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5401
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5402
if test `eval echo '${'$as_ac_var'}'` = yes; then
5403
cat >>confdefs.h <<_ACEOF
5404
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5410
if test "$have_putenv" = yes ; then
5411
cat >conftest.$ac_ext <<_ACEOF
5412
#line $LINENO "configure"
5415
cat confdefs.h >>conftest.$ac_ext
5416
cat >>conftest.$ac_ext <<_ACEOF
5417
/* end confdefs.h. */
5421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5422
$EGREP "putenv" >/dev/null 2>&1; then
5423
have_putenv_prototype=yes
5427
if test "$have_putenv_prototype" = yes ; then
5428
echo "$as_me:$LINENO: checking \"putenv prototype\"" >&5
5429
echo $ECHO_N "checking \"putenv prototype\"... $ECHO_C" >&6
5430
cat >conftest.$ac_ext <<_ACEOF
5431
#line $LINENO "configure"
5434
cat confdefs.h >>conftest.$ac_ext
5435
cat >>conftest.$ac_ext <<_ACEOF
5436
/* end confdefs.h. */
5440
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441
$EGREP "[^A-Za-zo-9_]putenv[ ]*\(.*const.*\)[ ]*;" >/dev/null 2>&1; then
5442
echo "$as_me:$LINENO: result: correct" >&5
5443
echo "${ECHO_T}correct" >&6
5446
echo "$as_me:$LINENO: result: no const" >&5
5447
echo "${ECHO_T}no const" >&6
5448
cat >>confdefs.h <<\_ACEOF
5449
#define NON_CONST_PUTENV_PROTOTYPE 1
5460
if test no != "$with_posix_regex"; then
5462
for ac_func in regcomp
5464
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5465
echo "$as_me:$LINENO: checking for $ac_func" >&5
5466
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5467
if eval "test \"\${$as_ac_var+set}\" = set"; then
5468
echo $ECHO_N "(cached) $ECHO_C" >&6
5470
cat >conftest.$ac_ext <<_ACEOF
5471
#line $LINENO "configure"
5474
cat confdefs.h >>conftest.$ac_ext
5475
cat >>conftest.$ac_ext <<_ACEOF
5476
/* end confdefs.h. */
5477
/* System header to define __stub macros and hopefully few prototypes,
5478
which can conflict with char $ac_func (); below.
5479
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5480
<limits.h> exists even on freestanding compilers. */
5482
# include <limits.h>
5484
# include <assert.h>
5486
/* Override any gcc2 internal prototype to avoid an error. */
5491
/* We use char because int might match the return type of a gcc2
5492
builtin and then its argument prototype would still apply. */
5494
/* The GNU C library defines this for functions which it implements
5495
to always fail with ENOSYS. Some functions are actually named
5496
something starting with __ and the normal name is an alias. */
5497
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5500
char (*f) () = $ac_func;
5509
return f != $ac_func;
5514
rm -f conftest.$ac_objext conftest$ac_exeext
5515
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516
(eval $ac_link) 2>&5
5518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519
(exit $ac_status); } &&
5520
{ ac_try='test -s conftest$ac_exeext'
5521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525
(exit $ac_status); }; }; then
5526
eval "$as_ac_var=yes"
5528
echo "$as_me: failed program was:" >&5
5529
sed 's/^/| /' conftest.$ac_ext >&5
5531
eval "$as_ac_var=no"
5533
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5535
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5536
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5537
if test `eval echo '${'$as_ac_var'}'` = yes; then
5538
cat >>confdefs.h <<_ACEOF
5539
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5545
echo "$as_me:$LINENO: checking if regcomp works" >&5
5546
echo $ECHO_N "checking if regcomp works... $ECHO_C" >&6
5547
if test "$cross_compiling" = yes; then
5548
cat >>confdefs.h <<\_ACEOF
5549
#define CHECK_REGCOMP 1
5553
cat >conftest.$ac_ext <<_ACEOF
5554
#line $LINENO "configure"
5557
cat confdefs.h >>conftest.$ac_ext
5558
cat >>conftest.$ac_ext <<_ACEOF
5559
/* end confdefs.h. */
5561
#include <sys/types.h>
5565
exit (regcomp (&patbuf, "/hello/", 0) != 0);
5568
rm -f conftest$ac_exeext
5569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570
(eval $ac_link) 2>&5
5572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578
(exit $ac_status); }; }; then
5581
echo "$as_me: program exited with status $ac_status" >&5
5582
echo "$as_me: failed program was:" >&5
5583
sed 's/^/| /' conftest.$ac_ext >&5
5588
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5590
echo "$as_me:$LINENO: result: $regcomp_works" >&5
5591
echo "${ECHO_T}$regcomp_works" >&6
5592
if test yes != "$regcomp_works"; then
5593
cat >>confdefs.h <<\_ACEOF
5594
#define REGCOMP_BROKEN 1
5602
{ echo "$as_me:$LINENO: checking \"for missing prototypes\"..." >&5
5603
echo "$as_me: checking \"for missing prototypes\"..." >&6;}
5607
if test "$have_remove" = yes ; then
5608
cat >conftest.$ac_ext <<_ACEOF
5609
#line $LINENO "configure"
5612
cat confdefs.h >>conftest.$ac_ext
5613
cat >>conftest.$ac_ext <<_ACEOF
5614
/* end confdefs.h. */
5618
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5619
$EGREP "[^A-Za-z0-9_]remove([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5622
cat >>confdefs.h <<\_ACEOF
5623
#define NEED_PROTO_REMOVE 1
5625
echo "$as_me:$LINENO: result: adding prototype for remove" >&5
5626
echo "${ECHO_T}adding prototype for remove" >&6
5631
cat >conftest.$ac_ext <<_ACEOF
5632
#line $LINENO "configure"
5635
cat confdefs.h >>conftest.$ac_ext
5636
cat >>conftest.$ac_ext <<_ACEOF
5637
/* end confdefs.h. */
5641
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5642
$EGREP "[^A-Za-z0-9_]unlink([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5645
cat >>confdefs.h <<\_ACEOF
5646
#define NEED_PROTO_UNLINK 1
5648
echo "$as_me:$LINENO: result: adding prototype for unlink" >&5
5649
echo "${ECHO_T}adding prototype for unlink" >&6
5654
cat >conftest.$ac_ext <<_ACEOF
5655
#line $LINENO "configure"
5658
cat confdefs.h >>conftest.$ac_ext
5659
cat >>conftest.$ac_ext <<_ACEOF
5660
/* end confdefs.h. */
5664
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665
$EGREP "[^A-Za-z0-9_]malloc([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5668
cat >>confdefs.h <<\_ACEOF
5669
#define NEED_PROTO_MALLOC 1
5671
echo "$as_me:$LINENO: result: adding prototype for malloc" >&5
5672
echo "${ECHO_T}adding prototype for malloc" >&6
5676
cat >conftest.$ac_ext <<_ACEOF
5677
#line $LINENO "configure"
5680
cat confdefs.h >>conftest.$ac_ext
5681
cat >>conftest.$ac_ext <<_ACEOF
5682
/* end confdefs.h. */
5686
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5687
$EGREP "[^A-Za-z0-9_]getenv([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5690
cat >>confdefs.h <<\_ACEOF
5691
#define NEED_PROTO_GETENV 1
5693
echo "$as_me:$LINENO: result: adding prototype for getenv" >&5
5694
echo "${ECHO_T}adding prototype for getenv" >&6
5698
cat >conftest.$ac_ext <<_ACEOF
5699
#line $LINENO "configure"
5702
cat confdefs.h >>conftest.$ac_ext
5703
cat >>conftest.$ac_ext <<_ACEOF
5704
/* end confdefs.h. */
5705
#include <sys/stat.h>
5708
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709
$EGREP "[^A-Za-z0-9_]stat([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5712
cat >>confdefs.h <<\_ACEOF
5713
#define NEED_PROTO_STAT 1
5715
echo "$as_me:$LINENO: result: adding prototype for stat" >&5
5716
echo "${ECHO_T}adding prototype for stat" >&6
5720
cat >conftest.$ac_ext <<_ACEOF
5721
#line $LINENO "configure"
5724
cat confdefs.h >>conftest.$ac_ext
5725
cat >>conftest.$ac_ext <<_ACEOF
5726
/* end confdefs.h. */
5727
#include <sys/stat.h>
5730
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5731
$EGREP "[^A-Za-z0-9_]lstat([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5734
cat >>confdefs.h <<\_ACEOF
5735
#define NEED_PROTO_LSTAT 1
5737
echo "$as_me:$LINENO: result: adding prototype for lstat" >&5
5738
echo "${ECHO_T}adding prototype for lstat" >&6
5742
if test "$have_fgetpos" = yes ; then
5743
cat >conftest.$ac_ext <<_ACEOF
5744
#line $LINENO "configure"
5747
cat confdefs.h >>conftest.$ac_ext
5748
cat >>conftest.$ac_ext <<_ACEOF
5749
/* end confdefs.h. */
5753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5754
$EGREP "[^A-Za-z0-9_]fgetpos([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5757
cat >>confdefs.h <<\_ACEOF
5758
#define NEED_PROTO_FGETPOS 1
5760
echo "$as_me:$LINENO: result: adding prototype for fgetpos" >&5
5761
echo "${ECHO_T}adding prototype for fgetpos" >&6
5766
if test "$have_truncate" = yes ; then
5767
cat >conftest.$ac_ext <<_ACEOF
5768
#line $LINENO "configure"
5771
cat confdefs.h >>conftest.$ac_ext
5772
cat >>conftest.$ac_ext <<_ACEOF
5773
/* end confdefs.h. */
5777
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778
$EGREP "[^A-Za-z0-9_]truncate([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5781
cat >>confdefs.h <<\_ACEOF
5782
#define NEED_PROTO_TRUNCATE 1
5784
echo "$as_me:$LINENO: result: adding prototype for truncate" >&5
5785
echo "${ECHO_T}adding prototype for truncate" >&6
5790
if test "$have_ftruncate" = yes ; then
5791
cat >conftest.$ac_ext <<_ACEOF
5792
#line $LINENO "configure"
5795
cat confdefs.h >>conftest.$ac_ext
5796
cat >>conftest.$ac_ext <<_ACEOF
5797
/* end confdefs.h. */
5801
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5802
$EGREP "[^A-Za-z0-9_]ftruncate([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
5805
cat >>confdefs.h <<\_ACEOF
5806
#define NEED_PROTO_FTRUNCATE 1
5808
echo "$as_me:$LINENO: result: adding prototype for ftruncate" >&5
5809
echo "${ECHO_T}adding prototype for ftruncate" >&6
5819
if test "$enable_maintainer_mode" = yes ; then
5820
echo "$as_me:$LINENO: result: creating maintainer Makefile" >&5
5821
echo "${ECHO_T}creating maintainer Makefile" >&6
5822
ln -s maintainer.mak Makefile
5825
makefile_out=Makefile
5827
ac_config_files="$ac_config_files $makefile_out"
5828
cat >confcache <<\_ACEOF
5829
# This file is a shell script that caches the results of configure
5830
# tests run on this system so they can be shared between configure
5831
# scripts and configure runs, see configure's option --config-cache.
5832
# It is not useful on other systems. If it contains results you don't
5833
# want to keep, you may remove or edit it.
5835
# config.status only pays attention to the cache file if you give it
5836
# the --recheck option to rerun configure.
5838
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5839
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5844
# The following way of writing the cache mishandles newlines in values,
5845
# but we know of no workaround that is simple, portable, and efficient.
5846
# So, don't put newlines in cache variables' values.
5847
# Ultrix sh set writes to stderr and can't be redirected directly,
5848
# and sets the high bit in the cache file unless we assign to the vars.
5851
case `(ac_space=' '; set | grep ac_space) 2>&1` in
5853
# `set' does not quote correctly, so add quotes (double-quote
5854
# substitution turns \\\\ into \\, and sed turns \\ into \).
5857
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5860
# `set' quotes correctly as required by POSIX, so do not add quotes.
5862
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5869
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5871
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5873
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5874
if test -w $cache_file; then
5875
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5876
cat confcache >$cache_file
5878
echo "not updating unwritable cache $cache_file"
5883
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5884
# Let make expand exec_prefix.
5885
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5887
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5888
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5889
# trailing colons and then remove the whole line if VPATH becomes empty
5890
# (actually we leave an empty line to preserve line numbers).
5891
if test "x$srcdir" = x.; then
5892
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5893
s/:*\$(srcdir):*/:/;
5894
s/:*\${srcdir}:*/:/;
5896
s/^\([^=]*=[ ]*\):*/\1/;
5902
DEFS=-DHAVE_CONFIG_H
5906
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5907
# 1. Remove the extension, and $U if already installed.
5908
ac_i=`echo "$ac_i" |
5909
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5911
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5912
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5916
LTLIBOBJS=$ac_ltlibobjs
5920
: ${CONFIG_STATUS=./config.status}
5921
ac_clean_files_save=$ac_clean_files
5922
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5923
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5924
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5925
cat >$CONFIG_STATUS <<_ACEOF
5927
# Generated by $as_me.
5928
# Run this file to recreate the current configuration.
5929
# Compiler output produced by configure, useful for debugging
5930
# configure, is in config.log if it exists.
5935
SHELL=\${CONFIG_SHELL-$SHELL}
5938
cat >>$CONFIG_STATUS <<\_ACEOF
5939
## --------------------- ##
5940
## M4sh Initialization. ##
5941
## --------------------- ##
5943
# Be Bourne compatible
5944
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5947
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5948
# is contrary to our usage. Disable this feature.
5949
alias -g '${1+"$@"}'='"$@"'
5950
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5954
# Support unset when possible.
5955
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5962
# Work around bugs in pre-3.0 UWIN ksh.
5963
$as_unset ENV MAIL MAILPATH
5970
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5971
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5972
LC_TELEPHONE LC_TIME
5974
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5975
eval $as_var=C; export $as_var
5981
# Required to use basename.
5982
if expr a : '\(a\)' >/dev/null 2>&1; then
5988
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5989
as_basename=basename
5995
# Name of the executable.
5996
as_me=`$as_basename "$0" ||
5997
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5998
X"$0" : 'X\(//\)$' \| \
5999
X"$0" : 'X\(/\)$' \| \
6000
. : '\(.\)' 2>/dev/null ||
6002
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6003
/^X\/\(\/\/\)$/{ s//\1/; q; }
6004
/^X\/\(\/\).*/{ s//\1/; q; }
6008
# PATH needs CR, and LINENO needs CR and PATH.
6009
# Avoid depending upon Character Ranges.
6010
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6011
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6012
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6013
as_cr_digits='0123456789'
6014
as_cr_alnum=$as_cr_Letters$as_cr_digits
6016
# The user is always right.
6017
if test "${PATH_SEPARATOR+set}" != set; then
6018
echo "#! /bin/sh" >conf$$.sh
6019
echo "exit 0" >>conf$$.sh
6021
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6032
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6033
test "x$as_lineno_1" != "x$as_lineno_2" &&
6034
test "x$as_lineno_3" = "x$as_lineno_2" || {
6035
# Find who we are. Look in the path if we contain no path at all
6038
*[\\/]* ) as_myself=$0 ;;
6039
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043
test -z "$as_dir" && as_dir=.
6044
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6049
# We did not find ourselves, most probably we were run as `sh COMMAND'
6050
# in which case we are not to be found in the path.
6051
if test "x$as_myself" = x; then
6054
if test ! -f "$as_myself"; then
6055
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6056
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6057
{ (exit 1); exit 1; }; }
6059
case $CONFIG_SHELL in
6061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6065
test -z "$as_dir" && as_dir=.
6066
for as_base in sh bash ksh sh5; do
6069
if ("$as_dir/$as_base" -c '
6072
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6073
test "x$as_lineno_1" != "x$as_lineno_2" &&
6074
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6075
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6076
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6077
CONFIG_SHELL=$as_dir/$as_base
6079
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6087
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6088
# uniformly replaced by the line number. The first 'sed' inserts a
6089
# line-number line before each line; the second 'sed' does the real
6090
# work. The second script uses 'N' to pair each line-number line
6091
# with the numbered line, and appends trailing '-' during
6092
# substitution so that $LINENO is not a special case at line end.
6093
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6094
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6095
sed '=' <$as_myself |
6100
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6103
s,^['$as_cr_digits']*\n,,
6105
chmod +x $as_me.lineno ||
6106
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6107
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6108
{ (exit 1); exit 1; }; }
6110
# Don't try to exec as it changes $[0], causing all sort of problems
6111
# (the dirname of $[0] is not the place where we might find the
6112
# original and so on. Autoconf is especially sensible to this).
6114
# Exit status is that of the last command.
6119
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6120
*c*,-n*) ECHO_N= ECHO_C='
6122
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6123
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6126
if expr a : '\(a\)' >/dev/null 2>&1; then
6132
rm -f conf$$ conf$$.exe conf$$.file
6134
if ln -s conf$$.file conf$$ 2>/dev/null; then
6135
# We could just check for DJGPP; but this test a) works b) is more generic
6136
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6137
if test -f conf$$.exe; then
6138
# Don't use ln at all; we don't have any links
6143
elif ln conf$$.file conf$$ 2>/dev/null; then
6148
rm -f conf$$ conf$$.exe conf$$.file
6150
if mkdir -p . 2>/dev/null; then
6156
as_executable_p="test -f"
6158
# Sed expression to map a string onto a valid CPP name.
6159
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6161
# Sed expression to map a string onto a valid variable name.
6162
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6166
# We need space, tab and new line, in precisely that order.
6176
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6177
# report actual input values of CONFIG_FILES etc. instead of their
6178
# values after options handling. Logging --version etc. is OK.
6182
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6183
## Running $as_me. ##
6188
This file was extended by $as_me, which was
6189
generated by GNU Autoconf 2.57. Invocation command line was
6191
CONFIG_FILES = $CONFIG_FILES
6192
CONFIG_HEADERS = $CONFIG_HEADERS
6193
CONFIG_LINKS = $CONFIG_LINKS
6194
CONFIG_COMMANDS = $CONFIG_COMMANDS
6198
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6202
# Files that config.status was made for.
6203
if test -n "$ac_config_files"; then
6204
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6207
if test -n "$ac_config_headers"; then
6208
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6211
if test -n "$ac_config_links"; then
6212
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6215
if test -n "$ac_config_commands"; then
6216
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6219
cat >>$CONFIG_STATUS <<\_ACEOF
6222
\`$as_me' instantiates files from templates according to the
6223
current configuration.
6225
Usage: $0 [OPTIONS] [FILE]...
6227
-h, --help print this help, then exit
6228
-V, --version print version number, then exit
6229
-q, --quiet do not print progress messages
6230
-d, --debug don't remove temporary files
6231
--recheck update $as_me by reconfiguring in the same conditions
6232
--file=FILE[:TEMPLATE]
6233
instantiate the configuration file FILE
6234
--header=FILE[:TEMPLATE]
6235
instantiate the configuration header FILE
6237
Configuration files:
6240
Configuration headers:
6243
Report bugs to <bug-autoconf@gnu.org>."
6246
cat >>$CONFIG_STATUS <<_ACEOF
6249
configured by $0, generated by GNU Autoconf 2.57,
6250
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6252
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6253
Free Software Foundation, Inc.
6254
This config.status script is free software; the Free Software Foundation
6255
gives unlimited permission to copy, distribute and modify it."
6259
cat >>$CONFIG_STATUS <<\_ACEOF
6260
# If no file are specified by the user, then we need to provide default
6261
# value. By we need to know if files were specified by the user.
6267
ac_option=`expr "x$1" : 'x\([^=]*\)='`
6268
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6276
*) # This is not an option, so the user has probably given explicit
6279
ac_need_defaults=false;;
6283
# Handling of the options.
6285
cat >>$CONFIG_STATUS <<\_ACEOF
6286
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6288
--version | --vers* | -V )
6289
echo "$ac_cs_version"; exit 0 ;;
6291
# Conflict between --help and --header
6292
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
6293
Try \`$0 --help' for more information." >&5
6294
echo "$as_me: error: ambiguous option: $1
6295
Try \`$0 --help' for more information." >&2;}
6296
{ (exit 1); exit 1; }; };;
6297
--help | --hel | -h )
6298
echo "$ac_cs_usage"; exit 0 ;;
6299
--debug | --d* | -d )
6301
--file | --fil | --fi | --f )
6303
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6304
ac_need_defaults=false;;
6305
--header | --heade | --head | --hea )
6307
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6308
ac_need_defaults=false;;
6309
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6310
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6314
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6315
Try \`$0 --help' for more information." >&5
6316
echo "$as_me: error: unrecognized option: $1
6317
Try \`$0 --help' for more information." >&2;}
6318
{ (exit 1); exit 1; }; } ;;
6320
*) ac_config_targets="$ac_config_targets $1" ;;
6326
ac_configure_extra_args=
6328
if $ac_cs_silent; then
6330
ac_configure_extra_args="$ac_configure_extra_args --silent"
6334
cat >>$CONFIG_STATUS <<_ACEOF
6335
if \$ac_cs_recheck; then
6336
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6337
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6346
cat >>$CONFIG_STATUS <<\_ACEOF
6347
for ac_config_target in $ac_config_targets
6349
case "$ac_config_target" in
6350
# Handling of arguments.
6351
"$makefile_out" ) CONFIG_FILES="$CONFIG_FILES $makefile_out" ;;
6352
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6353
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6354
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6355
{ (exit 1); exit 1; }; };;
6359
# If the user did not use the arguments to specify the items to instantiate,
6360
# then the envvar interface is used. Set only those that are not.
6361
# We use the long form for the default assignment because of an extremely
6362
# bizarre bug on SunOS 4.1.3.
6363
if $ac_need_defaults; then
6364
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6365
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6368
# Have a temporary directory for convenience. Make it in the build tree
6369
# simply because there is no reason to put it here, and in addition,
6370
# creating and moving files from /tmp can sometimes cause problems.
6371
# Create a temporary directory, and hook for its removal unless debugging.
6374
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6375
trap '{ (exit 1); exit 1; }' 1 2 13 15
6378
# Create a (secure) tmp directory for tmp files.
6381
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6382
test -n "$tmp" && test -d "$tmp"
6385
tmp=./confstat$$-$RANDOM
6386
(umask 077 && mkdir $tmp)
6389
echo "$me: cannot create a temporary directory in ." >&2
6390
{ (exit 1); exit 1; }
6395
cat >>$CONFIG_STATUS <<_ACEOF
6398
# CONFIG_FILES section.
6401
# No need to generate the scripts if there are no CONFIG_FILES.
6402
# This happens for instance when ./config.status config.h
6403
if test -n "\$CONFIG_FILES"; then
6404
# Protect against being on the right side of a sed subst in config.status.
6405
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6406
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6407
s,@SHELL@,$SHELL,;t t
6408
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6409
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6410
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6411
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6412
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6413
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6414
s,@exec_prefix@,$exec_prefix,;t t
6415
s,@prefix@,$prefix,;t t
6416
s,@program_transform_name@,$program_transform_name,;t t
6417
s,@bindir@,$bindir,;t t
6418
s,@sbindir@,$sbindir,;t t
6419
s,@libexecdir@,$libexecdir,;t t
6420
s,@datadir@,$datadir,;t t
6421
s,@sysconfdir@,$sysconfdir,;t t
6422
s,@sharedstatedir@,$sharedstatedir,;t t
6423
s,@localstatedir@,$localstatedir,;t t
6424
s,@libdir@,$libdir,;t t
6425
s,@includedir@,$includedir,;t t
6426
s,@oldincludedir@,$oldincludedir,;t t
6427
s,@infodir@,$infodir,;t t
6428
s,@mandir@,$mandir,;t t
6429
s,@build_alias@,$build_alias,;t t
6430
s,@host_alias@,$host_alias,;t t
6431
s,@target_alias@,$target_alias,;t t
6433
s,@ECHO_C@,$ECHO_C,;t t
6434
s,@ECHO_N@,$ECHO_N,;t t
6435
s,@ECHO_T@,$ECHO_T,;t t
6437
s,@install_targets@,$install_targets,;t t
6439
s,@CFLAGS@,$CFLAGS,;t t
6440
s,@LDFLAGS@,$LDFLAGS,;t t
6441
s,@CPPFLAGS@,$CPPFLAGS,;t t
6442
s,@ac_ct_CC@,$ac_ct_CC,;t t
6443
s,@EXEEXT@,$EXEEXT,;t t
6444
s,@OBJEXT@,$OBJEXT,;t t
6446
s,@STRIP@,$STRIP,;t t
6447
s,@sort_found@,$sort_found,;t t
6449
s,@EGREP@,$EGREP,;t t
6450
s,@LIBOBJS@,$LIBOBJS,;t t
6451
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6456
cat >>$CONFIG_STATUS <<\_ACEOF
6457
# Split the substitutions into bite-sized pieces for seds with
6458
# small command number limits, like on Digital OSF/1 and HP-UX.
6460
ac_sed_frag=1 # Number of current file.
6461
ac_beg=1 # First line for current file.
6462
ac_end=$ac_max_sed_lines # Line after last line for current file.
6465
while $ac_more_lines; do
6466
if test $ac_beg -gt 1; then
6467
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6469
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6471
if test ! -s $tmp/subs.frag; then
6474
# The purpose of the label and of the branching condition is to
6475
# speed up the sed processing (if there are no `@' at all, there
6476
# is no need to browse any of the substitutions).
6477
# These are the two extra sed commands mentioned above.
6479
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6480
if test -z "$ac_sed_cmds"; then
6481
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6483
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6485
ac_sed_frag=`expr $ac_sed_frag + 1`
6487
ac_end=`expr $ac_end + $ac_max_sed_lines`
6490
if test -z "$ac_sed_cmds"; then
6493
fi # test -n "$CONFIG_FILES"
6496
cat >>$CONFIG_STATUS <<\_ACEOF
6497
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6498
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6500
- | *:- | *:-:* ) # input from stdin
6502
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6503
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6504
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6505
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6506
* ) ac_file_in=$ac_file.in ;;
6509
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6510
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6511
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6512
X"$ac_file" : 'X\(//\)[^/]' \| \
6513
X"$ac_file" : 'X\(//\)$' \| \
6514
X"$ac_file" : 'X\(/\)' \| \
6515
. : '\(.\)' 2>/dev/null ||
6517
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6518
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6519
/^X\(\/\/\)$/{ s//\1/; q; }
6520
/^X\(\/\).*/{ s//\1/; q; }
6522
{ if $as_mkdir_p; then
6527
while test ! -d "$as_dir"; do
6528
as_dirs="$as_dir $as_dirs"
6529
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6530
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6531
X"$as_dir" : 'X\(//\)[^/]' \| \
6532
X"$as_dir" : 'X\(//\)$' \| \
6533
X"$as_dir" : 'X\(/\)' \| \
6534
. : '\(.\)' 2>/dev/null ||
6536
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6537
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6538
/^X\(\/\/\)$/{ s//\1/; q; }
6539
/^X\(\/\).*/{ s//\1/; q; }
6542
test ! -n "$as_dirs" || mkdir $as_dirs
6543
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6544
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6545
{ (exit 1); exit 1; }; }; }
6549
if test "$ac_dir" != .; then
6550
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6551
# A "../" for each directory in $ac_dir_suffix.
6552
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6554
ac_dir_suffix= ac_top_builddir=
6558
.) # No --srcdir option. We are building in place.
6560
if test -z "$ac_top_builddir"; then
6563
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6565
[\\/]* | ?:[\\/]* ) # Absolute path.
6566
ac_srcdir=$srcdir$ac_dir_suffix;
6567
ac_top_srcdir=$srcdir ;;
6569
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6570
ac_top_srcdir=$ac_top_builddir$srcdir ;;
6572
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6574
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6575
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6576
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6577
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6581
if test x"$ac_file" != x-; then
6582
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6583
echo "$as_me: creating $ac_file" >&6;}
6586
# Let's still pretend it is `configure' which instantiates (i.e., don't
6587
# use $as_me), people would be surprised to read:
6588
# /* config.h. Generated by config.status. */
6589
if test x"$ac_file" = x-; then
6592
configure_input="$ac_file. "
6594
configure_input=$configure_input"Generated from `echo $ac_file_in |
6595
sed 's,.*/,,'` by configure."
6597
# First look for the input files in the build tree, otherwise in the
6599
ac_file_inputs=`IFS=:
6600
for f in $ac_file_in; do
6602
-) echo $tmp/stdin ;;
6604
# Absolute (can't be DOS-style, as IFS=:)
6605
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6606
echo "$as_me: error: cannot find input file: $f" >&2;}
6607
{ (exit 1); exit 1; }; }
6610
if test -f "$f"; then
6613
elif test -f "$srcdir/$f"; then
6618
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6619
echo "$as_me: error: cannot find input file: $f" >&2;}
6620
{ (exit 1); exit 1; }; }
6623
done` || { (exit 1); exit 1; }
6625
cat >>$CONFIG_STATUS <<_ACEOF
6629
cat >>$CONFIG_STATUS <<\_ACEOF
6631
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6632
s,@configure_input@,$configure_input,;t t
6633
s,@srcdir@,$ac_srcdir,;t t
6634
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6635
s,@top_srcdir@,$ac_top_srcdir,;t t
6636
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6637
s,@builddir@,$ac_builddir,;t t
6638
s,@abs_builddir@,$ac_abs_builddir,;t t
6639
s,@top_builddir@,$ac_top_builddir,;t t
6640
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6641
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6643
if test x"$ac_file" != x-; then
6644
mv $tmp/out $ac_file
6652
cat >>$CONFIG_STATUS <<\_ACEOF
6655
# CONFIG_HEADER section.
6658
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6659
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6661
# ac_d sets the value in "#define NAME VALUE" lines.
6662
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6663
ac_dB='[ ].*$,\1#\2'
6666
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6667
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6668
ac_uB='$,\1#\2define\3'
6672
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6673
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6675
- | *:- | *:-:* ) # input from stdin
6677
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6678
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6679
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6680
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6681
* ) ac_file_in=$ac_file.in ;;
6684
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6685
echo "$as_me: creating $ac_file" >&6;}
6687
# First look for the input files in the build tree, otherwise in the
6689
ac_file_inputs=`IFS=:
6690
for f in $ac_file_in; do
6692
-) echo $tmp/stdin ;;
6694
# Absolute (can't be DOS-style, as IFS=:)
6695
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6696
echo "$as_me: error: cannot find input file: $f" >&2;}
6697
{ (exit 1); exit 1; }; }
6700
if test -f "$f"; then
6703
elif test -f "$srcdir/$f"; then
6708
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6709
echo "$as_me: error: cannot find input file: $f" >&2;}
6710
{ (exit 1); exit 1; }; }
6713
done` || { (exit 1); exit 1; }
6714
# Remove the trailing spaces.
6715
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6719
# Transform confdefs.h into two sed scripts, `conftest.defines' and
6720
# `conftest.undefs', that substitutes the proper values into
6721
# config.h.in to produce config.h. The first handles `#define'
6722
# templates, and the second `#undef' templates.
6723
# And first: Protect against being on the right side of a sed subst in
6724
# config.status. Protect against being in an unquoted here document
6726
rm -f conftest.defines conftest.undefs
6727
# Using a here document instead of a string reduces the quoting nightmare.
6728
# Putting comments in sed scripts is not portable.
6730
# `end' is used to avoid that the second main sed command (meant for
6731
# 0-ary CPP macros) applies to n-ary macro definitions.
6732
# See the Autoconf documentation for `clear'.
6733
cat >confdef2sed.sed <<\_ACEOF
6738
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6740
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6743
# If some macros were called several times there might be several times
6744
# the same #defines, which is useless. Nevertheless, we may not want to
6745
# sort them, since we want the *last* AC-DEFINE to be honored.
6746
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6747
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6748
rm -f confdef2sed.sed
6750
# This sed command replaces #undef with comments. This is necessary, for
6751
# example, in the case of _POSIX_SOURCE, which is predefined and required
6752
# on some systems where configure will not decide to define it.
6753
cat >>conftest.undefs <<\_ACEOF
6754
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6757
# Break up conftest.defines because some shells have a limit on the size
6758
# of here documents, and old seds have small limits too (100 cmds).
6759
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6760
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6761
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6762
echo ' :' >>$CONFIG_STATUS
6764
while grep . conftest.defines >/dev/null
6766
# Write a limited-size here document to $tmp/defines.sed.
6767
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6768
# Speed up: don't consider the non `#define' lines.
6769
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6770
# Work around the forget-to-reset-the-flag bug.
6771
echo 't clr' >>$CONFIG_STATUS
6772
echo ': clr' >>$CONFIG_STATUS
6773
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6775
sed -f $tmp/defines.sed $tmp/in >$tmp/out
6779
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6780
rm -f conftest.defines
6781
mv conftest.tail conftest.defines
6783
rm -f conftest.defines
6784
echo ' fi # grep' >>$CONFIG_STATUS
6785
echo >>$CONFIG_STATUS
6787
# Break up conftest.undefs because some shells have a limit on the size
6788
# of here documents, and old seds have small limits too (100 cmds).
6789
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6791
while grep . conftest.undefs >/dev/null
6793
# Write a limited-size here document to $tmp/undefs.sed.
6794
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6795
# Speed up: don't consider the non `#undef'
6796
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6797
# Work around the forget-to-reset-the-flag bug.
6798
echo 't clr' >>$CONFIG_STATUS
6799
echo ': clr' >>$CONFIG_STATUS
6800
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6802
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6806
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6807
rm -f conftest.undefs
6808
mv conftest.tail conftest.undefs
6810
rm -f conftest.undefs
6812
cat >>$CONFIG_STATUS <<\_ACEOF
6813
# Let's still pretend it is `configure' which instantiates (i.e., don't
6814
# use $as_me), people would be surprised to read:
6815
# /* config.h. Generated by config.status. */
6816
if test x"$ac_file" = x-; then
6817
echo "/* Generated by configure. */" >$tmp/config.h
6819
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6821
cat $tmp/in >>$tmp/config.h
6823
if test x"$ac_file" != x-; then
6824
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6825
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6826
echo "$as_me: $ac_file is unchanged" >&6;}
6828
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6829
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6830
X"$ac_file" : 'X\(//\)[^/]' \| \
6831
X"$ac_file" : 'X\(//\)$' \| \
6832
X"$ac_file" : 'X\(/\)' \| \
6833
. : '\(.\)' 2>/dev/null ||
6835
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6836
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6837
/^X\(\/\/\)$/{ s//\1/; q; }
6838
/^X\(\/\).*/{ s//\1/; q; }
6840
{ if $as_mkdir_p; then
6845
while test ! -d "$as_dir"; do
6846
as_dirs="$as_dir $as_dirs"
6847
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6848
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6849
X"$as_dir" : 'X\(//\)[^/]' \| \
6850
X"$as_dir" : 'X\(//\)$' \| \
6851
X"$as_dir" : 'X\(/\)' \| \
6852
. : '\(.\)' 2>/dev/null ||
6854
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6855
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6856
/^X\(\/\/\)$/{ s//\1/; q; }
6857
/^X\(\/\).*/{ s//\1/; q; }
6860
test ! -n "$as_dirs" || mkdir $as_dirs
6861
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6862
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6863
{ (exit 1); exit 1; }; }; }
6866
mv $tmp/config.h $ac_file
6875
cat >>$CONFIG_STATUS <<\_ACEOF
6877
{ (exit 0); exit 0; }
6879
chmod +x $CONFIG_STATUS
6880
ac_clean_files=$ac_clean_files_save
6883
# configure is writing to config.log, and then calls config.status.
6884
# config.status does its own redirection, appending to config.log.
6885
# Unfortunately, on DOS this fails, as config.log is still kept open
6886
# by configure, so config.status won't be able to write to it; its
6887
# output is simply discarded. So we exec the FD to /dev/null,
6888
# effectively closing config.log, so it can be properly (re)opened and
6889
# appended to by config.status. When coming back to configure, we
6890
# need to make the FD available again.
6891
if test "$no_create" != yes; then
6893
ac_config_status_args=
6894
test "$silent" = yes &&
6895
ac_config_status_args="$ac_config_status_args --quiet"
6897
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6899
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6900
# would make configure fail if this is the last instruction.
6901
$ac_cs_success || { (exit 1); exit 1; }