⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.ac

📁 linux下的多线程调试工具
💻 AC
字号:
#                                               -*- Autoconf -*-# Process this file with autoconf to produce a configure script.AC_PREREQ(2.59)AC_INIT(ptt, 1.0, nptltracetool-discuss@lists.sourceforge.net)AC_CONFIG_AUX_DIR([config])AC_CONFIG_MACRO_DIR([config])AM_INIT_AUTOMAKE(ptt, 1.0)AC_CONFIG_SRCDIR([src/daemon/nptl_trace.c])AC_CONFIG_HEADER([config.h])# PTT configuration optionsAC_ARG_WITH([ptt-trace-info],    AC_HELP_STRING([--with-ptt-trace-info],                   [compute information about PTT trace mechanism. should be useful only for PTT developers]),                   [useptt_info=$withval],                   [useptt_info=no])if test "$useptt_info" = yes; then    AC_DEFINE(PTT_TRACE_INFO,,information about PTT trace mechanism)fiAC_ARG_WITH([ptt-friendly-glibc],    AC_HELP_STRING([--with-ptt-friendly-glibc=GLIBDIR],                   [system glibc installed in GLIBDIR has support for PTT]),                   [friend=$withval],                   [friend=no])AM_CONDITIONAL(FRIEND, test $friend != "no")case "$friend" in    ''|yes) AC_MSG_ERROR(--with-ptt-friend-glibc requires an argument (directory where libpthread.so and libpthread_ptt.so are installed)) ;;    no) ;;    *) if test ! -f "$friend/libpthread.so.0"; then           AC_MSG_ERROR($friend doesn't contain libpthread.so.0)       fi       if test ! -f "$friend/libpthread_ptt.so.0"; then           AC_MSG_ERROR($friend doesn't contain libpthread_ptt.so.0)       fi       ;;esac        # Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SET# Checks for libraries.AC_CHECK_LIB([rt], [main])# Checks for header files.AC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_TYPE_PID_TAC_TYPE_SIZE_TAC_C_VOLATILE# Checks for library functions.AC_FUNC_ERROR_AT_LINEAC_FUNC_FORKAC_FUNC_MALLOCAC_FUNC_MMAPAC_TYPE_SIGNALAC_FUNC_STRFTIMEAC_FUNC_VPRINTFAC_CHECK_FUNCS([memset setenv strchr strdup strtol])# Modify scripts/ptt_trace_skel according to installation parametersAC_DEFUN([AC_DEFINE_DIR], [    prefix_NONE=    exec_prefix_NONE=    test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix    test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix    dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn    dnl refers to ${prefix}.  Thus we have to use `eval' twice.    eval ac_define_dir="\"[$]$2\""    eval ac_define_dir="\"$ac_define_dir\""    AC_SUBST($1, "$ac_define_dir")    AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3])    test "$prefix_NONE" && prefix=NONE    test "$exec_prefix_NONE" && exec_prefix=NONE])AC_DEFINE_DIR([LIBDIR],[libdir],[installation directory for libraires])AC_DEFINE_DIR([BINDIR],[bindir],[installation directory for executables])if test "$friend" != "no" ; then    LIBDIR=$friend    SKEL=scripts/ptt_trace_friendly_skelelse    SKEL=scripts/ptt_trace_skelfiSCRIPT=scripts/ptt_traceTMP=scripts/ptt_trace_tmpsed s!path_to_bindir!$BINDIR! $SKEL > $SCRIPTsed s!path_to_libdir!$LIBDIR! $SCRIPT > $TMPmv $TMP $SCRIPTAC_CONFIG_FILES([Makefile                 man/Makefile                 scripts/Makefile                 src/include/Makefile                 src/daemon/Makefile                 src/decode/Makefile                 test/Makefile                 test/prog/Makefile])if test "$friend" = "no" ; then    AC_CONFIG_FILES([lib/Makefile])fiAC_OUTPUT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -