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

📄 configure.in

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.dnldnl aclocal_cache.m4, included by sowing/confdb/aclocal.m4, fixes dnl bugs in autoconf caching.dnldnl The file name here refers to a file in the source being configuredAC_INIT(mpiexec.c)dnldnl Definitions will be placed in this file rather than in the DEFS variableAC_CONFIG_HEADER(forkerconf.h)dnldnl Set the directory that contains support scripts such as install-sh anddnl config.guessAC_CONFIG_AUX_DIR(../../../confdb)dnlecho "RUNNING CONFIGURE FOR THE FORKER PM"dnldnl Use AC_ARG_ENABLE to look for --enable-feature and AC_ARG_WITH to look fordnl --with-capabilitydnldnl Enable better caching controlPAC_ARG_CACHINGdnlAC_ARG_ENABLE(echo, [--enable-echo  - Turn on strong echoing. The default is enable=no.] ,set -x)dnlAC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],CFLAGS="$CFLAGS -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes")dnldnldnl Set single for nowAC_ARG_ENABLE(g,[--enable-g=option - Control the level of debugging support in the PMIimplementation.  option may be a list of common separated names including    none  - No debugging    all   - All of the above choices],,enable_g=none)dnlAC_ARG_ENABLE(onsig,[--enable-onsig - Control the handling of processes that signal (e.g., SEGV) using ptrace.  Enabled by default],,enable_onsig=yes)dnl With optionsdnldnl First check that we have a clean build if we are doing a VPATH buildif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status ; then    AC_MSG_ERROR([You cannot do a VPATH build if the source directory has been    configured.  Run "make distclean" in $srcdir first.])fidnldnl Process any enable or with valuesdnldnl enable-gcase "$enable_g" in     no|none)    ;;    mem|dbg|all|yes)    CFLAGS="$CFLAGS -g"    ;;    *)    AC_MSG_WARN([Unknown value $enable_g for enable-g])    ;;esacdnldnl This test is complicated by the fact that top_srcdir is not set untildnl the very end of configure.  Instead, we get it ourselvesif test -z "$top_srcdir" ; then   use_top_srcdir=$srcdir   else   use_top_srcdir=$top_srcdirfidnl The recommended order for items in a configure.in file isdnl     check for programsdnl     check for librariesdnl     check for header filesdnl     check for typedefsdnl     check for structuresdnl     check for compiler characteristicsdnl     check for library functionsdnl     check for system servicesdnl Here are some sample testsdnldnl Find a C compiler (choose gcc first)AC_PROG_CCAC_PROG_INSTALLPAC_PROG_MAKEdnldnl     check for compiler characteristicsAC_C_CONSTPAC_C_VOLATILEPAC_C_RESTRICTAC_C_INLINEdnldnl check for library functionsAC_CHECK_FUNCS(strtol time gettimeofday)if test "$enable_onsig" = "yes" ; then    AC_CHECK_FUNCS(ptrace)    # It isn't enough to find ptrace.  We also need the ptrace     # parameters, which some systems, such as IRIX, do not define.    if test "$ac_cv_func_ptrace" = yes ; then        AC_CACHE_CHECK([for ptrace named parameters],pac_cv_has_ptrace_parms,[        AC_TRY_COMPILE([#include <sys/types.h>#include <sys/ptrace.h>],[int i = PTRACE_CONT;],pac_cv_has_ptrace_parms=yes,pac_cv_has_ptrace_parms=no)])        if test "$pac_cv_has_ptrace_parms" = "yes" ; then	    AC_DEFINE(HAVE_PTRACE_CONT,,[Define if ptrace parameters available])	fi    fifidnldnl Check for special compile characteristicsdnldnl Is there libnsl needed for gethostbyname?dnl AC_SEARCH_LIBS(gethostbyname,nsl)AC_SEARCH_LIBS(socketpair,socket)dnldnl Look for Standard headersAC_HEADER_STDCdnl Check for a specific headerAC_CHECK_HEADERS(sys/types.h signal.h sys/ptrace.h)dnldnl Check for functions.  This invokes another test if the function is dnl found.  The braces around the second test are essential. dnl AC_CHECK_FUNC(setpgrp,[AC_FUNC_SETPGRP])AC_CHECK_FUNCS(strsignal)dnl dnl Check for signal handlersAC_CHECK_FUNCS(sigaction signal setset)if test "$ac_cv_func_sigaction" = "yes" ; then    AC_MSG_CHECKING(for struct sigaction)    AC_TRY_COMPILE([#include <signal.h>],[struct sigaction act; sigaddset( &act.sa_mask, SIGINT );],sigaction_ok="yes",sigaction_ok="no")    AC_MSG_RESULT($sigaction_ok)fidnl# Decide on the signal handler to useif test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then    AC_DEFINE(USE_SIGACTION,,[Define if sigaction should be used to set signals])elif test "$ac_cv_func_signal" = "yes" ; then    AC_DEFINE(USE_SIGNAL,,[Define if signal should be used to set signals])fidnldnl Setup other replaceable valuesMPILIBNAME=${MPILIBNAME:-"mpich"}AC_SUBST(MPILIBNAME)AC_CHECK_HEADERS(string.h sys/time.h unistd.h stdlib.h sys/socket.h wait.h errno.h)AC_SUBST(MPILIBNAME)AC_SUBST(CC)AC_SUBST(CFLAGS)AC_SUBST(CC_SHL)AC_SUBST(C_LINK_SHL)AC_SUBST(master_top_srcdir)dnldnl Generate the Makefiles from Makefile.inAC_OUTPUT(Makefile)

⌨️ 快捷键说明

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