~yolanda.robla/ubuntu/trusty/memcached/add_distribution

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2010-05-12 11:41:22 UTC
  • mfrom: (1.1.7 upstream) (3.3.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100512114122-e2dphwiezevuny1t
Tags: 1.4.5-1
* New upstream release.  Main changes since 1.4.2 are:
  New features:
  - Support for SASL authentication.
  - New script damemtop - a memcached top.
  - Slab optimizations.
  - New stats, for reclaimed memory and SASL events.
  Bugs fixed:
  - Malicious input can crash server (CVE-2010-1152).  Closes: #579913.
  - Fixed several problems with slab handling and growth.
  - Provide better error reporting.
  - Fix get stats accounting.
  - Fixed backwards compatibility with delete 0.
  - Documentation fixes.
  - Various build fixes, among others, fixed FTBFS with gcc-4.5 (closes:
    #565033).
* Refreshed and renamed 01_init_script_compliant_with_LSB.patch.
* Fixed lintian warnings by adding $remote_fs to init.d script.
* Removed non-existent document (doc/memory_management.txt).
* debian/control: Bumped Standards-Version to 3.8.4 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63 for memcached 1.4.2.
 
3
# Generated by GNU Autoconf 2.63 for memcached 1.4.5.
4
4
#
5
 
# Report bugs to <brad@danga.com>.
 
5
# Report bugs to <memcached@googlegroups.com>.
6
6
#
7
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
596
596
# Identity of this package.
597
597
PACKAGE_NAME='memcached'
598
598
PACKAGE_TARNAME='memcached'
599
 
PACKAGE_VERSION='1.4.2'
600
 
PACKAGE_STRING='memcached 1.4.2'
601
 
PACKAGE_BUGREPORT='brad@danga.com'
 
599
PACKAGE_VERSION='1.4.5'
 
600
PACKAGE_STRING='memcached 1.4.5'
 
601
PACKAGE_BUGREPORT='memcached@googlegroups.com'
602
602
 
603
603
ac_unique_file="memcached.c"
604
604
# Factoring default headers for most tests.
650
650
PROFILER_FLAGS
651
651
PROFILER
652
652
PROFILER_LDFLAGS
 
653
ENABLE_SASL
653
654
DTRACEFLAGS
 
655
ENABLE_SASL_FALSE
 
656
ENABLE_SASL_TRUE
654
657
DTRACE_INSTRUMENT_OBJ_FALSE
655
658
DTRACE_INSTRUMENT_OBJ_TRUE
656
659
BUILD_DTRACE_FALSE
751
754
ac_user_opts='
752
755
enable_option_checking
753
756
enable_dependency_tracking
 
757
enable_sasl
 
758
enable_sasl_pwdb
754
759
enable_dtrace
755
760
enable_coverage
756
761
enable_64bit
1318
1323
  # Omit some internal or obsolete options to make the list less imposing.
1319
1324
  # This message is too long to be a string in the A/UX 3.1 sh.
1320
1325
  cat <<_ACEOF
1321
 
\`configure' configures memcached 1.4.2 to adapt to many kinds of systems.
 
1326
\`configure' configures memcached 1.4.5 to adapt to many kinds of systems.
1322
1327
 
1323
1328
Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1329
 
1389
1394
 
1390
1395
if test -n "$ac_init_help"; then
1391
1396
  case $ac_init_help in
1392
 
     short | recursive ) echo "Configuration of memcached 1.4.2:";;
 
1397
     short | recursive ) echo "Configuration of memcached 1.4.5:";;
1393
1398
   esac
1394
1399
  cat <<\_ACEOF
1395
1400
 
1399
1404
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400
1405
  --disable-dependency-tracking  speeds up one-time build
1401
1406
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1407
  --enable-sasl           Enable SASL authentication
 
1408
  --enable-sasl-pwdb      Enable plaintext password db
1402
1409
  --enable-dtrace         Enable dtrace probes
1403
1410
  --disable-coverage      Disable code coverage
1404
1411
  --enable-64bit          build 64bit version
1422
1429
Use these variables to override the choices made by `configure' or to help
1423
1430
it to find libraries and programs with nonstandard names/locations.
1424
1431
 
1425
 
Report bugs to <brad@danga.com>.
 
1432
Report bugs to <memcached@googlegroups.com>.
1426
1433
_ACEOF
1427
1434
ac_status=$?
1428
1435
fi
1485
1492
test -n "$ac_init_help" && exit $ac_status
1486
1493
if $ac_init_version; then
1487
1494
  cat <<\_ACEOF
1488
 
memcached configure 1.4.2
 
1495
memcached configure 1.4.5
1489
1496
generated by GNU Autoconf 2.63
1490
1497
 
1491
1498
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499
1506
This file contains any messages produced by compilers while
1500
1507
running configure, to aid debugging if configure makes a mistake.
1501
1508
 
1502
 
It was created by memcached $as_me 1.4.2, which was
 
1509
It was created by memcached $as_me 1.4.5, which was
1503
1510
generated by GNU Autoconf 2.63.  Invocation command line was
1504
1511
 
1505
1512
  $ $0 $@
2342
2349
 
2343
2350
# Define the identity of the package.
2344
2351
 PACKAGE=memcached
2345
 
 VERSION=1.4.2
 
2352
 VERSION=1.4.5
2346
2353
 
2347
2354
 
2348
2355
cat >>confdefs.h <<_ACEOF
4082
4089
 
4083
4090
 
4084
4091
if test "$ICC" = "no"; then
4085
 
      { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
4092
   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4086
4093
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4087
4094
if test "${ac_cv_prog_cc_c99+set}" = set; then
4088
4095
  $as_echo_n "(cached) " >&6
4232
4239
  return 0;
4233
4240
}
4234
4241
_ACEOF
4235
 
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
4242
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4236
4243
do
4237
4244
  CC="$ac_save_CC $ac_arg"
4238
4245
  rm -f conftest.$ac_objext
4283
4290
esac
4284
4291
 
4285
4292
 
4286
 
 
4287
4293
fi
4288
4294
 
4289
4295
if test "x$CC" != xcc; then
4512
4518
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4513
4519
 
4514
4520
 
 
4521
# Check whether --enable-sasl was given.
 
4522
if test "${enable_sasl+set}" = set; then
 
4523
  enableval=$enable_sasl;
 
4524
fi
 
4525
 
 
4526
 
 
4527
# Check whether --enable-sasl_pwdb was given.
 
4528
if test "${enable_sasl_pwdb+set}" = set; then
 
4529
  enableval=$enable_sasl_pwdb;
 
4530
fi
 
4531
 
 
4532
 
 
4533
if test "x$enable_sasl_pwdb" = "xyes"; then
 
4534
  enable_sasl=yes
 
4535
fi
 
4536
 
 
4537
 
 
4538
 
 
4539
 
 
4540
 
 
4541
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4542
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4543
if test "${ac_cv_header_stdc+set}" = set; then
 
4544
  $as_echo_n "(cached) " >&6
 
4545
else
 
4546
  cat >conftest.$ac_ext <<_ACEOF
 
4547
/* confdefs.h.  */
 
4548
_ACEOF
 
4549
cat confdefs.h >>conftest.$ac_ext
 
4550
cat >>conftest.$ac_ext <<_ACEOF
 
4551
/* end confdefs.h.  */
 
4552
#include <stdlib.h>
 
4553
#include <stdarg.h>
 
4554
#include <string.h>
 
4555
#include <float.h>
 
4556
 
 
4557
int
 
4558
main ()
 
4559
{
 
4560
 
 
4561
  ;
 
4562
  return 0;
 
4563
}
 
4564
_ACEOF
 
4565
rm -f conftest.$ac_objext
 
4566
if { (ac_try="$ac_compile"
 
4567
case "(($ac_try" in
 
4568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4569
  *) ac_try_echo=$ac_try;;
 
4570
esac
 
4571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4572
$as_echo "$ac_try_echo") >&5
 
4573
  (eval "$ac_compile") 2>conftest.er1
 
4574
  ac_status=$?
 
4575
  grep -v '^ *+' conftest.er1 >conftest.err
 
4576
  rm -f conftest.er1
 
4577
  cat conftest.err >&5
 
4578
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4579
  (exit $ac_status); } && {
 
4580
         test -z "$ac_c_werror_flag" ||
 
4581
         test ! -s conftest.err
 
4582
       } && test -s conftest.$ac_objext; then
 
4583
  ac_cv_header_stdc=yes
 
4584
else
 
4585
  $as_echo "$as_me: failed program was:" >&5
 
4586
sed 's/^/| /' conftest.$ac_ext >&5
 
4587
 
 
4588
        ac_cv_header_stdc=no
 
4589
fi
 
4590
 
 
4591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4592
 
 
4593
if test $ac_cv_header_stdc = yes; then
 
4594
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4595
  cat >conftest.$ac_ext <<_ACEOF
 
4596
/* confdefs.h.  */
 
4597
_ACEOF
 
4598
cat confdefs.h >>conftest.$ac_ext
 
4599
cat >>conftest.$ac_ext <<_ACEOF
 
4600
/* end confdefs.h.  */
 
4601
#include <string.h>
 
4602
 
 
4603
_ACEOF
 
4604
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4605
  $EGREP "memchr" >/dev/null 2>&1; then
 
4606
  :
 
4607
else
 
4608
  ac_cv_header_stdc=no
 
4609
fi
 
4610
rm -f conftest*
 
4611
 
 
4612
fi
 
4613
 
 
4614
if test $ac_cv_header_stdc = yes; then
 
4615
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4616
  cat >conftest.$ac_ext <<_ACEOF
 
4617
/* confdefs.h.  */
 
4618
_ACEOF
 
4619
cat confdefs.h >>conftest.$ac_ext
 
4620
cat >>conftest.$ac_ext <<_ACEOF
 
4621
/* end confdefs.h.  */
 
4622
#include <stdlib.h>
 
4623
 
 
4624
_ACEOF
 
4625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4626
  $EGREP "free" >/dev/null 2>&1; then
 
4627
  :
 
4628
else
 
4629
  ac_cv_header_stdc=no
 
4630
fi
 
4631
rm -f conftest*
 
4632
 
 
4633
fi
 
4634
 
 
4635
if test $ac_cv_header_stdc = yes; then
 
4636
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4637
  if test "$cross_compiling" = yes; then
 
4638
  :
 
4639
else
 
4640
  cat >conftest.$ac_ext <<_ACEOF
 
4641
/* confdefs.h.  */
 
4642
_ACEOF
 
4643
cat confdefs.h >>conftest.$ac_ext
 
4644
cat >>conftest.$ac_ext <<_ACEOF
 
4645
/* end confdefs.h.  */
 
4646
#include <ctype.h>
 
4647
#include <stdlib.h>
 
4648
#if ((' ' & 0x0FF) == 0x020)
 
4649
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4650
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4651
#else
 
4652
# define ISLOWER(c) \
 
4653
                   (('a' <= (c) && (c) <= 'i') \
 
4654
                     || ('j' <= (c) && (c) <= 'r') \
 
4655
                     || ('s' <= (c) && (c) <= 'z'))
 
4656
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4657
#endif
 
4658
 
 
4659
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4660
int
 
4661
main ()
 
4662
{
 
4663
  int i;
 
4664
  for (i = 0; i < 256; i++)
 
4665
    if (XOR (islower (i), ISLOWER (i))
 
4666
        || toupper (i) != TOUPPER (i))
 
4667
      return 2;
 
4668
  return 0;
 
4669
}
 
4670
_ACEOF
 
4671
rm -f conftest$ac_exeext
 
4672
if { (ac_try="$ac_link"
 
4673
case "(($ac_try" in
 
4674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4675
  *) ac_try_echo=$ac_try;;
 
4676
esac
 
4677
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4678
$as_echo "$ac_try_echo") >&5
 
4679
  (eval "$ac_link") 2>&5
 
4680
  ac_status=$?
 
4681
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4682
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4683
  { (case "(($ac_try" in
 
4684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4685
  *) ac_try_echo=$ac_try;;
 
4686
esac
 
4687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4688
$as_echo "$ac_try_echo") >&5
 
4689
  (eval "$ac_try") 2>&5
 
4690
  ac_status=$?
 
4691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4692
  (exit $ac_status); }; }; then
 
