Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 766 Lines • ▼ Show 20 Lines | |||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> | ||||
#include <sys/sysctl.h>]], | #include <sys/sysctl.h>]], | ||||
[[ static const int name[2] = {CTL_KERN, KERN_ARND}; | [[ static const int name[2] = {CTL_KERN, KERN_ARND}; | ||||
sysctl(name, 2, nullptr, nullptr, nullptr, 0); ]])], | sysctl(name, 2, nullptr, nullptr, nullptr, 0); ]])], | ||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL_ARND, 1,[Define this symbol if the BSD sysctl(KERN_ARND) is available]) ], | [ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL_ARND, 1,[Define this symbol if the BSD sysctl(KERN_ARND) is available]) ], | ||||
[ AC_MSG_RESULT(no)] | [ AC_MSG_RESULT(no)] | ||||
) | ) | ||||
AC_MSG_CHECKING(for if type char equals int8_t) | |||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h> | |||||
#include <type_traits>]], | |||||
[[ static_assert(std::is_same<int8_t, char>::value, ""); ]])], | |||||
[ AC_MSG_RESULT(yes); AC_DEFINE(CHAR_EQUALS_INT8, 1,[Define this symbol if type char equals int8_t]) ], | |||||
[ AC_MSG_RESULT(no)] | |||||
) | |||||
# Check for reduced exports | # Check for reduced exports | ||||
if test x$use_reduce_exports = xyes; then | if test x$use_reduce_exports = xyes; then | ||||
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],[RE_CXXFLAGS="-fvisibility=hidden"], | AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],[RE_CXXFLAGS="-fvisibility=hidden"], | ||||
[AC_MSG_ERROR([Cannot set default symbol visibility. Use --disable-reduce-exports.])]) | [AC_MSG_ERROR([Cannot set default symbol visibility. Use --disable-reduce-exports.])]) | ||||
fi | fi | ||||
LEVELDB_CPPFLAGS= | LEVELDB_CPPFLAGS= | ||||
LIBLEVELDB= | LIBLEVELDB= | ||||
▲ Show 20 Lines • Show All 522 Lines • Show Last 20 Lines |