1 dnl Process this file with autoconf to produce a configure script.
2 dnl ====================================================================
6 dnl configure script for eCos synthetic target ethernet
9 dnl ====================================================================
10 dnl####COPYRIGHTBEGIN####
12 dnl ----------------------------------------------------------------------------
13 dnl Copyright (C) 2002 Bart Veer
15 dnl This file is part of the eCos synthetic target support.
17 dnl This program is free software; you can redistribute it and/or modify it
18 dnl under the terms of the GNU General Public License as published by the Free
19 dnl Software Foundation; either version 2 of the License, or (at your option)
20 dnl any later version.
22 dnl This program is distributed in the hope that it will be useful, but WITHOUT
23 dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
24 dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
27 dnl You should have received a copy of the GNU General Public License along with
28 dnl this program; if not, write to the Free Software Foundation, Inc.,
29 dnl 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 dnl ----------------------------------------------------------------------------
32 dnl####COPYRIGHTEND####
33 dnl ====================================================================
34 dnl#####DESCRIPTIONBEGIN####
41 dnl####DESCRIPTIONEND####
42 dnl ====================================================================
47 dnl Pick up the support files from the top-level acsupport directory.
48 AC_CONFIG_AUX_DIR(../../../../../../../acsupport)
50 ECOS_CHECK_BUILD_ne_SRC
52 AM_INIT_AUTOMAKE(eCos_synthetic_target_ethernet,0.1,0)
55 dnl The current version of the synthetic target is implemented only for
56 dnl x86 Linux platforms, so a test is appropriate here. However
57 dnl it is not a good idea for the configure script to report an error:
58 dnl that would prevent any top-level configury working for other
59 dnl platforms. Instead an automake conditional is used to suppress adding
60 dnl targets to the build.
62 i[[34567]]86-*-linux-gnu* ) SUPPORTED="yes";;
65 if test "${SUPPORTED}" = "no" ; then
66 AC_MSG_WARN([Synthetic target ethernet support is only available on x86 Linux hosts])
69 if test "${SUPPORTED}" = "yes" ; then
75 ECOS_PROG_STANDARD_COMPILER_FLAGS
78 dnl Old kernels may not have tun/tap support. rawether can
79 dnl still operate via a spare ethernet interface.
80 AC_CHECK_HEADERS("linux/if_tun.h",TAP_SUPPORTED="yes",TAP_SUPPORTED="no")
81 if test "${TAP_SUPPORTED}" = "no" ; then
82 AC_MSG_WARN([No <linux/if_tun.h> header, ethertap support disabled.])
86 if test "${SUPPORTED}" = "no" ; then
87 AC_MSG_WARN([The synthetic ethernet support cannot be built on this platform.])
90 AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")
92 dnl There is no real need for a config.h file at this time, since the code
93 dnl is specific to x86 Linux. This may change in future.
94 dnl AM_CONFIG_HEADER(config.h:config.h.in)
96 AC_OUTPUT(Makefile:Makefile.in)