4693
  :
 
4694
else
 
4695
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
4696
$as_echo "$as_me: failed program was:" >&5
 
4697
sed 's/^/| /' conftest.$ac_ext >&5
 
4698
 
 
4699
( exit $ac_status )
 
4700
ac_cv_header_stdc=no
 
4701
fi
 
4702
rm -rf conftest.dSYM
 
4703
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4704
fi
 
4705
 
 
4706
 
 
4707
fi
 
4708
fi
 
4709
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4710
$as_echo "$ac_cv_header_stdc" >&6; }
 
4711
if test $ac_cv_header_stdc = yes; then
 
4712
 
 
4713
cat >>confdefs.h <<\_ACEOF
 
4714
#define STDC_HEADERS 1
 
4715
_ACEOF
 
4716
 
 
4717
fi
 
4718
 
 
4719
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
4725
 
 
4726
 
 
4727
 
 
4728
 
 
4729
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4730
                  inttypes.h stdint.h unistd.h
 
4731
do
 
4732
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4733
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4734
$as_echo_n "checking for $ac_header... " >&6; }
 
4735
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4736
  $as_echo_n "(cached) " >&6
 
4737
else
 
4738
  cat >conftest.$ac_ext <<_ACEOF
 
4739
/* confdefs.h.  */
 
4740
_ACEOF
 
