php-src/ext/hash/config.m4

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2005-11-18 19:51:09 +00:00
dnl $Id$
dnl config.m4 for extension hash
2008-09-07 13:13:53 +00:00
PHP_ARG_WITH(mhash, for mhash support,
[ --with-mhash[=DIR] Include mhash support])
2005-11-18 19:51:09 +00:00
PHP_ARG_ENABLE(hash, whether to enable hash support,
2007-07-03 17:24:39 +00:00
[ --disable-hash Disable hash support], yes)
2005-11-18 19:51:09 +00:00
if test "$PHP_MHASH" != "no"; then
2008-07-21 07:27:00 +00:00
if test "$PHP_HASH" = "no"; then
PHP_HASH="yes"
fi
AC_DEFINE(PHP_MHASH_BC, 1, [ ])
fi
2005-11-18 19:51:09 +00:00
if test "$PHP_HASH" != "no"; then
AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension])
PHP_C_BIGENDIAN
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 8)
2005-11-25 23:12:44 +00:00
EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
2005-11-26 00:08:06 +00:00
hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
2015-10-16 02:13:04 +00:00
hash_crc32.c hash_fnv.c hash_joaat.c hash_sha3.c"
2005-11-25 23:12:44 +00:00
EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
2005-11-26 00:08:06 +00:00
php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
2015-10-16 02:13:04 +00:00
php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h"
2005-11-25 23:12:44 +00:00
PHP_NEW_EXTENSION(hash, $EXT_HASH_SOURCES, $ext_shared)
ifdef([PHP_INSTALL_HEADERS], [
2005-11-25 23:12:44 +00:00
PHP_INSTALL_HEADERS(ext/hash, $EXT_HASH_HEADERS)
])
2005-11-18 19:51:09 +00:00
fi