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

📄 configure.ac

📁 linux下开发的针对所有磁盘的数据恢复的源码
💻 AC
字号:
#                                               -*- Autoconf -*-# Process this file with autoconf to produce a configure script.AC_PREREQ(2.59)AC_INIT(sleuthkit, 3.0.0)AC_CONFIG_SRCDIR([tsk3/base/tsk_base.h])AM_CONFIG_HEADER([tsk3/tsk_config.h])AC_CONFIG_AUX_DIR(config)AM_INIT_AUTOMAKE([foreign])AM_PROG_LIBTOOLAM_MAINTAINER_MODE# Checks for programs.AC_PROG_CXXAC_PROG_CCAC_PROG_CPPAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAC_PATH_PROG(PERL, perl)# Checks for header files.AC_HEADER_STDC#AC_HEADER_MAJOR#AC_HEADER_SYS_WAIT#AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h locale.h memory.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/time.h unistd.h utime.h wchar.h wctype.h])AC_CHECK_HEADERS([inttypes.h unistd.h sys/param.h])# Checks for typedefs, structures, and compiler characteristics.AC_HEADER_STDBOOLAC_C_CONSTAC_TYPE_UID_TAC_TYPE_MODE_TAC_TYPE_OFF_TAC_TYPE_SIZE_T#AC_CHECK_MEMBERS([struct stat.st_rdev])#AC_HEADER_TIME#AC_STRUCT_TM# check for large file supportAC_SYS_LARGEFILE# Checks for library functions.AC_FUNC_ALLOCAAC_FUNC_ERROR_AT_LINE#AC_FUNC_FORKAC_FUNC_FSEEKOAC_PROG_GCC_TRADITIONALAC_FUNC_LSTATAC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK#AC_FUNC_MALLOC#AC_FUNC_MBRTOWC#AC_FUNC_MEMCMP#AC_FUNC_MKTIME#AC_FUNC_MMAPAC_FUNC_REALLOCAC_FUNC_SELECT_ARGTYPES#AC_FUNC_STATAC_FUNC_UTIME_NULLAC_FUNC_VPRINTF#AC_CHECK_FUNCS([dup2 gethostname isascii iswprint memset munmap regcomp select setlocale strcasecmp strchr strdup strerror strndup strrchr strtol strtoul strtoull utime wcwidth])# Not all compilers include /usr/local in the include and link pathif test -d /usr/local/include; then    CFLAGS="$CFLAGS -I/usr/local/include"    LDFLAGS="$LDFLAGS -L/usr/local/lib"fi# This is used by disktoolsAC_CHECK_HEADERS([linux/hdreg.h],        [AC_CHECK_TYPE(ide_task_request_t,             [AC_DEFINE(HAVE_IDE_TASK_REQUEST_T, [1], [Set to 1 if type exists in Linux])],            [],            [#include <linux/hdreg.h>])])# Checks for libraries.# Check if we should link afflib.  Some installations# have only the tools install and the library exists,# but the header file does not.  We now check for both.AC_CHECK_HEADERS([afflib/afflib.h],     [AC_ARG_ENABLE(afflib,         [  --disable-afflib  Do not use AFFLIB even if it is installed],# Action if they gave this argument        [ if test "x$enableval" = "xyes" ; then            AC_CHECK_LIB([afflib], [af_open])          elif test "x$enableval" = "xno" ; then            echo "Ignoring AFFLIB."          else            echo "Error: Unknown enable-afflib argument."            exit -1          fi        ],# if they did not specify aff, look for it        [AC_CHECK_LIB([afflib], [af_open])]        )    # if afflib/afflib.h was not found, then do nothing    ], )# Check if we should link libewf.  Some installations# have only the tools install of libewf and the library exists,# but the header file does not.  We now check for both.AC_CHECK_HEADERS([libewf.h],     [AC_ARG_ENABLE(ewf,         [  --disable-ewf  Do not use libewf even if it is installed],        # Action if they gave this argument        [ if test "x$enableval" = "xyes" ; then            AC_CHECK_LIB([ewf], [libewf_open])          elif test "x$enableval" = "xno" ; then            echo "Ignoring LibEWF."          else            echo "Error: Unknown enable-ewf argument."            exit -1          fi        ],        # if they did not specify ewf, look for it        [AC_CHECK_LIB([ewf], [libewf_open])]        )    # if libewf.h was not found, then do nothing    ], )AC_CONFIG_COMMANDS([tsk3/tsk_incs.h],        [          echo "#ifndef _TSK_INCS_H" > tsk3/tsk_incs.h          echo "#define _TSK_INCS_H" >> tsk3/tsk_incs.h          echo "// automatically by ./configure" >> tsk3/tsk_incs.h          echo "// Contains the config.h data needed by programs that use libtsk" >> tsk3/tsk_incs.h          echo "" >> tsk3/tsk_incs.h          if test x$ac_cv_header_unistd_h = xyes; then            echo "#include <unistd.h>" >> tsk3/tsk_incs.h          fi          if test x$ac_cv_header_inttypes_h = xyes; then            echo "#include <inttypes.h>" >> tsk3/tsk_incs.h          fi          if test x$ac_cv_header_sys_param_h = xyes; then            echo "#include <sys/param.h>" >> tsk3/tsk_incs.h          fi          echo "" >> tsk3/tsk_incs.h          echo "#endif" >> tsk3/tsk_incs.h        ],        [          ac_cv_header_unistd_h=$ac_cv_header_unistd_h          ac_cv_header_inttypes_h=$ac_cv_header_inttypes_h          ac_cv_header_sys_param_h=$ac_cv_header_sys_param_h        ])AC_CONFIG_FILES([Makefile                 tsk3/Makefile                 tsk3/base/Makefile                 tsk3/img/Makefile                 tsk3/vs/Makefile                 tsk3/fs/Makefile                 tsk3/hashdb/Makefile                 tools/Makefile                 tools/imgtools/Makefile                 tools/vstools/Makefile                 tools/fstools/Makefile                 tools/hashtools/Makefile                 tools/disktools/Makefile                 tools/srchtools/Makefile                 tools/sorter/Makefile                 tools/timeline/Makefile                 tests/Makefile                 samples/Makefile                 docs/Makefile                 man/Makefile])AC_OUTPUT

⌨️ 快捷键说明

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