4741
cat confdefs.h >>conftest.$ac_ext
 
4742
cat >>conftest.$ac_ext <<_ACEOF
 
4743
/* end confdefs.h.  */
 
4744
$ac_includes_default
 
4745
 
 
4746
#include <$ac_header>
 
4747
_ACEOF
 
4748
rm -f conftest.$ac_objext
 
4749
if { (ac_try="$ac_compile"
 
4750
case "(($ac_try" in
 
4751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4752
  *) ac_try_echo=$ac_try;;
 
4753
esac
 
4754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4755
$as_echo "$ac_try_echo") >&5
 
4756
  (eval "$ac_compile") 2>conftest.er1
 
4757
  ac_status=$?
 
4758
  grep -v '^ *+' conftest.er1 >conftest.err
 
4759
  rm -f conftest.er1
 
4760
  cat conftest.err >&5
 
4761
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4762
  (exit $ac_status); } && {
 
4763
         test -z "$ac_c_werror_flag" ||
 
4764
         test ! -s conftest.err
 
4765
       } && test -s conftest.$ac_objext; then
 
4766
  eval "$as_ac_Header=yes"
 
4767
else
 
4768
  $as_echo "$as_me: failed program was:" >&5
 
4769
sed 's/^/| /' conftest.$ac_ext >&5
 
4770
 
 
4771
        eval "$as_ac_Header=no"
 
4772
fi
 
4773
 
 
4774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4775
fi
 
4776
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4777
                 $as_echo "$as_val"'`
 
4778
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4779
$as_echo "$ac_res" >&6; }
 
4780
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4781
                 $as_echo "$as_val"'`
 
4782
   if test "x$as_val" = x""yes; then
 
4783
  cat >>confdefs.h <<_ACEOF
 
4784
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4785
_ACEOF
 
4786
 
 
4787
fi
 
4788
 
 
4789
done
 
4790
 
 
4791
 
 
4792
 
 
4793
for ac_header in sasl/sasl.h
 
4794
do
 
4795
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4796
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4797
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4798
$as_echo_n "checking for $ac_header... " >&6; }
 
4799
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4800
  $as_echo_n "(cached) " >&6
 
4801
fi
 
4802
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4803
                 $as_echo "$as_val"'`
 
4804
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4805
$as_echo "$ac_res" >&6; }
 
4806
else
 
4807
  # Is the header compilable?
 
4808
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4809
$as_echo_n "checking $ac_header usability... " >&6; }
 
4810
cat >conftest.$ac_ext <<_ACEOF
 
4811
/* confdefs.h.  */
 
4812
_ACEOF
 
4813
cat confdefs.h >>conftest.$ac_ext
 
4814
cat >>conftest.$ac_ext <<_ACEOF
 
4815
/* end confdefs.h.  */
 
4816
$ac_includes_default
 
4817
#include <$ac_header>
 
4818
_ACEOF
 
4819
rm -f conftest.$ac_objext
 
4820
if { (ac_try="$ac_compile"
 
4821
case "(($ac_try" in
 
4822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4823
  *) ac_try_echo=$ac_try;;
 
4824
esac
 
4825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4826
$as_echo "$ac_try_echo") >&5
 
4827
  (eval "$ac_compile") 2>conftest.er1
 
4828
  ac_status=$?
 
4829
  grep -v '^ *+' conftest.er1 >conftest.err
 
4830
  rm -f conftest.er1
 
4831
  cat conftest.err >&5
 
4832
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4833
  (exit $ac_status); } && {
 
4834
         test -z "$ac_c_werror_flag" ||
 
4835
         test ! -s conftest.err
 
4836
       } && test -s conftest.$ac_objext; then
 
4837
  ac_header_compiler=yes
 
4838
else
 
4839
  $as_echo "$as_me: failed program was:" >&5
 
4840
sed 's/^/| /' conftest.$ac_ext >&5
 
4841
 
 
4842
        ac_header_compiler=no
 
4843
fi
 
4844
 
 
4845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4846
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4847
$as_echo "$ac_header_compiler" >&6; }
 
4848
 
 
4849
# Is the header present?
 
4850
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4851
$as_echo_n "checking $ac_header presence... " >&6; }
 
4852
cat >conftest.$ac_ext <<_ACEOF
 
4853
/* confdefs.h.  */
 
4854
_ACEOF
 
4855
cat confdefs.h >>conftest.$ac_ext
 
4856
cat >>conftest.$ac_ext <<_ACEOF
 
4857
/* end confdefs.h.  */
 
4858
#include <$ac_header>
 
4859
_ACEOF
 
4860
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4861
case "(($ac_try" in
 
4862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4863
  *) ac_try_echo=$ac_try;;
 
4864
esac
 
4865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4866
$as_echo "$ac_try_echo") >&5
 
4867
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4868
  ac_status=$?
 
4869
  grep -v '^ *+' conftest.er1 >conftest.err
 
4870
  rm -f conftest.er1
 
4871
  cat conftest.err >&5
 
4872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4873
  (exit $ac_status); } >/dev/null && {
 
4874
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4875
         test ! -s conftest.err
 
4876
       }; then
 
4877
  ac_header_preproc=yes
 
4878
else
 
4879
  $as_echo "$as_me: failed program was:" >&5
 
4880
sed 's/^/| /' conftest.$ac_ext >&5
 
4881
 
 
4882
  ac_header_preproc=no
 
4883
fi
 
4884
 
 
4885
rm -f conftest.err conftest.$ac_ext
 
4886
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4887
$as_echo "$ac_header_preproc" >&6; }
 
4888
 
 
4889
# So?  What about this header?
 
4890
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4891
  yes:no: )
 
4892
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4893
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4894
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4895
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4896
    ac_header_preproc=yes
 
4897
    ;;
 
4898
  no:yes:* )
 
4899
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4900
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4901
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4902
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4903
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4904
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4905
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4906
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4907
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4908
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4909
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4910
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4911
    ( cat <<\_ASBOX
 
4912
## ----------------------------------------- ##
 
4913
## Report this to memcached@googlegroups.com ##
 
4914
## ----------------------------------------- ##
 
4915
_ASBOX
 
4916
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
4917
    ;;
 
4918
esac
 
4919
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4920
$as_echo_n "checking for $ac_header... " >&6; }
 
4921
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4922
  $as_echo_n "(cached) " >&6
 
4923
else
 
4924
  eval "$as_ac_Header=\$ac_header_preproc"
 
4925
fi
 
4926
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4927
                 $as_echo "$as_val"'`
 
4928
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4929
$as_echo "$ac_res" >&6; }
 
4930
 
 
4931
fi
 
4932
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4933
                 $as_echo "$as_val"'`
 
4934
   if test "x$as_val" = x""yes; then
 
4935
  cat >>confdefs.h <<_ACEOF
 
4936
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4937
_ACEOF
 
4938
 
 
4939
fi
 
