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

📄 hdf5_cpp.m4

📁 xgrafix 是PTSG模拟程序中的图形截面库 改版本是最新版本
💻 M4
字号:
dnl ######################################################################dnldnl Purpose: Determine the locations of C++ Interface for dnl          the hdf5 includes and librariesdnldnl Version: $Id: hdf5_cpp.m4,v 1.3 2003/10/02 15:18:20 cary Exp $dnldnl NOTE: This is a modified version of the hdf5.m4 file.dnldnl ######################################################################dnl ######################################################################dnldnl Allow the user to specify an overall hdf5 directory.  If specified,dnl we look for include and lib under this.dnldnl ######################################################################AC_ARG_WITH(hdf5-dir,[  --with-hdf5-dir=<location of hdf5 installation> ],HDF5_DIR="$withval",HDF5_DIR="")dnl ######################################################################dnldnl Find hdf5 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(hdf5-incdir,[  --with-hdf5-incdir=<location of hdf5 includes> ],HDF5_INCDIR="$withval",HDF5_INCDIR="")if test -n "$HDF5_INCDIR"; then  HDF5_INCPATH=$HDF5_INCDIRelif test -n "$HDF5_DIR"; then  HDF5_INCPATH=$HDF5_DIR/includeelif test "$MPI" = yes; then  HDF5_INCPATH=$HOME/hdf5mpi/include:/usr/local/hdf5mpi/include:/loc/hdf5mpi/include:$HOME/hdf5/include:/usr/local/hdf5/include:/loc/hdf5/include:/usr/common/usg/hdf5/default/parallel/includeelse  HDF5_INCPATH=$HOME/hdf5/include:/usr/local/hdf5/include:/loc/hdf5/include:$HOME/hdf5mpi/include:/usr/local/hdf5mpi/include:/loc/hdf5mpi/include:/usr/common/usg/hdf5/default/serial/includefiAC_PATH_PROGS(HDF5_H, H5Cpp.h, "", $HDF5_INCPATH)if test -z "$HDF5_H"; then  AC_MSG_WARN(H5Cpp.h not found in $HDF5_INCPATH.  Set with --with-hdf5-incdir=)  HDF5_INC=" "  ac_cv_have_hdf5=noelse  HDF5_INCDIR=`dirname $HDF5_H`  AC_SUBST(HDF5_INCDIR)  HDF5_INC=-I$HDF5_INCDIR  AC_SUBST(HDF5_INC)  HDF5_DIR=`dirname $HDF5_INCDIR`  ac_cv_have_hdf5=yesfidnl ######################################################################dnldnl See if built paralleldnldnl ######################################################################if test $ac_cv_have_hdf5 = yes; then  if test -f $HDF5_INCDIR/H5config.h; then    hdf5par=`grep "HAVE_PARALLEL 1" $HDF5_INCDIR/H5config.h`  elif test -f $HDF5_INCDIR/H5pubconf.h; then    hdf5par=`grep "HAVE_PARALLEL 1" $HDF5_INCDIR/H5pubconf.h`  fifidnl ######################################################################dnldnl Find hdf5 librariesdnldnl ######################################################################AC_ARG_WITH(hdf5-libdir,[  --with-hdf5-libdir=<location of hdf5 library> ],HDF5_LIBDIR="$withval",HDF5_LIBDIR="")if test $ac_cv_have_hdf5 = yes; then  if test -n "$HDF5_LIBDIR"; then    HDF5_LIBPATH=$HDF5_LIBDIR  else    HDF5_LIBPATH=$HDF5_DIR/lib  fi  AC_PATH_PROGS(LIBHDF5_A, libhdf5_cpp.a, "", $HDF5_LIBPATH)  if test -z "$LIBHDF5_A"; then    AC_MSG_WARN(libhdf5_cpp.a not found.  Set with --with-hdf5-libdir=)    ac_cv_have_hdf5=no    HDF5_LIB=" "  else    HDF5_LIBDIR=`dirname $LIBHDF5_A`    AC_SUBST(HDF5_LIBDIR)    HDF5_LIB="-L$HDF5_LIBDIR -lhdf5"  fi  AC_SUBST(HDF5_LIB)fidnl ######################################################################dnldnl Define for whether hdf5 founddnldnl ######################################################################if test $ac_cv_have_hdf5 = yes; then  AC_DEFINE([HAVE_HDF5], [], [tells if the HDF5 library is present])fi

⌨️ 快捷键说明

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