From 60a3b9ce71d1e69c26f4359cee87358fe944f86e Mon Sep 17 00:00:00 2001 From: ddennedy Date: Tue, 13 Jan 2009 04:40:58 +0000 Subject: [PATCH] configure: separate -march (suitable on x86) and -mcpu (suitable on ppc, arm, and sparc) git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1312 d19143bc-622f-0410-bfdd-b5b2a6649095 --- configure | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 9892dcdf..f02f4f34 100755 --- a/configure +++ b/configure @@ -20,7 +20,8 @@ General build options: --disable-debug - Compile without debug support (default: on) --disable-mmx - Compile without MMX support (default: on) --disable-sse - Compile without SSE support (default: on) - --cpu='cpu' - Compile for a specific CPU/architectre (default: none) + --arch='arch' - Compile for a specific architecture (default: none) + --cpu='cpu' - Compile for a specific CPU (default: none) Module disables options: @@ -58,9 +59,8 @@ build_config() echo "LARGE_FILE=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" - [ "$cpu" != "" ] && - echo "TARGETARCH=-march=$cpu" && - echo "TARGETCPU=-mcpu=$cpu" + [ "$arch" != "" ] && echo "TARGETARCH=-march=$arch" + [ "$cpu" != "" ] && echo "TARGETCPU=-mcpu=$cpu" echo "OPTIMISATIONS=-O3 -pipe -fomit-frame-pointer" echo "CFLAGS+=-Wall -fPIC -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)" @@ -135,6 +135,7 @@ export debug=true export mmx=true export sse=true export gpl=false +export arch= export cpu= export targetos= @@ -165,6 +166,7 @@ do --disable-mmx ) mmx=false; sse=false ;; --disable-sse ) sse=false ;; --enable-gpl ) gpl=true ;; + --arch=* ) arch="${i#--arch=}" ;; --cpu=* ) cpu="${i#--cpu=}" ;; esac done -- 2.39.2