]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/eth/synth/ecosynth/v2_0/host/configure.in
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / synth / ecosynth / v2_0 / host / configure.in
1 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 ethernet
7 dnl     host-side support
8 dnl
9 dnl ====================================================================
10 dnl####COPYRIGHTBEGIN####
11 dnl                                                                         
12 dnl ----------------------------------------------------------------------------
13 dnl Copyright (C) 2002 Bart Veer
14 dnl
15 dnl This file is part of the eCos synthetic target support.
16 dnl
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.
21 dnl 
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 
25 dnl more details.
26 dnl 
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 ----------------------------------------------------------------------------
31 dnl                                                                          
32 dnl####COPYRIGHTEND####
33 dnl ====================================================================
34 dnl#####DESCRIPTIONBEGIN####
35 dnl
36 dnl Author(s):  bartv
37 dnl Contact(s): bartv
38 dnl Date:       2002/08/07
39 dnl Version:    0.01
40 dnl
41 dnl####DESCRIPTIONEND####
42 dnl ====================================================================
43
44
45 AC_INIT(rawether.c)
46
47 dnl Pick up the support files from the top-level acsupport directory.
48 AC_CONFIG_AUX_DIR(../../../../../../../acsupport)
49
50 ECOS_CHECK_BUILD_ne_SRC
51 AC_CANONICAL_HOST
52 AM_INIT_AUTOMAKE(eCos_synthetic_target_ethernet,0.1,0)
53 AM_MAINTAINER_MODE
54
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.
61 case "${host}" in
62     i[[34567]]86-*-linux-gnu* ) SUPPORTED="yes";;
63     * ) SUPPORTED="no"
64 esac
65 if test "${SUPPORTED}" = "no" ; then
66     AC_MSG_WARN([Synthetic target ethernet support is only available on x86 Linux hosts])
67 fi   
68
69 if test "${SUPPORTED}" = "yes" ; then
70     AC_PROG_CC
71     AC_PROG_CXX
72     AC_OBJEXT
73     AC_EXEEXT
74     ECOS_PROG_MSVC
75     ECOS_PROG_STANDARD_COMPILER_FLAGS
76     ECOS_PACKAGE_DIRS
77
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.])
83     fi
84 fi
85
86 if test "${SUPPORTED}" = "no" ; then
87     AC_MSG_WARN([The synthetic ethernet support cannot be built on this platform.])
88 fi
89
90 AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")
91
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)
95
96 AC_OUTPUT(Makefile:Makefile.in)