⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 txmath.m4

📁 xgrafix 是PTSG模拟程序中的图形截面库 改版本是最新版本
💻 M4
字号:
dnl ######################################################################dnldnl File:	txmath.m4dnldnl Purpose:	Determine the locations of txmath includes and librariesdnldnl Version: 	$Id: txmath.m4,v 1.27 2005/04/20 23:20:05 rmtrines Exp $dnldnl Tech-X configure systemdnldnl ######################################################################dnl ######################################################################dnldnl Allow the user to specify an overall txmath directory.  If specified,dnl we look for include and lib under this.dnldnl ######################################################################AC_ARG_WITH(txmath-dir,[  --with-txmath-dir=<location of txmath installation> ],TXMATH_DIR="$withval",TXMATH_DIR="")dnl ######################################################################dnldnl Find txmath includes - looking in include location if present,dnl otherwise in dir/include if present, otherwise in default locations,dnl first parallel, then serial.dnldnl ######################################################################AC_ARG_WITH(txmath-incdir,[  --with-txmath-incdir=<location of txmath includes> ],TXMATH_INCDIR="$withval",TXMATH_INCDIR="")if test -n "$TXMATH_INCDIR"; then  TXMATH_INCPATH=$TXMATH_INCDIRelif test -n "$TXMATH_DIR"; then  TXMATH_INCPATH=$TXMATH_DIR/includeelse  TXMATH_INCPATH=$HOME/$UNIXFLAVOR/optsolve++/include:$HOME/optsolve++/include:/usr/local/optsolve++/include:/loc/optsolve++/include:/local/optsolve++/include:$HOME/$UNIXFLAVOR/txmath/include:$HOME/txmath/include:/usr/local/txmath/include:/loc/txmath/include:/local/txmath/includefiAC_PATH_PROGS(TXMATH_H, txc_math.h, "", $TXMATH_INCPATH)if test -z "$TXMATH_H"; then  AC_MSG_WARN(txc_math.h not found in $TXMATH_INCPATH.  Set location with --with-txmath-incdir=)  TXMATH_INC=""else  TXMATH_INCDIR=`dirname $TXMATH_H`  AC_SUBST(TXMATH_INCDIR)  TXMATH_INC=-I$TXMATH_INCDIR  AC_SUBST(TXMATH_INC)  TXMATH_DIR=`dirname $TXMATH_INCDIR`fidnl ######################################################################dnldnl Find txmath librariesdnldnl ######################################################################AC_ARG_WITH(txmath-libdir,[  --with-txmath-libdir=<location of txmath library> ], TXMATH_LIBDIR="$withval",TXMATH_LIBDIR="")if test -n "$TXMATH_INCDIR"; then  if test -n "$TXMATH_LIBDIR"; then    TXMATH_LIBPATH=$TXMATH_LIBDIR  else    TXMATH_LIBPATH=$TXMATH_DIR/lib/$COMPDIR:$TXMATH_DIR/lib  fi  AC_PATH_PROGS(LIBTXBASE_A, libtxbase.a, "", $TXMATH_LIBPATH)  if test -z "$LIBTXBASE_A"; then    AC_MSG_WARN(libtxbase.a not found in $TXMATH_LIBPATH.  Set location with --with-txmath-libdir=)    TXBASE_LIB=""  else    TXMATH_LIBDIR=`dirname $LIBTXBASE_A`    AC_SUBST(TXMATH_LIBDIR)    TXBASE_LIB="-ltxbase"  fi  AC_SUBST(TXBASE_LIB)fidnl ######################################################################dnldnl Find txmath and verify that version is sufficiently newdnldnl ######################################################################dnl Check OptSolve++ version numberAC_PATH_PROG(TXMATH_VERSION_CHECK, txmath_version.h, "", $TXMATH_INCDIR)if test -z "$TXMATH_VERSION_CHECK"; then  AC_MSG_ERROR(Cannot find txmath_version.h in $TXMATH_INCDIR!  Please install OptSolve++ or use --with-txmath-dir=TXMATH_INSTALL_DIR)fiAC_MSG_CHECKING(OptSolve++ version)TXMATH_INC_FILE="`dirname $TXMATH_INCDIR`/include/txmath_version.h"TXMATH_VERSION=`grep VERSION $TXMATH_INC_FILE | sed 's/^.* \"//' | sed 's/\"//g'`AC_MSG_RESULT($TXMATH_VERSION)TXMATH_MAJOR_VERSION=`echo $TXMATH_VERSION | sed 's/\..*$//'`# echo TXMATH_MAJOR_VERSION = $TXMATH_MAJOR_VERSIONif test -z "$TXMATH_OK_MAJOR_VERSION"; then  TXMATH_OK_MAJOR_VERSION=1fiif test -z "$TXMATH_OK_MINOR_VERSION"; then  TXMATH_OK_MINOR_VERSION=0fiif test -z "$TXMATH_OK_RELEASE"; then  TXMATH_OK_RELEASE=0fiif test -z "$TXMATH_OK_VERSION"; then  TXMATH_OK_VERSION=$TXMATH_OK_MAJOR_VERSION.$TXMATH_OK_MINOR_VERSION.$TXMATH_OK_RELEASEfiif test $TXMATH_MAJOR_VERSION -lt $TXMATH_OK_MAJOR_VERSION; then  echo Major version must be at least $TXMATH_OK_MAJOR_VERSION  exitfiif test $TXMATH_MAJOR_VERSION -eq $TXMATH_OK_MAJOR_VERSION; then  TXMATH_MINOR_VERSION=`echo $TXMATH_VERSION | sed "s/^$TXMATH_MAJOR_VERSION\.//" | sed 's/\..*$//'`  # echo TXMATH_MINOR_VERSION = $TXMATH_MINOR_VERSION  if test $TXMATH_MINOR_VERSION -lt $TXMATH_OK_MINOR_VERSION; then    echo Minor version must be at least $TXMATH_OK_MINOR_VERSION    exit  fi  if test $TXMATH_MINOR_VERSION -eq $TXMATH_OK_MINOR_VERSION; then    TXMATH_RELEASE=`echo $TXMATH_VERSION | sed 's/^.*\.//'`    # echo TXMATH_RELEASE = $TXMATH_RELEASE    if test $TXMATH_RELEASE -lt $TXMATH_OK_RELEASE; then      echo Minor version must be at least $TXMATH_OK_RELEASE      exit    fi  fifiecho OptSolve of sufficiently high version

⌨️ 快捷键说明

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