Skip to content

Commit

Permalink
Correctly check architecture on FreeBSD (madler#10)
Browse files Browse the repository at this point in the history
On FreeBSD amd64 is named... 'amd64', not 'x86_64'. This is what
'uname -m' prints.
  • Loading branch information
tomaszmduda authored and vkrasnov committed May 27, 2018
1 parent 9465261 commit 634a6b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,8 @@ EOF
fi

# Check for AMD64 hardware support.
if [ x$TGT_ARCH = "xx86_64" -a $(uname -m) = "x86_64" ] ; then
if [ x$TGT_ARCH = "xx86_64" -a $(uname -m) = "x86_64" -o x$TGT_ARCH = "xamd64" -a $(uname -m) = "amd64" ] ; then

# Check for SSE4.2 and CRC support
cat > $test.c << EOF
#include <immintrin.h>
Expand Down Expand Up @@ -780,7 +780,7 @@ EOF
fi

elif [ x$TGT_ARCH = "xaarch64" -a $(uname -m) = "aarch64" ] ; then

# Check for NEON and CRC support
cat > $test.c << EOF
#include <arm_neon.h>
Expand Down

0 comments on commit 634a6b9

Please sign in to comment.