Pull in initial 32-bit support patches.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@156 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo
2008-08-11 22:42:04 +00:00
parent 3d061e9d10
commit b61a6e8bdc
5 changed files with 112 additions and 1 deletions
+18
View File
@@ -665,3 +665,21 @@ AC_DEFUN([SPL_AC_INODE_I_MUTEX], [
AC_MSG_RESULT(no)
])
])
dnl #
dnl # 2.6.14 API change,
dnl # check whether 'div64_64()' is available
dnl #
AC_DEFUN([SPL_AC_DIV64_64], [
AC_MSG_CHECKING([whether div64_64() is available])
SPL_LINUX_TRY_COMPILE([
#include <asm/div64.h>
],[
uint64_t i = div64_64(1ULL, 1ULL);
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_DIV64_64, 1, [div64_64() is available])
],[
AC_MSG_RESULT(no)
])
])