Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 903 Lines • ▼ Show 20 Lines | |||||
) | ) | ||||
# 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 | ||||
AC_MSG_CHECKING([for std::system]) | |||||
AC_LINK_IFELSE( | |||||
[ AC_LANG_PROGRAM( | |||||
[[ #include <cstdlib> ]], | |||||
[[ int nErr = std::system(""); ]] | |||||
)], | |||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STD__SYSTEM, 1, Define to 1 if you have the `std::system' function.)], | |||||
[ AC_MSG_RESULT(no) ] | |||||
) | |||||
AC_MSG_CHECKING([for ::_wsystem]) | |||||
AC_LINK_IFELSE( | |||||
[ AC_LANG_PROGRAM( | |||||
[[ ]], | |||||
[[ int nErr = ::_wsystem(""); ]] | |||||
)], | |||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_WSYSTEM, 1, Define to 1 if you have the `::wsystem' function.)], | |||||
[ AC_MSG_RESULT(no) ] | |||||
) | |||||
# Define to 1 if std::system or ::wsystem (Windows) is available | |||||
AC_DEFINE([HAVE_SYSTEM], [HAVE_STD__SYSTEM || HAVE_WSYSTEM], [std::system or ::wsystem]) | |||||
LEVELDB_CPPFLAGS= | LEVELDB_CPPFLAGS= | ||||
LIBLEVELDB= | LIBLEVELDB= | ||||
LIBMEMENV= | LIBMEMENV= | ||||
AM_CONDITIONAL([EMBEDDED_LEVELDB],[true]) | AM_CONDITIONAL([EMBEDDED_LEVELDB],[true]) | ||||
AC_SUBST(LEVELDB_CPPFLAGS) | AC_SUBST(LEVELDB_CPPFLAGS) | ||||
AC_SUBST(LIBLEVELDB) | AC_SUBST(LIBLEVELDB) | ||||
AC_SUBST(LIBMEMENV) | AC_SUBST(LIBMEMENV) | ||||
▲ Show 20 Lines • Show All 566 Lines • Show Last 20 Lines |