summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-02-04 11:53:30 -0800
committerDavid Schleef <ds@schleef.org>2010-02-04 11:53:30 -0800
commit7a154119019b14aa532c73e635be4e4905f0652e (patch)
tree49cfb8ecebc24ee2f26e212caa7cae3d93d5642b
parentaf11ff56eacf1e5d6890db5f6e302dcdcf3c0035 (diff)
downloadliboil-7a154119019b14aa532c73e635be4e4905f0652e.tar.gz
Add --enable-vfp
Patch from Kalle Vahlman. Fixes #12454
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e944f0d..9fb75c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -187,7 +187,10 @@ if test x$HAVE_GCC_ASM = xyes -a x$HAVE_POWERPC = xyes ; then
true)
fi
-if test x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes ; then
+AC_ARG_ENABLE(vfp,
+ AC_HELP_STRING([--enable-vfp],[compile with Vector Floating-point unit support]),
+ enable_vfp=$enableval,enable_vfp=yes)
+if test "x$enable-vfp" = xyes -a x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes; then
AS_COMPILER_FLAG(["-Wa,-mfpu=vfp"],
[VFP_CFLAGS="$VFP_CFLAGS -mfpu=vfp"],
true)