136
# Required to use basename.
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
test "X`expr 00001 : '.*\(...\)'`" = X001; then
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151
# Name of the executable.
152
as_me=`$as_basename -- "$0" ||
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
X"$0" : 'X\(//\)$' \| \
155
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157
sed '/^.*\/\([^/][^/]*\)\/*$/{
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
175
138
if test "x$CONFIG_SHELL" = x; then
176
if (eval ":") 2>/dev/null; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
177
178
as_have_required=yes
179
180
as_have_required=no
182
if test $as_have_required = yes && (eval ":
192
as_func_ret_success () {
195
as_func_ret_failure () {
200
if as_func_success; then
204
echo as_func_success failed.
207
if as_func_failure; then
209
echo as_func_failure succeeded.
212
if as_func_ret_success; then
216
echo as_func_ret_success failed.
219
if as_func_ret_failure; then
221
echo as_func_ret_failure succeeded.
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228
echo positional parameters were not saved.
231
test \$exitcode = 0) || { (exit 1); exit 1; }
236
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246
190
test -z "$as_dir" && as_dir=.
249
194
for as_base in sh bash ksh sh5; do
250
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
257
for as_shell in $as_candidate_shells $SHELL; do
258
# Try only shells that exist, to save several forks.
259
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
{ ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
279
CONFIG_SHELL=$as_shell
281
if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
# is contrary to our usage. Disable this feature.
287
alias -g '${1+"$@"}'='"$@"'
290
case `(set -o) 2>/dev/null` in
291
*posix*) set -o posix ;;
307
as_func_ret_success () {
310
as_func_ret_failure () {
315
if as_func_success; then
319
echo as_func_success failed.
322
if as_func_failure; then
324
echo as_func_failure succeeded.
327
if as_func_ret_success; then
331
echo as_func_ret_success failed.
334
if as_func_ret_failure; then
336
echo as_func_ret_failure succeeded.
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
343
echo positional parameters were not saved.
346
test $exitcode = 0) || { (exit 1); exit 1; }
351
test "x$as_lineno_1" != "x$as_lineno_2" &&
352
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363
if test "x$CONFIG_SHELL" != x; then
364
for as_var in BASH_ENV ENV
365
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367
222
export CONFIG_SHELL
368
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372
if test $as_have_required = no; then
373
echo This script requires a shell more modern than all the
374
echo shells that I found on your system. Please install a
375
echo modern shell, or manually run the script under such a
376
echo shell if you do have one.
377
{ (exit 1); exit 1; }
387
(eval "as_func_return () {
396
as_func_ret_success () {
399
as_func_ret_failure () {
404
if as_func_success; then
408
echo as_func_success failed.
411
if as_func_failure; then
413
echo as_func_failure succeeded.
416
if as_func_ret_success; then
420
echo as_func_ret_success failed.
423
if as_func_ret_failure; then
425
echo as_func_ret_failure succeeded.
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432
echo positional parameters were not saved.
435
test \$exitcode = 0") || {
436
echo No shell found that supports shell functions.
437
echo Please tell bug-autoconf@gnu.org about your system,
438
echo including any error possibly output before this message.
439
echo This can help us improve future autoconf versions.
440
echo Configuration will now proceed without shell functions.
447
test "x$as_lineno_1" != "x$as_lineno_2" &&
448
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
# uniformly replaced by the line number. The first 'sed' inserts a
452
# line-number line after each line using $LINENO; the second 'sed'
453
# does the real work. The second script uses 'N' to pair each
454
# line-number line with the line containing $LINENO, and appends
455
# trailing '-' during substitution so that $LINENO is not a special
457
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
# scripts with optimization help from Paolo Bonzini. Blame Lee
459
# E. McMahon (1931-1989) for sed's syntax. :-)
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: memcached@googlegroups.com about your system, including
235
$0: any error possibly output before this message. Then
236
$0: install a modern shell, or manually run the script
237
$0: under such a shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
369
as_status=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1492
1441
test -n "$ac_init_help" && exit $ac_status
1493
1442
if $ac_init_version; then
1495
memcached configure 1.4.5
1496
generated by GNU Autoconf 2.63
1444
memcached configure 1.4.7
1445
generated by GNU Autoconf 2.65
1498
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1447
Copyright (C) 2009 Free Software Foundation, Inc.
1500
1448
This configure script is free software; the Free Software Foundation
1501
1449
gives unlimited permission to copy, distribute and modify it.
1454
## ------------------------ ##
1455
## Autoconf initialization. ##
1456
## ------------------------ ##
1458
# ac_fn_c_try_compile LINENO
1459
# --------------------------
1460
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1461
ac_fn_c_try_compile ()
1463
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464
rm -f conftest.$ac_objext
1465
if { { ac_try="$ac_compile"
1467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468
*) ac_try_echo=$ac_try;;
1470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471
$as_echo "$ac_try_echo"; } >&5
1472
(eval "$ac_compile") 2>conftest.err
1474
if test -s conftest.err; then
1475
grep -v '^ *+' conftest.err >conftest.er1
1476
cat conftest.er1 >&5
1477
mv -f conftest.er1 conftest.err
1479
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480
test $ac_status = 0; } && {
1481
test -z "$ac_c_werror_flag" ||
1482
test ! -s conftest.err
1483
} && test -s conftest.$ac_objext; then :
1486
$as_echo "$as_me: failed program was:" >&5
1487
sed 's/^/| /' conftest.$ac_ext >&5
1491
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1492
as_fn_set_status $ac_retval
1494
} # ac_fn_c_try_compile
1496
# ac_fn_c_try_cpp LINENO
1497
# ----------------------
1498
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1501
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502
if { { ac_try="$ac_cpp conftest.$ac_ext"
1504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505
*) ac_try_echo=$ac_try;;
1507
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508
$as_echo "$ac_try_echo"; } >&5
1509
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1511
if test -s conftest.err; then
1512
grep -v '^ *+' conftest.err >conftest.er1
1513
cat conftest.er1 >&5
1514
mv -f conftest.er1 conftest.err
1516
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517
test $ac_status = 0; } >/dev/null && {
1518
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1519
test ! -s conftest.err
1523
$as_echo "$as_me: failed program was:" >&5
1524
sed 's/^/| /' conftest.$ac_ext >&5
1528
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529
as_fn_set_status $ac_retval
1533
# ac_fn_c_check_decl LINENO SYMBOL VAR
1534
# ------------------------------------
1535
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1536
ac_fn_c_check_decl ()
1538
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1540
$as_echo_n "checking whether $2 is declared... " >&6; }
1541
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1542
$as_echo_n "(cached) " >&6
1544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545
/* end confdefs.h. */
1558
if ac_fn_c_try_compile "$LINENO"; then :
1563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567
$as_echo "$ac_res" >&6; }
1568
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570
} # ac_fn_c_check_decl
1572
# ac_fn_c_try_run LINENO
1573
# ----------------------
1574
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1575
# that executables *can* be run.
1578
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579
if { { ac_try="$ac_link"
1581
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582
*) ac_try_echo=$ac_try;;
1584
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585
$as_echo "$ac_try_echo"; } >&5
1586
(eval "$ac_link") 2>&5
1588
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1590
{ { case "(($ac_try" in
1591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592
*) ac_try_echo=$ac_try;;
1594
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595
$as_echo "$ac_try_echo"; } >&5
1596
(eval "$ac_try") 2>&5
1598
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599
test $ac_status = 0; }; }; then :
1602
$as_echo "$as_me: program exited with status $ac_status" >&5
1603
$as_echo "$as_me: failed program was:" >&5
1604
sed 's/^/| /' conftest.$ac_ext >&5
1606
ac_retval=$ac_status
1608
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610
as_fn_set_status $ac_retval
1614
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615
# -------------------------------------------------------
1616
# Tests whether HEADER exists and can be compiled using the include files in
1617
# INCLUDES, setting the cache variable VAR accordingly.
1618
ac_fn_c_check_header_compile ()
1620
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622
$as_echo_n "checking for $2... " >&6; }
1623
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624
$as_echo_n "(cached) " >&6
1626
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627
/* end confdefs.h. */
1631
if ac_fn_c_try_compile "$LINENO"; then :
1636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640
$as_echo "$ac_res" >&6; }
1641
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643
} # ac_fn_c_check_header_compile
1645
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646
# -------------------------------------------------------
1647
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648
# the include files in INCLUDES and setting the cache variable VAR
1650
ac_fn_c_check_header_mongrel ()
1652
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655
$as_echo_n "checking for $2... " >&6; }
1656
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657
$as_echo_n "(cached) " >&6
1660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661
$as_echo "$ac_res" >&6; }
1663
# Is the header compilable?
1664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665
$as_echo_n "checking $2 usability... " >&6; }
1666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667
/* end confdefs.h. */
1671
if ac_fn_c_try_compile "$LINENO"; then :
1672
ac_header_compiler=yes
1674
ac_header_compiler=no
1676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678
$as_echo "$ac_header_compiler" >&6; }
1680
# Is the header present?
1681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682
$as_echo_n "checking $2 presence... " >&6; }
1683
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684
/* end confdefs.h. */
1687
if ac_fn_c_try_cpp "$LINENO"; then :
1688
ac_header_preproc=yes
1690
ac_header_preproc=no
1692
rm -f conftest.err conftest.$ac_ext
1693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694
$as_echo "$ac_header_preproc" >&6; }
1696
# So? What about this header?
1697
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716
## ----------------------------------------- ##
1717
## Report this to memcached@googlegroups.com ##
1718
## ----------------------------------------- ##
1720
) | sed "s/^/$as_me: WARNING: /" >&2
1723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724
$as_echo_n "checking for $2... " >&6; }
1725
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726
$as_echo_n "(cached) " >&6
1728
eval "$3=\$ac_header_compiler"
1731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732
$as_echo "$ac_res" >&6; }
1734
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
} # ac_fn_c_check_header_mongrel
1738
# ac_fn_c_try_link LINENO
1739
# -----------------------
1740
# Try to link conftest.$ac_ext, and return whether this succeeded.
1743
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744
rm -f conftest.$ac_objext conftest$ac_exeext
1745
if { { ac_try="$ac_link"
1747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748
*) ac_try_echo=$ac_try;;
1750
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751
$as_echo "$ac_try_echo"; } >&5
1752
(eval "$ac_link") 2>conftest.err
1754
if test -s conftest.err; then
1755
grep -v '^ *+' conftest.err >conftest.er1
1756
cat conftest.er1 >&5
1757
mv -f conftest.er1 conftest.err
1759
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760
test $ac_status = 0; } && {
1761
test -z "$ac_c_werror_flag" ||
1762
test ! -s conftest.err
1763
} && test -s conftest$ac_exeext && {
1764
test "$cross_compiling" = yes ||
1765
$as_test_x conftest$ac_exeext
1769
$as_echo "$as_me: failed program was:" >&5
1770
sed 's/^/| /' conftest.$ac_ext >&5
1774
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776
# interfere with the next link command; also delete a directory that is
1777
# left behind by Apple's compiler. We do this before executing the actions.
1778
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780
as_fn_set_status $ac_retval
1782
} # ac_fn_c_try_link
1784
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785
# -------------------------------------------
1786
# Tests whether TYPE exists after having included INCLUDES, setting cache
1787
# variable VAR accordingly.
1788
ac_fn_c_check_type ()
1790
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792
$as_echo_n "checking for $2... " >&6; }
1793
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794
$as_echo_n "(cached) " >&6
1797
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798
/* end confdefs.h. */
1809
if ac_fn_c_try_compile "$LINENO"; then :
1810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811
/* end confdefs.h. */
1822
if ac_fn_c_try_compile "$LINENO"; then :
1827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833
$as_echo "$ac_res" >&6; }
1834
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
} # ac_fn_c_check_type
1838
# ac_fn_c_check_func LINENO FUNC VAR
1839
# ----------------------------------
1840
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1841
ac_fn_c_check_func ()
1843
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845
$as_echo_n "checking for $2... " >&6; }
1846
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847
$as_echo_n "(cached) " >&6
1849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850
/* end confdefs.h. */
1851
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853
#define $2 innocuous_$2
1855
/* System header to define __stub macros and hopefully few prototypes,
1856
which can conflict with char $2 (); below.
1857
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858
<limits.h> exists even on freestanding compilers. */
1861
# include <limits.h>
1863
# include <assert.h>
1868
/* Override any GCC internal prototype to avoid an error.
1869
Use char because int might match the return type of a GCC
1870
builtin and then its argument prototype would still apply. */
1875
/* The GNU C library defines this for functions which it implements
1876
to always fail with ENOSYS. Some functions are actually named
1877
something starting with __ and the normal name is an alias. */
1878
#if defined __stub_$2 || defined __stub___$2
1890
if ac_fn_c_try_link "$LINENO"; then :
1895
rm -f core conftest.err conftest.$ac_objext \
1896
conftest$ac_exeext conftest.$ac_ext
1899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900
$as_echo "$ac_res" >&6; }
1901
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903
} # ac_fn_c_check_func
1505
1904
cat >config.log <<_ACEOF
1506
1905
This file contains any messages produced by compilers while
1507
1906
running configure, to aid debugging if configure makes a mistake.
1509
It was created by memcached $as_me 1.4.5, which was
1510
generated by GNU Autoconf 2.63. Invocation command line was
1908
It was created by memcached $as_me 1.4.7, which was
1909
generated by GNU Autoconf 2.65. Invocation command line was
2185
2547
# expand $ac_aux_dir to an absolute path
2186
2548
am_aux_dir=`cd $ac_aux_dir && pwd`
2188
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2550
if test x"${MISSING+set}" != xset; then
2553
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2555
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2189
2558
# Use eval to expand $SHELL
2190
2559
if eval "$MISSING --run true"; then
2191
2560
am_missing_run="$MISSING --run "
2193
2562
am_missing_run=
2194
{ $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2195
2564
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2198
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2567
if test x"${install_sh}" != xset; then
2570
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2572
install_sh="\${SHELL} $am_aux_dir/install-sh"
2576
# Installed binaries are usually stripped using `strip' when the user
2577
# run `make install-strip'. However `strip' might not be the right
2578
# tool to use in cross-compilation environments, therefore Automake
2579
# will honor the `STRIP' environment variable to overrule this program.
2580
if test "$cross_compiling" != no; then
2581
if test -n "$ac_tool_prefix"; then
2582
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2583
set dummy ${ac_tool_prefix}strip; ac_word=$2
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585
$as_echo_n "checking for $ac_word... " >&6; }
2586
if test "${ac_cv_prog_STRIP+set}" = set; then :
2587
$as_echo_n "(cached) " >&6
2589
if test -n "$STRIP"; then
2590
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596
test -z "$as_dir" && as_dir=.
2597
for ac_exec_ext in '' $ac_executable_extensions; do
2598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609
STRIP=$ac_cv_prog_STRIP
2610
if test -n "$STRIP"; then
2611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2612
$as_echo "$STRIP" >&6; }
2614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615
$as_echo "no" >&6; }
2620
if test -z "$ac_cv_prog_STRIP"; then
2622
# Extract the first word of "strip", so it can be a program name with args.
2623
set dummy strip; ac_word=$2
2624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625
$as_echo_n "checking for $ac_word... " >&6; }
2626
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2627
$as_echo_n "(cached) " >&6
2629
if test -n "$ac_ct_STRIP"; then
2630
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636
test -z "$as_dir" && as_dir=.
2637
for ac_exec_ext in '' $ac_executable_extensions; do
2638
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639
ac_cv_prog_ac_ct_STRIP="strip"
2640
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2650
if test -n "$ac_ct_STRIP"; then
2651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2652
$as_echo "$ac_ct_STRIP" >&6; }
2654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655
$as_echo "no" >&6; }
2658
if test "x$ac_ct_STRIP" = x; then
2661
case $cross_compiling:$ac_tool_warned in
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665
ac_tool_warned=yes ;;
2670
STRIP="$ac_cv_prog_STRIP"
2674
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2199
2677
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2200
2678
if test -z "$MKDIR_P"; then
2201
if test "${ac_cv_path_mkdir+set}" = set; then
2679
if test "${ac_cv_path_mkdir+set}" = set; then :
2202
2680
$as_echo_n "(cached) " >&6
2204
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378
2854
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2380
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2382
# Installed binaries are usually stripped using `strip' when the user
2383
# run `make install-strip'. However `strip' might not be the right
2384
# tool to use in cross-compilation environments, therefore Automake
2385
# will honor the `STRIP' environment variable to overrule this program.
2386
if test "$cross_compiling" != no; then
2387
if test -n "$ac_tool_prefix"; then
2388
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2389
set dummy ${ac_tool_prefix}strip; ac_word=$2
2390
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2391
$as_echo_n "checking for $ac_word... " >&6; }
2392
if test "${ac_cv_prog_STRIP+set}" = set; then
2393
$as_echo_n "(cached) " >&6
2395
if test -n "$STRIP"; then
2396
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402
test -z "$as_dir" && as_dir=.
2403
for ac_exec_ext in '' $ac_executable_extensions; do
2404
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2406
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415
STRIP=$ac_cv_prog_STRIP
2416
if test -n "$STRIP"; then
2417
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2418
$as_echo "$STRIP" >&6; }
2420
{ $as_echo "$as_me:$LINENO: result: no" >&5
2421
$as_echo "no" >&6; }
2426
if test -z "$ac_cv_prog_STRIP"; then
2428
# Extract the first word of "strip", so it can be a program name with args.
2429
set dummy strip; ac_word=$2
2430
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2431
$as_echo_n "checking for $ac_word... " >&6; }
2432
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2433
$as_echo_n "(cached) " >&6
2435
if test -n "$ac_ct_STRIP"; then
2436
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442
test -z "$as_dir" && as_dir=.
2443
for ac_exec_ext in '' $ac_executable_extensions; do
2444
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445
ac_cv_prog_ac_ct_STRIP="strip"
2446
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2456
if test -n "$ac_ct_STRIP"; then
2457
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2458
$as_echo "$ac_ct_STRIP" >&6; }
2460
{ $as_echo "$as_me:$LINENO: result: no" >&5
2461
$as_echo "no" >&6; }
2464
if test "x$ac_ct_STRIP" = x; then
2467
case $cross_compiling:$ac_tool_warned in
2469
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2470
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2471
ac_tool_warned=yes ;;
2476
STRIP="$ac_cv_prog_STRIP"
2480
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2482
2856
# We need awk for the "check" target. The system "awk" is bad on
2483
2857
# some platforms.
2484
2858
# Always define AMTAR for backward compatibility.
3278
if test -z "$ac_file"; then :
3279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280
$as_echo "no" >&6; }
3281
$as_echo "$as_me: failed program was:" >&5
3282
sed 's/^/| /' conftest.$ac_ext >&5
2925
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3284
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286
{ as_fn_set_status 77
3287
as_fn_error "C compiler cannot create executables
3288
See \`config.log' for more details." "$LINENO" 5; }; }
3290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291
$as_echo "yes" >&6; }
3293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3294
$as_echo_n "checking for C compiler default output file name... " >&6; }
3295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2926
3296
$as_echo "$ac_file" >&6; }
2927
if test -z "$ac_file"; then
2928
$as_echo "$as_me: failed program was:" >&5
2929
sed 's/^/| /' conftest.$ac_ext >&5
2931
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2932
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2934
See \`config.log' for more details." >&5
2935
$as_echo "$as_me: error: C compiler cannot create executables
2936
See \`config.log' for more details." >&2;}
2937
{ (exit 77); exit 77; }; }; }
2940
3297
ac_exeext=$ac_cv_exeext
2942
# Check that the compiler produces executables we can run. If not, either
2943
# the compiler is broken, or we cross compile.
2944
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2945
$as_echo_n "checking whether the C compiler works... " >&6; }
2946
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2947
# If not cross compiling, check that we can run a simple program.
2948
if test "$cross_compiling" != yes; then
2949
if { ac_try='./$ac_file'
2950
{ (case "(($ac_try" in
2951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952
*) ac_try_echo=$ac_try;;
2954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2955
$as_echo "$ac_try_echo") >&5
2956
(eval "$ac_try") 2>&5
2958
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959
(exit $ac_status); }; }; then
2962
if test "$cross_compiling" = maybe; then
2965
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2966
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2968
If you meant to cross compile, use \`--host'.
2969
See \`config.log' for more details." >&5
2970
$as_echo "$as_me: error: cannot run C compiled programs.
2971
If you meant to cross compile, use \`--host'.
2972
See \`config.log' for more details." >&2;}
2973
{ (exit 1); exit 1; }; }; }
2977
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2978
$as_echo "yes" >&6; }
2980
3299
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2981
3300
ac_clean_files=$ac_clean_files_save
2982
# Check that the compiler produces executables we can run. If not, either
2983
# the compiler is broken, or we cross compile.
2984
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2985
$as_echo_n "checking whether we are cross compiling... " >&6; }
2986
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2987
$as_echo "$cross_compiling" >&6; }
2989
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2990
3302
$as_echo_n "checking for suffix of executables... " >&6; }
2991
if { (ac_try="$ac_link"
3303
if { { ac_try="$ac_link"
2992
3304
case "(($ac_try" in
2993
3305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994
3306
*) ac_try_echo=$ac_try;;
2996
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2997
$as_echo "$ac_try_echo") >&5
3308
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309
$as_echo "$ac_try_echo"; } >&5
2998
3310
(eval "$ac_link") 2>&5
3000
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001
(exit $ac_status); }; then
3312
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313
test $ac_status = 0; }; then :
3002
3314
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3003
3315
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3004
3316
# work properly (i.e., refer to `conftest.exe'), while it won't with
3016
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3328
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017
3329
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3019
See \`config.log' for more details." >&5
3020
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3021
See \`config.log' for more details." >&2;}
3022
{ (exit 1); exit 1; }; }; }
3330
as_fn_error "cannot compute suffix of executables: cannot compile and link
3331
See \`config.log' for more details." "$LINENO" 5; }
3025
rm -f conftest$ac_cv_exeext
3026
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3333
rm -f conftest conftest$ac_cv_exeext
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3027
3335
$as_echo "$ac_cv_exeext" >&6; }
3029
3337
rm -f conftest.$ac_ext
3030
3338
EXEEXT=$ac_cv_exeext
3031
3339
ac_exeext=$EXEEXT
3032
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341
/* end confdefs.h. */
3346
FILE *f = fopen ("conftest.out", "w");
3347
return ferror (f) || fclose (f) != 0;
3353
ac_clean_files="$ac_clean_files conftest.out"
3354
# Check that the compiler produces executables we can run. If not, either
3355
# the compiler is broken, or we cross compile.
3356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3357
$as_echo_n "checking whether we are cross compiling... " >&6; }
3358
if test "$cross_compiling" != yes; then
3359
{ { ac_try="$ac_link"
3361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362
*) ac_try_echo=$ac_try;;
3364
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365
$as_echo "$ac_try_echo"; } >&5
3366
(eval "$ac_link") 2>&5
3368
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369
test $ac_status = 0; }
3370
if { ac_try='./conftest$ac_cv_exeext'
3371
{ { case "(($ac_try" in
3372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373
*) ac_try_echo=$ac_try;;
3375
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376
$as_echo "$ac_try_echo"; } >&5
3377
(eval "$ac_try") 2>&5
3379
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380
test $ac_status = 0; }; }; then
3383
if test "$cross_compiling" = maybe; then
3386
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388
as_fn_error "cannot run C compiled programs.
3389
If you meant to cross compile, use \`--host'.
3390
See \`config.log' for more details." "$LINENO" 5; }
3394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3395
$as_echo "$cross_compiling" >&6; }
3397
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3398
ac_clean_files=$ac_clean_files_save
3399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3033
3400
$as_echo_n "checking for suffix of object files... " >&6; }
3034
if test "${ac_cv_objext+set}" = set; then
3401
if test "${ac_cv_objext+set}" = set; then :
3035
3402
$as_echo_n "(cached) " >&6
3037
cat >conftest.$ac_ext <<_ACEOF
3040
cat confdefs.h >>conftest.$ac_ext
3041
cat >>conftest.$ac_ext <<_ACEOF
3404
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042
3405
/* end confdefs.h. */
4012
{ $as_echo "$as_me:$LINENO: checking for Sun cc in use" >&5
4013
$as_echo_n "checking for Sun cc in use... " >&6; }
4014
if test "$cross_compiling" = yes; then
4015
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4016
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4018
See \`config.log' for more details." >&5
4019
$as_echo "$as_me: error: cannot run test program while cross compiling
4020
See \`config.log' for more details." >&2;}
4021
{ (exit 1); exit 1; }; }; }
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155
$as_echo_n "checking for ANSI C header files... " >&6; }
4156
if test "${ac_cv_header_stdc+set}" = set; then :
4157
$as_echo_n "(cached) " >&6
4023
cat >conftest.$ac_ext <<_ACEOF
4026
cat confdefs.h >>conftest.$ac_ext
4027
cat >>conftest.$ac_ext <<_ACEOF
4159
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028
4160
/* end confdefs.h. */
4174
if ac_fn_c_try_compile "$LINENO"; then :
4175
ac_cv_header_stdc=yes
4177
ac_cv_header_stdc=no
4179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
if test $ac_cv_header_stdc = yes; then
4182
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184
/* end confdefs.h. */
4188
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189
$EGREP "memchr" >/dev/null 2>&1; then :
4192
ac_cv_header_stdc=no
4198
if test $ac_cv_header_stdc = yes; then
4199
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201
/* end confdefs.h. */
4205
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206
$EGREP "free" >/dev/null 2>&1; then :
4209
ac_cv_header_stdc=no
4215
if test $ac_cv_header_stdc = yes; then
4216
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217
if test "$cross_compiling" = yes; then :
4220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221
/* end confdefs.h. */
4224
#if ((' ' & 0x0FF) == 0x020)
4225
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228
# define ISLOWER(c) \
4229
(('a' <= (c) && (c) <= 'i') \
4230
|| ('j' <= (c) && (c) <= 'r') \
4231
|| ('s' <= (c) && (c) <= 'z'))
4232
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4235
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240
for (i = 0; i < 256; i++)
4241
if (XOR (islower (i), ISLOWER (i))
4242
|| toupper (i) != TOUPPER (i))
4044
rm -f conftest$ac_exeext
4045
if { (ac_try="$ac_link"
4047
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048
*) ac_try_echo=$ac_try;;
4050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051
$as_echo "$ac_try_echo") >&5
4052
(eval "$ac_link") 2>&5
4054
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4056
{ (case "(($ac_try" in
4057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058
*) ac_try_echo=$ac_try;;
4060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061
$as_echo "$ac_try_echo") >&5
4062
(eval "$ac_try") 2>&5
4064
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065
(exit $ac_status); }; }; then
4067
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4068
$as_echo "yes" >&6; }
4069
CFLAGS="-mt $CFLAGS"
4073
$as_echo "$as_me: program exited with status $ac_status" >&5
4074
$as_echo "$as_me: failed program was:" >&5
4075
sed 's/^/| /' conftest.$ac_ext >&5
4079
{ $as_echo "$as_me:$LINENO: result: no" >&5
4080
$as_echo "no" >&6; }
4084
rm -rf conftest.dSYM
4085
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247
if ac_fn_c_try_run "$LINENO"; then :
4250
ac_cv_header_stdc=no
4252
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4253
conftest.$ac_objext conftest.beam conftest.$ac_ext
4258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259
$as_echo "$ac_cv_header_stdc" >&6; }
4260
if test $ac_cv_header_stdc = yes; then
4262
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4266
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268
inttypes.h stdint.h unistd.h
4270
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4273
eval as_val=\$$as_ac_Header
4274
if test "x$as_val" = x""yes; then :
4275
cat >>confdefs.h <<_ACEOF
4276
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4286
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4292
if test "x$SUNCC" = "xyes"; then :
4293
CFLAGS="-mt $CFLAGS"
4091
4298
if test "$ICC" = "no"; then
4092
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4093
4300
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4094
if test "${ac_cv_prog_cc_c99+set}" = set; then
4301
if test "${ac_cv_prog_cc_c99+set}" = set; then :
4095
4302
$as_echo_n "(cached) " >&6
4097
4304
ac_cv_prog_cc_c99=no
4099
cat >conftest.$ac_ext <<_ACEOF
4102
cat confdefs.h >>conftest.$ac_ext
4103
cat >>conftest.$ac_ext <<_ACEOF
4306
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104
4307
/* end confdefs.h. */
4105
4308
#include <stdarg.h>
4106
4309
#include <stdbool.h>
4324
4502
# existing .o file with -o, though they will create one.
4325
4503
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326
4504
rm -f conftest2.*
4327
if { (case "(($ac_try" in
4328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329
*) ac_try_echo=$ac_try;;
4331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332
$as_echo "$ac_try_echo") >&5
4333
(eval "$ac_try") 2>&5
4335
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
(exit $ac_status); } &&
4337
test -f conftest2.$ac_objext && { (case "(($ac_try" in
4338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339
*) ac_try_echo=$ac_try;;
4341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342
$as_echo "$ac_try_echo") >&5
4343
(eval "$ac_try") 2>&5
4345
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
(exit $ac_status); };
4505
if { { case "(($ac_try" in
4506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507
*) ac_try_echo=$ac_try;;
4509
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510
$as_echo "$ac_try_echo"; } >&5
4511
(eval "$ac_try") 2>&5
4513
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514
test $ac_status = 0; } &&
4515
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517
*) ac_try_echo=$ac_try;;
4519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520
$as_echo "$ac_try_echo"; } >&5
4521
(eval "$ac_try") 2>&5
4523
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524
test $ac_status = 0; };
4348
4526
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4349
4527
if test "x$CC" != xcc; then
4350
4528
# Test first that cc exists at all.
4351
4529
if { ac_try='cc -c conftest.$ac_ext >&5'
4352
{ (case "(($ac_try" in
4530
{ { case "(($ac_try" in
4353
4531
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354
4532
*) ac_try_echo=$ac_try;;
4356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357
$as_echo "$ac_try_echo") >&5
4534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535
$as_echo "$ac_try_echo"; } >&5
4358
4536
(eval "$ac_try") 2>&5
4360
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361
(exit $ac_status); }; }; then
4538
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539
test $ac_status = 0; }; }; then
4362
4540
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4363
4541
rm -f conftest2.*
4364
if { (case "(($ac_try" in
4365
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366
*) ac_try_echo=$ac_try;;
4368
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4369
$as_echo "$ac_try_echo") >&5
4370
(eval "$ac_try") 2>&5
4372
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373
(exit $ac_status); } &&
4374
test -f conftest2.$ac_objext && { (case "(($ac_try" in
4375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376
*) ac_try_echo=$ac_try;;
4378
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4379
$as_echo "$ac_try_echo") >&5
4380
(eval "$ac_try") 2>&5
4382
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
(exit $ac_status); };
4542
if { { case "(($ac_try" in
4543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544
*) ac_try_echo=$ac_try;;
4546
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547
$as_echo "$ac_try_echo"; } >&5
4548
(eval "$ac_try") 2>&5
4550
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551
test $ac_status = 0; } &&
4552
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554
*) ac_try_echo=$ac_try;;
4556
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557
$as_echo "$ac_try_echo"; } >&5
4558
(eval "$ac_try") 2>&5
4560
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561
test $ac_status = 0; };
4385
4563
# cc works too.
4427
# Find a good install program. We prefer a C program (faster),
4428
# so one script is as good as another. But avoid the broken or
4429
# incompatible versions:
4430
# SysV /etc/install, /usr/sbin/install
4431
# SunOS /usr/etc/install
4432
# IRIX /sbin/install
4434
# AmigaOS /C/install, which installs bootblocks on floppy discs
4435
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4436
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4437
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4438
# OS/2's system install, which has a completely different semantic
4439
# ./install, which can be erroneously created by make from ./install.sh.
4440
# Reject install programs that cannot install multiple files.
4441
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4442
$as_echo_n "checking for a BSD-compatible install... " >&6; }
4443
if test -z "$INSTALL"; then
4444
if test "${ac_cv_path_install+set}" = set; then
4445
$as_echo_n "(cached) " >&6
4447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451
test -z "$as_dir" && as_dir=.
4452
# Account for people who put trailing slashes in PATH elements.
4454
./ | .// | /cC/* | \
4455
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4456
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4459
# OSF1 and SCO ODT 3.0 have their own names for install.
4460
# Don't use installbsd from OSF since it installs stuff as root
4462
for ac_prog in ginstall scoinst install; do
4463
for ac_exec_ext in '' $ac_executable_extensions; do
4464
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4465
if test $ac_prog = install &&
4466
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4467
# AIX install. It has an incompatible calling convention.
4469
elif test $ac_prog = install &&
4470
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4471
# program-specific install script used by HP pwplus--don't use.
4474
rm -rf conftest.one conftest.two conftest.dir
4475
echo one > conftest.one
4476
echo two > conftest.two
4478
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4479
test -s conftest.one && test -s conftest.two &&
4480
test -s conftest.dir/conftest.one &&
4481
test -s conftest.dir/conftest.two
4483
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4496
rm -rf conftest.one conftest.two conftest.dir
4499
if test "${ac_cv_path_install+set}" = set; then
4500
INSTALL=$ac_cv_path_install
4502
# As a last resort, use the slow shell script. Don't cache a
4503
# value for INSTALL within a source directory, because that will
4504
# break other packages using the cache if that directory is
4505
# removed, or if the value is a relative name.
4506
INSTALL=$ac_install_sh
4509
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4510
$as_echo "$INSTALL" >&6; }
4512
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4513
# It thinks the first close brace ends the variable substitution.
4514
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4516
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4518
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4521
4605
# Check whether --enable-sasl was given.
4522
if test "${enable_sasl+set}" = set; then
4606
if test "${enable_sasl+set}" = set; then :
4523
4607
enableval=$enable_sasl;
4527
4611
# Check whether --enable-sasl_pwdb was given.
4528
if test "${enable_sasl_pwdb+set}" = set; then
4612
if test "${enable_sasl_pwdb+set}" = set; then :
4529
4613
enableval=$enable_sasl_pwdb;
4533
if test "x$enable_sasl_pwdb" = "xyes"; then
4617
if test "x$enable_sasl_pwdb" = "xyes"; then :
4534
4618
enable_sasl=yes
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
4546
cat >conftest.$ac_ext <<_ACEOF
4549
cat confdefs.h >>conftest.$ac_ext
4550
cat >>conftest.$ac_ext <<_ACEOF
4551
/* end confdefs.h. */
4565
rm -f conftest.$ac_objext
4566
if { (ac_try="$ac_compile"
4568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569
*) ac_try_echo=$ac_try;;
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
4575
grep -v '^ *+' conftest.er1 >conftest.err
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
4585
$as_echo "$as_me: failed program was:" >&5
4586
sed 's/^/| /' conftest.$ac_ext >&5
4588
ac_cv_header_stdc=no
4591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4598
cat confdefs.h >>conftest.$ac_ext
4599
cat >>conftest.$ac_ext <<_ACEOF
4600
/* end confdefs.h. */
4604
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605
$EGREP "memchr" >/dev/null 2>&1; then
4608
ac_cv_header_stdc=no
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
4619
cat confdefs.h >>conftest.$ac_ext
4620
cat >>conftest.$ac_ext <<_ACEOF
4621
/* end confdefs.h. */
4625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626
$EGREP "free" >/dev/null 2>&1; then
4629
ac_cv_header_stdc=no
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
4640
cat >conftest.$ac_ext <<_ACEOF
4643
cat confdefs.h >>conftest.$ac_ext
4644
cat >>conftest.$ac_ext <<_ACEOF
4645
/* end confdefs.h. */
4648
#if ((' ' & 0x0FF) == 0x020)
4649
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4659
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664
for (i = 0; i < 256; i++)
4665
if (XOR (islower (i), ISLOWER (i))
4666
|| toupper (i) != TOUPPER (i))
4671
rm -f conftest$ac_exeext
4672
if { (ac_try="$ac_link"
4674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675
*) ac_try_echo=$ac_try;;
4677
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4678
$as_echo "$ac_try_echo") >&5
4679
(eval "$ac_link") 2>&5
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;;
4687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688
$as_echo "$ac_try_echo") >&5
4689
(eval "$ac_try") 2>&5
4691
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692
(exit $ac_status); }; }; then
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
4700
ac_cv_header_stdc=no
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
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
4713
cat >>confdefs.h <<\_ACEOF
4714
#define STDC_HEADERS 1
4719
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
4738
cat >conftest.$ac_ext <<_ACEOF
4741
cat confdefs.h >>conftest.$ac_ext
4742
cat >>conftest.$ac_ext <<_ACEOF
4743
/* end confdefs.h. */
4744
$ac_includes_default
4746
#include <$ac_header>
4748
rm -f conftest.$ac_objext
4749
if { (ac_try="$ac_compile"
4751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752
*) ac_try_echo=$ac_try;;
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
4758
grep -v '^ *+' conftest.er1 >conftest.err
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"
4768
$as_echo "$as_me: failed program was:" >&5
4769
sed 's/^/| /' conftest.$ac_ext >&5
4771
eval "$as_ac_Header=no"
4774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4793
4624
for ac_header in sasl/sasl.h
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
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; }
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
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>
4819
rm -f conftest.$ac_objext
4820
if { (ac_try="$ac_compile"
4822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823
*) ac_try_echo=$ac_try;;
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
4829
grep -v '^ *+' conftest.er1 >conftest.err
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
4839
$as_echo "$as_me: failed program was:" >&5
4840
sed 's/^/| /' conftest.$ac_ext >&5
4842
ac_header_compiler=no
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; }
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
4855
cat confdefs.h >>conftest.$ac_ext
4856
cat >>conftest.$ac_ext <<_ACEOF
4857
/* end confdefs.h. */
4858
#include <$ac_header>
4860
if { (ac_try="$ac_cpp conftest.$ac_ext"
4862
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863
*) ac_try_echo=$ac_try;;
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
4869
grep -v '^ *+' conftest.er1 >conftest.err
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
4877
ac_header_preproc=yes
4879
$as_echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4882
ac_header_preproc=no
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; }
4889
# So? What about this header?
4890
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
4912
## ----------------------------------------- ##
4913
## Report this to memcached@googlegroups.com ##
4914
## ----------------------------------------- ##
4916
) | sed "s/^/$as_me: WARNING: /" >&2
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
4924
eval "$as_ac_Header=\$ac_header_preproc"
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; }
4932
as_val=`eval 'as_val=${'$as_ac_Header'}
4933
$as_echo "$as_val"'`
4934
if test "x$as_val" = x""yes; then
4626
ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
4627
if test "x$ac_cv_header_sasl_sasl_h" = x""yes; then :
4935
4628
cat >>confdefs.h <<_ACEOF
4936
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629
#define HAVE_SASL_SASL_H 1
5046
4705
ac_res=-l$ac_lib
5047
4706
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5049
rm -f conftest.$ac_objext conftest$ac_exeext
5050
if { (ac_try="$ac_link"
5052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053
*) ac_try_echo=$ac_try;;
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
5059
grep -v '^ *+' conftest.er1 >conftest.err
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
4708
if ac_fn_c_try_link "$LINENO"; then :
5070
4709
ac_cv_search_sasl_server_init=$ac_res
5072
$as_echo "$as_me: failed program was:" >&5
5073
sed 's/^/| /' conftest.$ac_ext >&5
5078
rm -rf conftest.dSYM
5079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5081
if test "${ac_cv_search_sasl_server_init+set}" = set; then
4711
rm -f core conftest.err conftest.$ac_objext \
4713
if test "${ac_cv_search_sasl_server_init+set}" = set; then :
5085
if test "${ac_cv_search_sasl_server_init+set}" = set; then
4717
if test "${ac_cv_search_sasl_server_init+set}" = set; then :
5088
4720
ac_cv_search_sasl_server_init=no
5090
4722
rm conftest.$ac_ext
5091
4723
LIBS=$ac_func_search_save_LIBS
5093
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sasl_server_init" >&5
4725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sasl_server_init" >&5
5094
4726
$as_echo "$ac_cv_search_sasl_server_init" >&6; }
5095
4727
ac_res=$ac_cv_search_sasl_server_init
5096
if test "$ac_res" != no; then
4728
if test "$ac_res" != no; then :
5097
4729
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
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; }; }
5108
if test "x$enable_sasl_pwdb" = "xyes"; then
5110
cat >>confdefs.h <<\_ACEOF
5111
#define ENABLE_SASL_PWDB 1
4733
as_fn_error "Failed to locate the library containing sasl_server_init" "$LINENO" 5
4738
if test "x$enable_sasl_pwdb" = "xyes"; then :
4740
$as_echo "#define ENABLE_SASL_PWDB 1" >>confdefs.h
5118
4745
# Check whether --enable-dtrace was given.
5119
if test "${enable_dtrace+set}" = set; then
4746
if test "${enable_dtrace+set}" = set; then :
5120
4747
enableval=$enable_dtrace;
5123
4750
if test "x$enable_dtrace" = "xyes"; then
5124
4751
# Extract the first word of "dtrace", so it can be a program name with args.
5125
4752
set dummy dtrace; ac_word=$2
5126
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127
4754
$as_echo_n "checking for $ac_word... " >&6; }
5128
if test "${ac_cv_path_DTRACE+set}" = set; then
4755
if test "${ac_cv_path_DTRACE+set}" = set; then :
5129
4756
$as_echo_n "(cached) " >&6
5131
4758
case $DTRACE in
5437
rm -f conftest$ac_exeext
5438
if { (ac_try="$ac_link"
5440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441
*) ac_try_echo=$ac_try;;
5443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444
$as_echo "$ac_try_echo") >&5
5445
(eval "$ac_link") 2>&5
5447
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5449
{ (case "(($ac_try" in
5450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451
*) ac_try_echo=$ac_try;;
5453
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454
$as_echo "$ac_try_echo") >&5
5455
(eval "$ac_try") 2>&5
5457
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458
(exit $ac_status); }; }; then
5022
if ac_fn_c_try_run "$LINENO"; then :
5460
5024
CFLAGS="-m64 $org_cflags"
5463
$as_echo "$as_me: program exited with status $ac_status" >&5
5464
$as_echo "$as_me: failed program was:" >&5
5465
sed 's/^/| /' conftest.$ac_ext >&5
5469
{ { $as_echo "$as_me:$LINENO: error: Don't know how to build a 64-bit object." >&5
5470
$as_echo "$as_me: error: Don't know how to build a 64-bit object." >&2;}
5471
{ (exit 1); exit 1; }; }
5474
rm -rf conftest.dSYM
5475
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5028
as_fn_error "Don't know how to build a 64-bit object." "$LINENO" 5
5031
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5032
conftest.$ac_objext conftest.beam conftest.$ac_ext
5037
# Issue 213: Search for clock_gettime to help people linking
5038
# with a static version of libevent
5039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5040
$as_echo_n "checking for library containing clock_gettime... " >&6; }
5041
if test "${ac_cv_search_clock_gettime+set}" = set; then :
5042
$as_echo_n "(cached) " >&6
5044
ac_func_search_save_LIBS=$LIBS
5045
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046
/* end confdefs.h. */
5048
/* Override any GCC internal prototype to avoid an error.
5049
Use char because int might match the return type of a GCC
5050
builtin and then its argument prototype would still apply. */
5054
char clock_gettime ();
5058
return clock_gettime ();
5063
for ac_lib in '' rt; do
5064
if test -z "$ac_lib"; then
5065
ac_res="none required"
5068
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5070
if ac_fn_c_try_link "$LINENO"; then :
5071
ac_cv_search_clock_gettime=$ac_res
5073
rm -f core conftest.err conftest.$ac_objext \
5075
if test "${ac_cv_search_clock_gettime+set}" = set; then :
5079
if test "${ac_cv_search_clock_gettime+set}" = set; then :
5082
ac_cv_search_clock_gettime=no
5085
LIBS=$ac_func_search_save_LIBS
5087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5088
$as_echo "$ac_cv_search_clock_gettime" >&6; }
5089
ac_res=$ac_cv_search_clock_gettime
5090
if test "$ac_res" != no; then :
5091
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5095
# Issue 214: Search for the network libraries _before_ searching
5096
# for libevent (to help people linking with static libevent)
5097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5098
$as_echo_n "checking for library containing socket... " >&6; }
5099
if test "${ac_cv_search_socket+set}" = set; then :
5100
$as_echo_n "(cached) " >&6
5102
ac_func_search_save_LIBS=$LIBS
5103
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104
/* end confdefs.h. */
5106
/* Override any GCC internal prototype to avoid an error.
5107
Use char because int might match the return type of a GCC
5108
builtin and then its argument prototype would still apply. */
5121
for ac_lib in '' socket; do
5122
if test -z "$ac_lib"; then
5123
ac_res="none required"
5126
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5128
if ac_fn_c_try_link "$LINENO"; then :
5129
ac_cv_search_socket=$ac_res
5131
rm -f core conftest.err conftest.$ac_objext \
5133
if test "${ac_cv_search_socket+set}" = set; then :
5137
if test "${ac_cv_search_socket+set}" = set; then :
5140
ac_cv_search_socket=no
5143
LIBS=$ac_func_search_save_LIBS
5145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5146
$as_echo "$ac_cv_search_socket" >&6; }
5147
ac_res=$ac_cv_search_socket
5148
if test "$ac_res" != no; then :
5149
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5154
$as_echo_n "checking for library containing gethostbyname... " >&6; }
5155
if test "${ac_cv_search_gethostbyname+set}" = set; then :
5156
$as_echo_n "(cached) " >&6
5158
ac_func_search_save_LIBS=$LIBS
5159
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160
/* end confdefs.h. */
5162
/* Override any GCC internal prototype to avoid an error.
5163
Use char because int might match the return type of a GCC
5164
builtin and then its argument prototype would still apply. */
5168
char gethostbyname ();
5172
return gethostbyname ();
5177
for ac_lib in '' nsl; do
5178
if test -z "$ac_lib"; then
5179
ac_res="none required"
5182
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5184
if ac_fn_c_try_link "$LINENO"; then :
5185
ac_cv_search_gethostbyname=$ac_res
5187
rm -f core conftest.err conftest.$ac_objext \
5189
if test "${ac_cv_search_gethostbyname+set}" = set; then :
5193
if test "${ac_cv_search_gethostbyname+set}" = set; then :
5196
ac_cv_search_gethostbyname=no
5199
LIBS=$ac_func_search_save_LIBS
5201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5202
$as_echo "$ac_cv_search_gethostbyname" >&6; }
5203
ac_res=$ac_cv_search_gethostbyname
5204
if test "$ac_res" != no; then :
5205
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5481
5210
trylibeventdir=""
5483
5212
# Check whether --with-libevent was given.
5484
if test "${with_libevent+set}" = set; then
5213
if test "${with_libevent+set}" = set; then :
5485
5214
withval=$with_libevent;
5486
5215
if test "x$withval" != "xno" ; then
5487
5216
trylibeventdir=$withval
5622
{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
5623
$as_echo_n "checking for library containing socket... " >&6; }
5624
if test "${ac_cv_search_socket+set}" = set; then
5625
$as_echo_n "(cached) " >&6
5627
ac_func_search_save_LIBS=$LIBS
5628
cat >conftest.$ac_ext <<_ACEOF
5631
cat confdefs.h >>conftest.$ac_ext
5632
cat >>conftest.$ac_ext <<_ACEOF
5633
/* end confdefs.h. */
5635
/* Override any GCC internal prototype to avoid an error.
5636
Use char because int might match the return type of a GCC
5637
builtin and then its argument prototype would still apply. */
5650
for ac_lib in '' socket; do
5651
if test -z "$ac_lib"; then
5652
ac_res="none required"
5655
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5657
rm -f conftest.$ac_objext conftest$ac_exeext
5658
if { (ac_try="$ac_link"
5660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661
*) ac_try_echo=$ac_try;;
5663
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5664
$as_echo "$ac_try_echo") >&5
5665
(eval "$ac_link") 2>conftest.er1
5667
grep -v '^ *+' conftest.er1 >conftest.err
5669
cat conftest.err >&5
5670
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671
(exit $ac_status); } && {
5672
test -z "$ac_c_werror_flag" ||
5673
test ! -s conftest.err
5674
} && test -s conftest$ac_exeext && {
5675
test "$cross_compiling" = yes ||
5676
$as_test_x conftest$ac_exeext
5678
ac_cv_search_socket=$ac_res
5680
$as_echo "$as_me: failed program was:" >&5
5681
sed 's/^/| /' conftest.$ac_ext >&5
5686
rm -rf conftest.dSYM
5687
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5689
if test "${ac_cv_search_socket+set}" = set; then
5693
if test "${ac_cv_search_socket+set}" = set; then
5696
ac_cv_search_socket=no
5699
LIBS=$ac_func_search_save_LIBS
5701
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5702
$as_echo "$ac_cv_search_socket" >&6; }
5703
ac_res=$ac_cv_search_socket
5704
if test "$ac_res" != no; then
5705
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5709
{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5710
$as_echo_n "checking for library containing gethostbyname... " >&6; }
5711
if test "${ac_cv_search_gethostbyname+set}" = set; then
5712
$as_echo_n "(cached) " >&6
5714
ac_func_search_save_LIBS=$LIBS
5715
cat >conftest.$ac_ext <<_ACEOF
5718
cat confdefs.h >>conftest.$ac_ext
5719
cat >>conftest.$ac_ext <<_ACEOF
5720
/* end confdefs.h. */
5722
/* Override any GCC internal prototype to avoid an error.
5723
Use char because int might match the return type of a GCC
5724
builtin and then its argument prototype would still apply. */
5728
char gethostbyname ();
5732
return gethostbyname ();
5737
for ac_lib in '' nsl; do
5738
if test -z "$ac_lib"; then
5739
ac_res="none required"
5742
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5744
rm -f conftest.$ac_objext conftest$ac_exeext
5745
if { (ac_try="$ac_link"
5747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748
*) ac_try_echo=$ac_try;;
5750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751
$as_echo "$ac_try_echo") >&5
5752
(eval "$ac_link") 2>conftest.er1
5754
grep -v '^ *+' conftest.er1 >conftest.err
5756
cat conftest.err >&5
5757
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758
(exit $ac_status); } && {
5759
test -z "$ac_c_werror_flag" ||
5760
test ! -s conftest.err
5761
} && test -s conftest$ac_exeext && {
5762
test "$cross_compiling" = yes ||
5763
$as_test_x conftest$ac_exeext
5765
ac_cv_search_gethostbyname=$ac_res
5767
$as_echo "$as_me: failed program was:" >&5
5768
sed 's/^/| /' conftest.$ac_ext >&5
5773
rm -rf conftest.dSYM
5774
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5776
if test "${ac_cv_search_gethostbyname+set}" = set; then
5780
if test "${ac_cv_search_gethostbyname+set}" = set; then
5783
ac_cv_search_gethostbyname=no
5786
LIBS=$ac_func_search_save_LIBS
5788
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5789
$as_echo "$ac_cv_search_gethostbyname" >&6; }
5790
ac_res=$ac_cv_search_gethostbyname
5791
if test "$ac_res" != no; then
5792
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5796
{ $as_echo "$as_me:$LINENO: checking for library containing umem_cache_create" >&5
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing umem_cache_create" >&5
5797
5326
$as_echo_n "checking for library containing umem_cache_create... " >&6; }
5798
if test "${ac_cv_search_umem_cache_create+set}" = set; then
5327
if test "${ac_cv_search_umem_cache_create+set}" = set; then :
5799
5328
$as_echo_n "(cached) " >&6
5801
5330
ac_func_search_save_LIBS=$LIBS
5802
cat >conftest.$ac_ext <<_ACEOF
5805
cat confdefs.h >>conftest.$ac_ext
5806
cat >>conftest.$ac_ext <<_ACEOF
5331
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807
5332
/* end confdefs.h. */
5809
5334
/* Override any GCC internal prototype to avoid an error.
6060
rm -f conftest.$ac_objext
6061
if { (ac_try="$ac_compile"
6063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064
*) ac_try_echo=$ac_try;;
6066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6067
$as_echo "$ac_try_echo") >&5
6068
(eval "$ac_compile") 2>conftest.er1
6070
grep -v '^ *+' conftest.er1 >conftest.err
6072
cat conftest.err >&5
6073
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
(exit $ac_status); } && {
6075
test -z "$ac_c_werror_flag" ||
6076
test ! -s conftest.err
6077
} && test -s conftest.$ac_objext; then
5523
if ac_fn_c_try_compile "$LINENO"; then :
6078
5524
ac_cv_header_stdbool_h=yes
6080
$as_echo "$as_me: failed program was:" >&5
6081
sed 's/^/| /' conftest.$ac_ext >&5
6083
ac_cv_header_stdbool_h=no
5526
ac_cv_header_stdbool_h=no
6086
5528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6089
5531
$as_echo "$ac_cv_header_stdbool_h" >&6; }
6090
{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
6091
$as_echo_n "checking for _Bool... " >&6; }
6092
if test "${ac_cv_type__Bool+set}" = set; then
6093
$as_echo_n "(cached) " >&6
6096
cat >conftest.$ac_ext <<_ACEOF
6099
cat confdefs.h >>conftest.$ac_ext
6100
cat >>conftest.$ac_ext <<_ACEOF
6101
/* end confdefs.h. */
6102
$ac_includes_default
6112
rm -f conftest.$ac_objext
6113
if { (ac_try="$ac_compile"
6115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116
*) ac_try_echo=$ac_try;;
6118
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6119
$as_echo "$ac_try_echo") >&5
6120
(eval "$ac_compile") 2>conftest.er1
6122
grep -v '^ *+' conftest.er1 >conftest.err
6124
cat conftest.err >&5
6125
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126
(exit $ac_status); } && {
6127
test -z "$ac_c_werror_flag" ||
6128
test ! -s conftest.err
6129
} && test -s conftest.$ac_objext; then
6130
cat >conftest.$ac_ext <<_ACEOF
6133
cat confdefs.h >>conftest.$ac_ext
6134
cat >>conftest.$ac_ext <<_ACEOF
6135
/* end confdefs.h. */
6136
$ac_includes_default
6140
if (sizeof ((_Bool)))
6146
rm -f conftest.$ac_objext
6147
if { (ac_try="$ac_compile"
6149
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150
*) ac_try_echo=$ac_try;;
6152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153
$as_echo "$ac_try_echo") >&5
6154
(eval "$ac_compile") 2>conftest.er1
6156
grep -v '^ *+' conftest.er1 >conftest.err
6158
cat conftest.err >&5
6159
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160
(exit $ac_status); } && {
6161
test -z "$ac_c_werror_flag" ||
6162
test ! -s conftest.err
6163
} && test -s conftest.$ac_objext; then
6166
$as_echo "$as_me: failed program was:" >&5
6167
sed 's/^/| /' conftest.$ac_ext >&5
6169
ac_cv_type__Bool=yes
6172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174
$as_echo "$as_me: failed program was:" >&5
6175
sed 's/^/| /' conftest.$ac_ext >&5
6180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6183
$as_echo "$ac_cv_type__Bool" >&6; }
6184
if test "x$ac_cv_type__Bool" = x""yes; then
5532
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5533
if test "x$ac_cv_type__Bool" = x""yes; then :
6186
5535
cat >>confdefs.h <<_ACEOF
6187
5536
#define HAVE__BOOL 1
6193
5542
if test $ac_cv_header_stdbool_h = yes; then
6195
cat >>confdefs.h <<\_ACEOF
6196
#define HAVE_STDBOOL_H 1
5544
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6205
5550
for ac_header in inttypes.h
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
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; }
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
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>
6231
rm -f conftest.$ac_objext
6232
if { (ac_try="$ac_compile"
6234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235
*) ac_try_echo=$ac_try;;
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
6241
grep -v '^ *+' conftest.er1 >conftest.err
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
6251
$as_echo "$as_me: failed program was:" >&5
6252
sed 's/^/| /' conftest.$ac_ext >&5
6254
ac_header_compiler=no
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; }
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
6267
cat confdefs.h >>conftest.$ac_ext
6268
cat >>conftest.$ac_ext <<_ACEOF
6269
/* end confdefs.h. */
6270
#include <$ac_header>
6272
if { (ac_try="$ac_cpp conftest.$ac_ext"
6274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275
*) ac_try_echo=$ac_try;;
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
6281
grep -v '^ *+' conftest.er1 >conftest.err
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
6289
ac_header_preproc=yes
6291
$as_echo "$as_me: failed program was:" >&5
6292
sed 's/^/| /' conftest.$ac_ext >&5
6294
ac_header_preproc=no
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; }
6301
# So? What about this header?
6302
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
6324
## ----------------------------------------- ##
6325
## Report this to memcached@googlegroups.com ##
6326
## ----------------------------------------- ##
6328
) | sed "s/^/$as_me: WARNING: /" >&2
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
6336
eval "$as_ac_Header=\$ac_header_preproc"
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; }
6344
as_val=`eval 'as_val=${'$as_ac_Header'}
6345
$as_echo "$as_val"'`
6346
if test "x$as_val" = x""yes; then
5552
ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5553
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6347
5554
cat >>confdefs.h <<_ACEOF
6348
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555
#define HAVE_INTTYPES_H 1
6829
5871
ac_res=-l$ac_lib
6830
5872
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6832
rm -f conftest.$ac_objext conftest$ac_exeext
6833
if { (ac_try="$ac_link"
6835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836
*) ac_try_echo=$ac_try;;
6838
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839
$as_echo "$ac_try_echo") >&5
6840
(eval "$ac_link") 2>conftest.er1
6842
grep -v '^ *+' conftest.er1 >conftest.err
6844
cat conftest.err >&5
6845
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846
(exit $ac_status); } && {
6847
test -z "$ac_c_werror_flag" ||
6848
test ! -s conftest.err
6849
} && test -s conftest$ac_exeext && {
6850
test "$cross_compiling" = yes ||
6851
$as_test_x conftest$ac_exeext
5874
if ac_fn_c_try_link "$LINENO"; then :
6853
5875
ac_cv_search_pthread_create=$ac_res
6855
$as_echo "$as_me: failed program was:" >&5
6856
sed 's/^/| /' conftest.$ac_ext >&5
6861
rm -rf conftest.dSYM
6862
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6864
if test "${ac_cv_search_pthread_create+set}" = set; then
5877
rm -f core conftest.err conftest.$ac_objext \
5879
if test "${ac_cv_search_pthread_create+set}" = set; then :
6868
if test "${ac_cv_search_pthread_create+set}" = set; then
5883
if test "${ac_cv_search_pthread_create+set}" = set; then :
6871
5886
ac_cv_search_pthread_create=no
6873
5888
rm conftest.$ac_ext
6874
5889
LIBS=$ac_func_search_save_LIBS
6876
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
5891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
6877
5892
$as_echo "$ac_cv_search_pthread_create" >&6; }
6878
5893
ac_res=$ac_cv_search_pthread_create
6879
if test "$ac_res" != no; then
5894
if test "$ac_res" != no; then :
6880
5895
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6884
5899
if test "x$ac_cv_search_pthread_create" = "xno"; then
6885
{ { $as_echo "$as_me:$LINENO: error: Can't enable threads without the POSIX thread library." >&5
6886
$as_echo "$as_me: error: Can't enable threads without the POSIX thread library." >&2;}
6887
{ (exit 1); exit 1; }; }
5900
as_fn_error "Can't enable threads without the POSIX thread library." "$LINENO" 5
6891
5903
for ac_func in mlockall
6893
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6894
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6895
$as_echo_n "checking for $ac_func... " >&6; }
6896
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6897
$as_echo_n "(cached) " >&6
6899
cat >conftest.$ac_ext <<_ACEOF
6902
cat confdefs.h >>conftest.$ac_ext
6903
cat >>conftest.$ac_ext <<_ACEOF
6904
/* end confdefs.h. */
6905
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6906
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6907
#define $ac_func innocuous_$ac_func
6909
/* System header to define __stub macros and hopefully few prototypes,
6910
which can conflict with char $ac_func (); below.
6911
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912
<limits.h> exists even on freestanding compilers. */
6915
# include <limits.h>
6917
# include <assert.h>
6922
/* Override any GCC internal prototype to avoid an error.
6923
Use char because int might match the return type of a GCC
6924
builtin and then its argument prototype would still apply. */
6929
/* The GNU C library defines this for functions which it implements
6930
to always fail with ENOSYS. Some functions are actually named
6931
something starting with __ and the normal name is an alias. */
6932
#if defined __stub_$ac_func || defined __stub___$ac_func
6944
rm -f conftest.$ac_objext conftest$ac_exeext
6945
if { (ac_try="$ac_link"
6947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948
*) ac_try_echo=$ac_try;;
6950
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6951
$as_echo "$ac_try_echo") >&5
6952
(eval "$ac_link") 2>conftest.er1
6954
grep -v '^ *+' conftest.er1 >conftest.err
6956
cat conftest.err >&5
6957
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958
(exit $ac_status); } && {
6959
test -z "$ac_c_werror_flag" ||
6960
test ! -s conftest.err
6961
} && test -s conftest$ac_exeext && {
6962
test "$cross_compiling" = yes ||
6963
$as_test_x conftest$ac_exeext
6965
eval "$as_ac_var=yes"
6967
$as_echo "$as_me: failed program was:" >&5
6968
sed 's/^/| /' conftest.$ac_ext >&5
6970
eval "$as_ac_var=no"
6973
rm -rf conftest.dSYM
6974
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975
conftest$ac_exeext conftest.$ac_ext
6977
ac_res=`eval 'as_val=${'$as_ac_var'}
6978
$as_echo "$as_val"'`
6979
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6980
$as_echo "$ac_res" >&6; }
6981
as_val=`eval 'as_val=${'$as_ac_var'}
6982
$as_echo "$as_val"'`
6983
if test "x$as_val" = x""yes; then
5905
ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
5906
if test "x$ac_cv_func_mlockall" = x""yes; then :
6984
5907
cat >>confdefs.h <<_ACEOF
6985
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5908
#define HAVE_MLOCKALL 1
6992
5914
for ac_func in getpagesizes
6994
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6995
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6996
$as_echo_n "checking for $ac_func... " >&6; }
6997
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6998
$as_echo_n "(cached) " >&6
7000
cat >conftest.$ac_ext <<_ACEOF
7003
cat confdefs.h >>conftest.$ac_ext
7004
cat >>conftest.$ac_ext <<_ACEOF
7005
/* end confdefs.h. */
7006
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7007
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7008
#define $ac_func innocuous_$ac_func
7010
/* System header to define __stub macros and hopefully few prototypes,
7011
which can conflict with char $ac_func (); below.
7012
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7013
<limits.h> exists even on freestanding compilers. */
7016
# include <limits.h>
7018
# include <assert.h>
7023
/* Override any GCC internal prototype to avoid an error.
7024
Use char because int might match the return type of a GCC
7025
builtin and then its argument prototype would still apply. */
7030
/* The GNU C library defines this for functions which it implements
7031
to always fail with ENOSYS. Some functions are actually named
7032
something starting with __ and the normal name is an alias. */
7033
#if defined __stub_$ac_func || defined __stub___$ac_func
7045
rm -f conftest.$ac_objext conftest$ac_exeext
7046
if { (ac_try="$ac_link"
7048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049
*) ac_try_echo=$ac_try;;
7051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7052
$as_echo "$ac_try_echo") >&5
7053
(eval "$ac_link") 2>conftest.er1
7055
grep -v '^ *+' conftest.er1 >conftest.err
7057
cat conftest.err >&5
7058
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059
(exit $ac_status); } && {
7060
test -z "$ac_c_werror_flag" ||
7061
test ! -s conftest.err
7062
} && test -s conftest$ac_exeext && {
7063
test "$cross_compiling" = yes ||
7064
$as_test_x conftest$ac_exeext
7066
eval "$as_ac_var=yes"
7068
$as_echo "$as_me: failed program was:" >&5
7069
sed 's/^/| /' conftest.$ac_ext >&5
7071
eval "$as_ac_var=no"
7074
rm -rf conftest.dSYM
7075
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7076
conftest$ac_exeext conftest.$ac_ext
7078
ac_res=`eval 'as_val=${'$as_ac_var'}
7079
$as_echo "$as_val"'`
7080
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7081
$as_echo "$ac_res" >&6; }
7082
as_val=`eval 'as_val=${'$as_ac_var'}
7083
$as_echo "$as_val"'`
7084
if test "x$as_val" = x""yes; then
5916
ac_fn_c_check_func "$LINENO" "getpagesizes" "ac_cv_func_getpagesizes"
5917
if test "x$ac_cv_func_getpagesizes" = x""yes; then :
7085
5918
cat >>confdefs.h <<_ACEOF
7086
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5919
#define HAVE_GETPAGESIZES 1
7093
5925
for ac_func in memcntl
7095
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7096
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7097
$as_echo_n "checking for $ac_func... " >&6; }
7098
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7099
$as_echo_n "(cached) " >&6
7101
cat >conftest.$ac_ext <<_ACEOF
7104
cat confdefs.h >>conftest.$ac_ext
7105
cat >>conftest.$ac_ext <<_ACEOF
7106
/* end confdefs.h. */
7107
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7108
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7109
#define $ac_func innocuous_$ac_func
7111
/* System header to define __stub macros and hopefully few prototypes,
7112
which can conflict with char $ac_func (); below.
7113
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7114
<limits.h> exists even on freestanding compilers. */
7117
# include <limits.h>
7119
# include <assert.h>
7124
/* Override any GCC internal prototype to avoid an error.
7125
Use char because int might match the return type of a GCC
7126
builtin and then its argument prototype would still apply. */
7131
/* The GNU C library defines this for functions which it implements
7132
to always fail with ENOSYS. Some functions are actually named
7133
something starting with __ and the normal name is an alias. */
7134
#if defined __stub_$ac_func || defined __stub___$ac_func
7146
rm -f conftest.$ac_objext conftest$ac_exeext
7147
if { (ac_try="$ac_link"
7149
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150
*) ac_try_echo=$ac_try;;
7152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7153
$as_echo "$ac_try_echo") >&5
7154
(eval "$ac_link") 2>conftest.er1
7156
grep -v '^ *+' conftest.er1 >conftest.err
7158
cat conftest.err >&5
7159
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160
(exit $ac_status); } && {
7161
test -z "$ac_c_werror_flag" ||
7162
test ! -s conftest.err
7163
} && test -s conftest$ac_exeext && {
7164
test "$cross_compiling" = yes ||
7165
$as_test_x conftest$ac_exeext
7167
eval "$as_ac_var=yes"
7169
$as_echo "$as_me: failed program was:" >&5
7170
sed 's/^/| /' conftest.$ac_ext >&5
7172
eval "$as_ac_var=no"
7175
rm -rf conftest.dSYM
7176
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7177
conftest$ac_exeext conftest.$ac_ext
7179
ac_res=`eval 'as_val=${'$as_ac_var'}
7180
$as_echo "$as_val"'`
7181
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7182
$as_echo "$ac_res" >&6; }
7183
as_val=`eval 'as_val=${'$as_ac_var'}
7184
$as_echo "$as_val"'`
7185
if test "x$as_val" = x""yes; then
5927
ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl"
5928
if test "x$ac_cv_func_memcntl" = x""yes; then :
7186
5929
cat >>confdefs.h <<_ACEOF
7187
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5930
#define HAVE_MEMCNTL 1
7194
5936
for ac_func in sigignore
7196
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7197
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7198
$as_echo_n "checking for $ac_func... " >&6; }
7199
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7200
$as_echo_n "(cached) " >&6
7202
cat >conftest.$ac_ext <<_ACEOF
7205
cat confdefs.h >>conftest.$ac_ext
7206
cat >>conftest.$ac_ext <<_ACEOF
7207
/* end confdefs.h. */
7208
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7209
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7210
#define $ac_func innocuous_$ac_func
7212
/* System header to define __stub macros and hopefully few prototypes,
7213
which can conflict with char $ac_func (); below.
7214
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215
<limits.h> exists even on freestanding compilers. */
7218
# include <limits.h>
7220
# include <assert.h>
7225
/* Override any GCC internal prototype to avoid an error.
7226
Use char because int might match the return type of a GCC
7227
builtin and then its argument prototype would still apply. */
7232
/* The GNU C library defines this for functions which it implements
7233
to always fail with ENOSYS. Some functions are actually named
7234
something starting with __ and the normal name is an alias. */
7235
#if defined __stub_$ac_func || defined __stub___$ac_func
7247
rm -f conftest.$ac_objext conftest$ac_exeext
7248
if { (ac_try="$ac_link"
7250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251
*) ac_try_echo=$ac_try;;
7253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254
$as_echo "$ac_try_echo") >&5
7255
(eval "$ac_link") 2>conftest.er1
7257
grep -v '^ *+' conftest.er1 >conftest.err
7259
cat conftest.err >&5
7260
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261
(exit $ac_status); } && {
7262
test -z "$ac_c_werror_flag" ||
7263
test ! -s conftest.err
7264
} && test -s conftest$ac_exeext && {
7265
test "$cross_compiling" = yes ||
7266
$as_test_x conftest$ac_exeext
7268
eval "$as_ac_var=yes"
7270
$as_echo "$as_me: failed program was:" >&5
7271
sed 's/^/| /' conftest.$ac_ext >&5
7273
eval "$as_ac_var=no"
7276
rm -rf conftest.dSYM
7277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7278
conftest$ac_exeext conftest.$ac_ext
7280
ac_res=`eval 'as_val=${'$as_ac_var'}
7281
$as_echo "$as_val"'`
7282
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7283
$as_echo "$ac_res" >&6; }
7284
as_val=`eval 'as_val=${'$as_ac_var'}
7285
$as_echo "$as_val"'`
7286
if test "x$as_val" = x""yes; then
7287
cat >>confdefs.h <<_ACEOF
7288
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7297
{ $as_echo "$as_me:$LINENO: checking for alignment" >&5
5938
ac_fn_c_check_func "$LINENO" "sigignore" "ac_cv_func_sigignore"
5939
if test "x$ac_cv_func_sigignore" = x""yes; then :
5940
cat >>confdefs.h <<_ACEOF
5941
#define HAVE_SIGIGNORE 1
5947
for ac_func in clock_gettime
5949
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5950
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5951
cat >>confdefs.h <<_ACEOF
5952
#define HAVE_CLOCK_GETTIME 1
5961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignment" >&5
7298
5962
$as_echo_n "checking for alignment... " >&6; }
7299
if test "${ac_cv_c_alignment+set}" = set; then
5963
if test "${ac_cv_c_alignment+set}" = set; then :
7300
5964
$as_echo_n "(cached) " >&6
7303
if test "$cross_compiling" = yes; then
7304
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7305
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7306
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7307
See \`config.log' for more details." >&5
7308
$as_echo "$as_me: error: cannot run test program while cross compiling
7309
See \`config.log' for more details." >&2;}
7310
{ (exit 1); exit 1; }; }; }
5967
if test "$cross_compiling" = yes; then :
5969
ac_cv_c_alignment=need
7312
cat >conftest.$ac_ext <<_ACEOF
7315
cat confdefs.h >>conftest.$ac_ext
7316
cat >>conftest.$ac_ext <<_ACEOF
5972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317
5973
/* end confdefs.h. */
7319
5975
#include <stdlib.h>
7342
rm -f conftest$ac_exeext
7343
if { (ac_try="$ac_link"
7345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346
*) ac_try_echo=$ac_try;;
7348
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7349
$as_echo "$ac_try_echo") >&5
7350
(eval "$ac_link") 2>&5
7352
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7354
{ (case "(($ac_try" in
7355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356
*) ac_try_echo=$ac_try;;
7358
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359
$as_echo "$ac_try_echo") >&5
7360
(eval "$ac_try") 2>&5
7362
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363
(exit $ac_status); }; }; then
5998
if ac_fn_c_try_run "$LINENO"; then :
7365
6000
ac_cv_c_alignment=none
7368
$as_echo "$as_me: program exited with status $ac_status" >&5
7369
$as_echo "$as_me: failed program was:" >&5
7370
sed 's/^/| /' conftest.$ac_ext >&5
7374
6004
ac_cv_c_alignment=need
7377
rm -rf conftest.dSYM
7378
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7384
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_alignment" >&5
6007
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6008
conftest.$ac_objext conftest.beam conftest.$ac_ext
6013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_alignment" >&5
7385
6014
$as_echo "$ac_cv_c_alignment" >&6; }
7386
6015
if test $ac_cv_c_alignment = need; then
7388
cat >>confdefs.h <<\_ACEOF
7389
#define NEED_ALIGN 1
6017
$as_echo "#define NEED_ALIGN 1" >>confdefs.h
7396
6022
for ac_func in setppriv
7398
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7399
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7400
$as_echo_n "checking for $ac_func... " >&6; }
7401
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7402
$as_echo_n "(cached) " >&6
7404
cat >conftest.$ac_ext <<_ACEOF
7407
cat confdefs.h >>conftest.$ac_ext
7408
cat >>conftest.$ac_ext <<_ACEOF
7409
/* end confdefs.h. */
7410
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7411
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7412
#define $ac_func innocuous_$ac_func
7414
/* System header to define __stub macros and hopefully few prototypes,
7415
which can conflict with char $ac_func (); below.
7416
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7417
<limits.h> exists even on freestanding compilers. */
7420
# include <limits.h>
7422
# include <assert.h>
7427
/* Override any GCC internal prototype to avoid an error.
7428
Use char because int might match the return type of a GCC
7429
builtin and then its argument prototype would still apply. */
7434
/* The GNU C library defines this for functions which it implements
7435
to always fail with ENOSYS. Some functions are actually named
7436
something starting with __ and the normal name is an alias. */
7437
#if defined __stub_$ac_func || defined __stub___$ac_func
7449
rm -f conftest.$ac_objext conftest$ac_exeext
7450
if { (ac_try="$ac_link"
7452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453
*) ac_try_echo=$ac_try;;
7455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7456
$as_echo "$ac_try_echo") >&5
7457
(eval "$ac_link") 2>conftest.er1
7459
grep -v '^ *+' conftest.er1 >conftest.err
7461
cat conftest.err >&5
7462
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463
(exit $ac_status); } && {
7464
test -z "$ac_c_werror_flag" ||
7465
test ! -s conftest.err
7466
} && test -s conftest$ac_exeext && {
7467
test "$cross_compiling" = yes ||
7468
$as_test_x conftest$ac_exeext
7470
eval "$as_ac_var=yes"
7472
$as_echo "$as_me: failed program was:" >&5
7473
sed 's/^/| /' conftest.$ac_ext >&5
7475
eval "$as_ac_var=no"
7478
rm -rf conftest.dSYM
7479
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7480
conftest$ac_exeext conftest.$ac_ext
7482
ac_res=`eval 'as_val=${'$as_ac_var'}
7483
$as_echo "$as_val"'`
7484
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7485
$as_echo "$ac_res" >&6; }
7486
as_val=`eval 'as_val=${'$as_ac_var'}
7487
$as_echo "$as_val"'`
7488
if test "x$as_val" = x""yes; then
6024
ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
6025
if test "x$ac_cv_func_setppriv" = x""yes; then :
7489
6026
cat >>confdefs.h <<_ACEOF
7490
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7493
if test "${ac_cv_header_priv_h+set}" = set; then
7494
{ $as_echo "$as_me:$LINENO: checking for priv.h" >&5
7495
$as_echo_n "checking for priv.h... " >&6; }
7496
if test "${ac_cv_header_priv_h+set}" = set; then
7497
$as_echo_n "(cached) " >&6
7499
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_priv_h" >&5
7500
$as_echo "$ac_cv_header_priv_h" >&6; }
7502
# Is the header compilable?
7503
{ $as_echo "$as_me:$LINENO: checking priv.h usability" >&5
7504
$as_echo_n "checking priv.h usability... " >&6; }
7505
cat >conftest.$ac_ext <<_ACEOF
7508
cat confdefs.h >>conftest.$ac_ext
7509
cat >>conftest.$ac_ext <<_ACEOF
7510
/* end confdefs.h. */
7511
$ac_includes_default
7514
rm -f conftest.$ac_objext
7515
if { (ac_try="$ac_compile"
7517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518
*) ac_try_echo=$ac_try;;
7520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521
$as_echo "$ac_try_echo") >&5
7522
(eval "$ac_compile") 2>conftest.er1
7524
grep -v '^ *+' conftest.er1 >conftest.err
7526
cat conftest.err >&5
7527
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528
(exit $ac_status); } && {
7529
test -z "$ac_c_werror_flag" ||
7530
test ! -s conftest.err
7531
} && test -s conftest.$ac_objext; then
7532
ac_header_compiler=yes
7534
$as_echo "$as_me: failed program was:" >&5
7535
sed 's/^/| /' conftest.$ac_ext >&5
7537
ac_header_compiler=no
7540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7542
$as_echo "$ac_header_compiler" >&6; }
7544
# Is the header present?
7545
{ $as_echo "$as_me:$LINENO: checking priv.h presence" >&5
7546
$as_echo_n "checking priv.h presence... " >&6; }
7547
cat >conftest.$ac_ext <<_ACEOF
7550
cat confdefs.h >>conftest.$ac_ext
7551
cat >>conftest.$ac_ext <<_ACEOF
7552
/* end confdefs.h. */
7555
if { (ac_try="$ac_cpp conftest.$ac_ext"
7557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558
*) ac_try_echo=$ac_try;;
7560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7561
$as_echo "$ac_try_echo") >&5
7562
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7564
grep -v '^ *+' conftest.er1 >conftest.err
7566
cat conftest.err >&5
7567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568
(exit $ac_status); } >/dev/null && {
7569
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7570
test ! -s conftest.err
7572
ac_header_preproc=yes
7574
$as_echo "$as_me: failed program was:" >&5
7575
sed 's/^/| /' conftest.$ac_ext >&5
7577
ac_header_preproc=no
7580
rm -f conftest.err conftest.$ac_ext
7581
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7582
$as_echo "$ac_header_preproc" >&6; }
7584
# So? What about this header?
7585
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7587
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: accepted by the compiler, rejected by the preprocessor!" >&5
7588
$as_echo "$as_me: WARNING: priv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: proceeding with the compiler's result" >&5
7590
$as_echo "$as_me: WARNING: priv.h: proceeding with the compiler's result" >&2;}
7591
ac_header_preproc=yes
7594
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: present but cannot be compiled" >&5
7595
$as_echo "$as_me: WARNING: priv.h: present but cannot be compiled" >&2;}
7596
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: check for missing prerequisite headers?" >&5
7597
$as_echo "$as_me: WARNING: priv.h: check for missing prerequisite headers?" >&2;}
7598
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: see the Autoconf documentation" >&5
7599
$as_echo "$as_me: WARNING: priv.h: see the Autoconf documentation" >&2;}
7600
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: section \"Present But Cannot Be Compiled\"" >&5
7601
$as_echo "$as_me: WARNING: priv.h: section \"Present But Cannot Be Compiled\"" >&2;}
7602
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: proceeding with the preprocessor's result" >&5
7603
$as_echo "$as_me: WARNING: priv.h: proceeding with the preprocessor's result" >&2;}
7604
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: in the future, the compiler will take precedence" >&5
7605
$as_echo "$as_me: WARNING: priv.h: in the future, the compiler will take precedence" >&2;}
7607
## ----------------------------------------- ##
7608
## Report this to memcached@googlegroups.com ##
7609
## ----------------------------------------- ##
7611
) | sed "s/^/$as_me: WARNING: /" >&2
7614
{ $as_echo "$as_me:$LINENO: checking for priv.h" >&5
7615
$as_echo_n "checking for priv.h... " >&6; }
7616
if test "${ac_cv_header_priv_h+set}" = set; then
7617
$as_echo_n "(cached) " >&6
7619
ac_cv_header_priv_h=$ac_header_preproc
7621
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_priv_h" >&5
7622
$as_echo "$ac_cv_header_priv_h" >&6; }
7625
if test "x$ac_cv_header_priv_h" = x""yes; then
7628
cat >>confdefs.h <<\_ACEOF
7629
#define HAVE_DROP_PRIVILEGES 1
6027
#define HAVE_SETPPRIV 1
6030
ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
6031
if test "x$ac_cv_header_priv_h" = x""yes; then :
6034
$as_echo "#define HAVE_DROP_PRIVILEGES 1" >>confdefs.h
7632
6036
build_solaris_privs=yes
7651
if test "${ac_cv_header_umem_h+set}" = set; then
7652
{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
7653
$as_echo_n "checking for umem.h... " >&6; }
7654
if test "${ac_cv_header_umem_h+set}" = set; then
7655
$as_echo_n "(cached) " >&6
7657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
7658
$as_echo "$ac_cv_header_umem_h" >&6; }
7660
# Is the header compilable?
7661
{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
7662
$as_echo_n "checking umem.h usability... " >&6; }
7663
cat >conftest.$ac_ext <<_ACEOF
7666
cat confdefs.h >>conftest.$ac_ext
7667
cat >>conftest.$ac_ext <<_ACEOF
7668
/* end confdefs.h. */
7669
$ac_includes_default
7672
rm -f conftest.$ac_objext
7673
if { (ac_try="$ac_compile"
7675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676
*) ac_try_echo=$ac_try;;
7678
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7679
$as_echo "$ac_try_echo") >&5
7680
(eval "$ac_compile") 2>conftest.er1
7682
grep -v '^ *+' conftest.er1 >conftest.err
7684
cat conftest.err >&5
7685
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686
(exit $ac_status); } && {
7687
test -z "$ac_c_werror_flag" ||
7688
test ! -s conftest.err
7689
} && test -s conftest.$ac_objext; then
7690
ac_header_compiler=yes
7692
$as_echo "$as_me: failed program was:" >&5
7693
sed 's/^/| /' conftest.$ac_ext >&5
7695
ac_header_compiler=no
7698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7700
$as_echo "$ac_header_compiler" >&6; }
7702
# Is the header present?
7703
{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
7704
$as_echo_n "checking umem.h presence... " >&6; }
7705
cat >conftest.$ac_ext <<_ACEOF
7708
cat confdefs.h >>conftest.$ac_ext
7709
cat >>conftest.$ac_ext <<_ACEOF
7710
/* end confdefs.h. */
7713
if { (ac_try="$ac_cpp conftest.$ac_ext"
7715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716
*) ac_try_echo=$ac_try;;
7718
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719
$as_echo "$ac_try_echo") >&5
7720
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7722
grep -v '^ *+' conftest.er1 >conftest.err
7724
cat conftest.err >&5
7725
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726
(exit $ac_status); } >/dev/null && {
7727
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7728
test ! -s conftest.err
7730
ac_header_preproc=yes
7732
$as_echo "$as_me: failed program was:" >&5
7733
sed 's/^/| /' conftest.$ac_ext >&5
7735
ac_header_preproc=no
7738
rm -f conftest.err conftest.$ac_ext
7739
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7740
$as_echo "$ac_header_preproc" >&6; }
7742
# So? What about this header?
7743
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7745
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
7746
$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7747
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
7748
$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
7749
ac_header_preproc=yes
7752
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
7753
$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
7754
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
7755
$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
7756
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
7757
$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
7758
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
7759
$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
7760
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
7761
$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
7762
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
7763
$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
7765
## ----------------------------------------- ##
7766
## Report this to memcached@googlegroups.com ##
7767
## ----------------------------------------- ##
7769
) | sed "s/^/$as_me: WARNING: /" >&2
7772
{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
7773
$as_echo_n "checking for umem.h... " >&6; }
7774
if test "${ac_cv_header_umem_h+set}" = set; then
7775
$as_echo_n "(cached) " >&6
7777
ac_cv_header_umem_h=$ac_header_preproc
7779
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
7780
$as_echo "$ac_cv_header_umem_h" >&6; }
7783
if test "x$ac_cv_header_umem_h" = x""yes; then
7786
cat >>confdefs.h <<\_ACEOF
7787
#define HAVE_UMEM_H 1
6055
ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
6056
if test "x$ac_cv_header_umem_h" = x""yes; then :
6059
$as_echo "#define HAVE_UMEM_H 1" >>confdefs.h
8021
6288
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8022
6289
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8023
6290
# will be set to the directory where LIBOBJS objects are built.
8024
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8025
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6291
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6292
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8027
6294
LIBOBJS=$ac_libobjs
8029
6296
LTLIBOBJS=$ac_ltlibobjs
6299
if test -n "$EXEEXT"; then
6301
am__EXEEXT_FALSE='#'
8032
6307
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8033
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8034
Usually this means the macro was only invoked conditionally." >&5
8035
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
8036
Usually this means the macro was only invoked conditionally." >&2;}
8037
{ (exit 1); exit 1; }; }
6308
as_fn_error "conditional \"AMDEP\" was never defined.
6309
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8039
6311
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8040
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8041
Usually this means the macro was only invoked conditionally." >&5
8042
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8043
Usually this means the macro was only invoked conditionally." >&2;}
8044
{ (exit 1); exit 1; }; }
6312
as_fn_error "conditional \"am__fastdepCC\" was never defined.
6313
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8046
6315
if test -z "${BUILD_DTRACE_TRUE}" && test -z "${BUILD_DTRACE_FALSE}"; then
8047
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DTRACE\" was never defined.
8048
Usually this means the macro was only invoked conditionally." >&5
8049
$as_echo "$as_me: error: conditional \"BUILD_DTRACE\" was never defined.
8050
Usually this means the macro was only invoked conditionally." >&2;}
8051
{ (exit 1); exit 1; }; }
6316
as_fn_error "conditional \"BUILD_DTRACE\" was never defined.
6317
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8053
6319
if test -z "${DTRACE_INSTRUMENT_OBJ_TRUE}" && test -z "${DTRACE_INSTRUMENT_OBJ_FALSE}"; then
8054
{ { $as_echo "$as_me:$LINENO: error: conditional \"DTRACE_INSTRUMENT_OBJ\" was never defined.
8055
Usually this means the macro was only invoked conditionally." >&5
8056
$as_echo "$as_me: error: conditional \"DTRACE_INSTRUMENT_OBJ\" was never defined.
8057
Usually this means the macro was only invoked conditionally." >&2;}
8058
{ (exit 1); exit 1; }; }
6320
as_fn_error "conditional \"DTRACE_INSTRUMENT_OBJ\" was never defined.
6321
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8060
6323
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; }; }
6324
as_fn_error "conditional \"ENABLE_SASL\" was never defined.
6325
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8067
6327
if test -z "${BUILD_SOLARIS_PRIVS_TRUE}" && test -z "${BUILD_SOLARIS_PRIVS_FALSE}"; then
8068
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SOLARIS_PRIVS\" was never defined.
8069
Usually this means the macro was only invoked conditionally." >&5
8070
$as_echo "$as_me: error: conditional \"BUILD_SOLARIS_PRIVS\" was never defined.
8071
Usually this means the macro was only invoked conditionally." >&2;}
8072
{ (exit 1); exit 1; }; }
6328
as_fn_error "conditional \"BUILD_SOLARIS_PRIVS\" was never defined.
6329
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8074
6331
if test -z "${BUILD_CACHE_TRUE}" && test -z "${BUILD_CACHE_FALSE}"; then
8075
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CACHE\" was never defined.
8076
Usually this means the macro was only invoked conditionally." >&5
8077
$as_echo "$as_me: error: conditional \"BUILD_CACHE\" was never defined.
8078
Usually this means the macro was only invoked conditionally." >&2;}
8079
{ (exit 1); exit 1; }; }
6332
as_fn_error "conditional \"BUILD_CACHE\" was never defined.
6333
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8081
6335
if test -z "${BUILD_SPECIFICATIONS_TRUE}" && test -z "${BUILD_SPECIFICATIONS_FALSE}"; then
8082
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SPECIFICATIONS\" was never defined.
8083
Usually this means the macro was only invoked conditionally." >&5
8084
$as_echo "$as_me: error: conditional \"BUILD_SPECIFICATIONS\" was never defined.
8085
Usually this means the macro was only invoked conditionally." >&2;}
8086
{ (exit 1); exit 1; }; }
6336
as_fn_error "conditional \"BUILD_SPECIFICATIONS\" was never defined.
6337
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8089
6340
: ${CONFIG_STATUS=./config.status}
8090
6341
ac_write_fail=0
8091
6342
ac_clean_files_save=$ac_clean_files
8092
6343
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8093
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6344
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8094
6345
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8095
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6347
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8097
6349
# Generated by $as_me.
8098
6350
# Run this file to recreate the current configuration.