Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 666 Lines • ▼ Show 20 Lines | [#if HAVE_ENDIAN_H | ||||
#include <sys/endian.h> | #include <sys/endian.h> | ||||
#endif]) | #endif]) | ||||
AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64],,, | AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64],,, | ||||
[#if HAVE_BYTESWAP_H | [#if HAVE_BYTESWAP_H | ||||
#include <byteswap.h> | #include <byteswap.h> | ||||
#endif]) | #endif]) | ||||
AC_CHECK_DECLS([__builtin_clz, __builtin_clzl, __builtin_clzll]) | AC_CHECK_DECLS([__builtin_clz, __builtin_clzl, __builtin_clzll, __builtin_popcount]) | ||||
dnl Check for mallopt(M_ARENA_MAX) (to set glibc arenas) | dnl Check for mallopt(M_ARENA_MAX) (to set glibc arenas) | ||||
AC_MSG_CHECKING(for mallopt M_ARENA_MAX) | AC_MSG_CHECKING(for mallopt M_ARENA_MAX) | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | ||||
[[ mallopt(M_ARENA_MAX, 1); ]])], | [[ mallopt(M_ARENA_MAX, 1); ]])], | ||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOPT_ARENA_MAX, 1,[Define this symbol if you have mallopt with M_ARENA_MAX]) ], | [ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOPT_ARENA_MAX, 1,[Define this symbol if you have mallopt with M_ARENA_MAX]) ], | ||||
[ AC_MSG_RESULT(no)] | [ AC_MSG_RESULT(no)] | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines |