diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-26 12:20:19 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-26 12:20:19 +0000 |
| commit | 253c0ba353206de9b7ece57a7da534fccb36cc4a (patch) | |
| tree | ddb7b47164588db8f008a181f959cc4567a4e145 /configure.ac | |
| parent | 6d054eb74fb5fbcc99d821308094a6ead99d9774 (diff) | |
2010-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that HAVE_SOME_FALLOCATE gets undefined if fallocate
is not available even if posix_fallocate is available. This causes
FallocFileAllocationIterator.cc is out of compile targets and
linker error.
* configure.ac
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 45cf3a13..0176547c 100644 --- a/configure.ac +++ b/configure.ac @@ -356,16 +356,15 @@ fi AM_CONDITIONAL([HAVE_EPOLL], [test "x$have_epoll" = "xyes"]) AC_CHECK_FUNCS([posix_fallocate],[have_posix_fallocate=yes]) -AM_CONDITIONAL([HAVE_SOME_FALLOCATE], [test "x$have_posix_fallocate" = "xyes"]) - AC_CHECK_FUNCS([fallocate], [have_fallocate=yes]) -AM_CONDITIONAL([HAVE_SOME_FALLOCATE], [test "x$have_fallocate" = "xyes"]) - if test "x$have_posix_fallocate" = "xyes" || test "x$have_fallocate" = "xyes"; then AC_DEFINE([HAVE_SOME_FALLOCATE], [1], [Define to 1 if *_fallocate is available.]) fi +AM_CONDITIONAL([HAVE_SOME_FALLOCATE], + [test "x$have_posix_fallocate" = "xyes" || test "x$have_fallocate" = "xyes"]) + AC_CHECK_FUNCS([asctime_r], [AM_CONDITIONAL([HAVE_ASCTIME_R], true)], |
