📄 configure.in
字号:
AC_PREREQ(2.59)AC_INIT(configure.in)dnldnl Set the directory that contains support scripts such as install-sh anddnl config.guessdnlAC_CONFIG_AUX_DIR(../../../../../confdb)dnldnl Definitions will be placed in this file rather than in the DEFS variablednlAC_CONFIG_HEADER(include/mpidi_ch3i_sock_conf.h)echo "RUNNING CONFIGURE FOR THE SOCK CHANNEL"dnldnl 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.])fiPAC_PROG_MAKEdnl AC_CHECK_HEADER(net/if.h) fails on Solaris; extra header files neededAC_TRY_COMPILE([#include <sys/types.h>#include <sys/socket.h>#include <net/if.h>],,lac_cv_header_net_if_h=yes,lac_cv_header_net_if_h=no)echo "checking for net/if.h... $lac_cv_header_net_if_h"if test "$lac_cv_header_net_if_h" = "yes" ; then AC_DEFINE(HAVE_NET_IF_H, 1, [Define if you have the <net/if.h> header file.])fiAC_CHECK_HEADERS( \ netdb.h \ sys/ioctl.h \ sys/socket.h \ sys/sockio.h \ sys/types.h \ errno.h)# netinet/in.h often requires sys/types.h first. With AC 2.57, check_headers# does the right thing, which is to test whether the header is found # by the compiler, but this can cause problems when the header needs # other headers. 2.57 changes the syntax (!) of check_headers to allow # additional headers.AC_CACHE_CHECK([for netinet/in.h],ac_cv_header_netinet_in_h,[AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H#include <sys/types.h>#endif#include <netinet/in.h>],[int a=0;], ac_cv_header_netinet_in_h=yes, ac_cv_header_netinet_in_h=no)])if test "$ac_cv_header_netinet_in_h" = yes ; then AC_DEFINE(HAVE_NETINET_IN_H,1,[Define if netinet/in.h exists])fiAC_SUBST(device_name)AC_SUBST(channel_name)AC_SUBST(AR)AC_SUBST(RANLIB)AC_SUBST(MPILIBNAME)AC_SUBST(CC)AC_SUBST(CFLAGS)AC_SUBST(CPPFLAGS)PAC_CC_SUBDIR_SHLIBSAC_SUBST(master_top_srcdir)# Master_top_builddir is imported from the top; use it for the "top"# (used for things like libtool)if test -z "$master_top_builddir" ; then if test -s ../../../../../.mpich2 ; then master_top_builddir=../../../../.. fifiAC_SUBST(master_top_builddir)dnldnl Dependency handlingAC_SUBST(MAKE_DEPEND_C)dnldnl EtagsAC_SUBST(ETAGS)AC_SUBST(ETAGSADD)export ETAGSexport ETAGSADDAC_OUTPUT(Makefile src/Makefile localdefs)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -