summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2014-01-20 12:15:56 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2014-01-20 12:15:56 -0200
commitf0aac1b49079185ded1bcf802e1a12467bfa4dcd (patch)
tree7cf92f7b3da967654131331fb1d6c3e5c31b0b1d /configure.ac
parent4432cd2e8e8f21262f50ed8c0d569837131bcf73 (diff)
configure: include required NEON build flags.
It is required to use "-mfpu=neon" to build NEON. Patch-by: Albin Tonnerre <lutin@debian.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 045af73cfe..9d12cc813c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -510,6 +510,8 @@ case $host_cpu in
510 arm*) 510 arm*)
511 build_cpu_neon="yes" 511 build_cpu_neon="yes"
512 AC_MSG_CHECKING([whether to use NEON instructions]) 512 AC_MSG_CHECKING([whether to use NEON instructions])
513 CFLAGS_save="${CFLAGS}"
514 CFLAGS="${CFLAGS} -mfpu=neon"
513 AC_TRY_COMPILE([#include <arm_neon.h>], 515 AC_TRY_COMPILE([#include <arm_neon.h>],
514 [asm volatile ("vqadd.u8 d0, d1, d0\n")], 516 [asm volatile ("vqadd.u8 d0, d1, d0\n")],
515 [ 517 [
@@ -521,6 +523,7 @@ case $host_cpu in
521 AC_MSG_RESULT([no]) 523 AC_MSG_RESULT([no])
522 build_cpu_neon="no" 524 build_cpu_neon="no"
523 ]) 525 ])
526 CFLAGS="${CFLAGS_save}"
524 ;; 527 ;;
525esac 528esac
526 529