diff options
-rw-r--r-- | autoconf/configure.ac | 11 | ||||
-rwxr-xr-x | configure | 21 | ||||
-rw-r--r-- | include/llvm/Config/config.h.in | 3 |
3 files changed, 34 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 3756c4f9ce..3fe6d42009 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -433,6 +433,17 @@ if test "$withval" != "Unknown" ; then [Default float abi to use to all compiler invocations.]) fi +dnl Default FPU to use to all compiler invocations, in case of hard float +AC_ARG_WITH(default-float, + AS_HELP_STRING([--with-default-fpu], + [Default FPU to use to all compiler invocations, in case of hard float.]),, + withval="Unknown") + +if test "$withval" != "Unknown" ; then + AC_DEFINE_UNQUOTED(DEFAULT_TARGET_FPU,"$withval", + [Default FPU to use to all compiler invocations, in case of hard float.]) +fi + dnl Check for the endianness of the target AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little])) @@ -1444,6 +1444,8 @@ Optional Packages: invocations. --with-default-float Default float abi to use to all compiler invocations. + --with-default-fpu Default FPU to use to all compiler invocations, in + case of hard float. --with-optimize-option Select the compiler options to use for optimized builds --with-extra-options Specify additional options to compile LLVM with @@ -3993,6 +3995,23 @@ _ACEOF fi +# Check whether --with-default-float was given. +if test "${with_default_float+set}" = set; then + withval=$with_default_float; +else + withval="Unknown" +fi + + +if test "$withval" != "Unknown" ; then + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_TARGET_FPU "$withval" +_ACEOF + +fi + + { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } @@ -10354,7 +10373,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 10357 "configure" +#line 10376 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in index 8644a3e9e0..25e7d761e2 100644 --- a/include/llvm/Config/config.h.in +++ b/include/llvm/Config/config.h.in @@ -21,6 +21,9 @@ /* Default float abi to use to all compiler invocations. */ #undef DEFAULT_TARGET_FLOAT +/* Default FPU to use to all compiler invocations, in case of hard float. */ +#undef DEFAULT_TARGET_FPU + /* Default cpu (-mcpu=cpu) to use to all compiler invocations. */ #undef DEFAULT_TARGET_MCPU |