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

📄 configure.in

📁 pic 模拟程序!面向对象
💻 IN
字号:
dnl ######################################################################dnldnl File:       OOPIC configure.indnldnl Purpose:    input file for autoconf for making configurednldnl Version:    $Id: configure.in,v 1.41 2005/08/09 16:48:24 rmtrines Exp $dnldnl ######################################################################dnl Process this file with autoconf to produce a configure script.AC_INIT(xg/xgmain.cpp)AC_CONFIG_AUX_DIR(./config)AM_INIT_AUTOMAKE(oopic, 2.6)AM_CONFIG_HEADER(./config.h)abs_top_builddir=`pwd`AC_SUBST(abs_top_builddir)abs_top_srcdir=`dirname $0`cd $abs_top_srcdirabs_top_srcdir=`pwd`OOPIC_TOP_SRCDIR=$abs_top_srcdirAC_SUBST(OOPIC_TOP_SRCDIR)cd $abs_top_builddir# try to turn off auto-invocation of autotools in the top-level MakefileAM_MAINTAINER_MODE# Default prefixAC_PREFIX_DEFAULT(/usr/local/oopic)dnl ######################################################################dnldnl Use wrapped automakednldnl ####################################################################### See whether we have automakeamver=`automake --version 2>/dev/null`if test $? != 0; then  echo automake not present in your path.  echo Modifications to Makefile.am\'s will not propagate.else  AUTOMAKE=$abs_top_srcdir/config/automake.shfi# For backware compatibilityEXEEXT=""AC_SUBST(EXEEXT)dnl ######################################################################dnldnl Standard testsdnldnl ######################################################################AC_CANONICAL_HOSThosttype=$hostAC_DEFINE_UNQUOTED(HOSTTYPE, "$host")dnl ######################################################################dnldnl Using hdf5?  If so, then find it.dnldnl ######################################################################dnl For now, make using hdf5 an optionAC_ARG_ENABLE(hdf5,[  --disable-hdf5   disable HDF5], hdf5="$enableval", hdf5=yes)echo using HDF5? ... $hdf5if test $hdf5 = yes; then  builtin(include,config/hdf5.m4)  if test $ac_cv_have_hdf5 = no; then dnl    AC_MSG_ERROR(hdf5 not found -- must install it or use flag --disable-hdf5.)     AC_MSG_WARN(hdf5 not properly installed -- Turning off hdf5.)    HDF5_DIR=""    HDF5_LIB=""    HDF5_LIBDIR="."    HDF5_INC=""    HDF5_INCDIR="."    AC_SUBST(HDF5_DIR)    AC_SUBST(HDF5_INC)    AC_SUBST(HDF5_LIB)    AC_SUBST(HDF5_INCDIR)    AC_SUBST(HDF5_LIBDIR)  fi else  HDF5_INC=""  HDF5_LIB=""  HDF5_INCDIR="."  HDF5_LIBDIR="."  AC_SUBST(HDF5_INC)  AC_SUBST(HDF5_LIB)  AC_SUBST(HDF5_INCDIR)  AC_SUBST(HDF5_LIBDIR)fidnl ######################################################################dnldnl Choose C and C++ compilersdnldnl ####################################################################### If the user specifies nothing, then we default to g++/gcc, allowing the# user's path to determine which version.CXX=g++CC=gcc# Allow user to override choice of compilerAC_ARG_WITH(CXX,[  --with-CXX=<compiler>   to use <compiler> (CC, cxx, KCC) instead of g++],CXX="$withval",CXX=$CXX)echo Using C++ compiler $CXXexport CXXAC_ARG_WITH(CC,[  --with-CC=<compiler>    to use <compiler> (cc) instead of gcc],CC="$withval",CC=$CC)echo Using C compiler $CCexport CCdnl ######################################################################dnldnl Standard testsdnldnl ######################################################################AC_ISC_POSIXAC_HEADER_TIMEdnl ######################################################################dnldnl Auxiliary compilation flagsdnldnl ####################################################################### Need BSD compatible nmbuiltin(include,config/nm.m4)builtin(include,config/flags.m4)# AC_ARG_WITH(CXXOPTIFLAGS,[  --with-CXXOPTIFLAGS=<optimization flags> (e.g. -O)],CXXOPTIFLAGS="$withval",CXXOPTIFLAGS=$CXXOPTIFLAGS)CXXFLAGS="$CXXFLAGS $CXX_OPTIFLAGS"CFLAGS="$CFLAGS $C_OPTIFLAGS"# Add link flagsbuiltin(include,config/libs.m4)dnl ######################################################################dnldnl Allow for extra flagsdnldnl ####################################################################### Check for extra flagsAC_ARG_WITH(EXTRA_CXXFLAGS,[  --with-EXTRA_CXXFLAGS=<flags>   to add <flags> to c++ compilation], EXTRA_CXXFLAGS="$withval",EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS")CXXFLAGS="$CXXFLAGS $EXTRA_CXXFLAGS $MPI_CXXFLAGS"# echo CXXFLAGS= $CXXFLAGSCFLAGS="$CFLAGS $MPI_CXXFLAGS"AC_ARG_WITH(EXTRA_LDFLAGS,[  --with-EXTRA_LDFLAGS=<flags>    to add <flags> to linking], EXTRA_LDFLAGS="$withval",EXTRA_LDFLAGS="$EXTRA_LDFLAGS")LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"dnl AC_SUBST(LDFLAGS)dnl ######################################################################dnldnl Check for C, C++ compilersdnldnl ######################################################################AC_PROG_CCAC_PROG_CXXAC_PROG_CPPAC_PROG_CXXCPPdnl ######################################################################dnldnl Check for header filesdnldnl ######################################################################AC_LANG_SAVEAC_LANG_CPLUSPLUSAC_CHECK_HEADERS(iostream strstream fstream sstream)AC_LANG_RESTOREdnl ######################################################################dnldnl Check for typedefs, structures, and compiler characteristicsdnldnl ######################################################################AC_TYPE_SIZE_TAC_STRUCT_TMdnl ######################################################################dnldnl C++ compiler capabilitiesdnldnl ######################################################################echo Calling config/macros.m4builtin(include,config/macros.m4)echo Calling config/cxx.m4builtin(include,config/cxx.m4)echo config/cxx.m4 finisheddnl ######################################################################dnldnl MPI capabilitiesdnl Get compilers used by mpi, then flagsdnldnl ######################################################################AC_ARG_ENABLE(MPI,[  --enable-MPI          to use MPI], MPI=yes, MPI=no)if test "$MPI" = yes; then  HAS_F77=NO  HAS_F90=NO  builtin(include,config/mpicompilers.m4)fidnl ######################################################################dnldnl Get compiler to use based on whether mpi requesteddnldnl ######################################################################DEFINE_MPI=""if test $MPI = yes; then  CXXCOMP="$MPICXX"  DEFINE_MPI=-DMPI_VERSION;else  CXXCOMP="$CXX"fiAC_SUBST(CXXCOMP)AC_SUBST(DEFINE_MPI)dnl ######################################################################dnldnl Check if debugging should be turned on for MPI runsdnldnl ######################################################################DEFINE_MPI_DEBUG=""if test $MPI = yes; then  AC_ARG_ENABLE(MPI_DEBUG,[  --enable-MPI_DEBUG      to enable debugging output in MPI from different processes to go to different files], MPI_DEBUG=yes, MPI_DEBUG=no)  echo "MPI_DEBUG = $MPI_DEBUG"  if test "$MPI_DEBUG" = yes; then    DEFINE_MPI_DEBUG=-DMPI_DEBUG  fifiAC_SUBST(DEFINE_MPI_DEBUG)dnl ######################################################################dnldnl Check for purifydnldnl ####################################################################### Check for purify flagsAC_ARG_WITH(purify,[  --with-purify=<flags>  to create a purify executable ],        PURIFY_DEFINE="-DPURIFY_DEFINE",       PURIFY_DEFINE="")AC_SUBST(PURIFY_DEFINE)# echo PURIFY_DEFINE=$PURIFY_DEFINEif test ! -z "$PURIFY_DEFINE"; then  AC_CHECKING(purify installation)  AC_PATH_PROGS(PURIFY_PATH,purify,"",$PATH)  if test -z "$PURIFY_PATH"; then    echo " "     echo "WARNING: Cannot find purify"    echo "Please add purify to your path"  fifidnl ######################################################################dnldnl Check for programsdnldnl ######################################################################AC_PROG_MAKE_SETAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_RANLIBdnl ######################################################################dnldnl Find out what the library suffix isdnldnl ######################################################################AC_MSG_CHECKING(what the library suffix is)AC_SUBST(LIBEXT)if test -z "$LIBEXT"then    LIBEXT=".a"fiAC_MSG_RESULT($LIBEXT)dnl ######################################################################dnldnl Find out how to install librariesdnldnl ######################################################################AC_MSG_CHECKING(how to install libraries)AC_SUBST(INSTALL_LIBRARY)if test -z "$INSTALL_LIBRARY"then    if test "$LIBEXT" = ".sl" # HP needs executable shared libs    then        INSTALL_LIBRARY="$INSTALL_PROGRAM"    else        INSTALL_LIBRARY="$INSTALL_DATA"    fielse    INSTALL_LIBRARY="$INSTALL_DATA"fiAC_MSG_RESULT(with $INSTALL_LIBRARY)dnl ######################################################################dnldnl Check XGmini option, set NOX, set X11 flagsdnldnl ######################################################################AC_ARG_WITH(XGmini,[  --with-XGmini=yes               to configure without X],NOX=1,NOX=0)export NOXDEFINE_NOX=""if test "$NOX" = "1"; then  DEFINE_NOX="-DNOX"fiAC_SUBST(DEFINE_NOX)dnl ######################################################################dnldnl X11 dnldnl ######################################################################if test "$NOX" = "0"; then  builtin(include,config/x11.m4)fidnl ######################################################################dnldnl find XPM and set flagsdnldnl ######################################################################if test "$NOX" = "0"; then  builtin(include,config/xpm.m4)fidnl ######################################################################dnldnl find XGrafix dnldnl ######################################################################builtin(include,xgrafix.m4)dnl ######################################################################dnldnl find Tcl/TKdnldnl ######################################################################if test "$NOX" = "0"; then  builtin(include,config/tcltk.m4)fidnl ######################################################################dnldnl FFTW capabilitiesdnldnl ######################################################################ac_cv_disable_fftw="no"AC_ARG_ENABLE([fftw],              [  --disable-fftw compile without fftw (default is to use fftw)],              [ac_cv_disable_fftw=yes], [ac_cv_disable_fftw=no])if test "$ac_cv_disable_fftw" = "yes"; then  echo "Building with fftw is disabled"fiif test "$ac_cv_disable_fftw" = "no"; then  echo "Checking for fftw..."  if test "$SCALAR_DOUBLE"; then    FFTW_PRECISION="double"  else    FFTW_PRECISION="float"  fi  builtin(include,config/fftw.m4)fidnl ######################################################################dnldnl Add in the .depend files.dnldnl ######################################################################touch otools/.dependtouch physics/.dependtouch advisor/.dependtouch xg/.dependdnl ######################################################################dnldnl Make all the Makefile'sdnldnl ######################################################################echo Making MakefilesAC_OUTPUT(Makefileotools/Makefileadvisor/Makefilephysics/Makefilexg/Makefileconfig/Makefile)

⌨️ 快捷键说明

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