diff options
author | Darius Rad <darius@bluespec.com> | 2015-02-23 19:35:15 -0500 |
---|---|---|
committer | Darius Rad <darius@bluespec.com> | 2015-03-06 09:28:38 -0500 |
commit | 6b25a64afad93450981e6fc82dba583a41b289d3 (patch) | |
tree | 03ef22722718b7b7863df25ba0f5670c6959270d /configure.ac | |
parent | 9d281d0f5802f2de5bcad330374ebc054e0258d9 (diff) | |
download | riscv-gnu-toolchain-6b25a64afad93450981e6fc82dba583a41b289d3.zip riscv-gnu-toolchain-6b25a64afad93450981e6fc82dba583a41b289d3.tar.gz riscv-gnu-toolchain-6b25a64afad93450981e6fc82dba583a41b289d3.tar.bz2 |
configure/Makefile: Add support for more options.
Add support to configure and Makefile.in for --disable-atomic,
--disable-float, and --enable-multilib.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 185239f..2f2254c 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,41 @@ AC_ARG_WITH(xlen, AC_SUBST(XLEN, 64) ) +AC_ARG_ENABLE(atomic, + [AS_HELP_STRING([--disable-atomic], + [disable use of atomic memory instructions in glibc @<:@--enable-atomic@:>@])], + [], + [enable_atomic=yes] + ) + +AS_IF([test "x$enable_atomic" != xno], + [], + [AC_SUBST(atomic_cflags,-mno-atomic)]) + +AC_ARG_ENABLE(float, + [AS_HELP_STRING([--disable-float], + [use software floating point in glibc @<:@--enable-float@:>@])], + [], + [enable_float=yes] + ) + +AS_IF([test "x$enable_float" != xno], + [], + [AC_SUBST(float_cflags,-msoft-float)dnl +AC_SUBST(float_asflags,-msoft-float)dnl +AC_SUBST(glibc_configure_flags,--without-fp)]) + +AC_ARG_ENABLE(multilib, + [AS_HELP_STRING([--enable-multilib], + [build multilib glibc (32 and 64 bit) @<:@--disable-multilib@:>@])], + [], + [enable_multilib=no] + ) + +AS_IF([test "x$enable_multilib" != xno], + [AC_SUBST(multilib_flags,)], + [AC_SUBST(multilib_flags,--disable-multilib)]) + AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([scripts/wrapper/awk], [chmod +x scripts/wrapper/awk]) AC_CONFIG_FILES([scripts/wrapper/sed], [chmod +x scripts/wrapper/sed]) |