2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for memcached 1.1.11.
5
# Report bugs to <brad@danga.com>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete. It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
269
# Identity of this package.
270
PACKAGE_NAME='memcached'
271
PACKAGE_TARNAME='memcached'
272
PACKAGE_VERSION='1.1.11'
273
PACKAGE_STRING='memcached 1.1.11'
274
PACKAGE_BUGREPORT='brad@danga.com'
276
ac_unique_file="memcached.c"
277
# Factoring default headers for most tests.
278
ac_includes_default="\
281
# include <sys/types.h>
284
# include <sys/stat.h>
295
# if !STDC_HEADERS && HAVE_MEMORY_H
301
# include <strings.h>
304
# include <inttypes.h>
314
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
317
# Initialize some variables set by options.
319
ac_init_version=false
320
# The variables have the same names as the options, with
321
# dashes changed to underlines.
329
program_transform_name=s,x,x,
337
# Installation directory options.
338
# These are left unexpanded so users can "make install exec_prefix=/foo"
339
# and all the variables that are supposed to be based on exec_prefix
340
# by default will actually change.
341
# Use braces instead of parens because sh, perl, etc. also accept them.
342
bindir='${exec_prefix}/bin'
343
sbindir='${exec_prefix}/sbin'
344
libexecdir='${exec_prefix}/libexec'
345
datadir='${prefix}/share'
346
sysconfdir='${prefix}/etc'
347
sharedstatedir='${prefix}/com'
348
localstatedir='${prefix}/var'
349
libdir='${exec_prefix}/lib'
350
includedir='${prefix}/include'
351
oldincludedir='/usr/include'
352
infodir='${prefix}/info'
353
mandir='${prefix}/man'
358
# If the previous option needs an argument, assign it.
359
if test -n "$ac_prev"; then
360
eval "$ac_prev=\$ac_option"
365
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
# Accept the important Cygnus configure options, so we can diagnose typos.
371
-bindir | --bindir | --bindi | --bind | --bin | --bi)
373
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376
-build | --build | --buil | --bui | --bu)
377
ac_prev=build_alias ;;
378
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
379
build_alias=$ac_optarg ;;
381
-cache-file | --cache-file | --cache-fil | --cache-fi \
382
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383
ac_prev=cache_file ;;
384
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386
cache_file=$ac_optarg ;;
389
cache_file=config.cache ;;
391
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395
datadir=$ac_optarg ;;
397
-disable-* | --disable-*)
398
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399
# Reject names that are not valid shell variable names.
400
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
402
{ (exit 1); exit 1; }; }
403
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404
eval "enable_$ac_feature=no" ;;
406
-enable-* | --enable-*)
407
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408
# Reject names that are not valid shell variable names.
409
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
411
{ (exit 1); exit 1; }; }
412
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417
eval "enable_$ac_feature='$ac_optarg'" ;;
419
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421
| --exec | --exe | --ex)
422
ac_prev=exec_prefix ;;
423
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425
| --exec=* | --exe=* | --ex=*)
426
exec_prefix=$ac_optarg ;;
428
-gas | --gas | --ga | --g)
429
# Obsolete; use --with-gas.
432
-help | --help | --hel | --he | -h)
434
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435
ac_init_help=recursive ;;
436
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437
ac_init_help=short ;;
439
-host | --host | --hos | --ho)
440
ac_prev=host_alias ;;
441
-host=* | --host=* | --hos=* | --ho=*)
442
host_alias=$ac_optarg ;;
444
-includedir | --includedir | --includedi | --included | --include \
445
| --includ | --inclu | --incl | --inc)
446
ac_prev=includedir ;;
447
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448
| --includ=* | --inclu=* | --incl=* | --inc=*)
449
includedir=$ac_optarg ;;
451
-infodir | --infodir | --infodi | --infod | --info | --inf)
453
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454
infodir=$ac_optarg ;;
456
-libdir | --libdir | --libdi | --libd)
458
-libdir=* | --libdir=* | --libdi=* | --libd=*)
461
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462
| --libexe | --libex | --libe)
463
ac_prev=libexecdir ;;
464
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465
| --libexe=* | --libex=* | --libe=*)
466
libexecdir=$ac_optarg ;;
468
-localstatedir | --localstatedir | --localstatedi | --localstated \
469
| --localstate | --localstat | --localsta | --localst \
470
| --locals | --local | --loca | --loc | --lo)
471
ac_prev=localstatedir ;;
472
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
474
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475
localstatedir=$ac_optarg ;;
477
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483
# Obsolete; use --without-fp.
486
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
487
| --no-cr | --no-c | -n)
490
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
491
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496
| --oldin | --oldi | --old | --ol | --o)
497
ac_prev=oldincludedir ;;
498
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501
oldincludedir=$ac_optarg ;;
503
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508
-program-prefix | --program-prefix | --program-prefi | --program-pref \
509
| --program-pre | --program-pr | --program-p)
510
ac_prev=program_prefix ;;
511
-program-prefix=* | --program-prefix=* | --program-prefi=* \
512
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513
program_prefix=$ac_optarg ;;
515
-program-suffix | --program-suffix | --program-suffi | --program-suff \
516
| --program-suf | --program-su | --program-s)
517
ac_prev=program_suffix ;;
518
-program-suffix=* | --program-suffix=* | --program-suffi=* \
519
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520
program_suffix=$ac_optarg ;;
522
-program-transform-name | --program-transform-name \
523
| --program-transform-nam | --program-transform-na \
524
| --program-transform-n | --program-transform- \
525
| --program-transform | --program-transfor \
526
| --program-transfo | --program-transf \
527
| --program-trans | --program-tran \
528
| --progr-tra | --program-tr | --program-t)
529
ac_prev=program_transform_name ;;
530
-program-transform-name=* | --program-transform-name=* \
531
| --program-transform-nam=* | --program-transform-na=* \
532
| --program-transform-n=* | --program-transform-=* \
533
| --program-transform=* | --program-transfor=* \
534
| --program-transfo=* | --program-transf=* \
535
| --program-trans=* | --program-tran=* \
536
| --progr-tra=* | --program-tr=* | --program-t=*)
537
program_transform_name=$ac_optarg ;;
539
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
540
| -silent | --silent | --silen | --sile | --sil)
543
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547
sbindir=$ac_optarg ;;
549
-sharedstatedir | --sharedstatedir | --sharedstatedi \
550
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551
| --sharedst | --shareds | --shared | --share | --shar \
553
ac_prev=sharedstatedir ;;
554
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558
sharedstatedir=$ac_optarg ;;
560
-site | --site | --sit)
562
-site=* | --site=* | --sit=*)
565
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571
| --syscon | --sysco | --sysc | --sys | --sy)
572
ac_prev=sysconfdir ;;
573
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575
sysconfdir=$ac_optarg ;;
577
-target | --target | --targe | --targ | --tar | --ta | --t)
578
ac_prev=target_alias ;;
579
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580
target_alias=$ac_optarg ;;
582
-v | -verbose | --verbose | --verbos | --verbo | --verb)
585
-version | --version | --versio | --versi | --vers | -V)
589
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590
# Reject names that are not valid shell variable names.
591
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592
{ echo "$as_me: error: invalid package name: $ac_package" >&2
593
{ (exit 1); exit 1; }; }
594
ac_package=`echo $ac_package| sed 's/-/_/g'`
596
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599
eval "with_$ac_package='$ac_optarg'" ;;
601
-without-* | --without-*)
602
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603
# Reject names that are not valid shell variable names.
604
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605
{ echo "$as_me: error: invalid package name: $ac_package" >&2
606
{ (exit 1); exit 1; }; }
607
ac_package=`echo $ac_package | sed 's/-/_/g'`
608
eval "with_$ac_package=no" ;;
611
# Obsolete; use --with-x.
614
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615
| --x-incl | --x-inc | --x-in | --x-i)
616
ac_prev=x_includes ;;
617
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619
x_includes=$ac_optarg ;;
621
-x-libraries | --x-libraries | --x-librarie | --x-librari \
622
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623
ac_prev=x_libraries ;;
624
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626
x_libraries=$ac_optarg ;;
628
-*) { echo "$as_me: error: unrecognized option: $ac_option
629
Try \`$0 --help' for more information." >&2
630
{ (exit 1); exit 1; }; }
634
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635
# Reject names that are not valid shell variable names.
636
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638
{ (exit 1); exit 1; }; }
639
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640
eval "$ac_envvar='$ac_optarg'"
644
# FIXME: should be removed in autoconf 3.0.
645
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654
if test -n "$ac_prev"; then
655
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656
{ echo "$as_me: error: missing argument to $ac_option" >&2
657
{ (exit 1); exit 1; }; }
660
# Be sure to have absolute paths.
661
for ac_var in exec_prefix prefix
663
eval ac_val=$`echo $ac_var`
665
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667
{ (exit 1); exit 1; }; };;
671
# Be sure to have absolute paths.
672
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673
localstatedir libdir includedir oldincludedir infodir mandir
675
eval ac_val=$`echo $ac_var`
677
[\\/$]* | ?:[\\/]* ) ;;
678
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679
{ (exit 1); exit 1; }; };;
683
# There might be people who depend on the old broken behavior: `$host'
684
# used to hold the argument of --host etc.
685
# FIXME: To remove some day.
690
# FIXME: To remove some day.
691
if test "x$host_alias" != x; then
692
if test "x$build_alias" = x; then
693
cross_compiling=maybe
694
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695
If a cross compiler is detected then cross compile mode will be used." >&2
696
elif test "x$build_alias" != "x$host_alias"; then
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
test "$silent" = yes && exec 6>/dev/null
707
# Find the source files, if location was not specified.
708
if test -z "$srcdir"; then
709
ac_srcdir_defaulted=yes
710
# Try the directory containing this script, then its parent.
711
ac_confdir=`(dirname "$0") 2>/dev/null ||
712
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
X"$0" : 'X\(//\)[^/]' \| \
714
X"$0" : 'X\(//\)$' \| \
715
X"$0" : 'X\(/\)' \| \
716
. : '\(.\)' 2>/dev/null ||
718
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
/^X\(\/\/\)$/{ s//\1/; q; }
721
/^X\(\/\).*/{ s//\1/; q; }
724
if test ! -r $srcdir/$ac_unique_file; then
728
ac_srcdir_defaulted=no
730
if test ! -r $srcdir/$ac_unique_file; then
731
if test "$ac_srcdir_defaulted" = yes; then
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733
{ (exit 1); exit 1; }; }
735
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
{ (exit 1); exit 1; }; }
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741
{ (exit 1); exit 1; }; }
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743
ac_env_build_alias_set=${build_alias+set}
744
ac_env_build_alias_value=$build_alias
745
ac_cv_env_build_alias_set=${build_alias+set}
746
ac_cv_env_build_alias_value=$build_alias
747
ac_env_host_alias_set=${host_alias+set}
748
ac_env_host_alias_value=$host_alias
749
ac_cv_env_host_alias_set=${host_alias+set}
750
ac_cv_env_host_alias_value=$host_alias
751
ac_env_target_alias_set=${target_alias+set}
752
ac_env_target_alias_value=$target_alias
753
ac_cv_env_target_alias_set=${target_alias+set}
754
ac_cv_env_target_alias_value=$target_alias
755
ac_env_CC_set=${CC+set}
757
ac_cv_env_CC_set=${CC+set}
758
ac_cv_env_CC_value=$CC
759
ac_env_CFLAGS_set=${CFLAGS+set}
760
ac_env_CFLAGS_value=$CFLAGS
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
762
ac_cv_env_CFLAGS_value=$CFLAGS
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_env_LDFLAGS_value=$LDFLAGS
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_env_CPPFLAGS_value=$CPPFLAGS
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771
ac_env_CPP_set=${CPP+set}
772
ac_env_CPP_value=$CPP
773
ac_cv_env_CPP_set=${CPP+set}
774
ac_cv_env_CPP_value=$CPP
777
# Report the --help message.
779
if test "$ac_init_help" = "long"; then
780
# Omit some internal or obsolete options to make the list less imposing.
781
# This message is too long to be a string in the A/UX 3.1 sh.
783
\`configure' configures memcached 1.1.11 to adapt to many kinds of systems.
785
Usage: $0 [OPTION]... [VAR=VALUE]...
787
To assign environment variables (e.g., CC, CFLAGS...), specify them as
788
VAR=VALUE. See below for descriptions of some of the useful variables.
790
Defaults for the options are specified in brackets.
793
-h, --help display this help and exit
794
--help=short display options specific to this package
795
--help=recursive display the short help of all the included packages
796
-V, --version display version information and exit
797
-q, --quiet, --silent do not print \`checking...' messages
798
--cache-file=FILE cache test results in FILE [disabled]
799
-C, --config-cache alias for \`--cache-file=config.cache'
800
-n, --no-create do not create output files
801
--srcdir=DIR find the sources in DIR [configure dir or \`..']
806
Installation directories:
807
--prefix=PREFIX install architecture-independent files in PREFIX
809
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812
By default, \`make install' will install all the files in
813
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815
for instance \`--prefix=\$HOME'.
817
For better control, use the options below.
819
Fine tuning of the installation directories:
820
--bindir=DIR user executables [EPREFIX/bin]
821
--sbindir=DIR system admin executables [EPREFIX/sbin]
822
--libexecdir=DIR program executables [EPREFIX/libexec]
823
--datadir=DIR read-only architecture-independent data [PREFIX/share]
824
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
827
--libdir=DIR object code libraries [EPREFIX/lib]
828
--includedir=DIR C header files [PREFIX/include]
829
--oldincludedir=DIR C header files for non-gcc [/usr/include]
830
--infodir=DIR info documentation [PREFIX/info]
831
--mandir=DIR man documentation [PREFIX/man]
837
--program-prefix=PREFIX prepend PREFIX to installed program names
838
--program-suffix=SUFFIX append SUFFIX to installed program names
839
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
--build=BUILD configure for building on BUILD [guessed]
843
--host=HOST cross-compile to build programs to run on HOST [BUILD]
844
--target=TARGET configure for building compilers for TARGET [HOST]
848
if test -n "$ac_init_help"; then
849
case $ac_init_help in
850
short | recursive ) echo "Configuration of memcached 1.1.11:";;
855
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857
--with-libevent=DIRECTORY
858
base directory for libevent
860
Some influential environment variables:
861
CC C compiler command
862
CFLAGS C compiler flags
863
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864
nonstandard directory <lib dir>
865
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866
headers in a nonstandard directory <include dir>
869
Use these variables to override the choices made by `configure' or to help
870
it to find libraries and programs with nonstandard names/locations.
872
Report bugs to <brad@danga.com>.
876
if test "$ac_init_help" = "recursive"; then
877
# If there are subdirs, report their specific --help.
879
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880
test -d $ac_dir || continue
883
if test "$ac_dir" != .; then
884
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885
# A "../" for each directory in $ac_dir_suffix.
886
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888
ac_dir_suffix= ac_top_builddir=
892
.) # No --srcdir option. We are building in place.
894
if test -z "$ac_top_builddir"; then
897
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899
[\\/]* | ?:[\\/]* ) # Absolute path.
900
ac_srcdir=$srcdir$ac_dir_suffix;
901
ac_top_srcdir=$srcdir ;;
903
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904
ac_top_srcdir=$ac_top_builddir$srcdir ;;
907
# Do not use `cd foo && pwd` to compute absolute paths, because
908
# the directories may not exist.
910
.) ac_abs_builddir="$ac_dir";;
913
.) ac_abs_builddir=`pwd`;;
914
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915
*) ac_abs_builddir=`pwd`/"$ac_dir";;
918
case $ac_abs_builddir in
919
.) ac_abs_top_builddir=${ac_top_builddir}.;;
921
case ${ac_top_builddir}. in
922
.) ac_abs_top_builddir=$ac_abs_builddir;;
923
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927
case $ac_abs_builddir in
928
.) ac_abs_srcdir=$ac_srcdir;;
931
.) ac_abs_srcdir=$ac_abs_builddir;;
932
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936
case $ac_abs_builddir in
937
.) ac_abs_top_srcdir=$ac_top_srcdir;;
939
case $ac_top_srcdir in
940
.) ac_abs_top_srcdir=$ac_abs_builddir;;
941
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947
# Check for guested configure; otherwise get Cygnus style configure.
948
if test -f $ac_srcdir/configure.gnu; then
950
$SHELL $ac_srcdir/configure.gnu --help=recursive
951
elif test -f $ac_srcdir/configure; then
953
$SHELL $ac_srcdir/configure --help=recursive
954
elif test -f $ac_srcdir/configure.ac ||
955
test -f $ac_srcdir/configure.in; then
959
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965
test -n "$ac_init_help" && exit 0
966
if $ac_init_version; then
968
memcached configure 1.1.11
969
generated by GNU Autoconf 2.59
971
Copyright (C) 2003 Free Software Foundation, Inc.
972
This configure script is free software; the Free Software Foundation
973
gives unlimited permission to copy, distribute and modify it.
979
This file contains any messages produced by compilers while
980
running configure, to aid debugging if configure makes a mistake.
982
It was created by memcached $as_me 1.1.11, which was
983
generated by GNU Autoconf 2.59. Invocation command line was
994
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995
uname -m = `(uname -m) 2>/dev/null || echo unknown`
996
uname -r = `(uname -r) 2>/dev/null || echo unknown`
997
uname -s = `(uname -s) 2>/dev/null || echo unknown`
998
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017
test -z "$as_dir" && as_dir=.
1018
echo "PATH: $as_dir"
1033
# Keep a trace of the command line.
1034
# Strip out --no-create and --no-recursion so they do not pile up.
1035
# Strip out --silent because we don't want to record it for future runs.
1036
# Also quote any args containing shell meta-characters.
1037
# Make two passes to allow for proper duplicate-argument suppression.
1042
ac_must_keep_next=false
1048
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050
| -silent | --silent | --silen | --sile | --sil)
1052
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059
if test $ac_must_keep_next = true; then
1060
ac_must_keep_next=false # Got value, back to normal.
1063
*=* | --config-cache | -C | -disable-* | --disable-* \
1064
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066
| -with-* | --with-* | -without-* | --without-* | --x)
1067
case "$ac_configure_args0 " in
1068
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071
-* ) ac_must_keep_next=true ;;
1074
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075
# Get rid of the leading space.
1081
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084
# When interrupted or exit'd, cleanup temporary files, and complete
1085
# config.log. We remove comments because anyway the quotes in there
1086
# would cause problems or look ugly.
1087
# WARNING: Be sure not to use single quotes in there, as some shells,
1088
# such as our DU 5.0 friend, will then `close' the trap.
1089
trap 'exit_status=$?
1090
# Save into config.log some information that might help in debugging.
1095
## ---------------- ##
1096
## Cache variables. ##
1097
## ---------------- ##
1100
# The following way of writing the cache mishandles newlines in values,
1103
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118
## ----------------- ##
1119
## Output variables. ##
1120
## ----------------- ##
1123
for ac_var in $ac_subst_vars
1125
eval ac_val=$`echo $ac_var`
1126
echo "$ac_var='"'"'$ac_val'"'"'"
1130
if test -n "$ac_subst_files"; then
1137
for ac_var in $ac_subst_files
1139
eval ac_val=$`echo $ac_var`
1140
echo "$ac_var='"'"'$ac_val'"'"'"
1145
if test -s confdefs.h; then
1152
sed "/^$/d" confdefs.h | sort
1155
test "$ac_signal" != 0 &&
1156
echo "$as_me: caught signal $ac_signal"
1157
echo "$as_me: exit $exit_status"
1159
rm -f core *.core &&
1160
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163
for ac_signal in 1 2 13 15; do
1164
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1169
rm -rf conftest* confdefs.h
1170
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173
# Predefined preprocessor variables.
1175
cat >>confdefs.h <<_ACEOF
1176
#define PACKAGE_NAME "$PACKAGE_NAME"
1180
cat >>confdefs.h <<_ACEOF
1181
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185
cat >>confdefs.h <<_ACEOF
1186
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1190
cat >>confdefs.h <<_ACEOF
1191
#define PACKAGE_STRING "$PACKAGE_STRING"
1195
cat >>confdefs.h <<_ACEOF
1196
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200
# Let the site file select an alternate cache file if it wants to.
1201
# Prefer explicitly selected file to automatically selected ones.
1202
if test -z "$CONFIG_SITE"; then
1203
if test "x$prefix" != xNONE; then
1204
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209
for ac_site_file in $CONFIG_SITE; do
1210
if test -r "$ac_site_file"; then
1211
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212
echo "$as_me: loading site script $ac_site_file" >&6;}
1213
sed 's/^/| /' "$ac_site_file" >&5
1218
if test -r "$cache_file"; then
1219
# Some versions of bash will fail to source /dev/null (special
1220
# files actually), so we avoid doing that.
1221
if test -f "$cache_file"; then
1222
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223
echo "$as_me: loading cache $cache_file" >&6;}
1225
[\\/]* | ?:[\\/]* ) . $cache_file;;
1226
*) . ./$cache_file;;
1230
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231
echo "$as_me: creating cache $cache_file" >&6;}
1235
# Check that the precious variables saved in the cache have kept the same
1237
ac_cache_corrupted=false
1238
for ac_var in `(set) 2>&1 |
1239
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241
eval ac_new_set=\$ac_env_${ac_var}_set
1242
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243
eval ac_new_val="\$ac_env_${ac_var}_value"
1244
case $ac_old_set,$ac_new_set in
1246
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248
ac_cache_corrupted=: ;;
1250
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252
ac_cache_corrupted=: ;;
1255
if test "x$ac_old_val" != "x$ac_new_val"; then
1256
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259
echo "$as_me: former value: $ac_old_val" >&2;}
1260
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261
echo "$as_me: current value: $ac_new_val" >&2;}
1262
ac_cache_corrupted=:
1265
# Pass precious variables to config.status.
1266
if test "$ac_new_set" = set; then
1268
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270
*) ac_arg=$ac_var=$ac_new_val ;;
1272
case " $ac_configure_args " in
1273
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278
if $ac_cache_corrupted; then
1279
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283
{ (exit 1); exit 1; }; }
1287
ac_cpp='$CPP $CPPFLAGS'
1288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320
if test -f $ac_dir/install-sh; then
1322
ac_install_sh="$ac_aux_dir/install-sh -c"
1324
elif test -f $ac_dir/install.sh; then
1326
ac_install_sh="$ac_aux_dir/install.sh -c"
1328
elif test -f $ac_dir/shtool; then
1330
ac_install_sh="$ac_aux_dir/shtool install -c"
1334
if test -z "$ac_aux_dir"; then
1335
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337
{ (exit 1); exit 1; }; }
1339
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
# Make sure we can run config.sub.
1344
$ac_config_sub sun4 >/dev/null 2>&1 ||
1345
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347
{ (exit 1); exit 1; }; }
1349
echo "$as_me:$LINENO: checking build system type" >&5
1350
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351
if test "${ac_cv_build+set}" = set; then
1352
echo $ECHO_N "(cached) $ECHO_C" >&6
1354
ac_cv_build_alias=$build_alias
1355
test -z "$ac_cv_build_alias" &&
1356
ac_cv_build_alias=`$ac_config_guess`
1357
test -z "$ac_cv_build_alias" &&
1358
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360
{ (exit 1); exit 1; }; }
1361
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364
{ (exit 1); exit 1; }; }
1367
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368
echo "${ECHO_T}$ac_cv_build" >&6
1370
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375
echo "$as_me:$LINENO: checking host system type" >&5
1376
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377
if test "${ac_cv_host+set}" = set; then
1378
echo $ECHO_N "(cached) $ECHO_C" >&6
1380
ac_cv_host_alias=$host_alias
1381
test -z "$ac_cv_host_alias" &&
1382
ac_cv_host_alias=$ac_cv_build_alias
1383
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386
{ (exit 1); exit 1; }; }
1389
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390
echo "${ECHO_T}$ac_cv_host" >&6
1392
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397
echo "$as_me:$LINENO: checking target system type" >&5
1398
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1399
if test "${ac_cv_target+set}" = set; then
1400
echo $ECHO_N "(cached) $ECHO_C" >&6
1402
ac_cv_target_alias=$target_alias
1403
test "x$ac_cv_target_alias" = "x" &&
1404
ac_cv_target_alias=$ac_cv_host_alias
1405
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1406
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1407
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1408
{ (exit 1); exit 1; }; }
1411
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1412
echo "${ECHO_T}$ac_cv_target" >&6
1413
target=$ac_cv_target
1414
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419
# The aliases save the names the user supplied, while $host etc.
1420
# will get canonicalized.
1421
test -n "$target_alias" &&
1422
test "$program_prefix$program_suffix$program_transform_name" = \
1424
program_prefix=${target_alias}-
1426
am__api_version="1.4"
1427
# Find a good install program. We prefer a C program (faster),
1428
# so one script is as good as another. But avoid the broken or
1429
# incompatible versions:
1430
# SysV /etc/install, /usr/sbin/install
1431
# SunOS /usr/etc/install
1432
# IRIX /sbin/install
1434
# AmigaOS /C/install, which installs bootblocks on floppy discs
1435
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438
# OS/2's system install, which has a completely different semantic
1439
# ./install, which can be erroneously created by make from ./install.sh.
1440
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1441
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1442
if test -z "$INSTALL"; then
1443
if test "${ac_cv_path_install+set}" = set; then
1444
echo $ECHO_N "(cached) $ECHO_C" >&6
1446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450
test -z "$as_dir" && as_dir=.
1451
# Account for people who put trailing slashes in PATH elements.
1453
./ | .// | /cC/* | \
1454
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1455
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1458
# OSF1 and SCO ODT 3.0 have their own names for install.
1459
# Don't use installbsd from OSF since it installs stuff as root
1461
for ac_prog in ginstall scoinst install; do
1462
for ac_exec_ext in '' $ac_executable_extensions; do
1463
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1464
if test $ac_prog = install &&
1465
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1466
# AIX install. It has an incompatible calling convention.
1468
elif test $ac_prog = install &&
1469
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1470
# program-specific install script used by HP pwplus--don't use.
1473
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1485
if test "${ac_cv_path_install+set}" = set; then
1486
INSTALL=$ac_cv_path_install
1488
# As a last resort, use the slow shell script. We don't cache a
1489
# path for INSTALL within a source directory, because that will
1490
# break other packages using the cache if that directory is
1491
# removed, or if the path is relative.
1492
INSTALL=$ac_install_sh
1495
echo "$as_me:$LINENO: result: $INSTALL" >&5
1496
echo "${ECHO_T}$INSTALL" >&6
1498
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1499
# It thinks the first close brace ends the variable substitution.
1500
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1502
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1504
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1506
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1507
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1510
echo timestamp > conftestfile
1511
# Do `set' in a subshell so we don't clobber the current shell's
1512
# arguments. Must try -L first in case configure is actually a
1513
# symlink; some systems play weird games with the mod time of symlinks
1514
# (eg FreeBSD returns the mod time of the symlink's containing
1517
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1518
if test "$*" = "X"; then
1520
set X `ls -t $srcdir/configure conftestfile`
1522
if test "$*" != "X $srcdir/configure conftestfile" \
1523
&& test "$*" != "X conftestfile $srcdir/configure"; then
1525
# If neither matched, then we have a broken ls. This can happen
1526
# if, for instance, CONFIG_SHELL is bash and it inherits a
1527
# broken ls alias from the environment. This has actually
1528
# happened. Such a system could not be considered "sane".
1529
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1530
alias in your environment" >&5
1531
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1532
alias in your environment" >&2;}
1533
{ (exit 1); exit 1; }; }
1536
test "$2" = conftestfile
1542
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1543
Check your system clock" >&5
1544
echo "$as_me: error: newly created file is older than distributed files!
1545
Check your system clock" >&2;}
1546
{ (exit 1); exit 1; }; }
1549
echo "$as_me:$LINENO: result: yes" >&5
1550
echo "${ECHO_T}yes" >&6
1551
test "$program_prefix" != NONE &&
1552
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1553
# Use a double $ so make ignores it.
1554
test "$program_suffix" != NONE &&
1555
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1556
# Double any \ or $. echo might interpret backslashes.
1557
# By default was `s,x,x', remove it if useless.
1558
cat <<\_ACEOF >conftest.sed
1559
s/[\\$]/&&/g;s/;s,x,x,$//
1561
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1564
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1565
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1566
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1567
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1568
echo $ECHO_N "(cached) $ECHO_C" >&6
1570
cat >conftest.make <<\_ACEOF
1572
@echo 'ac_maketemp="$(MAKE)"'
1574
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1575
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1576
if test -n "$ac_maketemp"; then
1577
eval ac_cv_prog_make_${ac_make}_set=yes
1579
eval ac_cv_prog_make_${ac_make}_set=no
1583
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1584
echo "$as_me:$LINENO: result: yes" >&5
1585
echo "${ECHO_T}yes" >&6
1588
echo "$as_me:$LINENO: result: no" >&5
1589
echo "${ECHO_T}no" >&6
1590
SET_MAKE="MAKE=${MAKE-make}"
1598
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1599
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1600
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1601
{ (exit 1); exit 1; }; }
1604
cat >>confdefs.h <<_ACEOF
1605
#define PACKAGE "$PACKAGE"
1609
cat >>confdefs.h <<_ACEOF
1610
#define VERSION "$VERSION"
1615
missing_dir=`cd $ac_aux_dir && pwd`
1616
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1617
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1618
# Run test in a subshell; some versions of sh will print an error if
1619
# an executable is not found, even if stderr is redirected.
1620
# Redirect stdin to placate older versions of autoconf. Sigh.
1621
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1622
ACLOCAL=aclocal-${am__api_version}
1623
echo "$as_me:$LINENO: result: found" >&5
1624
echo "${ECHO_T}found" >&6
1626
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1627
echo "$as_me:$LINENO: result: missing" >&5
1628
echo "${ECHO_T}missing" >&6
1631
echo "$as_me:$LINENO: checking for working autoconf" >&5
1632
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1633
# Run test in a subshell; some versions of sh will print an error if
1634
# an executable is not found, even if stderr is redirected.
1635
# Redirect stdin to placate older versions of autoconf. Sigh.
1636
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1638
echo "$as_me:$LINENO: result: found" >&5
1639
echo "${ECHO_T}found" >&6
1641
AUTOCONF="$missing_dir/missing autoconf"
1642
echo "$as_me:$LINENO: result: missing" >&5
1643
echo "${ECHO_T}missing" >&6
1646
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1647
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1648
# Run test in a subshell; some versions of sh will print an error if
1649
# an executable is not found, even if stderr is redirected.
1650
# Redirect stdin to placate older versions of autoconf. Sigh.
1651
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1652
AUTOMAKE=automake-${am__api_version}
1653
echo "$as_me:$LINENO: result: found" >&5
1654
echo "${ECHO_T}found" >&6
1656
AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1657
echo "$as_me:$LINENO: result: missing" >&5
1658
echo "${ECHO_T}missing" >&6
1661
echo "$as_me:$LINENO: checking for working autoheader" >&5
1662
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1663
# Run test in a subshell; some versions of sh will print an error if
1664
# an executable is not found, even if stderr is redirected.
1665
# Redirect stdin to placate older versions of autoconf. Sigh.
1666
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1667
AUTOHEADER=autoheader
1668
echo "$as_me:$LINENO: result: found" >&5
1669
echo "${ECHO_T}found" >&6
1671
AUTOHEADER="$missing_dir/missing autoheader"
1672
echo "$as_me:$LINENO: result: missing" >&5
1673
echo "${ECHO_T}missing" >&6
1676
echo "$as_me:$LINENO: checking for working makeinfo" >&5
1677
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1678
# Run test in a subshell; some versions of sh will print an error if
1679
# an executable is not found, even if stderr is redirected.
1680
# Redirect stdin to placate older versions of autoconf. Sigh.
1681
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1683
echo "$as_me:$LINENO: result: found" >&5
1684
echo "${ECHO_T}found" >&6
1686
MAKEINFO="$missing_dir/missing makeinfo"
1687
echo "$as_me:$LINENO: result: missing" >&5
1688
echo "${ECHO_T}missing" >&6
1693
ac_config_headers="$ac_config_headers config.h"
1695
ac_config_commands="$ac_config_commands default-1"
1699
ac_cpp='$CPP $CPPFLAGS'
1700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1703
if test -n "$ac_tool_prefix"; then
1704
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1705
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1706
echo "$as_me:$LINENO: checking for $ac_word" >&5
1707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708
if test "${ac_cv_prog_CC+set}" = set; then
1709
echo $ECHO_N "(cached) $ECHO_C" >&6
1711
if test -n "$CC"; then
1712
ac_cv_prog_CC="$CC" # Let the user override the test.
1714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718
test -z "$as_dir" && as_dir=.
1719
for ac_exec_ext in '' $ac_executable_extensions; do
1720
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1722
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731
if test -n "$CC"; then
1732
echo "$as_me:$LINENO: result: $CC" >&5
1733
echo "${ECHO_T}$CC" >&6
1735
echo "$as_me:$LINENO: result: no" >&5
1736
echo "${ECHO_T}no" >&6
1740
if test -z "$ac_cv_prog_CC"; then
1742
# Extract the first word of "gcc", so it can be a program name with args.
1743
set dummy gcc; ac_word=$2
1744
echo "$as_me:$LINENO: checking for $ac_word" >&5
1745
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1747
echo $ECHO_N "(cached) $ECHO_C" >&6
1749
if test -n "$ac_ct_CC"; then
1750
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756
test -z "$as_dir" && as_dir=.
1757
for ac_exec_ext in '' $ac_executable_extensions; do
1758
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759
ac_cv_prog_ac_ct_CC="gcc"
1760
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1769
if test -n "$ac_ct_CC"; then
1770
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1771
echo "${ECHO_T}$ac_ct_CC" >&6
1773
echo "$as_me:$LINENO: result: no" >&5
1774
echo "${ECHO_T}no" >&6
1782
if test -z "$CC"; then
1783
if test -n "$ac_tool_prefix"; then
1784
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1785
set dummy ${ac_tool_prefix}cc; ac_word=$2
1786
echo "$as_me:$LINENO: checking for $ac_word" >&5
1787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788
if test "${ac_cv_prog_CC+set}" = set; then
1789
echo $ECHO_N "(cached) $ECHO_C" >&6
1791
if test -n "$CC"; then
1792
ac_cv_prog_CC="$CC" # Let the user override the test.
1794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798
test -z "$as_dir" && as_dir=.
1799
for ac_exec_ext in '' $ac_executable_extensions; do
1800
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801
ac_cv_prog_CC="${ac_tool_prefix}cc"
1802
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811
if test -n "$CC"; then
1812
echo "$as_me:$LINENO: result: $CC" >&5
1813
echo "${ECHO_T}$CC" >&6
1815
echo "$as_me:$LINENO: result: no" >&5
1816
echo "${ECHO_T}no" >&6
1820
if test -z "$ac_cv_prog_CC"; then
1822
# Extract the first word of "cc", so it can be a program name with args.
1823
set dummy cc; ac_word=$2
1824
echo "$as_me:$LINENO: checking for $ac_word" >&5
1825
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1827
echo $ECHO_N "(cached) $ECHO_C" >&6
1829
if test -n "$ac_ct_CC"; then
1830
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836
test -z "$as_dir" && as_dir=.
1837
for ac_exec_ext in '' $ac_executable_extensions; do
1838
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839
ac_cv_prog_ac_ct_CC="cc"
1840
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1849
if test -n "$ac_ct_CC"; then
1850
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1851
echo "${ECHO_T}$ac_ct_CC" >&6
1853
echo "$as_me:$LINENO: result: no" >&5
1854
echo "${ECHO_T}no" >&6
1863
if test -z "$CC"; then
1864
# Extract the first word of "cc", so it can be a program name with args.
1865
set dummy cc; ac_word=$2
1866
echo "$as_me:$LINENO: checking for $ac_word" >&5
1867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868
if test "${ac_cv_prog_CC+set}" = set; then
1869
echo $ECHO_N "(cached) $ECHO_C" >&6
1871
if test -n "$CC"; then
1872
ac_cv_prog_CC="$CC" # Let the user override the test.
1875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879
test -z "$as_dir" && as_dir=.
1880
for ac_exec_ext in '' $ac_executable_extensions; do
1881
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1883
ac_prog_rejected=yes
1887
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893
if test $ac_prog_rejected = yes; then
1894
# We found a bogon in the path, so make sure we never use it.
1895
set dummy $ac_cv_prog_CC
1897
if test $# != 0; then
1898
# We chose a different compiler from the bogus one.
1899
# However, it has the same basename, so the bogon will be chosen
1900
# first if we set CC to just the basename; use the full file name.
1902
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1908
if test -n "$CC"; then
1909
echo "$as_me:$LINENO: result: $CC" >&5
1910
echo "${ECHO_T}$CC" >&6
1912
echo "$as_me:$LINENO: result: no" >&5
1913
echo "${ECHO_T}no" >&6
1917
if test -z "$CC"; then
1918
if test -n "$ac_tool_prefix"; then
1921
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1922
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1923
echo "$as_me:$LINENO: checking for $ac_word" >&5
1924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925
if test "${ac_cv_prog_CC+set}" = set; then
1926
echo $ECHO_N "(cached) $ECHO_C" >&6
1928
if test -n "$CC"; then
1929
ac_cv_prog_CC="$CC" # Let the user override the test.
1931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935
test -z "$as_dir" && as_dir=.
1936
for ac_exec_ext in '' $ac_executable_extensions; do
1937
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1939
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948
if test -n "$CC"; then
1949
echo "$as_me:$LINENO: result: $CC" >&5
1950
echo "${ECHO_T}$CC" >&6
1952
echo "$as_me:$LINENO: result: no" >&5
1953
echo "${ECHO_T}no" >&6
1956
test -n "$CC" && break
1959
if test -z "$CC"; then
1963
# Extract the first word of "$ac_prog", so it can be a program name with args.
1964
set dummy $ac_prog; ac_word=$2
1965
echo "$as_me:$LINENO: checking for $ac_word" >&5
1966
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1968
echo $ECHO_N "(cached) $ECHO_C" >&6
1970
if test -n "$ac_ct_CC"; then
1971
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977
test -z "$as_dir" && as_dir=.
1978
for ac_exec_ext in '' $ac_executable_extensions; do
1979
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980
ac_cv_prog_ac_ct_CC="$ac_prog"
1981
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990
if test -n "$ac_ct_CC"; then
1991
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992
echo "${ECHO_T}$ac_ct_CC" >&6
1994
echo "$as_me:$LINENO: result: no" >&5
1995
echo "${ECHO_T}no" >&6
1998
test -n "$ac_ct_CC" && break
2007
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2008
See \`config.log' for more details." >&5
2009
echo "$as_me: error: no acceptable C compiler found in \$PATH
2010
See \`config.log' for more details." >&2;}
2011
{ (exit 1); exit 1; }; }
2013
# Provide some information about the compiler.
2014
echo "$as_me:$LINENO:" \
2015
"checking for C compiler version" >&5
2016
ac_compiler=`set X $ac_compile; echo $2`
2017
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2018
(eval $ac_compiler --version </dev/null >&5) 2>&5
2020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021
(exit $ac_status); }
2022
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2023
(eval $ac_compiler -v </dev/null >&5) 2>&5
2025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026
(exit $ac_status); }
2027
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2028
(eval $ac_compiler -V </dev/null >&5) 2>&5
2030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031
(exit $ac_status); }
2033
cat >conftest.$ac_ext <<_ACEOF
2036
cat confdefs.h >>conftest.$ac_ext
2037
cat >>conftest.$ac_ext <<_ACEOF
2038
/* end confdefs.h. */
2048
ac_clean_files_save=$ac_clean_files
2049
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2050
# Try to create an executable without -o first, disregard a.out.
2051
# It will help us diagnose broken compilers, and finding out an intuition
2053
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2054
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2055
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2056
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2057
(eval $ac_link_default) 2>&5
2059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060
(exit $ac_status); }; then
2061
# Find the output, starting from the most likely. This scheme is
2062
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2065
# Be careful to initialize this variable, since it used to be cached.
2066
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2068
# b.out is created by i960 compilers.
2069
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2071
test -f "$ac_file" || continue
2073
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2076
# This is the source file.
2079
# We found the default executable, but exeext='' is most
2083
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084
# FIXME: I believe we export ac_cv_exeext for Libtool,
2085
# but it would be cool to find out if it's true. Does anybody
2086
# maintain Libtool? --akim.
2094
echo "$as_me: failed program was:" >&5
2095
sed 's/^/| /' conftest.$ac_ext >&5
2097
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2098
See \`config.log' for more details." >&5
2099
echo "$as_me: error: C compiler cannot create executables
2100
See \`config.log' for more details." >&2;}
2101
{ (exit 77); exit 77; }; }
2104
ac_exeext=$ac_cv_exeext
2105
echo "$as_me:$LINENO: result: $ac_file" >&5
2106
echo "${ECHO_T}$ac_file" >&6
2108
# Check the compiler produces executables we can run. If not, either
2109
# the compiler is broken, or we cross compile.
2110
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2111
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2112
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2113
# If not cross compiling, check that we can run a simple program.
2114
if test "$cross_compiling" != yes; then
2115
if { ac_try='./$ac_file'
2116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120
(exit $ac_status); }; }; then
2123
if test "$cross_compiling" = maybe; then
2126
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2127
If you meant to cross compile, use \`--host'.
2128
See \`config.log' for more details." >&5
2129
echo "$as_me: error: cannot run C compiled programs.
2130
If you meant to cross compile, use \`--host'.
2131
See \`config.log' for more details." >&2;}
2132
{ (exit 1); exit 1; }; }
2136
echo "$as_me:$LINENO: result: yes" >&5
2137
echo "${ECHO_T}yes" >&6
2139
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2140
ac_clean_files=$ac_clean_files_save
2141
# Check the compiler produces executables we can run. If not, either
2142
# the compiler is broken, or we cross compile.
2143
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146
echo "${ECHO_T}$cross_compiling" >&6
2148
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151
(eval $ac_link) 2>&5
2153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154
(exit $ac_status); }; then
2155
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2156
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2157
# work properly (i.e., refer to `conftest.exe'), while it won't with
2159
for ac_file in conftest.exe conftest conftest.*; do
2160
test -f "$ac_file" || continue
2162
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2163
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2171
See \`config.log' for more details." >&5
2172
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2173
See \`config.log' for more details." >&2;}
2174
{ (exit 1); exit 1; }; }
2177
rm -f conftest$ac_cv_exeext
2178
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179
echo "${ECHO_T}$ac_cv_exeext" >&6
2181
rm -f conftest.$ac_ext
2182
EXEEXT=$ac_cv_exeext
2184
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2186
if test "${ac_cv_objext+set}" = set; then
2187
echo $ECHO_N "(cached) $ECHO_C" >&6
2189
cat >conftest.$ac_ext <<_ACEOF
2192
cat confdefs.h >>conftest.$ac_ext
2193
cat >>conftest.$ac_ext <<_ACEOF
2194
/* end confdefs.h. */
2204
rm -f conftest.o conftest.obj
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206
(eval $ac_compile) 2>&5
2208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209
(exit $ac_status); }; then
2210
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2213
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218
echo "$as_me: failed program was:" >&5
2219
sed 's/^/| /' conftest.$ac_ext >&5
2221
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2222
See \`config.log' for more details." >&5
2223
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2224
See \`config.log' for more details." >&2;}
2225
{ (exit 1); exit 1; }; }
2228
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2230
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2231
echo "${ECHO_T}$ac_cv_objext" >&6
2232
OBJEXT=$ac_cv_objext
2234
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2235
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2236
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2237
echo $ECHO_N "(cached) $ECHO_C" >&6
2239
cat >conftest.$ac_ext <<_ACEOF
2242
cat confdefs.h >>conftest.$ac_ext
2243
cat >>conftest.$ac_ext <<_ACEOF
2244
/* end confdefs.h. */
2257
rm -f conftest.$ac_objext
2258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259
(eval $ac_compile) 2>conftest.er1
2261
grep -v '^ *+' conftest.er1 >conftest.err
2263
cat conftest.err >&5
2264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265
(exit $ac_status); } &&
2266
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
(exit $ac_status); }; } &&
2272
{ ac_try='test -s conftest.$ac_objext'
2273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277
(exit $ac_status); }; }; then
2280
echo "$as_me: failed program was:" >&5
2281
sed 's/^/| /' conftest.$ac_ext >&5
2285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291
GCC=`test $ac_compiler_gnu = yes && echo yes`
2292
ac_test_CFLAGS=${CFLAGS+set}
2293
ac_save_CFLAGS=$CFLAGS
2295
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297
if test "${ac_cv_prog_cc_g+set}" = set; then
2298
echo $ECHO_N "(cached) $ECHO_C" >&6
2300
cat >conftest.$ac_ext <<_ACEOF
2303
cat confdefs.h >>conftest.$ac_ext
2304
cat >>conftest.$ac_ext <<_ACEOF
2305
/* end confdefs.h. */
2315
rm -f conftest.$ac_objext
2316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317
(eval $ac_compile) 2>conftest.er1
2319
grep -v '^ *+' conftest.er1 >conftest.err
2321
cat conftest.err >&5
2322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
(exit $ac_status); } &&
2324
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329
(exit $ac_status); }; } &&
2330
{ ac_try='test -s conftest.$ac_objext'
2331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335
(exit $ac_status); }; }; then
2338
echo "$as_me: failed program was:" >&5
2339
sed 's/^/| /' conftest.$ac_ext >&5
2343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2346
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2347
if test "$ac_test_CFLAGS" = set; then
2348
CFLAGS=$ac_save_CFLAGS
2349
elif test $ac_cv_prog_cc_g = yes; then
2350
if test "$GCC" = yes; then
2356
if test "$GCC" = yes; then
2362
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2363
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365
echo $ECHO_N "(cached) $ECHO_C" >&6
2367
ac_cv_prog_cc_stdc=no
2369
cat >conftest.$ac_ext <<_ACEOF
2372
cat confdefs.h >>conftest.$ac_ext
2373
cat >>conftest.$ac_ext <<_ACEOF
2374
/* end confdefs.h. */
2377
#include <sys/types.h>
2378
#include <sys/stat.h>
2379
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2380
struct buf { int x; };
2381
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2382
static char *e (p, i)
2388
static char *f (char * (*g) (char **, int), char **p, ...)
2393
s = g (p, va_arg (v,int));
2398
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2399
function prototypes and stuff, but not '\xHH' hex character constants.
2400
These don't provoke an error unfortunately, instead are silently treated
2401
as 'x'. The following induces an error, until -std1 is added to get
2402
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2403
array size at least. It's necessary to write '\x00'==0 to get something
2404
that's true only with -std1. */
2405
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2407
int test (int i, double x);
2408
struct s1 {int (*f) (int a);};
2409
struct s2 {int (*f) (double a);};
2410
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2416
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2421
# Don't try gcc -ansi; that turns off useful extensions and
2422
# breaks some systems' header files.
2423
# AIX -qlanglvl=ansi
2424
# Ultrix and OSF/1 -std1
2425
# HP-UX 10.20 and later -Ae
2426
# HP-UX older versions -Aa -D_HPUX_SOURCE
2427
# SVR4 -Xc -D__EXTENSIONS__
2428
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2430
CC="$ac_save_CC $ac_arg"
2431
rm -f conftest.$ac_objext
2432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433
(eval $ac_compile) 2>conftest.er1
2435
grep -v '^ *+' conftest.er1 >conftest.err
2437
cat conftest.err >&5
2438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439
(exit $ac_status); } &&
2440
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445
(exit $ac_status); }; } &&
2446
{ ac_try='test -s conftest.$ac_objext'
2447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451
(exit $ac_status); }; }; then
2452
ac_cv_prog_cc_stdc=$ac_arg
2455
echo "$as_me: failed program was:" >&5
2456
sed 's/^/| /' conftest.$ac_ext >&5
2459
rm -f conftest.err conftest.$ac_objext
2461
rm -f conftest.$ac_ext conftest.$ac_objext
2466
case "x$ac_cv_prog_cc_stdc" in
2468
echo "$as_me:$LINENO: result: none needed" >&5
2469
echo "${ECHO_T}none needed" >&6 ;;
2471
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2472
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2473
CC="$CC $ac_cv_prog_cc_stdc" ;;
2476
# Some people use a C++ compiler to compile C. Since we use `exit',
2477
# in C++ we need to declare it. In case someone uses the same compiler
2478
# for both compiling C and C++ we need to have the C++ compiler decide
2479
# the declaration of exit, since it's the most demanding environment.
2480
cat >conftest.$ac_ext <<_ACEOF
2485
rm -f conftest.$ac_objext
2486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487
(eval $ac_compile) 2>conftest.er1
2489
grep -v '^ *+' conftest.er1 >conftest.err
2491
cat conftest.err >&5
2492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
(exit $ac_status); } &&
2494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
(exit $ac_status); }; } &&
2500
{ ac_try='test -s conftest.$ac_objext'
2501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505
(exit $ac_status); }; }; then
2506
for ac_declaration in \
2508
'extern "C" void std::exit (int) throw (); using std::exit;' \
2509
'extern "C" void std::exit (int); using std::exit;' \
2510
'extern "C" void exit (int) throw ();' \
2511
'extern "C" void exit (int);' \
2514
cat >conftest.$ac_ext <<_ACEOF
2517
cat confdefs.h >>conftest.$ac_ext
2518
cat >>conftest.$ac_ext <<_ACEOF
2519
/* end confdefs.h. */
2530
rm -f conftest.$ac_objext
2531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532
(eval $ac_compile) 2>conftest.er1
2534
grep -v '^ *+' conftest.er1 >conftest.err
2536
cat conftest.err >&5
2537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538
(exit $ac_status); } &&
2539
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544
(exit $ac_status); }; } &&
2545
{ ac_try='test -s conftest.$ac_objext'
2546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550
(exit $ac_status); }; }; then
2553
echo "$as_me: failed program was:" >&5
2554
sed 's/^/| /' conftest.$ac_ext >&5
2558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2559
cat >conftest.$ac_ext <<_ACEOF
2562
cat confdefs.h >>conftest.$ac_ext
2563
cat >>conftest.$ac_ext <<_ACEOF
2564
/* end confdefs.h. */
2574
rm -f conftest.$ac_objext
2575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576
(eval $ac_compile) 2>conftest.er1
2578
grep -v '^ *+' conftest.er1 >conftest.err
2580
cat conftest.err >&5
2581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582
(exit $ac_status); } &&
2583
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588
(exit $ac_status); }; } &&
2589
{ ac_try='test -s conftest.$ac_objext'
2590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594
(exit $ac_status); }; }; then
2597
echo "$as_me: failed program was:" >&5
2598
sed 's/^/| /' conftest.$ac_ext >&5
2601
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604
if test -n "$ac_declaration"; then
2605
echo '#ifdef __cplusplus' >>confdefs.h
2606
echo $ac_declaration >>confdefs.h
2607
echo '#endif' >>confdefs.h
2611
echo "$as_me: failed program was:" >&5
2612
sed 's/^/| /' conftest.$ac_ext >&5
2615
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617
ac_cpp='$CPP $CPPFLAGS'
2618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
# Find a good install program. We prefer a C program (faster),
2623
# so one script is as good as another. But avoid the broken or
2624
# incompatible versions:
2625
# SysV /etc/install, /usr/sbin/install
2626
# SunOS /usr/etc/install
2627
# IRIX /sbin/install
2629
# AmigaOS /C/install, which installs bootblocks on floppy discs
2630
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633
# OS/2's system install, which has a completely different semantic
2634
# ./install, which can be erroneously created by make from ./install.sh.
2635
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2636
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2637
if test -z "$INSTALL"; then
2638
if test "${ac_cv_path_install+set}" = set; then
2639
echo $ECHO_N "(cached) $ECHO_C" >&6
2641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645
test -z "$as_dir" && as_dir=.
2646
# Account for people who put trailing slashes in PATH elements.
2648
./ | .// | /cC/* | \
2649
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2650
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2653
# OSF1 and SCO ODT 3.0 have their own names for install.
2654
# Don't use installbsd from OSF since it installs stuff as root
2656
for ac_prog in ginstall scoinst install; do
2657
for ac_exec_ext in '' $ac_executable_extensions; do
2658
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2659
if test $ac_prog = install &&
2660
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661
# AIX install. It has an incompatible calling convention.
2663
elif test $ac_prog = install &&
2664
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665
# program-specific install script used by HP pwplus--don't use.
2668
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2680
if test "${ac_cv_path_install+set}" = set; then
2681
INSTALL=$ac_cv_path_install
2683
# As a last resort, use the slow shell script. We don't cache a
2684
# path for INSTALL within a source directory, because that will
2685
# break other packages using the cache if that directory is
2686
# removed, or if the path is relative.
2687
INSTALL=$ac_install_sh
2690
echo "$as_me:$LINENO: result: $INSTALL" >&5
2691
echo "${ECHO_T}$INSTALL" >&6
2693
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694
# It thinks the first close brace ends the variable substitution.
2695
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2697
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2699
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
# Check whether --with-libevent or --without-libevent was given.
2704
if test "${with_libevent+set}" = set; then
2705
withval="$with_libevent"
2708
if test "$with_libevent" != "no"; then
2709
CFLAGS="$CFLAGS -I$with_libevent/include"
2710
LDFLAGS="$LDFLAGS -L$with_libevent/lib"
2713
LIBEVENT_URL=http://www.monkey.org/~provos/libevent/
2716
echo "$as_me:$LINENO: checking for event_set in -levent" >&5
2717
echo $ECHO_N "checking for event_set in -levent... $ECHO_C" >&6
2718
if test "${ac_cv_lib_event_event_set+set}" = set; then
2719
echo $ECHO_N "(cached) $ECHO_C" >&6
2721
ac_check_lib_save_LIBS=$LIBS
2722
LIBS="-levent $LIBS"
2723
cat >conftest.$ac_ext <<_ACEOF
2726
cat confdefs.h >>conftest.$ac_ext
2727
cat >>conftest.$ac_ext <<_ACEOF
2728
/* end confdefs.h. */
2730
/* Override any gcc2 internal prototype to avoid an error. */
2734
/* We use char because int might match the return type of a gcc2
2735
builtin and then its argument prototype would still apply. */
2745
rm -f conftest.$ac_objext conftest$ac_exeext
2746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2747
(eval $ac_link) 2>conftest.er1
2749
grep -v '^ *+' conftest.er1 >conftest.err
2751
cat conftest.err >&5
2752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753
(exit $ac_status); } &&
2754
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759
(exit $ac_status); }; } &&
2760
{ ac_try='test -s conftest$ac_exeext'
2761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
(exit $ac_status); }; }; then
2766
ac_cv_lib_event_event_set=yes
2768
echo "$as_me: failed program was:" >&5
2769
sed 's/^/| /' conftest.$ac_ext >&5
2771
ac_cv_lib_event_event_set=no
2773
rm -f conftest.err conftest.$ac_objext \
2774
conftest$ac_exeext conftest.$ac_ext
2775
LIBS=$ac_check_lib_save_LIBS
2777
echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_set" >&5
2778
echo "${ECHO_T}$ac_cv_lib_event_event_set" >&6
2779
if test $ac_cv_lib_event_event_set = yes; then
2780
cat >>confdefs.h <<_ACEOF
2781
#define HAVE_LIBEVENT 1
2784
LIBS="-levent $LIBS"
2787
{ { echo "$as_me:$LINENO: error: libevent is required. You can get it from $LIBEVENT_URL" >&5
2788
echo "$as_me: error: libevent is required. You can get it from $LIBEVENT_URL" >&2;}
2789
{ (exit 1); exit 1; }; }
2794
ac_cpp='$CPP $CPPFLAGS'
2795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2799
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2800
# On Suns, sometimes $CPP names a directory.
2801
if test -n "$CPP" && test -d "$CPP"; then
2804
if test -z "$CPP"; then
2805
if test "${ac_cv_prog_CPP+set}" = set; then
2806
echo $ECHO_N "(cached) $ECHO_C" >&6
2808
# Double quotes because CPP needs to be expanded
2809
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2812
for ac_c_preproc_warn_flag in '' yes
2814
# Use a header file that comes with gcc, so configuring glibc
2815
# with a fresh cross-compiler works.
2816
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2817
# <limits.h> exists even on freestanding compilers.
2818
# On the NeXT, cc -E runs the code through the compiler's parser,
2819
# not just through cpp. "Syntax error" is here to catch this case.
2820
cat >conftest.$ac_ext <<_ACEOF
2823
cat confdefs.h >>conftest.$ac_ext
2824
cat >>conftest.$ac_ext <<_ACEOF
2825
/* end confdefs.h. */
2827
# include <limits.h>
2829
# include <assert.h>
2833
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2834
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2836
grep -v '^ *+' conftest.er1 >conftest.err
2838
cat conftest.err >&5
2839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840
(exit $ac_status); } >/dev/null; then
2841
if test -s conftest.err; then
2842
ac_cpp_err=$ac_c_preproc_warn_flag
2843
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2850
if test -z "$ac_cpp_err"; then
2853
echo "$as_me: failed program was:" >&5
2854
sed 's/^/| /' conftest.$ac_ext >&5
2856
# Broken: fails on valid input.
2859
rm -f conftest.err conftest.$ac_ext
2861
# OK, works on sane cases. Now check whether non-existent headers
2862
# can be detected and how.
2863
cat >conftest.$ac_ext <<_ACEOF
2866
cat confdefs.h >>conftest.$ac_ext
2867
cat >>conftest.$ac_ext <<_ACEOF
2868
/* end confdefs.h. */
2869
#include <ac_nonexistent.h>
2871
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2872
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2874
grep -v '^ *+' conftest.er1 >conftest.err
2876
cat conftest.err >&5
2877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
(exit $ac_status); } >/dev/null; then
2879
if test -s conftest.err; then
2880
ac_cpp_err=$ac_c_preproc_warn_flag
2881
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2888
if test -z "$ac_cpp_err"; then
2889
# Broken: success on invalid input.
2892
echo "$as_me: failed program was:" >&5
2893
sed 's/^/| /' conftest.$ac_ext >&5
2895
# Passes both tests.
2899
rm -f conftest.err conftest.$ac_ext
2902
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2903
rm -f conftest.err conftest.$ac_ext
2904
if $ac_preproc_ok; then
2916
echo "$as_me:$LINENO: result: $CPP" >&5
2917
echo "${ECHO_T}$CPP" >&6
2919
for ac_c_preproc_warn_flag in '' yes
2921
# Use a header file that comes with gcc, so configuring glibc
2922
# with a fresh cross-compiler works.
2923
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2924
# <limits.h> exists even on freestanding compilers.
2925
# On the NeXT, cc -E runs the code through the compiler's parser,
2926
# not just through cpp. "Syntax error" is here to catch this case.
2927
cat >conftest.$ac_ext <<_ACEOF
2930
cat confdefs.h >>conftest.$ac_ext
2931
cat >>conftest.$ac_ext <<_ACEOF
2932
/* end confdefs.h. */
2934
# include <limits.h>
2936
# include <assert.h>
2940
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2943
grep -v '^ *+' conftest.er1 >conftest.err
2945
cat conftest.err >&5
2946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947
(exit $ac_status); } >/dev/null; then
2948
if test -s conftest.err; then
2949
ac_cpp_err=$ac_c_preproc_warn_flag
2950
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2957
if test -z "$ac_cpp_err"; then
2960
echo "$as_me: failed program was:" >&5
2961
sed 's/^/| /' conftest.$ac_ext >&5
2963
# Broken: fails on valid input.
2966
rm -f conftest.err conftest.$ac_ext
2968
# OK, works on sane cases. Now check whether non-existent headers
2969
# can be detected and how.
2970
cat >conftest.$ac_ext <<_ACEOF
2973
cat confdefs.h >>conftest.$ac_ext
2974
cat >>conftest.$ac_ext <<_ACEOF
2975
/* end confdefs.h. */
2976
#include <ac_nonexistent.h>
2978
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2979
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2981
grep -v '^ *+' conftest.er1 >conftest.err
2983
cat conftest.err >&5
2984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985
(exit $ac_status); } >/dev/null; then
2986
if test -s conftest.err; then
2987
ac_cpp_err=$ac_c_preproc_warn_flag
2988
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2995
if test -z "$ac_cpp_err"; then
2996
# Broken: success on invalid input.
2999
echo "$as_me: failed program was:" >&5
3000
sed 's/^/| /' conftest.$ac_ext >&5
3002
# Passes both tests.
3006
rm -f conftest.err conftest.$ac_ext
3009
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3010
rm -f conftest.err conftest.$ac_ext
3011
if $ac_preproc_ok; then
3014
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3015
See \`config.log' for more details." >&5
3016
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3017
See \`config.log' for more details." >&2;}
3018
{ (exit 1); exit 1; }; }
3022
ac_cpp='$CPP $CPPFLAGS'
3023
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028
echo "$as_me:$LINENO: checking for egrep" >&5
3029
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3030
if test "${ac_cv_prog_egrep+set}" = set; then
3031
echo $ECHO_N "(cached) $ECHO_C" >&6
3033
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3034
then ac_cv_prog_egrep='grep -E'
3035
else ac_cv_prog_egrep='egrep'
3038
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3039
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3040
EGREP=$ac_cv_prog_egrep
3043
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3044
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3045
if test "${ac_cv_header_stdc+set}" = set; then
3046
echo $ECHO_N "(cached) $ECHO_C" >&6
3048
cat >conftest.$ac_ext <<_ACEOF
3051
cat confdefs.h >>conftest.$ac_ext
3052
cat >>conftest.$ac_ext <<_ACEOF
3053
/* end confdefs.h. */
3067
rm -f conftest.$ac_objext
3068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069
(eval $ac_compile) 2>conftest.er1
3071
grep -v '^ *+' conftest.er1 >conftest.err
3073
cat conftest.err >&5
3074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075
(exit $ac_status); } &&
3076
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3077
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081
(exit $ac_status); }; } &&
3082
{ ac_try='test -s conftest.$ac_objext'
3083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087
(exit $ac_status); }; }; then
3088
ac_cv_header_stdc=yes
3090
echo "$as_me: failed program was:" >&5
3091
sed 's/^/| /' conftest.$ac_ext >&5
3093
ac_cv_header_stdc=no
3095
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097
if test $ac_cv_header_stdc = yes; then
3098
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099
cat >conftest.$ac_ext <<_ACEOF
3102
cat confdefs.h >>conftest.$ac_ext
3103
cat >>conftest.$ac_ext <<_ACEOF
3104
/* end confdefs.h. */
3108
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109
$EGREP "memchr" >/dev/null 2>&1; then
3112
ac_cv_header_stdc=no
3118
if test $ac_cv_header_stdc = yes; then
3119
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120
cat >conftest.$ac_ext <<_ACEOF
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h. */
3129
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130
$EGREP "free" >/dev/null 2>&1; then
3133
ac_cv_header_stdc=no
3139
if test $ac_cv_header_stdc = yes; then
3140
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3141
if test "$cross_compiling" = yes; then
3144
cat >conftest.$ac_ext <<_ACEOF
3147
cat confdefs.h >>conftest.$ac_ext
3148
cat >>conftest.$ac_ext <<_ACEOF
3149
/* end confdefs.h. */
3151
#if ((' ' & 0x0FF) == 0x020)
3152
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3155
# define ISLOWER(c) \
3156
(('a' <= (c) && (c) <= 'i') \
3157
|| ('j' <= (c) && (c) <= 'r') \
3158
|| ('s' <= (c) && (c) <= 'z'))
3159
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3162
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3167
for (i = 0; i < 256; i++)
3168
if (XOR (islower (i), ISLOWER (i))
3169
|| toupper (i) != TOUPPER (i))
3174
rm -f conftest$ac_exeext
3175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176
(eval $ac_link) 2>&5
3178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184
(exit $ac_status); }; }; then
3187
echo "$as_me: program exited with status $ac_status" >&5
3188
echo "$as_me: failed program was:" >&5
3189
sed 's/^/| /' conftest.$ac_ext >&5
3192
ac_cv_header_stdc=no
3194
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3198
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200
if test $ac_cv_header_stdc = yes; then
3202
cat >>confdefs.h <<\_ACEOF
3203
#define STDC_HEADERS 1
3208
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3218
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3219
inttypes.h stdint.h unistd.h
3221
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3222
echo "$as_me:$LINENO: checking for $ac_header" >&5
3223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3225
echo $ECHO_N "(cached) $ECHO_C" >&6
3227
cat >conftest.$ac_ext <<_ACEOF
3230
cat confdefs.h >>conftest.$ac_ext
3231
cat >>conftest.$ac_ext <<_ACEOF
3232
/* end confdefs.h. */
3233
$ac_includes_default
3235
#include <$ac_header>
3237
rm -f conftest.$ac_objext
3238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239
(eval $ac_compile) 2>conftest.er1
3241
grep -v '^ *+' conftest.er1 >conftest.err
3243
cat conftest.err >&5
3244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245
(exit $ac_status); } &&
3246
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251
(exit $ac_status); }; } &&
3252
{ ac_try='test -s conftest.$ac_objext'
3253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257
(exit $ac_status); }; }; then
3258
eval "$as_ac_Header=yes"
3260
echo "$as_me: failed program was:" >&5
3261
sed 's/^/| /' conftest.$ac_ext >&5
3263
eval "$as_ac_Header=no"
3265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3268
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3269
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3270
cat >>confdefs.h <<_ACEOF
3271
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3279
if test "${ac_cv_header_malloc_h+set}" = set; then
3280
echo "$as_me:$LINENO: checking for malloc.h" >&5
3281
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
3282
if test "${ac_cv_header_malloc_h+set}" = set; then
3283
echo $ECHO_N "(cached) $ECHO_C" >&6
3285
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
3286
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
3288
# Is the header compilable?
3289
echo "$as_me:$LINENO: checking malloc.h usability" >&5
3290
echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
3291
cat >conftest.$ac_ext <<_ACEOF
3294
cat confdefs.h >>conftest.$ac_ext
3295
cat >>conftest.$ac_ext <<_ACEOF
3296
/* end confdefs.h. */
3297
$ac_includes_default
3300
rm -f conftest.$ac_objext
3301
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302
(eval $ac_compile) 2>conftest.er1
3304
grep -v '^ *+' conftest.er1 >conftest.err
3306
cat conftest.err >&5
3307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308
(exit $ac_status); } &&
3309
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314
(exit $ac_status); }; } &&
3315
{ ac_try='test -s conftest.$ac_objext'
3316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320
(exit $ac_status); }; }; then
3321
ac_header_compiler=yes
3323
echo "$as_me: failed program was:" >&5
3324
sed 's/^/| /' conftest.$ac_ext >&5
3326
ac_header_compiler=no
3328
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3330
echo "${ECHO_T}$ac_header_compiler" >&6
3332
# Is the header present?
3333
echo "$as_me:$LINENO: checking malloc.h presence" >&5
3334
echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
3335
cat >conftest.$ac_ext <<_ACEOF
3338
cat confdefs.h >>conftest.$ac_ext
3339
cat >>conftest.$ac_ext <<_ACEOF
3340
/* end confdefs.h. */
3343
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3346
grep -v '^ *+' conftest.er1 >conftest.err
3348
cat conftest.err >&5
3349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350
(exit $ac_status); } >/dev/null; then
3351
if test -s conftest.err; then
3352
ac_cpp_err=$ac_c_preproc_warn_flag
3353
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360
if test -z "$ac_cpp_err"; then
3361
ac_header_preproc=yes
3363
echo "$as_me: failed program was:" >&5
3364
sed 's/^/| /' conftest.$ac_ext >&5
3366
ac_header_preproc=no
3368
rm -f conftest.err conftest.$ac_ext
3369
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3370
echo "${ECHO_T}$ac_header_preproc" >&6
3372
# So? What about this header?
3373
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3375
{ echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
3376
echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3377
{ echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
3378
echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
3379
ac_header_preproc=yes
3382
{ echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
3383
echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
3384
{ echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
3385
echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
3386
{ echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
3387
echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
3388
{ echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
3389
echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
3390
{ echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
3391
echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
3392
{ echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
3393
echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
3396
## ----------------------------- ##
3397
## Report this to brad@danga.com ##
3398
## ----------------------------- ##
3401
sed "s/^/$as_me: WARNING: /" >&2
3404
echo "$as_me:$LINENO: checking for malloc.h" >&5
3405
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
3406
if test "${ac_cv_header_malloc_h+set}" = set; then
3407
echo $ECHO_N "(cached) $ECHO_C" >&6
3409
ac_cv_header_malloc_h=$ac_header_preproc
3411
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
3412
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
3415
if test $ac_cv_header_malloc_h = yes; then
3417
cat >>confdefs.h <<\_ACEOF
3418
#define HAVE_MALLOC_H
3424
echo "$as_me:$LINENO: checking for struct mallinfo.arena" >&5
3425
echo $ECHO_N "checking for struct mallinfo.arena... $ECHO_C" >&6
3426
if test "${ac_cv_member_struct_mallinfo_arena+set}" = set; then
3427
echo $ECHO_N "(cached) $ECHO_C" >&6
3429
cat >conftest.$ac_ext <<_ACEOF
3432
cat confdefs.h >>conftest.$ac_ext
3433
cat >>conftest.$ac_ext <<_ACEOF
3434
/* end confdefs.h. */
3436
# include <malloc.h>
3443
static struct mallinfo ac_aggr;
3450
rm -f conftest.$ac_objext
3451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452
(eval $ac_compile) 2>conftest.er1
3454
grep -v '^ *+' conftest.er1 >conftest.err
3456
cat conftest.err >&5
3457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
(exit $ac_status); } &&
3459
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
(exit $ac_status); }; } &&
3465
{ ac_try='test -s conftest.$ac_objext'
3466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470
(exit $ac_status); }; }; then
3471
ac_cv_member_struct_mallinfo_arena=yes
3473
echo "$as_me: failed program was:" >&5
3474
sed 's/^/| /' conftest.$ac_ext >&5
3476
cat >conftest.$ac_ext <<_ACEOF
3479
cat confdefs.h >>conftest.$ac_ext
3480
cat >>conftest.$ac_ext <<_ACEOF
3481
/* end confdefs.h. */
3483
# include <malloc.h>
3490
static struct mallinfo ac_aggr;
3491
if (sizeof ac_aggr.arena)
3497
rm -f conftest.$ac_objext
3498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499
(eval $ac_compile) 2>conftest.er1
3501
grep -v '^ *+' conftest.er1 >conftest.err
3503
cat conftest.err >&5
3504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505
(exit $ac_status); } &&
3506
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511
(exit $ac_status); }; } &&
3512
{ ac_try='test -s conftest.$ac_objext'
3513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517
(exit $ac_status); }; }; then
3518
ac_cv_member_struct_mallinfo_arena=yes
3520
echo "$as_me: failed program was:" >&5
3521
sed 's/^/| /' conftest.$ac_ext >&5
3523
ac_cv_member_struct_mallinfo_arena=no
3525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529
echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_arena" >&5
3530
echo "${ECHO_T}$ac_cv_member_struct_mallinfo_arena" >&6
3531
if test $ac_cv_member_struct_mallinfo_arena = yes; then
3534
cat >>confdefs.h <<\_ACEOF
3535
#define HAVE_STRUCT_MALLINFO
3544
echo "$as_me:$LINENO: checking for socklen_t" >&5
3545
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3546
if test "${ac_cv_c_socklen_t+set}" = set; then
3547
echo $ECHO_N "(cached) $ECHO_C" >&6
3550
cat >conftest.$ac_ext <<_ACEOF
3553
cat confdefs.h >>conftest.$ac_ext
3554
cat >>conftest.$ac_ext <<_ACEOF
3555
/* end confdefs.h. */
3557
#include <sys/types.h>
3558
#include <sys/socket.h>
3570
rm -f conftest.$ac_objext
3571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572
(eval $ac_compile) 2>conftest.er1
3574
grep -v '^ *+' conftest.er1 >conftest.err
3576
cat conftest.err >&5
3577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
(exit $ac_status); } &&
3579
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584
(exit $ac_status); }; } &&
3585
{ ac_try='test -s conftest.$ac_objext'
3586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590
(exit $ac_status); }; }; then
3592
ac_cv_c_socklen_t=yes
3595
echo "$as_me: failed program was:" >&5
3596
sed 's/^/| /' conftest.$ac_ext >&5
3599
ac_cv_c_socklen_t=no
3602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605
echo "$as_me:$LINENO: result: $ac_cv_c_socklen_t" >&5
3606
echo "${ECHO_T}$ac_cv_c_socklen_t" >&6
3607
if test $ac_cv_c_socklen_t = no; then
3609
cat >>confdefs.h <<\_ACEOF
3610
#define socklen_t int
3617
for ac_func in mlockall
3619
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3620
echo "$as_me:$LINENO: checking for $ac_func" >&5
3621
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3622
if eval "test \"\${$as_ac_var+set}\" = set"; then
3623
echo $ECHO_N "(cached) $ECHO_C" >&6
3625
cat >conftest.$ac_ext <<_ACEOF
3628
cat confdefs.h >>conftest.$ac_ext
3629
cat >>conftest.$ac_ext <<_ACEOF
3630
/* end confdefs.h. */
3631
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3632
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3633
#define $ac_func innocuous_$ac_func
3635
/* System header to define __stub macros and hopefully few prototypes,
3636
which can conflict with char $ac_func (); below.
3637
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3638
<limits.h> exists even on freestanding compilers. */
3641
# include <limits.h>
3643
# include <assert.h>
3648
/* Override any gcc2 internal prototype to avoid an error. */
3653
/* We use char because int might match the return type of a gcc2
3654
builtin and then its argument prototype would still apply. */
3656
/* The GNU C library defines this for functions which it implements
3657
to always fail with ENOSYS. Some functions are actually named
3658
something starting with __ and the normal name is an alias. */
3659
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3662
char (*f) () = $ac_func;
3671
return f != $ac_func;
3676
rm -f conftest.$ac_objext conftest$ac_exeext
3677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678
(eval $ac_link) 2>conftest.er1
3680
grep -v '^ *+' conftest.er1 >conftest.err
3682
cat conftest.err >&5
3683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684
(exit $ac_status); } &&
3685
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
(exit $ac_status); }; } &&
3691
{ ac_try='test -s conftest$ac_exeext'
3692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696
(exit $ac_status); }; }; then
3697
eval "$as_ac_var=yes"
3699
echo "$as_me: failed program was:" >&5
3700
sed 's/^/| /' conftest.$ac_ext >&5
3702
eval "$as_ac_var=no"
3704
rm -f conftest.err conftest.$ac_objext \
3705
conftest$ac_exeext conftest.$ac_ext
3707
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3708
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3709
if test `eval echo '${'$as_ac_var'}'` = yes; then
3710
cat >>confdefs.h <<_ACEOF
3711
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3718
ac_config_files="$ac_config_files Makefile"
3720
cat >confcache <<\_ACEOF
3721
# This file is a shell script that caches the results of configure
3722
# tests run on this system so they can be shared between configure
3723
# scripts and configure runs, see configure's option --config-cache.
3724
# It is not useful on other systems. If it contains results you don't
3725
# want to keep, you may remove or edit it.
3727
# config.status only pays attention to the cache file if you give it
3728
# the --recheck option to rerun configure.
3730
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3731
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3736
# The following way of writing the cache mishandles newlines in values,
3737
# but we know of no workaround that is simple, portable, and efficient.
3738
# So, don't put newlines in cache variables' values.
3739
# Ultrix sh set writes to stderr and can't be redirected directly,
3740
# and sets the high bit in the cache file unless we assign to the vars.
3743
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3745
# `set' does not quote correctly, so add quotes (double-quote
3746
# substitution turns \\\\ into \\, and sed turns \\ into \).
3749
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3752
# `set' quotes correctly as required by POSIX, so do not add quotes.
3754
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3761
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3763
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3765
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3766
if test -w $cache_file; then
3767
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3768
cat confcache >$cache_file
3770
echo "not updating unwritable cache $cache_file"
3775
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3776
# Let make expand exec_prefix.
3777
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3779
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3780
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3781
# trailing colons and then remove the whole line if VPATH becomes empty
3782
# (actually we leave an empty line to preserve line numbers).
3783
if test "x$srcdir" = x.; then
3784
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3785
s/:*\$(srcdir):*/:/;
3786
s/:*\${srcdir}:*/:/;
3788
s/^\([^=]*=[ ]*\):*/\1/;
3794
DEFS=-DHAVE_CONFIG_H
3798
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3799
# 1. Remove the extension, and $U if already installed.
3800
ac_i=`echo "$ac_i" |
3801
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3803
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3804
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3808
LTLIBOBJS=$ac_ltlibobjs
3812
: ${CONFIG_STATUS=./config.status}
3813
ac_clean_files_save=$ac_clean_files
3814
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3815
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3816
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3817
cat >$CONFIG_STATUS <<_ACEOF
3819
# Generated by $as_me.
3820
# Run this file to recreate the current configuration.
3821
# Compiler output produced by configure, useful for debugging
3822
# configure, is in config.log if it exists.
3827
SHELL=\${CONFIG_SHELL-$SHELL}
3830
cat >>$CONFIG_STATUS <<\_ACEOF
3831
## --------------------- ##
3832
## M4sh Initialization. ##
3833
## --------------------- ##
3835
# Be Bourne compatible
3836
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3839
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3840
# is contrary to our usage. Disable this feature.
3841
alias -g '${1+"$@"}'='"$@"'
3842
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3845
DUALCASE=1; export DUALCASE # for MKS sh
3847
# Support unset when possible.
3848
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3855
# Work around bugs in pre-3.0 UWIN ksh.
3856
$as_unset ENV MAIL MAILPATH
3863
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3864
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3865
LC_TELEPHONE LC_TIME
3867
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3868
eval $as_var=C; export $as_var
3874
# Required to use basename.
3875
if expr a : '\(a\)' >/dev/null 2>&1; then
3881
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3882
as_basename=basename
3888
# Name of the executable.
3889
as_me=`$as_basename "$0" ||
3890
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3891
X"$0" : 'X\(//\)$' \| \
3892
X"$0" : 'X\(/\)$' \| \
3893
. : '\(.\)' 2>/dev/null ||
3895
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3896
/^X\/\(\/\/\)$/{ s//\1/; q; }
3897
/^X\/\(\/\).*/{ s//\1/; q; }
3901
# PATH needs CR, and LINENO needs CR and PATH.
3902
# Avoid depending upon Character Ranges.
3903
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3904
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3905
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3906
as_cr_digits='0123456789'
3907
as_cr_alnum=$as_cr_Letters$as_cr_digits
3909
# The user is always right.
3910
if test "${PATH_SEPARATOR+set}" != set; then
3911
echo "#! /bin/sh" >conf$$.sh
3912
echo "exit 0" >>conf$$.sh
3914
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3925
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3926
test "x$as_lineno_1" != "x$as_lineno_2" &&
3927
test "x$as_lineno_3" = "x$as_lineno_2" || {
3928
# Find who we are. Look in the path if we contain no path at all
3931
*[\\/]* ) as_myself=$0 ;;
3932
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936
test -z "$as_dir" && as_dir=.
3937
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3942
# We did not find ourselves, most probably we were run as `sh COMMAND'
3943
# in which case we are not to be found in the path.
3944
if test "x$as_myself" = x; then
3947
if test ! -f "$as_myself"; then
3948
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3949
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3950
{ (exit 1); exit 1; }; }
3952
case $CONFIG_SHELL in
3954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3958
test -z "$as_dir" && as_dir=.
3959
for as_base in sh bash ksh sh5; do
3962
if ("$as_dir/$as_base" -c '
3965
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3966
test "x$as_lineno_1" != "x$as_lineno_2" &&
3967
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3968
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3969
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3970
CONFIG_SHELL=$as_dir/$as_base
3972
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3980
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3981
# uniformly replaced by the line number. The first 'sed' inserts a
3982
# line-number line before each line; the second 'sed' does the real
3983
# work. The second script uses 'N' to pair each line-number line
3984
# with the numbered line, and appends trailing '-' during
3985
# substitution so that $LINENO is not a special case at line end.
3986
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3987
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3988
sed '=' <$as_myself |
3993
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3996
s,^['$as_cr_digits']*\n,,
3998
chmod +x $as_me.lineno ||
3999
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4000
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4001
{ (exit 1); exit 1; }; }
4003
# Don't try to exec as it changes $[0], causing all sort of problems
4004
# (the dirname of $[0] is not the place where we might find the
4005
# original and so on. Autoconf is especially sensible to this).
4007
# Exit status is that of the last command.
4012
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4013
*c*,-n*) ECHO_N= ECHO_C='
4015
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4016
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4019
if expr a : '\(a\)' >/dev/null 2>&1; then
4025
rm -f conf$$ conf$$.exe conf$$.file
4027
if ln -s conf$$.file conf$$ 2>/dev/null; then
4028
# We could just check for DJGPP; but this test a) works b) is more generic
4029
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4030
if test -f conf$$.exe; then
4031
# Don't use ln at all; we don't have any links
4036
elif ln conf$$.file conf$$ 2>/dev/null; then
4041
rm -f conf$$ conf$$.exe conf$$.file
4043
if mkdir -p . 2>/dev/null; then
4046
test -d ./-p && rmdir ./-p
4050
as_executable_p="test -f"
4052
# Sed expression to map a string onto a valid CPP name.
4053
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4055
# Sed expression to map a string onto a valid variable name.
4056
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4060
# We need space, tab and new line, in precisely that order.
4070
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4071
# report actual input values of CONFIG_FILES etc. instead of their
4072
# values after options handling. Logging --version etc. is OK.
4076
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4077
## Running $as_me. ##
4082
This file was extended by memcached $as_me 1.1.11, which was
4083
generated by GNU Autoconf 2.59. Invocation command line was
4085
CONFIG_FILES = $CONFIG_FILES
4086
CONFIG_HEADERS = $CONFIG_HEADERS
4087
CONFIG_LINKS = $CONFIG_LINKS
4088
CONFIG_COMMANDS = $CONFIG_COMMANDS
4092
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4096
# Files that config.status was made for.
4097
if test -n "$ac_config_files"; then
4098
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4101
if test -n "$ac_config_headers"; then
4102
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4105
if test -n "$ac_config_links"; then
4106
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4109
if test -n "$ac_config_commands"; then
4110
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4113
cat >>$CONFIG_STATUS <<\_ACEOF
4116
\`$as_me' instantiates files from templates according to the
4117
current configuration.
4119
Usage: $0 [OPTIONS] [FILE]...
4121
-h, --help print this help, then exit
4122
-V, --version print version number, then exit
4123
-q, --quiet do not print progress messages
4124
-d, --debug don't remove temporary files
4125
--recheck update $as_me by reconfiguring in the same conditions
4126
--file=FILE[:TEMPLATE]
4127
instantiate the configuration file FILE
4128
--header=FILE[:TEMPLATE]
4129
instantiate the configuration header FILE
4131
Configuration files:
4134
Configuration headers:
4137
Configuration commands:
4140
Report bugs to <bug-autoconf@gnu.org>."
4143
cat >>$CONFIG_STATUS <<_ACEOF
4145
memcached config.status 1.1.11
4146
configured by $0, generated by GNU Autoconf 2.59,
4147
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4149
Copyright (C) 2003 Free Software Foundation, Inc.
4150
This config.status script is free software; the Free Software Foundation
4151
gives unlimited permission to copy, distribute and modify it."
4156
cat >>$CONFIG_STATUS <<\_ACEOF
4157
# If no file are specified by the user, then we need to provide default
4158
# value. By we need to know if files were specified by the user.
4164
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4165
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4173
*) # This is not an option, so the user has probably given explicit
4176
ac_need_defaults=false;;
4180
# Handling of the options.
4182
cat >>$CONFIG_STATUS <<\_ACEOF
4183
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4185
--version | --vers* | -V )
4186
echo "$ac_cs_version"; exit 0 ;;
4188
# Conflict between --help and --header
4189
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
4190
Try \`$0 --help' for more information." >&5
4191
echo "$as_me: error: ambiguous option: $1
4192
Try \`$0 --help' for more information." >&2;}
4193
{ (exit 1); exit 1; }; };;
4194
--help | --hel | -h )
4195
echo "$ac_cs_usage"; exit 0 ;;
4196
--debug | --d* | -d )
4198
--file | --fil | --fi | --f )
4200
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4201
ac_need_defaults=false;;
4202
--header | --heade | --head | --hea )
4204
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4205
ac_need_defaults=false;;
4206
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4207
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4211
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4212
Try \`$0 --help' for more information." >&5
4213
echo "$as_me: error: unrecognized option: $1
4214
Try \`$0 --help' for more information." >&2;}
4215
{ (exit 1); exit 1; }; } ;;
4217
*) ac_config_targets="$ac_config_targets $1" ;;
4223
ac_configure_extra_args=
4225
if $ac_cs_silent; then
4227
ac_configure_extra_args="$ac_configure_extra_args --silent"
4231
cat >>$CONFIG_STATUS <<_ACEOF
4232
if \$ac_cs_recheck; then
4233
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4234
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4239
cat >>$CONFIG_STATUS <<_ACEOF
4241
# INIT-COMMANDS section.
4250
cat >>$CONFIG_STATUS <<\_ACEOF
4251
for ac_config_target in $ac_config_targets
4253
case "$ac_config_target" in
4254
# Handling of arguments.
4255
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4256
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4257
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4258
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4259
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4260
{ (exit 1); exit 1; }; };;
4264
# If the user did not use the arguments to specify the items to instantiate,
4265
# then the envvar interface is used. Set only those that are not.
4266
# We use the long form for the default assignment because of an extremely
4267
# bizarre bug on SunOS 4.1.3.
4268
if $ac_need_defaults; then
4269
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4270
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4271
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4274
# Have a temporary directory for convenience. Make it in the build tree
4275
# simply because there is no reason to put it here, and in addition,
4276
# creating and moving files from /tmp can sometimes cause problems.
4277
# Create a temporary directory, and hook for its removal unless debugging.
4280
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4281
trap '{ (exit 1); exit 1; }' 1 2 13 15
4284
# Create a (secure) tmp directory for tmp files.
4287
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4288
test -n "$tmp" && test -d "$tmp"
4291
tmp=./confstat$$-$RANDOM
4292
(umask 077 && mkdir $tmp)
4295
echo "$me: cannot create a temporary directory in ." >&2
4296
{ (exit 1); exit 1; }
4301
cat >>$CONFIG_STATUS <<_ACEOF
4304
# CONFIG_FILES section.
4307
# No need to generate the scripts if there are no CONFIG_FILES.
4308
# This happens for instance when ./config.status config.h
4309
if test -n "\$CONFIG_FILES"; then
4310
# Protect against being on the right side of a sed subst in config.status.
4311
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4312
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4313
s,@SHELL@,$SHELL,;t t
4314
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4315
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4316
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4317
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4318
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4319
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4320
s,@exec_prefix@,$exec_prefix,;t t
4321
s,@prefix@,$prefix,;t t
4322
s,@program_transform_name@,$program_transform_name,;t t
4323
s,@bindir@,$bindir,;t t
4324
s,@sbindir@,$sbindir,;t t
4325
s,@libexecdir@,$libexecdir,;t t
4326
s,@datadir@,$datadir,;t t
4327
s,@sysconfdir@,$sysconfdir,;t t
4328
s,@sharedstatedir@,$sharedstatedir,;t t
4329
s,@localstatedir@,$localstatedir,;t t
4330
s,@libdir@,$libdir,;t t
4331
s,@includedir@,$includedir,;t t
4332
s,@oldincludedir@,$oldincludedir,;t t
4333
s,@infodir@,$infodir,;t t
4334
s,@mandir@,$mandir,;t t
4335
s,@build_alias@,$build_alias,;t t
4336
s,@host_alias@,$host_alias,;t t
4337
s,@target_alias@,$target_alias,;t t
4339
s,@ECHO_C@,$ECHO_C,;t t
4340
s,@ECHO_N@,$ECHO_N,;t t
4341
s,@ECHO_T@,$ECHO_T,;t t
4343
s,@build@,$build,;t t
4344
s,@build_cpu@,$build_cpu,;t t
4345
s,@build_vendor@,$build_vendor,;t t
4346
s,@build_os@,$build_os,;t t
4348
s,@host_cpu@,$host_cpu,;t t
4349
s,@host_vendor@,$host_vendor,;t t
4350
s,@host_os@,$host_os,;t t
4351
s,@target@,$target,;t t
4352
s,@target_cpu@,$target_cpu,;t t
4353
s,@target_vendor@,$target_vendor,;t t
4354
s,@target_os@,$target_os,;t t
4355
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4356
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4357
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4358
s,@PACKAGE@,$PACKAGE,;t t
4359
s,@VERSION@,$VERSION,;t t
4360
s,@ACLOCAL@,$ACLOCAL,;t t
4361
s,@AUTOCONF@,$AUTOCONF,;t t
4362
s,@AUTOMAKE@,$AUTOMAKE,;t t
4363
s,@AUTOHEADER@,$AUTOHEADER,;t t
4364
s,@MAKEINFO@,$MAKEINFO,;t t
4365
s,@SET_MAKE@,$SET_MAKE,;t t
4367
s,@CFLAGS@,$CFLAGS,;t t
4368
s,@LDFLAGS@,$LDFLAGS,;t t
4369
s,@CPPFLAGS@,$CPPFLAGS,;t t
4370
s,@ac_ct_CC@,$ac_ct_CC,;t t
4371
s,@EXEEXT@,$EXEEXT,;t t
4372
s,@OBJEXT@,$OBJEXT,;t t
4374
s,@EGREP@,$EGREP,;t t
4375
s,@LIBOBJS@,$LIBOBJS,;t t
4376
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4381
cat >>$CONFIG_STATUS <<\_ACEOF
4382
# Split the substitutions into bite-sized pieces for seds with
4383
# small command number limits, like on Digital OSF/1 and HP-UX.
4385
ac_sed_frag=1 # Number of current file.
4386
ac_beg=1 # First line for current file.
4387
ac_end=$ac_max_sed_lines # Line after last line for current file.
4390
while $ac_more_lines; do
4391
if test $ac_beg -gt 1; then
4392
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4394
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4396
if test ! -s $tmp/subs.frag; then
4399
# The purpose of the label and of the branching condition is to
4400
# speed up the sed processing (if there are no `@' at all, there
4401
# is no need to browse any of the substitutions).
4402
# These are the two extra sed commands mentioned above.
4404
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4405
if test -z "$ac_sed_cmds"; then
4406
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4408
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4410
ac_sed_frag=`expr $ac_sed_frag + 1`
4412
ac_end=`expr $ac_end + $ac_max_sed_lines`
4415
if test -z "$ac_sed_cmds"; then
4418
fi # test -n "$CONFIG_FILES"
4421
cat >>$CONFIG_STATUS <<\_ACEOF
4422
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4423
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4425
- | *:- | *:-:* ) # input from stdin
4427
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4428
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4429
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4430
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4431
* ) ac_file_in=$ac_file.in ;;
4434
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4435
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4436
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4437
X"$ac_file" : 'X\(//\)[^/]' \| \
4438
X"$ac_file" : 'X\(//\)$' \| \
4439
X"$ac_file" : 'X\(/\)' \| \
4440
. : '\(.\)' 2>/dev/null ||
4442
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4443
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4444
/^X\(\/\/\)$/{ s//\1/; q; }
4445
/^X\(\/\).*/{ s//\1/; q; }
4447
{ if $as_mkdir_p; then
4452
while test ! -d "$as_dir"; do
4453
as_dirs="$as_dir $as_dirs"
4454
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4455
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4456
X"$as_dir" : 'X\(//\)[^/]' \| \
4457
X"$as_dir" : 'X\(//\)$' \| \
4458
X"$as_dir" : 'X\(/\)' \| \
4459
. : '\(.\)' 2>/dev/null ||
4461
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4462
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4463
/^X\(\/\/\)$/{ s//\1/; q; }
4464
/^X\(\/\).*/{ s//\1/; q; }
4467
test ! -n "$as_dirs" || mkdir $as_dirs
4468
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4469
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4470
{ (exit 1); exit 1; }; }; }
4474
if test "$ac_dir" != .; then
4475
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4476
# A "../" for each directory in $ac_dir_suffix.
4477
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4479
ac_dir_suffix= ac_top_builddir=
4483
.) # No --srcdir option. We are building in place.
4485
if test -z "$ac_top_builddir"; then
4488
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4490
[\\/]* | ?:[\\/]* ) # Absolute path.
4491
ac_srcdir=$srcdir$ac_dir_suffix;
4492
ac_top_srcdir=$srcdir ;;
4494
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4495
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4498
# Do not use `cd foo && pwd` to compute absolute paths, because
4499
# the directories may not exist.
4501
.) ac_abs_builddir="$ac_dir";;
4504
.) ac_abs_builddir=`pwd`;;
4505
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4506
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4509
case $ac_abs_builddir in
4510
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4512
case ${ac_top_builddir}. in
4513
.) ac_abs_top_builddir=$ac_abs_builddir;;
4514
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4515
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4518
case $ac_abs_builddir in
4519
.) ac_abs_srcdir=$ac_srcdir;;
4522
.) ac_abs_srcdir=$ac_abs_builddir;;
4523
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4524
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4527
case $ac_abs_builddir in
4528
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4530
case $ac_top_srcdir in
4531
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4532
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4533
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4539
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4540
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4543
# Let's still pretend it is `configure' which instantiates (i.e., don't
4544
# use $as_me), people would be surprised to read:
4545
# /* config.h. Generated by config.status. */
4546
if test x"$ac_file" = x-; then
4549
configure_input="$ac_file. "
4551
configure_input=$configure_input"Generated from `echo $ac_file_in |
4552
sed 's,.*/,,'` by configure."
4554
# First look for the input files in the build tree, otherwise in the
4556
ac_file_inputs=`IFS=:
4557
for f in $ac_file_in; do
4559
-) echo $tmp/stdin ;;
4561
# Absolute (can't be DOS-style, as IFS=:)
4562
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4563
echo "$as_me: error: cannot find input file: $f" >&2;}
4564
{ (exit 1); exit 1; }; }
4567
if test -f "$f"; then
4570
elif test -f "$srcdir/$f"; then
4575
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4576
echo "$as_me: error: cannot find input file: $f" >&2;}
4577
{ (exit 1); exit 1; }; }
4580
done` || { (exit 1); exit 1; }
4582
if test x"$ac_file" != x-; then
4583
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4584
echo "$as_me: creating $ac_file" >&6;}
4588
cat >>$CONFIG_STATUS <<_ACEOF
4592
cat >>$CONFIG_STATUS <<\_ACEOF
4594
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4595
s,@configure_input@,$configure_input,;t t
4596
s,@srcdir@,$ac_srcdir,;t t
4597
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4598
s,@top_srcdir@,$ac_top_srcdir,;t t
4599
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4600
s,@builddir@,$ac_builddir,;t t
4601
s,@abs_builddir@,$ac_abs_builddir,;t t
4602
s,@top_builddir@,$ac_top_builddir,;t t
4603
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4604
s,@INSTALL@,$ac_INSTALL,;t t
4605
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4607
if test x"$ac_file" != x-; then
4608
mv $tmp/out $ac_file
4616
cat >>$CONFIG_STATUS <<\_ACEOF
4619
# CONFIG_HEADER section.
4622
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4623
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4625
# ac_d sets the value in "#define NAME VALUE" lines.
4626
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4627
ac_dB='[ ].*$,\1#\2'
4630
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4631
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4632
ac_uB='$,\1#\2define\3'
4636
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4637
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4639
- | *:- | *:-:* ) # input from stdin
4641
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4642
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4643
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4644
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4645
* ) ac_file_in=$ac_file.in ;;
4648
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4649
echo "$as_me: creating $ac_file" >&6;}
4651
# First look for the input files in the build tree, otherwise in the
4653
ac_file_inputs=`IFS=:
4654
for f in $ac_file_in; do
4656
-) echo $tmp/stdin ;;
4658
# Absolute (can't be DOS-style, as IFS=:)
4659
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4660
echo "$as_me: error: cannot find input file: $f" >&2;}
4661
{ (exit 1); exit 1; }; }
4662
# Do quote $f, to prevent DOS paths from being IFS'd.
4665
if test -f "$f"; then
4668
elif test -f "$srcdir/$f"; then
4673
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4674
echo "$as_me: error: cannot find input file: $f" >&2;}
4675
{ (exit 1); exit 1; }; }
4678
done` || { (exit 1); exit 1; }
4679
# Remove the trailing spaces.
4680
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4684
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4685
# `conftest.undefs', that substitutes the proper values into
4686
# config.h.in to produce config.h. The first handles `#define'
4687
# templates, and the second `#undef' templates.
4688
# And first: Protect against being on the right side of a sed subst in
4689
# config.status. Protect against being in an unquoted here document
4691
rm -f conftest.defines conftest.undefs
4692
# Using a here document instead of a string reduces the quoting nightmare.
4693
# Putting comments in sed scripts is not portable.
4695
# `end' is used to avoid that the second main sed command (meant for
4696
# 0-ary CPP macros) applies to n-ary macro definitions.
4697
# See the Autoconf documentation for `clear'.
4698
cat >confdef2sed.sed <<\_ACEOF
4703
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4705
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4708
# If some macros were called several times there might be several times
4709
# the same #defines, which is useless. Nevertheless, we may not want to
4710
# sort them, since we want the *last* AC-DEFINE to be honored.
4711
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4712
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4713
rm -f confdef2sed.sed
4715
# This sed command replaces #undef with comments. This is necessary, for
4716
# example, in the case of _POSIX_SOURCE, which is predefined and required
4717
# on some systems where configure will not decide to define it.
4718
cat >>conftest.undefs <<\_ACEOF
4719
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4722
# Break up conftest.defines because some shells have a limit on the size
4723
# of here documents, and old seds have small limits too (100 cmds).
4724
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4725
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4726
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4727
echo ' :' >>$CONFIG_STATUS
4729
while grep . conftest.defines >/dev/null
4731
# Write a limited-size here document to $tmp/defines.sed.
4732
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4733
# Speed up: don't consider the non `#define' lines.
4734
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4735
# Work around the forget-to-reset-the-flag bug.
4736
echo 't clr' >>$CONFIG_STATUS
4737
echo ': clr' >>$CONFIG_STATUS
4738
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4740
sed -f $tmp/defines.sed $tmp/in >$tmp/out
4744
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4745
rm -f conftest.defines
4746
mv conftest.tail conftest.defines
4748
rm -f conftest.defines
4749
echo ' fi # grep' >>$CONFIG_STATUS
4750
echo >>$CONFIG_STATUS
4752
# Break up conftest.undefs because some shells have a limit on the size
4753
# of here documents, and old seds have small limits too (100 cmds).
4754
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4756
while grep . conftest.undefs >/dev/null
4758
# Write a limited-size here document to $tmp/undefs.sed.
4759
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4760
# Speed up: don't consider the non `#undef'
4761
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4762
# Work around the forget-to-reset-the-flag bug.
4763
echo 't clr' >>$CONFIG_STATUS
4764
echo ': clr' >>$CONFIG_STATUS
4765
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4767
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4771
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4772
rm -f conftest.undefs
4773
mv conftest.tail conftest.undefs
4775
rm -f conftest.undefs
4777
cat >>$CONFIG_STATUS <<\_ACEOF
4778
# Let's still pretend it is `configure' which instantiates (i.e., don't
4779
# use $as_me), people would be surprised to read:
4780
# /* config.h. Generated by config.status. */
4781
if test x"$ac_file" = x-; then
4782
echo "/* Generated by configure. */" >$tmp/config.h
4784
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4786
cat $tmp/in >>$tmp/config.h
4788
if test x"$ac_file" != x-; then
4789
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4790
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4791
echo "$as_me: $ac_file is unchanged" >&6;}
4793
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4794
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4795
X"$ac_file" : 'X\(//\)[^/]' \| \
4796
X"$ac_file" : 'X\(//\)$' \| \
4797
X"$ac_file" : 'X\(/\)' \| \
4798
. : '\(.\)' 2>/dev/null ||
4800
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4801
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4802
/^X\(\/\/\)$/{ s//\1/; q; }
4803
/^X\(\/\).*/{ s//\1/; q; }
4805
{ if $as_mkdir_p; then
4810
while test ! -d "$as_dir"; do
4811
as_dirs="$as_dir $as_dirs"
4812
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4813
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4814
X"$as_dir" : 'X\(//\)[^/]' \| \
4815
X"$as_dir" : 'X\(//\)$' \| \
4816
X"$as_dir" : 'X\(/\)' \| \
4817
. : '\(.\)' 2>/dev/null ||
4819
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4820
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4821
/^X\(\/\/\)$/{ s//\1/; q; }
4822
/^X\(\/\).*/{ s//\1/; q; }
4825
test ! -n "$as_dirs" || mkdir $as_dirs
4826
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4827
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4828
{ (exit 1); exit 1; }; }; }
4831
mv $tmp/config.h $ac_file
4839
cat >>$CONFIG_STATUS <<\_ACEOF
4842
# CONFIG_COMMANDS section.
4844
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4845
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4846
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4847
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4848
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4849
X"$ac_dest" : 'X\(//\)[^/]' \| \
4850
X"$ac_dest" : 'X\(//\)$' \| \
4851
X"$ac_dest" : 'X\(/\)' \| \
4852
. : '\(.\)' 2>/dev/null ||
4854
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4855
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4856
/^X\(\/\/\)$/{ s//\1/; q; }
4857
/^X\(\/\).*/{ s//\1/; q; }
4859
{ if $as_mkdir_p; then
4864
while test ! -d "$as_dir"; do
4865
as_dirs="$as_dir $as_dirs"
4866
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4867
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4868
X"$as_dir" : 'X\(//\)[^/]' \| \
4869
X"$as_dir" : 'X\(//\)$' \| \
4870
X"$as_dir" : 'X\(/\)' \| \
4871
. : '\(.\)' 2>/dev/null ||
4873
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4874
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4875
/^X\(\/\/\)$/{ s//\1/; q; }
4876
/^X\(\/\).*/{ s//\1/; q; }
4879
test ! -n "$as_dirs" || mkdir $as_dirs
4880
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4881
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4882
{ (exit 1); exit 1; }; }; }
4886
if test "$ac_dir" != .; then
4887
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4888
# A "../" for each directory in $ac_dir_suffix.
4889
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4891
ac_dir_suffix= ac_top_builddir=
4895
.) # No --srcdir option. We are building in place.
4897
if test -z "$ac_top_builddir"; then
4900
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4902
[\\/]* | ?:[\\/]* ) # Absolute path.
4903
ac_srcdir=$srcdir$ac_dir_suffix;
4904
ac_top_srcdir=$srcdir ;;
4906
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4907
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4910
# Do not use `cd foo && pwd` to compute absolute paths, because
4911
# the directories may not exist.
4913
.) ac_abs_builddir="$ac_dir";;
4916
.) ac_abs_builddir=`pwd`;;
4917
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4918
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4921
case $ac_abs_builddir in
4922
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4924
case ${ac_top_builddir}. in
4925
.) ac_abs_top_builddir=$ac_abs_builddir;;
4926
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4927
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4930
case $ac_abs_builddir in
4931
.) ac_abs_srcdir=$ac_srcdir;;
4934
.) ac_abs_srcdir=$ac_abs_builddir;;
4935
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4936
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4939
case $ac_abs_builddir in
4940
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4942
case $ac_top_srcdir in
4943
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4944
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4945
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4950
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4951
echo "$as_me: executing $ac_dest commands" >&6;}
4953
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
4958
cat >>$CONFIG_STATUS <<\_ACEOF
4960
{ (exit 0); exit 0; }
4962
chmod +x $CONFIG_STATUS
4963
ac_clean_files=$ac_clean_files_save
4966
# configure is writing to config.log, and then calls config.status.
4967
# config.status does its own redirection, appending to config.log.
4968
# Unfortunately, on DOS this fails, as config.log is still kept open
4969
# by configure, so config.status won't be able to write to it; its
4970
# output is simply discarded. So we exec the FD to /dev/null,
4971
# effectively closing config.log, so it can be properly (re)opened and
4972
# appended to by config.status. When coming back to configure, we
4973
# need to make the FD available again.
4974
if test "$no_create" != yes; then
4976
ac_config_status_args=
4977
test "$silent" = yes &&
4978
ac_config_status_args="$ac_config_status_args --quiet"
4980
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4982
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4983
# would make configure fail if this is the last instruction.
4984
$ac_cs_success || { (exit 1); exit 1; }