From cfd0677786274a94071c3d9053b69935b02566a3 Mon Sep 17 00:00:00 2001 From: Alberto Villa Date: Fri, 7 Jun 2013 01:43:13 +0200 Subject: [PATCH] Keep MMX/SSE checks from using the root Makefile On FreeBSD make(1) is used to check for MMX/SSE, thus the root Makefile is included. This started being an issue with $(extra_versioning) not being defined at this stage. --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 61a9663e..2703b0a8 100755 --- a/configure +++ b/configure @@ -301,7 +301,7 @@ then grep mmx /proc/cpuinfo > /dev/null 2>&1 || mmx=false ;; FreeBSD) - [ "$(make -V MACHINE_CPU:Mmmx)" ] || mmx=false + [ "$(make -V MACHINE_CPU:Mmmx -f /dev/null)" ] || mmx=false ;; *) grep mmx /proc/cpuinfo > /dev/null 2>&1 || mmx=false @@ -320,7 +320,7 @@ then grep sse /proc/cpuinfo > /dev/null 2>&1 || sse=false ;; FreeBSD) - [ "$(make -V MACHINE_CPU:Msse)" ] || sse=false + [ "$(make -V MACHINE_CPU:Msse -f /dev/null)" ] || sse=false ;; *) grep sse /proc/cpuinfo > /dev/null 2>&1 || sse=false @@ -339,7 +339,7 @@ then grep sse2 /proc/cpuinfo > /dev/null 2>&1 || sse2=false ;; FreeBSD) - [ "$(make -V MACHINE_CPU:Msse2)" ] || sse2=false + [ "$(make -V MACHINE_CPU:Msse2 -f /dev/null)" ] || sse2=false ;; *) grep sse2 /proc/cpuinfo > /dev/null 2>&1 || sse2=false -- 2.39.2