4940
 
 
4941
done
 
4942
 
 
4943
if test "x$enable_sasl" = "xyes"; then
 
4944
 
 
4945
    { $as_echo "$as_me:$LINENO: checking for SASL_CB_GETCONF" >&5
 
4946
$as_echo_n "checking for SASL_CB_GETCONF... " >&6; }
 
4947
if test "${ac_cv_c_sasl_cb_getconf+set}" = set; then
 
4948
  $as_echo_n "(cached) " >&6
 
4949
else
 
4950
  cat >conftest.$ac_ext <<_ACEOF
 
4951
/* confdefs.h.  */
 
4952
_ACEOF
 
4953
cat confdefs.h >>conftest.$ac_ext
 
4954
cat >>conftest.$ac_ext <<_ACEOF
 
4955
/* end confdefs.h.  */
 
4956
 
 
4957
#include <sasl/sasl.h>
 
4958
 
 
4959
int
 
4960
main ()
 
4961
{
 
4962
 
 
4963
unsigned long val = SASL_CB_GETCONF;
 
4964
 
 
4965
  ;
 
4966
  return 0;
 
4967
}
 
4968
_ACEOF
 
4969
rm -f conftest.$ac_objext
 
4970
if { (ac_try="$ac_compile"
 
4971
case "(($ac_try" in
 
4972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4973
  *) ac_try_echo=$ac_try;;
 
4974
esac
 
4975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4976
$as_echo "$ac_try_echo") >&5
 
4977
  (eval "$ac_compile") 2>conftest.er1
 
4978
  ac_status=$?
 
4979
  grep -v '^ *+' conftest.er1 >conftest.err
 
4980
  rm -f conftest.er1
 
4981
  cat conftest.err >&5
 
4982
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4983
  (exit $ac_status); } && {
 
4984
         test -z "$ac_c_werror_flag" ||
 
4985
         test ! -s conftest.err
 
4986
       } && test -s conftest.$ac_objext; then
 
4987
   ac_cv_c_sasl_cb_getconf=yes
 
4988
else
 
4989
  $as_echo "$as_me: failed program was:" >&5
 
4990
sed 's/^/| /' conftest.$ac_ext >&5
 
4991
 
 
4992
         ac_cv_c_sasl_cb_getconf=no
 
4993
fi
 
4994
 
 
4995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4996
 
 
4997
fi
 
4998
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_sasl_cb_getconf" >&5
 
4999
$as_echo "$ac_cv_c_sasl_cb_getconf" >&6; }
 
5000
    if test "$ac_cv_c_sasl_cb_getconf" = "yes"; then
 
5001
 
 
5002
cat >>confdefs.h <<\_ACEOF
 
5003
#define HAVE_SASL_CB_GETCONF 1
 
5004
_ACEOF
 
5005
 
 
5006
fi
 
5007
 
 
5008
 
 
5009
 
 
5010
cat >>confdefs.h <<\_ACEOF
 
5011
#define ENABLE_SASL 1
 
5012
_ACEOF
 
5013
 
 
5014
  { $as_echo "$as_me:$LINENO: checking for library containing sasl_server_init" >&5
 
5015
$as_echo_n "checking for library containing sasl_server_init... " >&6; }
 
5016
if test "${ac_cv_search_sasl_server_init+set}" = set; then
 
5017
  $as_echo_n "(cached) " >&6
 
5018
else
 
5019
  ac_func_search_save_LIBS=$LIBS
 
5020
cat >conftest.$ac_ext <<_ACEOF
 
5021
/* confdefs.h.  */
 
5022
_ACEOF
 
5023
cat confdefs.h >>conftest.$ac_ext
 
5024
cat >>conftest.$ac_ext <<_ACEOF
 
5025
/* end confdefs.h.  */
 
5026
 
 
5027
/* Override any GCC internal prototype to avoid an error.
 
5028
   Use char because int might match the return type of a GCC
 
5029
   builtin and then its argument prototype would still apply.  */
 
5030
#ifdef __cplusplus
 
5031
extern "C"
 
5032
#endif
 
5033
char sasl_server_init ();
 
5034
int
 
5035
main ()
 
5036
{
 
5037
return sasl_server_init ();
 
5038
  ;
 
5039
  return 0;
 
5040
}
 
5041
_ACEOF
 
5042
for ac_lib in '' sasl2 sasl; do
 
5043
  if test -z "$ac_lib"; then
 
5044
    ac_res="none required"
 
5045
  else
 
5046
    ac_res=-l$ac_lib
 
5047
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5048
  fi
 
5049
  rm -f conftest.$ac_objext conftest$ac_exeext
 
5050
if { (ac_try="$ac_link"
 
5051
case "(($ac_try" in
 
5052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5053
  *) ac_try_echo=$ac_try;;
 
5054
esac
 
5055
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5056
$as_echo "$ac_try_echo") >&5
 
5057
  (eval "$ac_link") 2>conftest.er1
 
5058
  ac_status=$?
 
5059
  grep -v '^ *+' conftest.er1 >conftest.err
 
5060
  rm -f conftest.er1
 
5061
  cat conftest.err >&5
 
5062
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5063
  (exit $ac_status); } && {
 
5064
         test -z "$ac_c_werror_flag" ||
 
5065
         test ! -s conftest.err
 
5066
       } && test -s conftest$ac_exeext && {
 
5067
         test "$cross_compiling" = yes ||
 
5068
         $as_test_x conftest$ac_exeext
 
5069
       }; then
 
5070
  ac_cv_search_sasl_server_init=$ac_res
 
5071
else
 
5072
  $as_echo "$as_me: failed program was:" >&5
 
5073
sed 's/^/| /' conftest.$ac_ext >&5
 
5074
 
 
5075
 
 
5076
fi
 
5077
 
 
5078
rm -rf conftest.dSYM
 
5079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5080
      conftest$ac_exeext
 
5081
  if test "${ac_cv_search_sasl_server_init+set}" = set; then
 
5082
  break
 
5083
fi
 
5084
done
 
5085
if test "${ac_cv_search_sasl_server_init+set}" = set; then
 
5086
  :
 
5087
else
 
5088
  ac_cv_search_sasl_server_init=no
 
5089
fi
 
5090
rm conftest.$ac_ext
 
5091
LIBS=$ac_func_search_save_LIBS
 
5092
fi
 
5093
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sasl_server_init" >&5
 
5094
$as_echo "$ac_cv_search_sasl_server_init" >&6; }
 
5095
ac_res=$ac_cv_search_sasl_server_init
 
5096
if test "$ac_res" != no; then
 
5097
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5098
 
 
5099
else
 
5100
 
 
5101
      { { $as_echo "$as_me:$LINENO: error: Failed to locate the library containing sasl_server_init" >&5
 
5102
$as_echo "$as_me: error: Failed to locate the library containing sasl_server_init" >&2;}
 
5103
   { (exit 1); exit 1; }; }
 
