📄 configure.in
字号:
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_ch3_conf.h)echo "RUNNING CONFIGURE FOR CH3 DEVICE"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.])fidnl Extract the device and channel namefile=${master_top_srcdir}/src/mpid/${device_name}/setup_device.argsif test -f ${file} ; then . ${file}else echo "ERROR: ${file} not found" exit 1fiexport channel_nameexport channel_argsAC_SUBST(device_name)AC_SUBST(channel_name)if test ! -d $srcdir/channels/${channel_name} ; then AC_MSG_ERROR([Channel ${channel_name} is unknown])elif test ! -x $srcdir/channels/${channel_name}/configure ; then AC_MSG_ERROR([Channel ${channel_name} has no configure])fiPAC_PROG_MAKEAC_CHECK_HEADERS( \ assert.h \ limits.h \ sys/types.h \ sys/uio.h \ unistd.h)AC_CHECK_FUNCS(gethostname)AC_TRY_COMPILE([#include <stdio.h>#define MY_PRINTF(rank, fmt, args...) printf("%d: " fmt, rank, ## args)],[MY_PRINTF(0, "hello");MY_PRINTF(1, "world %d", 3);], pac_cv_have_cpp_varargs=yes, pac_cv_have_cpp_varargs=no)if test $pac_cv_have_cpp_varargs = "yes" ; then AC_DEFINE(HAVE_CPP_VARARGS,,[Define if CPP supports macros with a variable number arguments])fiAC_SUBST(AR)AC_SUBST(RANLIB)AC_SUBST(MPILIBNAME)AC_SUBST(CC)AC_SUBST(CFLAGS)AC_SUBST(CPPFLAGS)AC_SUBST(CC_SHL)AC_SUBST(C_LINK_SHL)AC_SUBST(master_top_srcdir)PAC_SUBDIR_CACHEAC_CONFIG_SUBDIRS(channels/${channel_name})AC_OUTPUT(Makefile src/Makefile channels/Makefile localdefs)PAC_SUBDIR_CACHE_CLEANUP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -