AH_TEMPLATE([MP_WBITS],[Define to the word size of your CPU])
AC_CHECK_SIZEOF([unsigned long])
if test $ac_cv_sizeof_unsigned_long -eq 8; then
- AC_DEFINE([MP_WBITS],64)
+ mp_wbits="64U"
+ AC_SUBST(MP_WBITS,$mp_wbits)
elif test $ac_cv_sizeof_unsigned_long -eq 4; then
- AC_DEFINE([MP_WBITS],32)
+ mp_wbits="32U"
+ AC_SUBST(MP_WBITS,$mp_wbits)
else
AC_MSG_ERROR([Illegal CPU word size])
fi
return ctxt->algo->digest(ctxt->param, digest);
}
-int keyedHashFunctionContextDigestMP(keyedHashFunctionContext* ctxt, mpnumber* d)
+int keyedHashFunctionContextDigestMP(keyedHashFunctionContext* ctxt, const mpnumber* d)
{
if (ctxt == (keyedHashFunctionContext*) 0)
return -1;
AM_INIT_AUTOMAKE
AC_CANONICAL_TARGET
AC_CONFIG_SRCDIR(beecrypt.h)
-AC_CONFIG_HEADERS([beecrypt.gnu.h])
+AC_CONFIG_HEADERS([config.h])
AC_LIBTOOL_WIN32_DLL
# Checks for package options