📄 configure.in
字号:
AC_INIT(configure.in)AC_CONFIG_AUX_DIR(../../../confdb)dnldnl Definitions will be placed in this file rather than in the DEFS variableAC_CONFIG_HEADER(include/mpidconf.h)dnlecho "RUNNING CONFIGURE FOR THE MultiMethod DEVICE"dnldnlPAC_ARG_CACHINGdnlAC_ARG_WITH(bsocket,[--with-bsocket - Control the use of the bsocket library],,with_bsocket=yes)dnlAC_ARG_WITH(sock_type,[--with-sock_type=name - Specify the socket type, poll or iocp.],,with_sock_type=poll)dnlcase "$with_bsocket" in no|none) AC_DEFINE(NO_BSOCKET,,[Define to use native sockets instead]) ;; yes) ;; *) AC_MSG_WARN([Unknown value $with_bsocket for --with-bsocket]) ;;esacdnldnl case "$with_sock_type" indnl poll)dnl AC_DEFINE(WITH_SOCK_TYPEdnl ...dnl esacdnldnl Setup other replaceable valuesdnldnl Extract the methodsdnl if test "$with_device" = "default" ; thendnl with_device="mm:shm,tcp"dnl fiif test "$with_device" = "mm" ; then with_device="mm:shm,tcp,sock" ; fimethod_subdirs=`echo $with_device | sed -e 's/mm://' | sed -e 's/,/ /g'`if test "$method_subdirs" = "" ; then method_subdirs="shm tcp sock" ; fiAC_SUBST(method_subdirs)ib_method_yes_no="no"for method in $method_subdirs ; do if test "$method" = "sock" ; then AC_DEFINE(WITH_METHOD_SOCKET, 1, [socket method enabled]) echo socket method enabled. fi if test "$method" = "tcp" ; then AC_DEFINE(WITH_METHOD_TCP, 1, [tcp method enabled]) echo tcp method enabled. fi if test "$method" = "shm" ; then AC_DEFINE(WITH_METHOD_SHM, 1, [shared memory method enabled]) echo shm method enabled fi if test "$method" = "via" ; then AC_DEFINE(WITH_METHOD_VIA, 1, [via method enabled]) echo via method enabled fi if test "$method" = "via_rdma" ; then AC_DEFINE(WITH_METHOD_VIA_RDMA, 1, [via rdma method enabled]) echo via rdma method enabled fi if test "$method" = "ib" ; then ib_method_yes_no="yes" AC_DEFINE(WITH_METHOD_IB, 1, [infiniband method enabled]) CPPFLAGS="$CPPFLAGS -I/usr/local/PSC1200/include -DLINUX -DNORCSID" LDFLAGS="$LDFLAGS -L/usr/local/PSC1200/lib -Xlinker -t" LIBS="$LIBS /usr/local/PSC1200/lib/libibos.so -ldl -lpthread" echo infiniband method enabled fidonednl AC_SUBST(ib_method_yes_no)dnldnl Choose the socket typednlif test "$with_sock_type" = "poll" ; thenAC_DEFINE(WITH_SOCK_TYPE, SOCK_POLL, [sock_type = poll])echo socket type = pollfidnl if test "$with_sock_type" = "iocp" ; thendnl AC_DEFINE(WITH_SOCK_TYPE_IOCP, 1, [sock_type = iocp])dnl echo socket type = iocpdnl fidnldnlif test -z "$top_srcdir" ; then use_top_srcdir=$srcdirelse use_top_srcdir=$top_srcdirfiif test -z "$master_top_srcdir" ; then master_top_srcdir=$use_top_srcdirfiAC_SUBST(master_top_srcdir)export master_top_srcdirAC_PROG_CCAC_PATH_PROG(AR,ar)AC_PATH_PROG(RANLIB,ranlib)PAC_PROG_MAKEAC_C_CONSTPAC_C_VOLATILEPAC_C_RESTRICTAC_C_INLINEAC_HEADER_STDCMPILIBNAME=mpichAC_SUBST(MPILIBNAME)AC_SEARCH_LIBS(socket, socket)AC_CHECK_LIB(thread, mutex_init)AC_CHECK_HEADERS(pthread.h fcntl.h string.h strings.h sys/time.h sys/sem.h sys/ipc.h sys/shm.h unistd.h sys/param.h sys/ioctl.h netinet/in.h netinet/tcp.h netdb.h sys/uio.h sys/select.h sys/types.h stdlib.h sys/socket.h sys/filio.h netinet/in.h values.h sys/uio.h sched.h arpa/inet.h sys/sockio.h net/if.h)AC_CHECK_HEADERS(sys/stat.h sys/ptrace.h sys/wait.h errno.h ctype.h)AC_CHECK_FUNCS(yield mutex_init shmget shmat shmdt shmctl usleep sleep getcwd gethostname gettimeofday putenv select socket sched_yield)AC_CHECK_FUNCS(pthread_mutexattr_setpshared pthread_mutexattr_init)dnl Generate the Makefiles from Makefile.inAC_OUTPUT(Makefile \ src/Makefile \ src/bsocket/Makefile \ src/common/Makefile \ src/init/Makefile \ src/mm/Makefile \ src/progress/Makefile \ src/pt2pt/Makefile \ src/request/Makefile \ src/spawn/Makefile \ src/util/Makefile \ src/xfer/Makefile \ src/sock/Makefile \ src/ib/Makefile \ src/tcp/Makefile \ src/via/Makefile \ src/shm/Makefile \ src/viardma/Makefile \ src/packer/Makefile \ src/unpacker/Makefile \ src/rma/Makefile \)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -