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

📄 configure.in

📁 mpi并行计算的c++代码 可用vc或gcc编译通过 可以用来搭建并行计算试验环境
💻 IN
字号:
dnldnl Caching is usually WRONG for systems with cross-mounted file systemsdnl (the cache file may correspond to a different system).  Since configurednl is not on a performance-critical path, go for robustness over speed.dnldefine([AC_CACHE_LOAD], )dnldefine([AC_CACHE_SAVE], )dnldnldnldnl Process this file with autoconf to produce a configure script.AC_INIT()AC_PREREQ(2.52)AC_CONFIG_AUX_DIR([.])AC_CONFIG_HEADER([trace_impl.h]) AC_ARG_ENABLE(strict,[--enable-strict                    - Turn on strict compilation testing                                     when using gcc],COPTIONS="${COPTIONS} -Wall -O -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL")AC_ARG_ENABLE(echo,[--enable-echo                      - Turn on strong echoing.  The default                                     is enable=no.] ,set -x)AC_ARG_ENABLE(softerror,[--enable-softerror                 - Turn on soft error, i.e. instead of                                     issuing MSG_ERROR, MSG_WARN + exit 0                                     are used.  The default is enable=no.],, enable_softerror=${slog2_enable_softerror:-no}) # Find the home directory if not specifiedif test "X$srcdir" != "X." -a -s $srcdir/src/Makefile.in ; then    top_srcdir_abs=$srcdirelse    PAC_GETWD(top_srcdir_abs,src/Makefile.in)fiif test -z "$top_srcdir_abs" ; then    top_srcdir_abs=`pwd`fiif test ! -d "$top_srcdir_abs" ; then    PAC_MSG_ERROR($enable_softerror, [*** $top_srcdir_abs is not a valid directory - cannot continue])fiAC_SUBST(top_srcdir_abs)# Determine this package's name based on its directory namechangequote(,)tmpname="`echo $top_srcdir_abs | sed -e 's%\(.*\)/\([^/]*\)%\2%'`"pkgname="`echo $tmpname | sed -e 'y%abcdefghijklmnopqrstuvwxyz/%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`"changequote([,])if test "x$pkgname" = "x" ; then    pkgname="TRACE-IMPL"fiecho "Configuring $pkgname implementation with $ac_configure_args"# Cannot use JAVA_HOME here in this configure.in.# Because JAVA_HOME is used in Blackdown's .java_wrapper in jdk117_v3# Using JAVA_HOME here would mistakenly set some variable in .java_wrapper# when .java_wrapper is invoked.  i.e. causes mysterious error in tests.AC_ARG_WITH(java,[--with-java=JDK_TOPDIR             - The path of the top-level directory of                                     the Java SDK installation.  If this option                                     or with-java2 is not given, configure                                     will try to locate java for you.  Also,                                     with-java2 option overwrites the                                     with-java option to set JDK_TOPDIR.],JDK_TOPDIR=$withval, JDK_TOPDIR="")AC_ARG_WITH(java2,[--with-java2=JDK_TOPDIR            - The path of the top-level directory of                                     the Java SDK installation.  If this option                                     or with-java is not given, configure will                                     try to locate java for you.  Also,                                     with-java2 option overwrites the                                     with-java option to set JDK_TOPDIR.],JDK_TOPDIR=$withval, )AC_ARG_WITH(jvmflags,[--with-jvmflags=JVMFLAGS           - supply java virtual machine flags,                                     e.g. -Xms32m -Xmx256m.],JVMFLAGS="$withval")MAKE=${MAKE:-"make"}PAC_MAKE_IS_GNUMAKEPAC_MAKE_IS_BSD44PAC_MAKE_IS_OSFPAC_MAKE_VPATHif test ! -s src/trace_impl.c -a -z "$VPATH" ; then    AC_MSG_ERROR([No virtual MAKE path command found.        You may need to set your make command        The GNU make (sometimes available as gnumake) can be used.])fiAC_SUBST(MAKE)# Check if --without-java is specifiedif test "$JDK_TOPDIR" = "no" ; then    PAC_MSG_ERROR($enable_softerror, [--without-java is specified, exit!])fidnl Check if TRACE_CC has been set before AC_PROG_CCif test -n "$TRACE_CC" ; then    TRACE_ORIG_CC="$CC"    CC="$TRACE_CC"fidnl Checks for programs.AC_PROG_CCdnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS( stdlib.h stdio.h string.h ctype.h errno.h )dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_BIGENDIANAC_CHECK_SIZEOF( void*, $CROSS_SIZEOF_VOIDP )AC_CHECK_SIZEOF( int, $CROSS_SIZEOF_INT )AC_CHECK_SIZEOF( long, $CROSS_SIZEOF_LONG )AC_CHECK_SIZEOF( long long, $CROSS_SIZEOF_LONG_LONG )AC_CHECK_SIZEOF( __int64, $CROSS_SIZEOF___INT64 )LIBSO_PREFIX="lib"AC_CANONICAL_HOSTcase "$host_os" in    aix4* | aix5* )        dnl  temporary fix to force libtool on AIX to generate .so file,        dnl  i.e. inform libtool to do runtime linking.        LDFLAGS="$LDFLAGS -brtl"        ;;    *cygwin* )        dnl  Since SUN's JDK assumes a win32 compiler, so force cygwin/gcc        dnl  to be in MINGW32 mode.         CC="gcc -mno-cygwin"        LDFLAGS="$LDFLAGS -Wl,--enable-stdcall-fixup"        LIBSO_PREFIX=""        ;;esacAC_SUBST(LIBSO_PREFIX)dnl  set COPTS equal to CFLAGS during configurationif test "x$CFLAGS" != "x" ; then    COPTS="$CFLAGS"    AC_SUBST(COPTS)fidnl  intel compiler does not need shared library symbol exported.EXPORT_SYMBOLS=yescase "$CC" in    *icc* )        EXPORT_SYMBOLS=no        ;;    *pgcc )        ;;esacAC_SUBST(EXPORT_SYMBOLS)AC_DISABLE_STATICAC_LIBTOOL_WIN32_DLLdnl  Set SED that is not set in AC_PROG_LIBTOOL in autoconf 2.5xAC_CHECK_PROG(SED, sed, sed, ;)AC_PROG_LIBTOOLAC_PROG_INSTALLPAC_PROG_CHECK_INSTALL_WORKSAC_SUBST(LIBTOOL_DEPS)dnl Checks for libraries.dnl Replace `main' with a function in -lefence:AC_CHECK_LIB(efence, malloc, [DEBUG_LIBS="-lefence"; AC_SUBST(DEBUG_LIBS)])dnl Checks for library functions.AC_CHECK_FUNCS(strstr)JAC_JNI_HEADERS(JNI_INC, JDK_TOPDIR)if test "x$JNI_INC" = "x" ; then    PAC_MSG_ERROR($enable_softerror, [Invalid JNI include dir, exit!])fiAC_DEFINE(HAVE_JNI_H,1,[Define if <jni.h> is found])AC_SUBST(JNI_INC)JVM="$JDK_TOPDIR/bin/java"AC_SUBST(JVM)AC_SUBST(JVMFLAGS)JAC_CHECK_CYGPATH(JPATH_START, JPATH_FINAL)AC_SUBST(JPATH_START)AC_SUBST(JPATH_FINAL)CPRP=cpRM="rm -f"MV="mv -f"MKDIR=mkdirAC_SUBST(RM)## libbuild_dir is used to build the libraries in before they are installed.# binbuild_dir is for the scripts/programs# includebuild_dir is for all user header files#rootbuild_dir=`pwd`for dir in lib bin sbin logfiles ; do    dirname=${dir}build_dir    eval dirvalue=\$"$dirname"    eval $dirname=$rootbuild_dir/$dirdone# echo "rootbuild_dir = $rootbuild_dir"changequote(,)gui_libbuild_dir="`echo $rootbuild_dir | sed -e 's%\(.*\)/[^/]*$%\1/lib%'`"changequote([,])# echo "gui_libbuild_dir = $gui_libbuild_dir"# VPATH build: Set the libbuild_dirif test ! -d $libbuild_dir ; then    echo "creating directory $libbuild_dir"    $MKDIR $libbuild_dirfi# VPATH build: Set the logfilesbuild_dirfor dir in logfiles ; do    dirname=${dir}build_dir    eval dirvalue=\$"$dirname"    if test -n "$dirvalue" ; then        if test ! -d $dirvalue ; then            if $CPRP -pr $srcdir/$dir $dirvalue ; then                echo "creating $dirvalue from source"            else                AC_MSG_ERROR( [Could not create directory $dirvalue] )            fi        fi    fidoneAC_SUBST(libbuild_dir)AC_SUBST(binbuild_dir)AC_SUBST(sbinbuild_dir)AC_SUBST(logfilesbuild_dir)AC_SUBST(gui_libbuild_dir)# Define bindir's executables, and pass them down to sbindir's install-packageOLD_EXEFILES="traceprint traceTOslog2"PATH_OLD_EXEFILES="sbin/install-package"for exefile in $OLD_EXEFILES ; do    PATH_OLD_EXEFILES="$PATH_OLD_EXEFILES bin/$exefile"doneTRACE_NAME=rlogAC_SUBST(TRACE_NAME)if test "X$TRACE_NAME" != "X" -a "$TRACE_NAME" != "trace" ; then    for oldpgm in $OLD_EXEFILES ; do        newpgm=$TRACE_NAME`echo $oldpgm | sed -e 's%trace%%'`        EXEFILES="$EXEFILES $newpgm"    donefiAC_SUBST(EXEFILES)AC_OUTPUT(Makefile src/Makefile $PATH_OLD_EXEFILES)for script in $PATH_OLD_EXEFILES ; do    if test -f "$script" ; then        chmod a+x $script    else        PAC_MSG_ERROR([*** $script is not a valid file - check if $srcdir is a valid TRACE-API implementation.])    fidonednl Rename all the scripts in bindir according to the TRACE_NAMEif test "X$TRACE_NAME" != "X" -a "$TRACE_NAME" != "trace" ; then    for oldpgm in $OLD_EXEFILES ; do        newpgm=$TRACE_NAME`echo $oldpgm | sed -e 's%trace%%'`        $MV bin/$oldpgm bin/$newpgm    donefidnl Restore the original CC if it is neededif test -n "$TRACE_CC" ; then    CC="$TRACE_ORIG_CC"fi

⌨️ 快捷键说明

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