numpy.m4

来自「pic 模拟程序!面向对象」· M4 代码 · 共 42 行

M4
42
字号
dnl ######################################################################dnldnl Check for Numeric Pythondnldnl ######################################################################if test -n "$PY_ROOT"; then  NUMERIC_PY_INCDIR=$PYTHON_INCDIR/numeric:$PYTHON_INCDIR/Numeric:/mfe/local/python/NumPy/Include  AC_ARG_WITH(NUMERIC_PY_INCDIR,  [  --with-NUMERIC_PY_INCDIR=<numeric python incdir> to set directory of numeric python includes],  NUMERIC_PY_INCDIR="$withval")  AC_PATH_PROGS(NUMPY_IDR, arrayobject.h, "", $NUMERIC_PY_INCDIR)  if test -n "$NUMPY_IDR"; then    NUMERIC_PY_INCDIR=`dirname $NUMPY_IDR`    AC_SUBST(NUMERIC_PY_INCDIR)  else    AC_MSG_WARN(Unable to find Numeric Python include dir.  Python subdirs will not compile.  Set --with-NUMERIC_PY_INCDIR to the location of the Numeric python includes.)  fi  NUMERIC_PY_LIBPATH=$PYTHON_SITEDIR/Numeric:$PYTHON_SITEDIR/numeric:/mfe/local/python/NumPy/NumPyLib:/mfe/local/python/NumPy/NumPyLib  AC_ARG_WITH(NUMERIC_PY_LIBPATH,  [  --with-NUMERIC_PY_LIBPATH=<numeric python libdir> to set directory of numeric python libraries],  NUMERIC_PY_LIBPATH="$withval")  AC_PATH_PROGS(NUMPY_LDR, _numpy.so, "", $NUMERIC_PY_LIBPATH)  if test -z "$NUMPY_LDR"; then    AC_PATH_PROGS(NUMPY_LDR, _numpymodule.so, "", $NUMERIC_PY_LIBPATH)  fi  if test -z "$NUMPY_LDR"; then    AC_PATH_PROGS(NUMPY_LDR, _numpymodule.sl, "", $NUMERIC_PY_LIBPATH)  fi  if test -z "$NUMPY_LDR"; then    AC_PATH_PROGS(NUMPY_LDR, _numpy.sl, "", $NUMERIC_PY_LIBPATH)  fi  if test -n "$NUMPY_LDR"; then    NUMERIC_PY_LIBDIR=`dirname $NUMPY_LDR`    AC_SUBST(NUMERIC_PY_LIBDIR)  else    AC_MSG_WARN(Unable to find Numeric Python library directory in $NUMERIC_PY_LIBPATH.  Python code will not run.  Set --with-NUMERIC_PY_LIBPATH to the location of the Numeric python includes.)  fifi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?