5104
 
 
5105
fi
 
5106
 
 
5107
 
 
5108
  if test "x$enable_sasl_pwdb" = "xyes"; then
 
5109
 
 
5110
cat >>confdefs.h <<\_ACEOF
 
5111
#define ENABLE_SASL_PWDB 1
 
5112
_ACEOF
 
5113
 
 
5114
fi
 
5115
 
 
5116
fi
 
5117
 
4515
5118
# Check whether --enable-dtrace was given.
4516
5119
if test "${enable_dtrace+set}" = set; then
4517
5120
  enableval=$enable_dtrace;
4518
5121
fi
4519
5122
 
4520
 
if test "x$enable_dtrace" == "xyes"; then
 
5123
if test "x$enable_dtrace" = "xyes"; then
4521
5124
  # Extract the first word of "dtrace", so it can be a program name with args.
4522
5125
set dummy dtrace; ac_word=$2
4523
5126
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4603
5206
  DTRACE_INSTRUMENT_OBJ_FALSE=
4604
5207
fi
4605
5208
 
 
5209
 if test "$enable_sasl" = "yes"; then
 
5210
  ENABLE_SASL_TRUE=
 
5211
  ENABLE_SASL_FALSE='#'
 
5212
else
 
5213
  ENABLE_SASL_TRUE='#'
 
5214
  ENABLE_SASL_FALSE=
 
5215
fi
 
5216
 
 
5217
 
4606
5218
 
4607
5219
 
4608
5220
 
4663
5275
 
4664
5276
 
4665
5277
      if test "x$PROFILER" != "xno"; then
4666
 
         PROFILER_FLAGS="-fprofile-arcs -ftest-coverage"
4667
 
         PROFILER_LDFLAGS="-lgcov"
 
5278
         # Issue 97: The existense of gcov doesn't mean we have -lgcov
 
5279
         { $as_echo "$as_me:$LINENO: checking for main in -lgcov" >&5
 
5280
$as_echo_n "checking for main in -lgcov... " >&6; }
 
5281
if test "${ac_cv_lib_gcov_main+set}" = set; then
 
5282
  $as_echo_n "(cached) " >&6
 
5283
else
 
5284
  ac_check_lib_save_LIBS=$LIBS
 
5285
LIBS="-lgcov  $LIBS"
 
5286
cat >conftest.$ac_ext <<_ACEOF
 
5287
/* confdefs.h.  */
 
5288
_ACEOF
 
5289
cat confdefs.h >>conftest.$ac_ext
 
5290
cat >>conftest.$ac_ext <<_ACEOF
 
5291
/* end confdefs.h.  */
 
5292
 
 
5293
 
 
5294
int
 
5295
main ()
 
5296
{
 
5297
return main ();
 
5298
  ;
 
5299
  return 0;
 
5300
}
 
5301
_ACEOF
 
5302
rm -f conftest.$ac_objext conftest$ac_exeext
 
5303
if { (ac_try="$ac_link"
 
5304
case "(($ac_try" in
 
5305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5306
  *) ac_try_echo=$ac_try;;
 
5307
esac
 
5308
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5309
$as_echo "$ac_try_echo") >&5
 
5310
  (eval "$ac_link") 2>conftest.er1
 
5311
  ac_status=$?
 
5312
  grep -v '^ *+' conftest.er1 >conftest.err
 
5313
  rm -f conftest.er1
 
5314
  cat conftest.err >&5
 
5315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5316
  (exit $ac_status); } && {
 
5317
         test -z "$ac_c_werror_flag" ||
 
5318
         test ! -s conftest.err
 
5319
       } && test -s conftest$ac_exeext && {
 
5320
         test "$cross_compiling" = yes ||
 
5321
         $as_test_x conftest$ac_exeext
 
5322
       }; then
 
5323
  ac_cv_lib_gcov_main=yes
 
5324
else
 
5325
  $as_echo "$as_me: failed program was:" >&5
 
5326
sed 's/^/| /' conftest.$ac_ext >&5
 
5327
 
 
5328
        ac_cv_lib_gcov_main=no
 
5329
fi
 
5330
 
 
5331
rm -rf conftest.dSYM
 
5332
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5333
      conftest$ac_exeext conftest.$ac_ext
 
5334
LIBS=$ac_check_lib_save_LIBS
 
5335
fi
 
5336
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov_main" >&5
 
5337
$as_echo "$ac_cv_lib_gcov_main" >&6; }
 
5338
if test "x$ac_cv_lib_gcov_main" = x""yes; then
 
5339
 
 
5340
                      PROFILER_FLAGS="-fprofile-arcs -ftest-coverage"
 
5341
                      PROFILER_LDFLAGS="-lgcov"
 
5342
 
 
5343
else
 
5344
 
 
5345
                      PROFILER_FLAGS=
 
5346
                      PROFILER_LDFLAGS=
 
5347
 
 
5348
fi
 
5349
 
4668
5350
      fi
4669
5351
   elif test "$SUNCC" = "yes"
4670
5352
   then
4722
5404
  enableval=$enable_64bit;
4723
5405
fi
4724
5406
 
4725
 
if test "x$enable_64bit" == "xyes"
 
5407
if test "x$enable_64bit" = "xyes"
4726
5408
then
4727
5409
    org_cflags=$CFLAGS
4728
5410
    CFLAGS=-m64
5285
5967
 
5286
5968
fi
5287
5969
 
5288
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5289
 
$as_echo_n "checking for ANSI C header files... " >&6; }
5290
 
if test "${ac_cv_header_stdc+set}" = set; then
5291
 
  $as_echo_n "(cached) " >&6
5292
 
else
5293
 
  cat >conftest.$ac_ext <<_ACEOF
5294
 
/* confdefs.h.  */
5295
 
_ACEOF
5296
 
cat confdefs.h >>conftest.$ac_ext
5297
 
cat >>conftest.$ac_ext <<_ACEOF
5298
 
/* end confdefs.h.  */
5299
 
#include <stdlib.h>
5300
 
#include <stdarg.h>
5301
 
#include <string.h>
5302
 
#include <float.h>
5303
 
 
5304
 
int
5305
 
main ()
5306
 
{
5307
 
 
5308
 
  ;
5309
 
  return 0;
5310
 
}
5311
 
_ACEOF
5312
 
rm -f conftest.$ac_objext
5313
 
if { (ac_try="$ac_compile"
5314
 
case "(($ac_try" in
5315
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316
 
  *) ac_try_echo=$ac_try;;
5317
 
esac
5318
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5319
 
$as_echo "$ac_try_echo") >&5
5320
 
  (eval "$ac_compile") 2>conftest.er1
5321
 
  ac_status=$?
5322
 
  grep -v '^ *+' conftest.er1 >conftest.err
5323
 
  rm -f conftest.er1
5324
 
  cat conftest.err >&5
