From: Eric Petit Date: Mon, 1 Jan 2007 22:41:44 +0000 (+0000) Subject: Check version of nasm on OS X / Intel X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbc68bea7c30988d9f59e2ac99f88f9188f65654;p=libx264 Check version of nasm on OS X / Intel git-svn-id: svn://svn.videolan.org/x264/trunk@615 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/configure b/configure index 1ff4ff6a..3ae29fb5 100755 --- a/configure +++ b/configure @@ -182,6 +182,21 @@ case "${MACHINE%%-*}" in ;; esac +# check requirements + +if [ $SYS = MACOSX -a $ARCH = X86 ] +then + # we want Apple's nasm from Xcode 2.4.1 or later + NASM_BUILD_REQUIRED=11 + NASM_BUILD=`nasm -v|grep "Apple Computer"|sed 's/.*build \([0-9]*\).*/\1/'` + if [ $NASM_BUILD -lt $NASM_BUILD_REQUIRED ] + then + echo "Your version of 'nasm' is too old." + echo "Please install Xcode 2.4.1 or later." + exit 1 + fi +fi + CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS" # parse options