OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [io/] [usb/] [slave/] [v2_0/] [host/] [configure.in] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
dnl Process this file with autoconf to produce a configure script.
2
dnl ====================================================================
3
dnl
4
dnl     configure.in
5
dnl
6
dnl     configure script for eCos USB host-side support
7
dnl
8
dnl ====================================================================
9
dnl ####ECOSGPLCOPYRIGHTBEGIN####
10
dnl -------------------------------------------
11
dnl This file is part of eCos, the Embedded Configurable Operating System.
12
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
13
dnl
14
dnl eCos is free software; you can redistribute it and/or modify it under
15
dnl the terms of the GNU General Public License as published by the Free
16
dnl Software Foundation; either version 2 or (at your option) any later version.
17
dnl
18
dnl eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19
dnl WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
dnl for more details.
22
dnl
23
dnl You should have received a copy of the GNU General Public License along
24
dnl with eCos; if not, write to the Free Software Foundation, Inc.,
25
dnl 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26
dnl
27
dnl As a special exception, if other files instantiate templates or use macros
28
dnl or inline functions from this file, or you compile this file and link it
29
dnl with other works to produce a work based on this file, this file does not
30
dnl by itself cause the resulting work to be covered by the GNU General Public
31
dnl License. However the source code for this file must still be made available
32
dnl in accordance with section (3) of the GNU General Public License.
33
dnl
34
dnl This exception does not invalidate any other reasons why a work based on
35
dnl this file might be covered by the GNU General Public License.
36
dnl
37
dnl Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38
dnl at http://sources.redhat.com/ecos/ecos-license/
39
dnl -------------------------------------------
40
dnl ####ECOSGPLCOPYRIGHTEND####
41
dnl ====================================================================
42
dnl#####DESCRIPTIONBEGIN####
43
dnl
44
dnl Author(s):  bartv
45
dnl Contact(s): bartv
46
dnl Date:       2002/01/10
47
dnl Version:    0.01
48
dnl
49
dnl####DESCRIPTIONEND####
50
dnl ====================================================================
51
 
52
 
53
AC_INIT(usbhost.c)
54
 
55
dnl Pick up the support files from the top-level acsupport directory.
56
AC_CONFIG_AUX_DIR(../../../../../../acsupport)
57
 
58
ECOS_CHECK_BUILD_ne_SRC
59
AC_CANONICAL_HOST
60
AM_INIT_AUTOMAKE(usbhost,0.1,0)
61
AM_MAINTAINER_MODE
62
 
63
dnl The current version of the USB testing support depends on
64
dnl functionality provided only by Linux platforms, and has only been
65
dnl tested on x86 machines, so a test is appropriate here. However
66
dnl it is not a good idea for the configure script to report an error:
67
dnl that would prevent any top-level configury working for other
68
dnl platforms. Instead an automake conditional is used to suppress adding
69
dnl targets to the build.
70
case "${host}" in
71
    *-*-linux-gnu* ) SUPPORTED="yes";;
72
    * ) SUPPORTED="no"
73
esac
74
 
75
if test "${SUPPORTED}" = "no" ; then
76
    AC_MSG_WARN([USB testing is only supported on Linux hosts])
77
else
78
    AC_PROG_CC
79
    AC_PROG_CXX
80
    AC_PROG_LN_S
81
    AC_OBJEXT
82
    AC_EXEEXT
83
    ECOS_PROG_MSVC
84
    ECOS_PROG_STANDARD_COMPILER_FLAGS
85
    ECOS_PACKAGE_DIRS
86
 
87
    ECOS_PATH_TCL
88
    dnl Check that the version of tcl is sufficiently recent.
89
    dnl e.g. "end" only became a valid index for the
90
    dnl string commands after 8.1
91
    if test "${TK_MAJOR_VERSION}" = "8" ; then
92
        if test ${TK_MINOR_VERSION} -lt 2 ; then
93
            AC_MSG_WARN([Version 8.2 or greater of Tcl/Tk is required])
94
            SUPPORTED="no"
95
        fi
96
    fi
97
    if test "${SUPPORTED}" = "yes" ; then
98
        AC_CHECK_HEADERS("linux/usb.h" "linux/usbdevice_fs.h",,SUPPORTED="no")
99
        if test "${SUPPORTED}" = "no" ; then
100
            AC_MSG_WARN([Required Linux kernel functionality does not appear to be available])
101
        fi
102
    fi
103
fi
104
 
105
if test "${SUPPORTED}" = "no" ; then
106
    AC_MSG_WARN([The USB testing support cannot be built on this platform.])
107
fi
108
 
109
AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")
110
 
111
dnl There is no real need for a config.h file at this time, since the code
112
dnl is specific to Linux. This may change in future.
113
dnl AM_CONFIG_HEADER(config.h:config.h.in)
114
 
115
AC_OUTPUT(Makefile:Makefile.in)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.