5325
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326
 
  (exit $ac_status); } && {
5327
 
         test -z "$ac_c_werror_flag" ||
5328
 
         test ! -s conftest.err
5329
 
       } && test -s conftest.$ac_objext; then
5330
 
  ac_cv_header_stdc=yes
5331
 
else
5332
 
  $as_echo "$as_me: failed program was:" >&5
5333
 
sed 's/^/| /' conftest.$ac_ext >&5
5334
 
 
5335
 
        ac_cv_header_stdc=no
5336
 
fi
5337
 
 
5338
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339
 
 
5340
 
if test $ac_cv_header_stdc = yes; then
5341
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5342
 
  cat >conftest.$ac_ext <<_ACEOF
5343
 
/* confdefs.h.  */
5344
 
_ACEOF
5345
 
cat confdefs.h >>conftest.$ac_ext
5346
 
cat >>conftest.$ac_ext <<_ACEOF
5347
 
/* end confdefs.h.  */
5348
 
#include <string.h>
5349
 
 
5350
 
_ACEOF
5351
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352
 
  $EGREP "memchr" >/dev/null 2>&1; then
5353
 
  :
5354
 
else
5355
 
  ac_cv_header_stdc=no
5356
 
fi
5357
 
rm -f conftest*
5358
 
 
5359
 
fi
5360
 
 
5361
 
if test $ac_cv_header_stdc = yes; then
5362
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5363
 
  cat >conftest.$ac_ext <<_ACEOF
5364
 
/* confdefs.h.  */
5365
 
_ACEOF
5366
 
cat confdefs.h >>conftest.$ac_ext
5367
 
cat >>conftest.$ac_ext <<_ACEOF
5368
 
/* end confdefs.h.  */
5369
 
#include <stdlib.h>
5370
 
 
5371
 
_ACEOF
5372
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373
 
  $EGREP "free" >/dev/null 2>&1; then
5374
 
  :
5375
 
else
5376
 
  ac_cv_header_stdc=no
5377
 
fi
5378
 
rm -f conftest*
5379
 
 
5380
 
fi
5381
 
 
5382
 
if test $ac_cv_header_stdc = yes; then
5383
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5384
 
  if test "$cross_compiling" = yes; then
5385
 
  :
5386
 
else
5387
 
  cat >conftest.$ac_ext <<_ACEOF
5388
 
/* confdefs.h.  */
5389
 
_ACEOF
5390
 
cat confdefs.h >>conftest.$ac_ext
5391
 
cat >>conftest.$ac_ext <<_ACEOF
5392
 
/* end confdefs.h.  */
5393
 
#include <ctype.h>
5394
 
#include <stdlib.h>
5395
 
#if ((' ' & 0x0FF) == 0x020)
5396
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398
 
#else
5399
 
# define ISLOWER(c) \
5400
 
                   (('a' <= (c) && (c) <= 'i') \
5401
 
                     || ('j' <= (c) && (c) <= 'r') \
5402
 
                     || ('s' <= (c) && (c) <= 'z'))
5403
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5404
 
#endif
5405
 
 
5406
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407
 
int
5408
 
main ()
5409
 
{
5410
 
  int i;
5411
 
  for (i = 0; i < 256; i++)
5412
 
    if (XOR (islower (i), ISLOWER (i))
5413
 
        || toupper (i) != TOUPPER (i))
5414
 
      return 2;
5415
 
  return 0;
5416
 
}
5417
 
_ACEOF
5418
 
rm -f conftest$ac_exeext
5419
 
if { (ac_try="$ac_link"
5420
 
case "(($ac_try" in
5421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422
 
  *) ac_try_echo=$ac_try;;
5423
 
esac
5424
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5425
 
$as_echo "$ac_try_echo") >&5
5426
 
  (eval "$ac_link") 2>&5
5427
 
  ac_status=$?
5428
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5430
 
  { (case "(($ac_try" in
5431
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432
 
  *) ac_try_echo=$ac_try;;
5433
 
esac
5434
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5435
 
$as_echo "$ac_try_echo") >&5
5436
 
  (eval "$ac_try") 2>&5
5437
 
  ac_status=$?
5438
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439
 
  (exit $ac_status); }; }; then
5440
 
  :
5441
 
else
5442
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5443
 
$as_echo "$as_me: failed program was:" >&5
5444
 
sed 's/^/| /' conftest.$ac_ext >&5
5445
 
 
5446
 
( exit $ac_status )
5447
 
ac_cv_header_stdc=no
5448
 
fi
5449
 
rm -rf conftest.dSYM
5450
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5451
 
fi
5452
 
 
5453
 
 
5454
 
fi
5455
 
fi
5456
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5457
 
$as_echo "$ac_cv_header_stdc" >&6; }
5458
 
if test $ac_cv_header_stdc = yes; then
5459
 
 
5460
 
cat >>confdefs.h <<\_ACEOF
5461
 
#define STDC_HEADERS 1
5462
 
_ACEOF
5463
 
 
5464
 
fi
5465
 
 
5466
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467
 
 
5468
 
 
5469
 
 
5470
 
 
5471
 
 
5472
 
 
5473
 
 
5474
 
 
5475
 
 
5476
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5477
 
                  inttypes.h stdint.h unistd.h
5478
 
do
5479
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5481
 
$as_echo_n "checking for $ac_header... " >&6; }
5482
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5483
 
  $as_echo_n "(cached) " >&6
5484
 
else
5485
 
  cat >conftest.$ac_ext <<_ACEOF
5486
 
/* confdefs.h.  */
5487
 
_ACEOF
5488
 
cat confdefs.h >>conftest.$ac_ext
5489
 
cat >>conftest.$ac_ext <<_ACEOF
5490
 
/* end confdefs.h.  */
5491
 
$ac_includes_default
5492
 
 
5493
 
#include <$ac_header>
5494
 
_ACEOF
5495
 
rm -f conftest.$ac_objext
5496
 
if { (ac_try="$ac_compile"
5497
 
case "(($ac_try" in
5498
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499
 
  *) ac_try_echo=$ac_try;;
5500
 
esac
5501
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5502
 
$as_echo "$ac_try_echo") >&5
5503
 
  (eval "$ac_compile") 2>conftest.er1
5504
 
  ac_status=$?
5505
 
  grep -v '^ *+' conftest.er1 >conftest.err
5506
 
  rm -f conftest.er1
5507
 
  cat conftest.err >&5
5508
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509
 
  (exit $ac_status); } && {
5510
 
         test -z "$ac_c_werror_flag" ||
5511
 
         test ! -s conftest.err
5512
 
       } && test -s conftest.$ac_objext; then
5513
 
  eval "$as_ac_Header=yes"
5514
 
else
5515
 
  $as_echo "$as_me: failed program was:" >&5
5516
 
sed 's/^/| /' conftest.$ac_ext >&5
5517
 
 
5518
 
        eval "$as_ac_Header=no"
