From 4ecedddcba30f78579ca89273befbf1b2ad5ad08 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Fri, 12 Dec 2008 08:56:08 +0000 Subject: [PATCH] configure: fix mmx/sse detection on OS X and add detection of x86_64 to define ARCH_X86_64 git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1261 d19143bc-622f-0410-bfdd-b5b2a6649095 --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index dce184f6..29295780 100755 --- a/configure +++ b/configure @@ -67,6 +67,7 @@ build_config() case $targetos in Darwin) + sysctl -a hw | grep "x86_64: 1" > /dev/null && echo "CFLAGS+=-DARCH_X86_64" echo "CFLAGS+=-D__DARWIN__ `sdl-config --cflags`" echo "SHFLAGS=-dynamiclib" echo "LDFLAGS+=`sdl-config --libs`" @@ -174,7 +175,7 @@ if [ "$mmx" = "true" ] then case $targetos in Darwin) - sysctl -a hw | grep mmx: > /dev/null | mmx=false + sysctl -a hw | grep "mmx: 1" > /dev/null || mmx=false ;; Linux) grep mmx /proc/cpuinfo > /dev/null 2>&1 || mmx=false @@ -193,7 +194,7 @@ if [ "$sse" = "true" ] then case $targetos in Darwin) - sysctl -a hw | grep sse: > /dev/null | sse=false + sysctl -a hw | grep "sse: 1" > /dev/null || sse=false ;; Linux) grep sse /proc/cpuinfo > /dev/null 2>&1 || sse=false -- 2.39.2