]> code.delx.au - pulseaudio/commit
build: make ARM NEON check in configure.ac more strict
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Thu, 28 Mar 2013 13:46:48 +0000 (14:46 +0100)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:39 +0000 (00:38 +0530)
commit0af05213be59e54934c79d7be77b5d2dfb6fe6e7
treef4856a09dffaac1cfe62db3cdd146696bad2324f
parent80b0e285a5a2651f1cf43af32db3b0c583f99fda
build: make ARM NEON check in configure.ac more strict

the check for NEON so far only checked if -mfpu=neon is understood by the compiler,
however, this is not enough:

(i) #include <arm_neon.h> should be checked
(ii) -mfpu=neon must be passed before CFLAGS because eventually the per-library CFLAGS
for NEON code in src/Makefile.am are passed to the compiler before the global CFLAGS

in case the build environment passes CFLAGS to configure and we try to set conflicting
CFLAGS option, the former take precedence; CFLAGS cannot be overridden

this does not fix
http://lists.freedesktop.org/archives/pulseaudio-discuss/2012-December/015570.html
but at least makes the build fail in configure (and not while compiling stuff)
and gives better diagnostics

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
configure.ac