source: rtems/cpukit/configure.ac @ 90926129

4.104.114.84.95
Last change on this file since 90926129 was 90926129, checked in by Joel Sherrill <joel.sherrill@…>, on May 17, 2002 at 6:32:38 PM

2002-05-15 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add libcsupport.
  • wrapup/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.52)
6AC_INIT([rtems-c-src-exec],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([score])
8RTEMS_TOP(../../..)
9AC_CONFIG_AUX_DIR(../../..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_INIT_AUTOMAKE([no-define foreign 1.6])
14AM_MAINTAINER_MODE
15
16RTEMS_ENABLE_MULTILIB
17RTEMS_ENABLE_MULTIPROCESSING
18RTEMS_ENABLE_POSIX
19RTEMS_ENABLE_ITRON
20RTEMS_ENABLE_INLINES
21RTEMS_ENABLE_RTEMS_DEBUG
22
23RTEMS_ENV_RTEMSCPU
24RTEMS_CHECK_RTEMS_DEBUG
25
26RTEMS_CHECK_CPU
27RTEMS_CANONICAL_HOST
28
29RTEMS_PROJECT_ROOT
30
31RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
32RTEMS_CANONICALIZE_TOOLS
33
34RTEMS_CHECK_NEWLIB
35
36RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
37RTEMS_CHECK_POSIX_API(RTEMS_BSP)
38RTEMS_CHECK_ITRON_API(RTEMS_BSP)
39
40# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
41AS_IF([test "$RTEMS_USE_MACROS" = "yes"],
42  [INLINEdir="macros"],
43  [INLINEdir="inline"])
44
45AM_CONDITIONAL(INLINE,test x"$INLINEdir" = x"inline" )
46AM_CONDITIONAL(MACROS,test x"$INLINEdir" = x"macros" )
47AM_CONDITIONAL(HAS_MP,test x"$HAS_MP" = x"yes" )
48
49AC_SUBST(RTEMS_VERSION)
50
51AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes")
52AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes")
53
54AS_IF([test x"$HAS_POSIX_API" = x"yes"],
55  [AC_CONFIG_SUBDIRS([posix])]
56)
57AS_IF([test x"$HAS_ITRON_API" = x"yes"],
58  [AC_CONFIG_SUBDIRS(itron)]
59)
60RTEMS_CPU_SUBDIRS([score/cpu])
61
62AC_CONFIG_SUBDIRS([libcsupport])
63
64RTEMS_DEFINE_POSIX_API
65RTEMS_DEFINE_ITRON_API
66RTEMS_DEFINE_MULTIPROCESSING
67
68# HACK: We should use a feature-based configuration.
69AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
70  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
71# HACK: silently accept --enable-unixlib
72  test -n "${enable_unixlib}" || enable_unixlib="yes"
73])
74
75AS_IF([test x"${enable_unixlib}" = x"yes"],
76  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
77    [to indicate RTEMS using RTEMS's unixlib])]
78)
79
80AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
81
82AC_ENABLE_MULTILIB([Makefile],[..])
83
84## HACK: Add a define to cpuopts.h to indicate using multilibs
85## Can be applied to produce compiler errors if using
86## multilib-incompatible settings somewhere else (eg. bspopts.h).
87AS_IF([test x"${enable_multilib}" = x"yes"],[
88  AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])
89])
90
91# Explicitly list all Makefiles here
92AC_CONFIG_FILES([Makefile
93include/Makefile
94rtems/Makefile
95rtems/src/Makefile
96rtems/include/Makefile
97rtems/inline/Makefile
98rtems/macros/Makefile
99sapi/Makefile
100sapi/src/Makefile
101sapi/include/Makefile
102sapi/include/rtems/sptables.h
103sapi/inline/Makefile
104sapi/macros/Makefile
105score/Makefile
106score/cpu/Makefile
107score/include/Makefile
108score/inline/Makefile
109score/macros/Makefile
110score/src/Makefile
111wrapup/Makefile
112])
113AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.