Yasm Assembler mainline development tree (ffmpeg 依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
780 B

dnl a macro to check for the installed Pyrex version; note PYTHON needs to
dnl be set before this function is called.
dnl PYREX_CHECK_VERSION([MIN-VERSION], [ACTION-IF-TRUE], [ACTION-IF-FALSE])
AC_DEFUN([PYREX_CHECK_VERSION],
[prog="import sys
from Pyrex.Compiler.Version import version
# split strings by '.' and convert to numeric. Append some zeros
# because we need at least 4 digits for the hex conversion.
pyrexver = map(int, version.split('.')) + [[0, 0, 0]]
pyrexverhex = 0
for i in xrange(0, 4): pyrexverhex = (pyrexverhex << 8) + pyrexver[[i]]
minver = map(int, '$1'.split('.')) + [[0, 0, 0]]
minverhex = 0
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
sys.exit(pyrexverhex < minverhex)"
AS_IF([AM_RUN_LOG([$PYTHON -c "$prog"])], [$2], [$3])])