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

📄 configure.in

📁 Linux Device Mapper Source Code
💻 IN
📖 第 1 页 / 共 2 页
字号:
################################################################################# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.## Copyright (C) 2004 Red Hat, Inc. All rights reserved.#### This file is part of the device-mapper userspace tools.#### This copyrighted material is made available to anyone wishing to use,## modify, copy, or redistribute it subject to the terms and conditions## of the GNU General Public License v.2.#### You should have received a copy of the GNU General Public License## along with this program; if not, write to the Free Software Foundation,## Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA## MA 02111-1307, USA################################################################################AC_PREREQ(2.57)################################################################################dnl -- Process this file with autoconf to produce a configure script.AC_INITAC_CONFIG_SRCDIR([lib/libdevmapper.h])################################################################################AC_CONFIG_HEADERS(include/configure.h)################################################################################dnl -- Setup the directory where autoconf has auxilary filesAC_CONFIG_AUX_DIR(autoconf) ################################################################################dnl -- Get system typeAC_CANONICAL_TARGET([])case "$host_os" in	linux*)		CFLAGS="$CFLAGS"		COPTIMISE_FLAG="-O2"		CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"		LDDEPS="$LDDEPS .export.sym"		LIB_SUFFIX="so"		DMIOCTLS="yes"		SELINUX="yes" ;;	darwin*)		CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"		COPTIMISE_FLAG="-O2"		CLDFLAGS="$CLDFLAGS"		LDDEPS="$LDDEPS"		LIB_SUFFIX="dylib"		DMIOCTLS="no"		SELINUX="no" ;;esac################################################################################dnl -- Additional library locationusrlibdir='${prefix}/lib'################################################################################dnl -- Checks for programs.AC_PROG_AWKAC_PROG_CCAC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAC_PROG_RANLIB################################################################################dnl -- Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_TIMEAC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h sys/types.h unistd.h,,AC_MSG_ERROR(bailing out))AC_CHECK_HEADERS(termios.h sys/statvfs.h)################################################################################dnl -- Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_CHECK_MEMBERS([struct stat.st_rdev])AC_TYPE_OFF_TAC_TYPE_PID_TAC_TYPE_SIGNALAC_TYPE_SIZE_T################################################################################dnl -- Checks for functionsAC_CHECK_FUNCS(memset mkdir rmdir strchr strdup strerror strrchr uname,,AC_MSG_ERROR(bailing out))AC_FUNC_CLOSEDIR_VOIDAC_FUNC_MALLOCAC_FUNC_STATAC_FUNC_VPRINTF################################################################################dnl -- Prefix is /usr by default, the exec_prefix default is setup laterAC_PREFIX_DEFAULT(/usr)################################################################################dnl -- Parallel make jobs?AC_ARG_ENABLE(jobs, [  --enable-jobs=NUM       Number of jobs to run simultaneously], JOBS=-j$enableval)################################################################################dnl -- Setup the ownership of the filesAC_MSG_CHECKING(file owner)OWNER="root"AC_ARG_WITH(user,  [  --with-user=USER        Set the owner of installed files [[USER=root]] ],  [ OWNER="$withval" ])AC_MSG_RESULT($OWNER)if test x$OWNER != x; then	OWNER="-o $OWNER"fi################################################################################dnl -- Setup the group ownership of the filesAC_MSG_CHECKING(group owner)GROUP="root"AC_ARG_WITH(group,  [  --with-group=GROUP      Set the group owner of installed files [[GROUP=root]] ],  [ GROUP="$withval" ])AC_MSG_RESULT($GROUP)if test x$GROUP != x; then	GROUP="-g $GROUP"fi################################################################################dnl -- Setup device node ownershipAC_MSG_CHECKING(device node uid)AC_ARG_WITH(device-uid,  [  --with-device-uid=UID   Set the owner used for new device nodes [[UID=0]] ],  [ DEVICE_UID="$withval" ], [ DEVICE_UID="0" ] )AC_MSG_RESULT($DEVICE_UID)################################################################################dnl -- Setup device group ownershipAC_MSG_CHECKING(device node gid)AC_ARG_WITH(device-gid,  [  --with-device-gid=UID   Set the group used for new device nodes [[GID=0]] ],  [ DEVICE_GID="$withval" ], [ DEVICE_GID="0" ] )AC_MSG_RESULT($DEVICE_GID)################################################################################dnl -- Setup device modeAC_MSG_CHECKING(device node mode)AC_ARG_WITH(device-mode,  [  --with-device-mode=MODE Set the mode used for new device nodes [[MODE=0600]] ],  [ DEVICE_MODE="$withval" ], [ DEVICE_MODE="0600" ] )AC_MSG_RESULT($DEVICE_MODE)################################################################################dnl -- Enable DebuggingAC_MSG_CHECKING(whether to enable debugging)AC_ARG_ENABLE(debug,    [  --enable-debug          Enable debugging],DEBUG=$enableval, DEBUG=no)AC_MSG_RESULT($DEBUG)dnl -- Normally turn off optimisation for debug buildsif test x$DEBUG = xyes; then	COPTIMISE_FLAG=fi################################################################################dnl -- Override optimisationAC_MSG_CHECKING(for C optimisation flag)AC_ARG_WITH(optimisation,  [  --with-optimisation=OPT C optimisation flag [[OPT=-O2]] ],  [ COPTIMISE_FLAG="$withval" ])AC_MSG_RESULT($COPTIMISE_FLAG)################################################################################dnl -- Disable Compatibility modeAC_ARG_ENABLE(compat,   [  --enable-compat         Enable support for old device-mapper versions],COMPAT=$enableval, COMPAT=no)################################################################################dnl -- Disable ioctlAC_ARG_ENABLE(ioctl,   [  --disable-driver        Disable calls to device-mapper in the kernel],DMIOCTLS=$enableval)################################################################################dnl -- Enable dmeventdAC_ARG_ENABLE(dmeventd,   [  --enable-dmeventd       Build the new event daemon],DMEVENTD=$enableval, DMEVENTD=no)################################################################################dnl -- Enable pkg-configAC_ARG_ENABLE(pkgconfig,   [  --enable-pkgconfig      Install pkgconfig support],PKGCONFIG=$enableval, PKGCONFIG=no)################################################################################dnl -- Enables staticly-linked toolsAC_ARG_ENABLE(static_link, [  --enable-static_link    Use this to link the tools to their libraries                          statically.  Default is dynamic linking],  STATIC_LINK=$enableval, STATIC_LINK=no)################################################################################dnl -- Clear default exec_prefix - install into /sbin rather than /usr/sbinif [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]]; then  exec_prefix="";fi;################################################################################dnl -- getline included in recent libcAC_CHECK_LIB(c, getline, AC_DEFINE([HAVE_GETLINE], 1, [Define to 1 if getline is available.]))################################################################################dnl -- canonicalize_file_name included in recent libcAC_CHECK_LIB(c, canonicalize_file_name, AC_DEFINE([HAVE_CANONICALIZE_FILE_NAME], 1, [Define to 1 if canonicalize_file_name is available.]))################################################################################dnl -- Disable selinuxAC_MSG_CHECKING(whether to enable selinux support)AC_ARG_ENABLE(selinux, [  --disable-selinux       Disable selinux support],SELINUX=$enableval)AC_MSG_RESULT($SELINUX) ################################################################################dnl -- Check for selinuxif test x$SELINUX = xyes; then	AC_CHECK_LIB(sepol, sepol_check_context, HAVE_SEPOL=yes, HAVE_SEPOL=no)

⌨️ 快捷键说明

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