📄 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(rlog.c)dnldnl Definitions will be placed in this file rather than in the DEFS variableAC_CONFIG_HEADER(rlogconf.h)dnlecho "RUNNING CONFIGURE FOR RLOG"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_STDCAC_CHECK_HEADER(jni.h)if test "$ac_cv_header_jni_h" != "yes" ; then # Try to find the java include path. For now, just generate warning # At ANL, places to look include /soft/com/packages/j2sdk1.4.0/include # and /soft/com/packages/jdk-1.3.1/include (and /soft/com/jdk*) # May also want to look in $JAVA_HOME/include AC_MSG_WARN([cannot compile trace code])fidnlMPILIBNAME=mpichAC_SUBST(MPILIBNAME)dnldnl How do I get configure to find these values for me?dnljava_home=/soft/com/packages/j2sdk1.4.0java_arch=linuxAC_SUBST(java_home)AC_SUBST(java_arch)dnl CC_SHL=${CC} -shareddnl AC_SUBST(CC_SHL)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 ./rlogconf.h ../../../include)dnl Generate the Makefiles from Makefile.indnl AC_OUTPUT(Makefile TraceInput/Makefile)AC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -