X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=configure.ac;h=ebfd649795a37a5c2098efee103cc817abeff602;hp=da4ff027e0473954522fb55bae305bc9a33154e7;hb=6855cddc0ff7bcc06e71aa24a0417fc0656e75fb;hpb=5b13eb6cd5aa3e73fb477414f1866e7b9cbeaf3f diff --git a/configure.ac b/configure.ac index da4ff02..ebfd649 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,15 @@ AC_INIT(riscv-tests, 1.0) cross_compiling=yes -AC_PROG_CC([riscv-gcc]) +AC_PROG_CC + +AC_ARG_WITH(xlen, + [AS_HELP_STRING([--with-xlen=XLEN], + [Set XLEN, the X-register bit width (default is 64)])], + AC_SUBST(XLEN, $withval), + AC_SUBST(XLEN, 64) + ) + AC_OUTPUT( Makefile