X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=configure.ac;h=ebfd649795a37a5c2098efee103cc817abeff602;hp=da4ff027e0473954522fb55bae305bc9a33154e7;hb=b83c1a818f1abbf893d2742f6718c2a72b36f59a;hpb=18a9957e993a4ebfcf4c4a2fedfd7d1ada20b0a2 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