1 |
786 |
skrzyp |
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 synthetic target architectural
|
7 |
|
|
dnl host-side support
|
8 |
|
|
dnl
|
9 |
|
|
dnl ====================================================================
|
10 |
|
|
dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
|
11 |
|
|
dnl -------------------------------------------
|
12 |
|
|
dnl This file is part of the eCos host tools.
|
13 |
|
|
dnl Copyright (C) 2002 Free Software Foundation, Inc.
|
14 |
|
|
dnl
|
15 |
|
|
dnl This program is free software; you can redistribute it and/or modify
|
16 |
|
|
dnl it under the terms of the GNU General Public License as published by
|
17 |
|
|
dnl the Free Software Foundation; either version 2 or (at your option) any
|
18 |
|
|
dnl later version.
|
19 |
|
|
dnl
|
20 |
|
|
dnl This program is distributed in the hope that it will be useful, but
|
21 |
|
|
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
23 |
|
|
dnl General Public License for more details.
|
24 |
|
|
dnl
|
25 |
|
|
dnl You should have received a copy of the GNU General Public License
|
26 |
|
|
dnl along with this program; if not, write to the
|
27 |
|
|
dnl Free Software Foundation, Inc., 51 Franklin Street,
|
28 |
|
|
dnl Fifth Floor, Boston, MA 02110-1301, USA.
|
29 |
|
|
dnl -------------------------------------------
|
30 |
|
|
dnl ####ECOSHOSTGPLCOPYRIGHTEND####
|
31 |
|
|
dnl ====================================================================
|
32 |
|
|
dnl#####DESCRIPTIONBEGIN####
|
33 |
|
|
dnl
|
34 |
|
|
dnl Author(s): bartv
|
35 |
|
|
dnl Contact(s): bartv
|
36 |
|
|
dnl Date: 2002/08/06
|
37 |
|
|
dnl Version: 0.01
|
38 |
|
|
dnl
|
39 |
|
|
dnl####DESCRIPTIONEND####
|
40 |
|
|
dnl ====================================================================
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
AC_INIT(ecosynth.c)
|
44 |
|
|
|
45 |
|
|
dnl Pick up the support files from the top-level acsupport directory.
|
46 |
|
|
AC_CONFIG_AUX_DIR(../../../../../../acsupport)
|
47 |
|
|
|
48 |
|
|
ECOS_CHECK_BUILD_ne_SRC
|
49 |
|
|
AC_CANONICAL_HOST
|
50 |
|
|
AM_INIT_AUTOMAKE(eCos_synthetic_target_arch,0.1,0)
|
51 |
|
|
AM_MAINTAINER_MODE
|
52 |
|
|
AC_PROG_CC
|
53 |
|
|
AC_PROG_CXX
|
54 |
|
|
AC_OBJEXT
|
55 |
|
|
AC_EXEEXT
|
56 |
|
|
ECOS_PROG_MSVC
|
57 |
|
|
ECOS_PROG_STANDARD_COMPILER_FLAGS
|
58 |
|
|
|
59 |
|
|
ECOS_PATH_TCL
|
60 |
|
|
|
61 |
|
|
dnl The current version of the synthetic target is implemented only for
|
62 |
|
|
dnl x86 Linux platforms, so a test is appropriate here. However
|
63 |
|
|
dnl it is not a good idea for the configure script to report an error:
|
64 |
|
|
dnl that would prevent any top-level configury working for other
|
65 |
|
|
dnl platforms. Instead an automake conditional is used to suppress adding
|
66 |
|
|
dnl targets to the build.
|
67 |
|
|
case "${host}" in
|
68 |
|
|
i[[34567]]86-*-linux-gnu* ) SUPPORTED="yes";;
|
69 |
|
|
x86_64-*-linux-gnu* ) SUPPORTED="yes";;
|
70 |
|
|
* ) SUPPORTED="no"
|
71 |
|
|
esac
|
72 |
|
|
|
73 |
|
|
dnl Check that the version of tk is sufficiently recent.
|
74 |
|
|
dnl For example the text widget's tag -elide facility was
|
75 |
|
|
dnl added between 8.2 and 8.3. Initial development of
|
76 |
|
|
dnl the synthetic target used 8.3.1
|
77 |
|
|
if test "${TK_MAJOR_VERSION}" = "8" ; then
|
78 |
|
|
if test ${TK_MINOR_VERSION} -lt 3 ; then
|
79 |
|
|
AC_MSG_WARN([The synthetic target support requires at least version 8.3 of Tcl/Tk])
|
80 |
|
|
AC_MSG_WARN([Synthetic target host-side support will not be built])
|
81 |
|
|
SUPPORTED="no"
|
82 |
|
|
fi
|
83 |
|
|
fi
|
84 |
|
|
ECOS_PACKAGE_DIRS
|
85 |
|
|
|
86 |
|
|
AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")
|
87 |
|
|
|
88 |
|
|
dnl There is no real need for a config.h file at this time, since the code
|
89 |
|
|
dnl is specific to x86 Linux. This may change in future.
|
90 |
|
|
dnl AM_CONFIG_HEADER(config.h:config.h.in)
|
91 |
|
|
|
92 |
|
|
AC_OUTPUT(Makefile:Makefile.in)
|