summaryrefslogtreecommitdiff
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:18:19 -0200
commit8aa17f3f26c876f3f2ef9e50219f101bdaa1e268 (patch)
tree6277ee200d0fff05c323187a410eece08617dbb3
parentb1de86ed525ee8704e2fbb70c12a6236b0279cc5 (diff)
configure: include required NEON build flags.
It is required to use "-mfpu=neon" to build NEON. Patch-by: Albin Tonnerre <lutin@debian.org>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0d8c4cca1b..254650bf63 100644
--- a/configure.ac
+++ b/configure.ac
@@ -516,6 +516,8 @@ case $host_cpu in
516 arm*) 516 arm*)
517 build_cpu_neon="yes" 517 build_cpu_neon="yes"
518 AC_MSG_CHECKING([whether to use NEON instructions]) 518 AC_MSG_CHECKING([whether to use NEON instructions])
519 CFLAGS_save="${CFLAGS}"
520 CFLAGS="${CFLAGS} -mfpu=neon"
519 AC_TRY_COMPILE([#include <arm_neon.h>], 521 AC_TRY_COMPILE([#include <arm_neon.h>],
520 [asm volatile ("vqadd.u8 d0, d1, d0\n")], 522 [asm volatile ("vqadd.u8 d0, d1, d0\n")],
521 [ 523 [
@@ -527,6 +529,7 @@ case $host_cpu in
527 AC_MSG_RESULT([no]) 529 AC_MSG_RESULT([no])
528 build_cpu_neon="no" 530 build_cpu_neon="no"
529 ]) 531 ])
532 CFLAGS="${CFLAGS_save}"
530 ;; 533 ;;
531esac 534esac
532 535