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

📄 configure.ac

📁 linux virtual usb host source
💻 AC
字号:
#                                               -*- Autoconf -*-# Process this file with autoconf to produce a configure script.AC_PREREQ(2.59)AC_REVISION($Id: configure.ac 79 2008-05-19 10:52:04Z hirofuchi $)AC_INIT(usbip, 0.1.7, usbip-devel@lists.sourceforge.net)AC_DEFINE(USBIP_VERSION, 0x000106, Numeric version number)AC_CONFIG_SRCDIR([config.h.in])AM_INIT_AUTOMAKEAM_CONFIG_HEADER(config.h)AC_SUBST([EXTRA_CFLAGS])AC_PROG_LIBTOOL# Checks for programs.AC_PROG_CCAC_PROG_INSTALL# Checks for libraries.# Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_CHECK_HEADERS([fcntl.h netdb.h stdint.h stdlib.h string.h strings.h sys/socket.h syslog.h unistd.h])# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_SIZE_T# Checks for library functions.AC_FUNC_MALLOCAC_FUNC_REALLOCAC_CHECK_FUNCS([bzero memset strchr strerror strstr strtoul])AC_CHECK_HEADER(sysfs/libsysfs.h,	[AC_CHECK_LIB(sysfs, sysfs_open_directory_list,		[LIBS="$LIBS -lsysfs"],		[AC_MSG_ERROR([Missing sysfs2 library!])])],	[AC_MSG_ERROR([Missing /usr/include/sysfs/libsysfs.h])])# get from stunneldnl Check for libwrap library.AC_MSG_CHECKING([whether to use the libwrap (TCP wrappers) library])AC_ARG_WITH(tcp-wrappers,[  --with-tcp-wrappers     Use the libwrap (TCP wrappers) library ],[saved_LIBS="$LIBS" if test "$withval" = "yes"; then      AC_MSG_RESULT([yes])      AC_MSG_CHECKING([for hosts_access in -lwrap])      LIBS="-lwrap $LIBS"      AC_TRY_LINK(	[int hosts_access(); int allow_severity, deny_severity;],	[hosts_access()],	[AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_LIBWRAP, 1, use tcp wrapper) wrap_LIB="-lwrap"],	[AC_MSG_RESULT([not found]); exit 1]) else 	     AC_MSG_RESULT([no]) fi LIBS="$saved_LIBS"],[AC_MSG_RESULT([(default)]) AC_MSG_CHECKING([for hosts_access in -lwrap]) saved_LIBS="$LIBS" LIBS="-lwrap $saved_LIBS" AC_TRY_LINK(	[int hosts_access(); int allow_severity, deny_severity;], 	[hosts_access()], 	[AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_LIBWRAP, 1, use tcp wrapper)], 	[AC_MSG_RESULT([no]); LIBS="$saved_LIBS"])])USBIDS_DIR='${datadir}/usbip'AC_ARG_WITH(usbids-dir, [  --with-usbids-dir=DIR   where usb.ids is found (default ${datadir}/usbip)], [USBIDS_DIR=$withval])AC_SUBST(USBIDS_DIR)dnl FIXME: when disabled, empty directry is createdusbids=installAC_ARG_ENABLE(usbids-install,[  --enable-usbids-install     install usb.ids (default)],[case "${enableval}" in yes) usbids=install ;; no)  usbids=notinstall ;; *)   AC_MSG_ERROR(bad value ${enableval} for --enable-usbids-install) ;; esac])AM_CONDITIONAL(INSTALL_USBIDS, test x$usbids = xinstall)    	GLIB2_REQUIRED=2.6.0PKG_CHECK_MODULES(PACKAGE, glib-2.0 >= $GLIB2_REQUIRED)AC_SUBST(PACKAGE_CFLAGS)AC_SUBST(PACKAGE_LIBS)AC_CONFIG_FILES([Makefile lib/Makefile cmd/Makefile])AC_OUTPUT

⌨️ 快捷键说明

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