source: rtems/cpukit/configure.ac @ 2a582aa5

4.104.114.84.9
Last change on this file since 2a582aa5 was 2a582aa5, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 26, 2002 at 1:31:05 PM

2002-07-26 Ralf Corsepius <corsepiu@…>

  • configure.ac: Disable LIBRPC for the c4x. Check for presence of score/cpu/${RTEMS_CPU}/cpu.c.
  • wrapup/Makefile.am: Reflect changes above. Let librtemscpu.a depend upon libscorecpu.a.
  • Property mode set to 100644
File size: 3.3 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
22RTEMS_ENABLE_NETWORKING
23
24RTEMS_ENV_RTEMSCPU
25RTEMS_CHECK_RTEMS_DEBUG
26
27RTEMS_CHECK_CPU
28RTEMS_CANONICAL_HOST
29
30RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
31RTEMS_CANONICALIZE_TOOLS
32AC_PROG_RANLIB
33
34RTEMS_CHECK_NEWLIB
35
36RTEMS_CHECK_MULTIPROCESSING
37RTEMS_CHECK_POSIX_API
38RTEMS_CHECK_ITRON_API
39RTEMS_CHECK_NETWORKING
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")
54AM_CONDITIONAL(HAS_NETWORKING,test x"$HAS_NETWORKING" = x"yes")
55
56AS_IF([test x"$HAS_POSIX_API" = x"yes"],
57  [AC_CONFIG_SUBDIRS([posix])]
58)
59AS_IF([test x"$HAS_ITRON_API" = x"yes"],
60  [AC_CONFIG_SUBDIRS(itron)]
61)
62RTEMS_CPU_SUBDIRS([score/cpu])
63# FIXME: All ports should have a libscorecpu.a - But the powerpc doesn't!
64AM_CONDITIONAL([LIBSCORECPU],
65[test -f "${srcdir}/score/cpu/${RTEMS_CPU}/cpu.c"])
66
67AC_CONFIG_SUBDIRS([libcsupport])
68AC_CONFIG_SUBDIRS([libblock])
69AC_CONFIG_SUBDIRS([libfs])
70AS_IF([test x"$HAS_NETWORKING" = x"yes"],
71  [AC_CONFIG_SUBDIRS(libnetworking)
72  AS_IF([test x"$RTEMS_CPU" != x"c4x"],[
73    AC_CONFIG_SUBDIRS([librpc])
74    LIBRPC=yes],[
75    LIBRPC=no
76  ])
77])
78AM_CONDITIONAL(LIBRPC,[test "$LIBRPC" = "yes"])
79
80RTEMS_DEFINE_POSIX_API
81RTEMS_DEFINE_ITRON_API
82RTEMS_DEFINE_MULTIPROCESSING
83
84# HACK: We should use a feature-based configuration.
85AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
86  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
87# HACK: silently accept --enable-unixlib
88  test -n "${enable_unixlib}" || enable_unixlib="yes"
89])
90
91AM_CONDITIONAL(UNIX,[test x"${RTEMS_CPU}" = x"unix"])
92
93AS_IF([test x"${enable_unixlib}" = x"yes"],
94  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
95    [to indicate RTEMS using RTEMS's unixlib])]
96)
97
98AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
99
100AC_ENABLE_MULTILIB([Makefile],[..])
101
102## HACK: Add a define to cpuopts.h to indicate using multilibs
103## Can be applied to produce compiler errors if using
104## multilib-incompatible settings somewhere else (eg. bspopts.h).
105AS_IF([test x"${enable_multilib}" = x"yes"],[
106  AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])
107])
108
109# Explicitly list all Makefiles here
110AC_CONFIG_FILES([Makefile
111include/Makefile
112rtems/Makefile
113rtems/src/Makefile
114rtems/include/Makefile
115rtems/inline/Makefile
116rtems/macros/Makefile
117sapi/Makefile
118sapi/src/Makefile
119sapi/include/Makefile
120sapi/include/rtems/sptables.h
121sapi/inline/Makefile
122sapi/macros/Makefile
123score/Makefile
124score/cpu/Makefile
125score/include/Makefile
126score/inline/Makefile
127score/macros/Makefile
128score/src/Makefile
129wrapup/Makefile
130])
131AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.