summaryrefslogtreecommitdiff
path: root/ecos/packages/devs/framebuf/synth/current/host/configure.in
blob: c91ebb46de5e42ff16cbd78be7db2fa899ff3b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
dnl Process this file with autoconf to produce a configure script.
dnl ====================================================================
dnl
dnl     configure.in
dnl
dnl     configure script for eCos synthetic target framebuffer
dnl	host-side support
dnl
dnl ====================================================================
dnl ####ECOSGPLCOPYRIGHTBEGIN####                                           
dnl -------------------------------------------                             
dnl This file is part of eCos, the Embedded Configurable Operating System.  
dnl Copyright (C) 2008 Free Software Foundation, Inc.                       
dnl
dnl eCos is free software; you can redistribute it and/or modify it under   
dnl the terms of the GNU General Public License as published by the Free    
dnl Software Foundation; either version 2 or (at your option) any later     
dnl version.                                                                
dnl
dnl eCos is distributed in the hope that it will be useful, but WITHOUT     
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or   
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   
dnl for more details.                                                       
dnl
dnl You should have received a copy of the GNU General Public License       
dnl along with eCos; if not, write to the Free Software Foundation, Inc.,   
dnl 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.           
dnl
dnl As a special exception, if other files instantiate templates or use     
dnl macros or inline functions from this file, or you compile this file     
dnl and link it with other works to produce a work based on this file,      
dnl this file does not by itself cause the resulting work to be covered by  
dnl the GNU General Public License. However the source code for this file   
dnl must still be made available in accordance with section (3) of the GNU  
dnl General Public License v2.                                              
dnl
dnl This exception does not invalidate any other reasons why a work based   
dnl on this file might be covered by the GNU General Public License.        
dnl -------------------------------------------                             
dnl ####ECOSGPLCOPYRIGHTEND####                                             
dnl ====================================================================
dnl#####DESCRIPTIONBEGIN####
dnl
dnl Author(s):	bartv
dnl Contact(s):	bartv
dnl Date:	2005/10/28
dnl Version:	0.01
dnl
dnl####DESCRIPTIONEND####
dnl ====================================================================


AC_INIT(framebuf.c)

dnl Pick up the support files from the top-level acsupport directory.
AC_CONFIG_AUX_DIR(../../../../../../acsupport)

dnl The current version of the synthetic target is implemented only for
dnl x86 Linux platforms, so a test is appropriate here. However
dnl it is not a good idea for the configure script to report an error:
dnl that would prevent any top-level configury working for other
dnl platforms. Instead an automake conditional is used to suppress adding
dnl targets to the build. Unfortunately it is still necessary to
dnl perform most of the tests or you run into problems with e.g.
dnl automake's dependency handling.

ECOS_CHECK_BUILD_ne_SRC
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE(eCos_synthetic_target_framebuf,0.1,0)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CXX
AC_OBJEXT
AC_EXEEXT
ECOS_PROG_MSVC
ECOS_PROG_STANDARD_COMPILER_FLAGS
ECOS_PACKAGE_DIRS

case "${host}" in
    i[[34567]]86-*-linux-gnu* ) SUPPORTED="yes";;
    x86_64-*-linux-gnu* ) SUPPORTED="yes";;
    * ) SUPPORTED="no"
esac
if test "${SUPPORTED}" = "no" ; then
    AC_MSG_WARN([Synthetic target framebuffer support is only available on x86 Linux hosts])
fi   

AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")

dnl There is no real need for a config.h file at this time, since the code
dnl is specific to x86 Linux. This may change in future.
dnl AM_CONFIG_HEADER(config.h:config.h.in)

AC_OUTPUT(Makefile:Makefile.in)