Spike, a RISC-V ISA Simulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
963 B

AC_LANG([C++])
AX_BOOST_BASE([1.53])
AX_BOOST_ASIO
AX_BOOST_REGEX
AC_CHECK_LIB([boost_system], [main], [], [])
AC_CHECK_LIB([boost_regex], [main], [], [])
AC_ARG_WITH(target,
[AS_HELP_STRING([--with-target=riscv64-unknown-elf],
[Sets the default target config])],
AC_DEFINE_UNQUOTED([TARGET_ARCH], "$withval", [Default value for --target switch]),
AC_DEFINE_UNQUOTED([TARGET_ARCH], ["riscv64-unknown-elf"], [Default value for --target switch]))
AC_SEARCH_LIBS([dlopen], [dl dld], [
AC_DEFINE([HAVE_DLOPEN], [], [Dynamic library loading is supported])
AC_SUBST([HAVE_DLOPEN], [yes])
])
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR([libpthread is required])])
AC_ARG_ENABLE([dual-endian], AS_HELP_STRING([--enable-dual-endian], [Enable support for running target in either endianness]))
AS_IF([test "x$enable_dual_endian" = "xyes"], [
AC_DEFINE([RISCV_ENABLE_DUAL_ENDIAN],,[Enable support for running target in either endianness])
])