📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.dnldnl The file name here refers to a file in the source being configuredAC_INIT(dlog.c)dnldnl Definitions will be placed in this file rather than in the DEFS variableAC_CONFIG_HEADER(dlogconf.h)dnlecho "RUNNING CONFIGURE FOR DLOG"dnldnldnl 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")dnlAC_ARG_ENABLE(g,[--enable-g=option - Control the level of debugging support in the implementation. option may be a list of common separated names including none - No debugging all - All of the above choices],,enable_g=none)dnldnlAC_ARG_ENABLE(sharedlibs,[--enable-sharedlibs=kind - Enable shared libraries. kind may be gnu - Standard gcc and GNU ld options for creating shared libraries libtool - GNU libtool This option is currently ignored])dnl enable-gcase "$enable_g" in no|none) ;; mem|all) AC_DEFINE(USE_MEMORY_TRACING,,[Define to enable memory tracing]) enable_g_mem=yes CFLAGS="$CFLAGS -g" ;; *) AC_MSG_WARN([Unknown value $enable_g for enable-g]) ;;esacdnldnl 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 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_srcdirfiif test -z "$master_top_srcdir" ; then master_top_srcdir=$use_top_srcdirfiAC_SUBST(master_top_srcdir)export master_top_srcdirdnldnl Find a C compiler (choose gcc first)AC_PROG_CCAC_PATH_PROG(AR,ar)AC_PATH_PROG(RANLIB,ranlib)dnldnl AC_PROG_MAKE_SETPAC_PROG_MAKEdnldnl check for compiler characteristicsdnl PAC_PROG_C_WEAK_SYMBOLSAC_C_CONSTPAC_C_VOLATILEPAC_C_RESTRICTAC_C_INLINEdnl PAC_C_STRUCT_ALIGNMENTdnldnl Look for Standard headersAC_HEADER_STDCdnlMPILIBNAME=mpichAC_SUBST(MPILIBNAME)dnl AC_SEARCH_LIBS(socket, socket)dnl AC_CHECK_LIB(thread, mutex_init)dnl AC_CHECK_HEADERS(foo.h bar.h)dnl AC_CHECK_FUNCS(baz biff)AC_OUTPUT_COMMANDS(cp ./dlogconf.h ../../../include)dnl Generate the Makefiles from Makefile.inAC_OUTPUT(Makefile ../dlog2slog/Makefile )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -