📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.dnl ====================================================================dnldnl configure.indnldnl configure script for eCos USB host-side supportdnldnl ====================================================================dnl ####ECOSGPLCOPYRIGHTBEGIN####dnl -------------------------------------------dnl This file is part of eCos, the Embedded Configurable Operating System.dnl Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.dnldnl eCos is free software; you can redistribute it and/or modify it underdnl the terms of the GNU General Public License as published by the Freednl Software Foundation; either version 2 or (at your option) any later version.dnldnl eCos is distributed in the hope that it will be useful, but WITHOUT ANYdnl WARRANTY; without even the implied warranty of MERCHANTABILITY ordnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licensednl for more details.dnldnl You should have received a copy of the GNU General Public License alongdnl with eCos; if not, write to the Free Software Foundation, Inc.,dnl 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.dnldnl As a special exception, if other files instantiate templates or use macrosdnl or inline functions from this file, or you compile this file and link itdnl with other works to produce a work based on this file, this file does notdnl by itself cause the resulting work to be covered by the GNU General Publicdnl License. However the source code for this file must still be made availablednl in accordance with section (3) of the GNU General Public License.dnldnl This exception does not invalidate any other reasons why a work based ondnl this file might be covered by the GNU General Public License.dnldnl Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.dnl at http://sources.redhat.com/ecos/ecos-license/dnl -------------------------------------------dnl ####ECOSGPLCOPYRIGHTEND####dnl ====================================================================dnl#####DESCRIPTIONBEGIN####dnldnl Author(s): bartvdnl Contact(s): bartvdnl Date: 2002/01/10dnl Version: 0.01dnldnl####DESCRIPTIONEND####dnl ====================================================================AC_INIT(usbhost.c)dnl Pick up the support files from the top-level acsupport directory.AC_CONFIG_AUX_DIR(../../../../../../acsupport)ECOS_CHECK_BUILD_ne_SRCAC_CANONICAL_HOSTAM_INIT_AUTOMAKE(usbhost,0.1,0)AM_MAINTAINER_MODEdnl The current version of the USB testing support depends on dnl functionality provided only by Linux platforms, and has only beendnl tested on x86 machines, so a test is appropriate here. Howeverdnl it is not a good idea for the configure script to report an error:dnl that would prevent any top-level configury working for otherdnl platforms. Instead an automake conditional is used to suppress addingdnl targets to the build.case "${host}" in *-*-linux-gnu* ) SUPPORTED="yes";; * ) SUPPORTED="no"esacif test "${SUPPORTED}" = "no" ; then AC_MSG_WARN([USB testing is only supported on Linux hosts])else AC_PROG_CC AC_PROG_CXX AC_PROG_LN_S AC_OBJEXT AC_EXEEXT ECOS_PROG_MSVC ECOS_PROG_STANDARD_COMPILER_FLAGS ECOS_PACKAGE_DIRS ECOS_PATH_TCL dnl Check that the version of tcl is sufficiently recent. dnl e.g. "end" only became a valid index for the dnl string commands after 8.1 if test "${TK_MAJOR_VERSION}" = "8" ; then if test ${TK_MINOR_VERSION} -lt 2 ; then AC_MSG_WARN([Version 8.2 or greater of Tcl/Tk is required]) SUPPORTED="no" fi fi if test "${SUPPORTED}" = "yes" ; then AC_CHECK_HEADERS("linux/usb.h" "linux/usbdevice_fs.h",,SUPPORTED="no") if test "${SUPPORTED}" = "no" ; then AC_MSG_WARN([Required Linux kernel functionality does not appear to be available]) fi fifi if test "${SUPPORTED}" = "no" ; then AC_MSG_WARN([The USB testing support cannot be built on this platform.])fi AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")dnl There is no real need for a config.h file at this time, since the codednl is specific to Linux. This may change in future.dnl AM_CONFIG_HEADER(config.h:config.h.in)AC_OUTPUT(Makefile:Makefile.in)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -