Only enable arm64 CRC32 acceleration if the required header files are there
authorTheodore Ts'o <tytso@mit.edu>
Sun, 12 Mar 2017 18:50:10 +0000 (12:50 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 12 Mar 2017 18:50:10 +0000 (12:50 -0600)
If the necessary header files are missing, then fio will bomb out when
building on arm64.  So disable the hardware acceleration option in
that case, since it's only performance improvement and not a
functional regression to turn it off.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index 7b5571123b681bd0b1b13a3551584af178d85129..a7610b15a0d8bd26c2d91deb8b97e9f553e8db28 100755 (executable)
--- a/configure
+++ b/configure
@@ -1943,6 +1943,10 @@ if test "$march_armv8_a_crc_crypto" != "yes" ; then
 fi
 if test "$cpu" = "arm64" ; then
   cat > $TMPC <<EOF
+#include <sys/auxv.h>
+#include <arm_acle.h>
+#include <arm_neon.h>
+
 int main(void)
 {
   return 0;