5519
 
fi
5520
 
 
5521
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522
 
fi
5523
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5524
 
                 $as_echo "$as_val"'`
5525
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5526
 
$as_echo "$ac_res" >&6; }
5527
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5528
 
                 $as_echo "$as_val"'`
5529
 
   if test "x$as_val" = x""yes; then
5530
 
  cat >>confdefs.h <<_ACEOF
5531
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532
 
_ACEOF
5533
 
 
5534
 
fi
5535
 
 
5536
 
done
5537
 
 
5538
5970
 
5539
5971
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5540
5972
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5766
6198
 
5767
6199
fi
5768
6200
 
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
for ac_header in inttypes.h
 
6206
do
 
6207
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6208
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6209
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6210
$as_echo_n "checking for $ac_header... " >&6; }
 
6211
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6212
  $as_echo_n "(cached) " >&6
 
6213
fi
 
6214
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6215
                 $as_echo "$as_val"'`
 
6216
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6217
$as_echo "$ac_res" >&6; }
 
6218
else
 
6219
  # Is the header compilable?
 
6220
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6221
$as_echo_n "checking $ac_header usability... " >&6; }
 
6222
cat >conftest.$ac_ext <<_ACEOF
 
6223
/* confdefs.h.  */
 
6224
_ACEOF
 
6225
cat confdefs.h >>conftest.$ac_ext
 
6226
cat >>conftest.$ac_ext <<_ACEOF
 
6227
/* end confdefs.h.  */
 
6228
$ac_includes_default
 
6229
#include <$ac_header>
 
6230
_ACEOF
 
6231
rm -f conftest.$ac_objext
 
6232
if { (ac_try="$ac_compile"
 
6233
case "(($ac_try" in
 
6234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6235
  *) ac_try_echo=$ac_try;;
 
6236
esac
 
6237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6238
$as_echo "$ac_try_echo") >&5
 
6239
  (eval "$ac_compile") 2>conftest.er1
 
6240
  ac_status=$?
 
6241
  grep -v '^ *+' conftest.er1 >conftest.err
 
6242
  rm -f conftest.er1
 
6243
  cat conftest.err >&5
 
6244
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6245
  (exit $ac_status); } && {
 
6246
         test -z "$ac_c_werror_flag" ||
 
6247
         test ! -s conftest.err
 
6248
       } && test -s conftest.$ac_objext; then
 
6249
  ac_header_compiler=yes
 
6250
else
 
6251
  $as_echo "$as_me: failed program was:" >&5
 
6252
sed 's/^/| /' conftest.$ac_ext >&5
 
6253
 
 
6254
        ac_header_compiler=no
 
6255
fi
 
6256
 
 
6257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6258
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6259
$as_echo "$ac_header_compiler" >&6; }
 
6260
 
 
6261
# Is the header present?
 
6262
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6263
$as_echo_n "checking $ac_header presence... " >&6; }
 
6264
cat >conftest.$ac_ext <<_ACEOF
 
6265
/* confdefs.h.  */
 
6266
_ACEOF
 
6267
cat confdefs.h >>conftest.$ac_ext
 
6268
cat >>conftest.$ac_ext <<_ACEOF
 
6269
/* end confdefs.h.  */
 
6270
#include <$ac_header>
 
6271
_ACEOF
 
6272
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6273
case "(($ac_try" in
 
6274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6275
  *) ac_try_echo=$ac_try;;
 
6276
esac
 
6277
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6278
$as_echo "$ac_try_echo") >&5
 
6279
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6280
  ac_status=$?
 
6281
  grep -v '^ *+' conftest.er1 >conftest.err
 
6282
  rm -f conftest.er1
 
6283
  cat conftest.err >&5
 
6284
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6285
  (exit $ac_status); } >/dev/null && {
 
6286
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6287
         test ! -s conftest.err
 
6288
       }; then
 
6289
  ac_header_preproc=yes
 
6290
else
 
6291
  $as_echo "$as_me: failed program was:" >&5
 
6292
sed 's/^/| /' conftest.$ac_ext >&5
 
6293
 
 
6294
  ac_header_preproc=no
 
6295
fi
 
6296
 
 
6297
rm -f conftest.err conftest.$ac_ext
 
6298
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6299
$as_echo "$ac_header_preproc" >&6; }
 
6300
 
 
6301
# So?  What about this header?
 
6302
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6303
  yes:no: )
 
6304
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6305
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6306
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6307
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6308
    ac_header_preproc=yes
 
6309
    ;;
 
6310
  no:yes:* )
 
6311
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6312
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6313
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6314
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6315
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6316
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6317
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6318
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6319
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6320
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6321
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6322
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6323
    ( cat <<\_ASBOX
 
6324
## ----------------------------------------- ##
 
6325
## Report this to memcached@googlegroups.com ##
 
6326
## ----------------------------------------- ##
 
6327
_ASBOX
 
6328
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6329
    ;;
 
6330
esac
 
6331
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6332
$as_echo_n "checking for $ac_header... " >&6; }
 
6333
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6334
  $as_echo_n "(cached) " >&6
 
6335
else
 
6336
  eval "$as_ac_Header=\$ac_header_preproc"
 
6337
fi
 
6338
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6339
                 $as_echo "$as_val"'`
 
6340
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6341
$as_echo "$ac_res" >&6; }
 
6342
 
 
6343
fi
 
6344
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6345
                 $as_echo "$as_val"'`
 
6346
   if test "x$as_val" = x""yes; then
 
6347
  cat >>confdefs.h <<_ACEOF
 
6348
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6349
_ACEOF
 
6350
 
 
6351
fi
 
6352
 
 
6353
done
 
6354
 
 
6355
 
 
6356
 
 
6357
 
 
6358
 
 
6359
 
 
6360
 
 
6361
    { $as_echo "$as_me:$LINENO: checking for print macros for integers (C99 section 7.8.1)" >&5
 
6362
$as_echo_n "checking for print macros for integers (C99 section 7.8.1)... " >&6; }
 
6363
if test "${ac_cv_c_uint64_support+set}" = set; then
 
6364
  $as_echo_n "(cached) " >&6
 
6365
else
 
6366
  cat >conftest.$ac_ext <<_ACEOF
 
6367
/* confdefs.h.  */
 
6368
_ACEOF
 
6369
cat confdefs.h >>conftest.$ac_ext
 
6370
cat >>conftest.$ac_ext <<_ACEOF
 
6371
/* end confdefs.h.  */
 
6372
 
 
6373
#ifdef HAVE_INTTYPES_H
 
6374
#include <inttypes.h>
 
6375
#endif
 
6376
#include <stdio.h>
 
6377
 
 
6378
int
 
6379
main ()
 
6380
{
 
6381
 
 
6382
  uint64_t val = 0;
 
6383
  fprintf(stderr, "%" PRIu64 "\n", val);
 
6384
 
 
6385
  ;
 
6386
  return 0;
 
6387
}
 
