From: Sebastian Pop Date: Tue, 22 Jan 2019 18:24:30 +0000 (-0600) Subject: only check for -mfpu=neon on ARM processors X-Git-Tag: 1.9.9-b1~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ebca3244cc3d4b307501ee9316f20807073b7e;p=thirdparty%2Fzlib-ng.git only check for -mfpu=neon on ARM processors --- diff --git a/configure b/configure index 4301e836..0573be66 100755 --- a/configure +++ b/configure @@ -936,17 +936,21 @@ EOF ;; esac -#Check whether -mfpu=neon is available -cat > $test.c << EOF +# Check whether -mfpu=neon is available on ARM processors. +case "${ARCH}" in + arm*) + cat > $test.c << EOF int main() { return 0; } EOF -if try $CC -c $CFLAGS -mfpu=neon $test.c; then - MFPU_NEON_AVAILABLE=1 - echo "Check whether -mfpu=neon is available ... Yes." | tee -a configure.log -else - MFPU_NEON_AVAILABLE=0 - echo "Check whether -mfpu=neon is available ... No." | tee -a configure.log -fi + if try $CC -c $CFLAGS -mfpu=neon $test.c; then + MFPU_NEON_AVAILABLE=1 + echo "Check whether -mfpu=neon is available ... Yes." | tee -a configure.log + else + MFPU_NEON_AVAILABLE=0 + echo "Check whether -mfpu=neon is available ... No." | tee -a configure.log + fi + ;; +esac ARCHDIR='arch/generic' ARCH_STATIC_OBJS=''