source: rtems/cpukit/configure.ac @ 64b1f81

4.104.114.84.95
Last change on this file since 64b1f81 was 64b1f81, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 16, 2002 at 10:53:30 PM

2002-01-09 Ralf Corsepius <corsepiu@…>

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