6388
_ACEOF
 
6389
rm -f conftest.$ac_objext
 
6390
if { (ac_try="$ac_compile"
 
6391
case "(($ac_try" in
 
6392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6393
  *) ac_try_echo=$ac_try;;
 
6394
esac
 
6395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6396
$as_echo "$ac_try_echo") >&5
 
6397
  (eval "$ac_compile") 2>conftest.er1
 
6398
  ac_status=$?
 
6399
  grep -v '^ *+' conftest.er1 >conftest.err
 
6400
  rm -f conftest.er1
 
6401
  cat conftest.err >&5
 
6402
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6403
  (exit $ac_status); } && {
 
6404
         test -z "$ac_c_werror_flag" ||
 
6405
         test ! -s conftest.err
 
6406
       } && test -s conftest.$ac_objext; then
 
6407
   ac_cv_c_uint64_support=yes
 
6408
else
 
6409
  $as_echo "$as_me: failed program was:" >&5
 
6410
sed 's/^/| /' conftest.$ac_ext >&5
 
6411
 
 
6412
         ac_cv_c_uint64_support=no
 
6413
fi
 
6414
 
 
6415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6416
 
 
6417
fi
 
6418
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_support" >&5
 
6419
$as_echo "$ac_cv_c_uint64_support" >&6; }
 
6420
 
 
6421
if test "x$ac_cv_c_uint64_support" = "xno"; then
 
6422
  { $as_echo "$as_me:$LINENO: WARNING:
 
6423
 
 
6424
Failed to use print macros (PRIu) as defined in C99 section 7.8.1.
 
6425
 
 
6426
" >&5
 
6427
$as_echo "$as_me: WARNING:
 
6428
 
 
6429
Failed to use print macros (PRIu) as defined in C99 section 7.8.1.
 
6430
 
 
6431
" >&2;}
 
6432
fi
 
6433
 
 
6434
 
5769
6435
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5770
6436
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5771
6437
if test "${ac_cv_c_const+set}" = set; then
6067
6733
 
6068
6734
#include <sys/types.h>
6069
6735
#include <netinet/in.h>
6070
 
#include <inttypes.h>
 
6736
#ifdef HAVE_INTTYPES_H
 
6737
#include <inttypes.h> */
 
6738
#endif
6071
6739
 
6072
6740
int
6073
6741
main ()
6213
6881
 
6214
6882
fi
6215
6883
 
6216
 
if test "x$ac_cv_search_pthread_create" == "xno"; then
 
6884
if test "x$ac_cv_search_pthread_create" = "xno"; then
6217
6885
  { { $as_echo "$as_me:$LINENO: error: Can't enable threads without the POSIX thread library." >&5
6218
6886
$as_echo "$as_me: error: Can't enable threads without the POSIX thread library." >&2;}
6219
6887
   { (exit 1); exit 1; }; }
6656
7324
{
6657
7325
 
6658
7326
       char *buf = malloc(32);
 
7327
 
6659
7328
       uint64_t *ptr = (uint64_t*)(buf+2);
 
7329
       // catch sigbus, etc.
6660
7330
       *ptr = 0x1;
6661
 
       return 0;
 
7331
 
 
7332
       // catch unaligned word access (ARM cpus)
 
7333
       *buf =  1; *(buf +1) = 2; *(buf + 2) = 2; *(buf + 3) = 3; *(buf + 4) = 4;
 
7334
       int* i = (int*)(buf+1);
 
7335
       return (84148994 == i) ? 0 : 1;
6662
7336
 
6663
7337
  ;
6664
7338
  return 0;
6930
7604
    { $as_echo "$as_me:$LINENO: WARNING: priv.h: in the future, the compiler will take precedence" >&5
6931
7605
$as_echo "$as_me: WARNING: priv.h: in the future, the compiler will take precedence" >&2;}
6932
7606
    ( cat <<\_ASBOX
6933
 
## ----------------------------- ##
6934
 
## Report this to brad@danga.com ##
6935
 
## ----------------------------- ##
 
7607
## ----------------------------------------- ##
 
7608
## Report this to memcached@googlegroups.com ##
 
7609
## ----------------------------------------- ##
6936
7610
_ASBOX
6937
7611
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6938
7612
    ;;
7088
7762
    { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
7089
7763
$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
7090
7764
    ( cat <<\_ASBOX
7091
 
## ----------------------------- ##
7092
 
## Report this to brad@danga.com ##
7093
 
## ----------------------------- ##
 
7765
## ----------------------------------------- ##
 
7766
## Report this to memcached@googlegroups.com ##
 
7767
## ----------------------------------------- ##
7094
7768
_ASBOX
7095
7769
     ) | sed "s/^/$as_me: WARNING:     /" >&2
7096
7770
    ;;
7240
7914
elif test "$GCC" = "yes"
7241
7915
then
7242
7916
  GCC_VERSION=`$CC -dumpversion`
7243
 
  CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
 
7917
  CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
7244
7918
  case $GCC_VERSION in
7245
7919
    4.4.*)
7246
7920
    CFLAGS="$CFLAGS -fno-strict-aliasing"
7383
8057
Usually this means the macro was only invoked conditionally." >&2;}
7384
8058
   { (exit 1); exit 1; }; }
7385
8059
fi
 
8060
if test -z "${ENABLE_SASL_TRUE}" && test -z "${ENABLE_SASL_FALSE}"; then
 
8061
  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SASL\" was never defined.
 
8062
Usually this means the macro was only invoked conditionally." >&5
 
8063
$as_echo "$as_me: error: conditional \"ENABLE_SASL\" was never defined.
 
8064
Usually this means the macro was only invoked conditionally." >&2;}
 
8065
   { (exit 1); exit 1; }; }
 
8066
fi
7386
8067
if test -z "${BUILD_SOLARIS_PRIVS_TRUE}" && test -z "${BUILD_SOLARIS_PRIVS_FALSE}"; then
7387
8068
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SOLARIS_PRIVS\" was never defined.
7388
8069
Usually this means the macro was only invoked conditionally." >&5
7726
8407
# report actual input values of CONFIG_FILES etc. instead of their
7727
8408
# values after options handling.
7728
8409
ac_log="
7729
 
This file was extended by memcached $as_me 1.4.2, which was
 
8410
This file was extended by memcached $as_me 1.4.5, which was
7730
8411
generated by GNU Autoconf 2.63.  Invocation command line was
7731
8412
 
7732
8413
  CONFIG_FILES    = $CONFIG_FILES
7789
8470
_ACEOF
7790
8471
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7791
8472
ac_cs_version="\\
7792
 
memcached config.status 1.4.2
 
8473
memcached config.status 1.4.5
7793
8474
configured by $0, generated by GNU Autoconf 2.63,
7794
8475
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7795
8476