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

📄 configure.in

📁 fortran并行计算包
💻 IN
📖 第 1 页 / 共 2 页
字号:
	*1.0.*)            AC_MSG_RESULT([$VERSION, i.e. the oldest Java])            AC_MSG_WARN([Java $VERSION is too old to be used with $pkgname !])            ;;	*1.1.*)            AC_MSG_RESULT([$VERSION, i.e. Java 1 SDK])            AC_MSG_WARN([Java $VERSION is too old to be used with $pkgname !])            ;;	*)            AC_MSG_RESULT([$VERSION, i.e. Java 2 SDK])            ;;    esacfiif test "$is_jvm_working" = "no" ; then    PAC_MSG_ERROR($enable_softerror,        [$pkgname can be used with Java 2 Run Time Environment,	i.e. j2sdk 1.2.2 or newer.])fiAC_SUBST(JVMFLAGS)AC_SUBST(JVM)JAC_CHECK_CYGPATH(JPATH_START, JPATH_FINAL)AC_SUBST(JPATH_START)AC_SUBST(JPATH_FINAL)## Naming the various build directories, don't inherit them from environment#rootbuild_dir=`pwd`for dir in lib bin doc etc share sbin ; do    dirname=${dir}build_dir    eval dirvalue=\$"$dirname"    eval $dirname=$rootbuild_dir/$dirdone# VPATH build: Set the libbuild_dirif test ! -d $libbuild_dir -a -d $srcdir/lib ; then    echo "creating $libbuild_dir from source"    $CPRP -pr $srcdir/lib $libbuild_dirfiAC_SUBST(libbuild_dir)# VPATH: Set the binbuild_dirif test ! -d $binbuild_dir ; then    echo "creating directory $binbuild_dir"    $MKDIR $binbuild_dirfiAC_SUBST(binbuild_dir)# VPATH build: Set the docbuild_dirif test ! -d $docbuild_dir -a -d $srcdir/doc ; then    echo "creating $docbuild_dir from source"    $CPRP -pr $srcdir/doc $docbuild_dir    $RM -r $docbuild_dir/oldfiAC_SUBST(docbuild_dir)# VPATH build: Set the etcbuild_dirif test ! -d $etcbuild_dir -a -d $srcdir/etc ; then    echo "creating $etcbuild_dir from source"    $CPRP -pr $srcdir/etc $etcbuild_dirfiAC_SUBST(etcbuild_dir)# VPATH build: Set the sharebuild_dirif test ! -d $sharebuild_dir ; then    echo "creating $sharebuild_dir"    $MKDIR $sharebuild_dirfiAC_SUBST(sharebuild_dir)# Copying $srcdir/logfiles to sharebuild_dirif test -d $srcdir/logfiles ; then    echo "creating sample logfiles from source"    $CPRP -pr $srcdir/logfiles/*.clog* $sharebuild_dir    $CPRP -pr $srcdir/logfiles/*.slog* $sharebuild_dirfiAC_SUBST(sbinbuild_dir)# Options to disselect individual subpackage# slog2_enable_{build|source|sample|rlog} are env. variables set by MPE2AC_ARG_ENABLE(build,[--enable-build                     - Build the jar files from the java source                                     and the sample TRACE-API implementation.                                     Java Standard Development Kit, SDK,                                     is needed.  The default is enable=yes.],,enable_build=${slog2_enable_build:-yes})AC_ARG_ENABLE(source,[--enable-source                    - Build the jar files from the java source.                                     Java Standard Development Kit, SDK,                                     is needed.  The default is enable=yes.],,enable_source=${slog2_enable_source:-yes})AC_ARG_ENABLE(sample,[--enable-sample                    - Build sample TRACE-API implementation.                                     Java Standard Development Kit, SDK,                                     is needed.  The default is enable=yes.],,enable_sample=${slog2_enable_sample:-yes})AC_ARG_ENABLE(rlog,[--enable-rlog                      - Build RLOG TRACE-API implementation.                                     Java Standard Development Kit, SDK,                                     is needed.  The default is enable=yes.],,enable_rlog=${slog2_enable_rlog:-yes})AC_ARG_ENABLE(clog,[--enable-clog                      - Build CLOG related wrappers, e.g.                                     clog2TOslog2, clog2print....                                     The default is enable=yes.],,enable_clog=${slog2_enable_clog:-yes})AC_ARG_WITH(oldsource,[--with-oldsource=OLD_SRCDIR        - Build the old jar files from the given OLD                                     Java source and to build slog2updater.                                     This option is ignored if --enable-source                                     is turned off.  The option should be set                                     with a valid directory name. e.g. src_205,                                     then --with-oldsource=src_205.                                     The default is no.],,with_oldsource="")if test "$enable_build" = "no" ; then    enable_source=no;    enable_sample=no;    enable_rlog=no;fi# The XXX in XXX_dirname below must match with AC_ARG_ENABLE( XXX, .. ) abovesource_dirname="src"sample_dirname="trace_sample"rlog_dirname="trace_rlog"trial_pkgs="source sample rlog"# The XXX in XXX_dirname below must match with AC_ARG_WITH( XXX, .. ) aboveif test "$enable_source" = "yes" \     -a "X$with_oldsource" != "X" ; then    oldsource_dirname="$with_oldsource"    trial_pkgs="$trial_pkgs oldsource"fidnl Cleanup the subpackages' Makefiles if they existAC_MSG_CHECKING( [for leftover Makefiles in subpackages] )leftover_pkgs=""for pkg in $trial_pkgs ; do    dirname=${pkg}_dirname    eval dirvalue=\$"$dirname"    if test -s $rootbuild_dir/$dirvalue/Makefile ; then        leftover_pkgs="$leftover_pkgs \"$dirvalue\""        ( cd $rootbuild_dir/$dirvalue && $MAKE distclean > /dev/null 2>&1 )        if test -f $rootbuild_dir/$dirvalue/Makefile ; then            $RM $rootbuild_dir/$dirvalue/Makefile        fi    fidoneif test "X$leftover_pkgs" = "X" ; then    AC_MSG_RESULT( [none] )else    AC_MSG_RESULT( [$leftover_pkgs cleaned] )fi# Enable softerror for all subpackages,# i.e. use AC_MSG_WARN instead of AC_MSG_ERRORslog2_enable_softerror=yesexport slog2_enable_softerrorselected_pkgs=""if test "$enable_source" = "yes" \     -a -s $srcdir/src/configure ; then    selected_pkgs="$selected_pkgs source"    AC_CONFIG_SUBDIRS(src)fiif test "$enable_sample" = "yes" \     -a -s $srcdir/trace_sample/configure ; then    selected_pkgs="$selected_pkgs sample"    AC_CONFIG_SUBDIRS(trace_sample)fiif test "$enable_rlog" = "yes" \     -a -s $srcdir/trace_rlog/configure ; then    selected_pkgs="$selected_pkgs rlog"    AC_CONFIG_SUBDIRS(trace_rlog)fiif test "X$with_oldsource" != "X" \     -a -s $srcdir/$oldsource_dirname/configure ; then    selected_pkgs="$selected_pkgs oldsource"    AC_CONFIG_SUBDIRS([$oldsource_dirname])fi# Define bindir's executables, and pass them down to sbindir's install-packageBASIC_PGMS="slog2print slog2navigator slog2filter slog2updater logconvertor jumpshot"TRACE_PGMS="traceprint traceTOslog2"CLOG_PGMS="clogprint clogTOslog2 clog2print clog2TOslog2"if test "$enable_clog" = "yes" ; then    BASIC_PGMS="$BASIC_PGMS $CLOG_PGMS"fiif test "x$TRACE_LIBDIR" != "x" ; then    AC_MSG_CHECKING([for libTraceInput.so and TraceInput.dll])    if test -f "$TRACE_LIBDIR/libTraceInput.so" \         -o -f "$TRACE_LIBDIR/TraceInput.dll" ; then        AC_MSG_RESULT(yes)        AC_SUBST(TRACE_LIBDIR)        has_tracelib=yes    else        AC_MSG_RESULT(no)        has_tracelib=no    fifiPATH_EXEFILES="sbin/install-package"EXTRA_PGMS=""if test "$has_tracelib" = "yes" ; then    for exefile in $BASIC_PGMS $TRACE_PGMS ; do        PATH_EXEFILES="$PATH_EXEFILES bin/$exefile"    done#   define EXTRA_PGMS to be renamed TRACE_PGMS according to the TRACE_NAME    if test "x$TRACE_NAME" != "x" -a "$TRACE_NAME" != "trace" ; then        for oldpgm in $TRACE_PGMS ; do            newpgm=$TRACE_NAME`echo $oldpgm | sed -e 's%trace%%'`            EXTRA_PGMS="$EXTRA_PGMS $newpgm"        done    else        EXTRA_PGMS="$TRACE_PGMS"    fielse    for exefile in $BASIC_PGMS ; do        PATH_EXEFILES="$PATH_EXEFILES bin/$exefile"    donefi# EXEFILES is used in sbin/install-package.in, so EXEFILES needs updated names.EXEFILES="$BASIC_PGMS $EXTRA_PGMS"AC_SUBST(EXEFILES)AC_OUTPUT(Makefile $PATH_EXEFILES)for script in $PATH_EXEFILES ; do    if test -f "$script" ; then        chmod a+x $script    else        PAC_MSG_ERROR($enable_softerror, [$script is not a valid file - Make sure you have configured with a valid $pkgname source directory])    fidoneif test "$has_tracelib" = "yes" ; then#   Rename all the scripts in bindir according to the TRACE_NAME    if test "x$TRACE_NAME" != "x" -a "$TRACE_NAME" != "trace" ; then        for oldpgm in $TRACE_PGMS ; do            if test -x "bin/$oldpgm" ; then                newpgm=$TRACE_NAME`echo $oldpgm | sed -e 's%trace%%'`                $MV bin/$oldpgm bin/$newpgm            fi        done    fificonfigured_pkgs=""for pkg in $selected_pkgs ; do    dirname=${pkg}_dirname    eval dirvalue=\$"$dirname"    if test -s $dirvalue/Makefile ; then        configured_pkgs="$configured_pkgs \"$dirvalue\""    fidoneif test -z "$configured_pkgs" ; then    AC_MSG_WARN([$pkgname: No sub-package has been configured])else    AC_MSG_RESULT([$pkgname: $configured_pkgs have been configured])fi

⌨️ 快捷键说明

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