1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | dnl |
---|
3 | dnl $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.13) |
---|
6 | AC_INIT(score) |
---|
7 | RTEMS_TOP(../../..) |
---|
8 | AC_CONFIG_AUX_DIR(../../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | |
---|
12 | AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no) |
---|
13 | AM_MAINTAINER_MODE |
---|
14 | |
---|
15 | RTEMS_ENABLE_MULTILIB |
---|
16 | RTEMS_ENABLE_MULTIPROCESSING |
---|
17 | RTEMS_ENABLE_POSIX |
---|
18 | RTEMS_ENABLE_ITRON |
---|
19 | RTEMS_ENABLE_INLINES |
---|
20 | RTEMS_ENABLE_GCC28 |
---|
21 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
22 | |
---|
23 | RTEMS_ENV_RTEMSCPU |
---|
24 | RTEMS_CHECK_RTEMS_DEBUG |
---|
25 | |
---|
26 | RTEMS_CHECK_CPU |
---|
27 | RTEMS_CANONICAL_HOST |
---|
28 | |
---|
29 | RTEMS_PROJECT_ROOT |
---|
30 | |
---|
31 | RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) |
---|
32 | RTEMS_CANONICALIZE_TOOLS |
---|
33 | |
---|
34 | RTEMS_CHECK_NEWLIB |
---|
35 | |
---|
36 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
37 | RTEMS_CHECK_POSIX_API(RTEMS_BSP) |
---|
38 | RTEMS_CHECK_ITRON_API(RTEMS_BSP) |
---|
39 | |
---|
40 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
41 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
42 | INLINEdir="macros" |
---|
43 | else |
---|
44 | INLINEdir="inline" |
---|
45 | fi |
---|
46 | AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" ) |
---|
47 | AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" ) |
---|
48 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" ) |
---|
49 | |
---|
50 | AC_SUBST(RTEMS_VERSION) |
---|
51 | |
---|
52 | AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes") |
---|
53 | AM_CONDITIONAL(HAS_ITRON,test "$HAS_ITRON_API" = "yes") |
---|
54 | |
---|
55 | if test "$HAS_POSIX_API" = "yes"; then |
---|
56 | cfg_subdirs="posix" |
---|
57 | fi |
---|
58 | if test "$HAS_ITRON_API" = "yes"; then |
---|
59 | cfg_subdirs="$cfg_subdirs itron" |
---|
60 | fi |
---|
61 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
62 | AC_CONFIG_SUBDIRS(score/cpu/$RTEMS_CPU) |
---|
63 | |
---|
64 | RTEMS_DEFINE_POSIX_API |
---|
65 | RTEMS_DEFINE_ITRON_API |
---|
66 | RTEMS_DEFINE_MULTIPROCESSING |
---|
67 | |
---|
68 | # HACK: We should use a feature-based configuration. |
---|
69 | if test x"${RTEMS_CPU}" = x"unix"; then |
---|
70 | AC_DEFINE_UNQUOTED(RTEMS_UNIX,1,[to indicate RTEMS unix]) |
---|
71 | fi |
---|
72 | |
---|
73 | AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h) |
---|
74 | |
---|
75 | # Explicitly list all Makefiles here |
---|
76 | AC_OUTPUT( |
---|
77 | Makefile |
---|
78 | rtems/Makefile |
---|
79 | rtems/src/Makefile |
---|
80 | rtems/include/Makefile |
---|
81 | rtems/include/rtems/Makefile |
---|
82 | rtems/include/rtems/rtems/Makefile |
---|
83 | rtems/optman/Makefile |
---|
84 | rtems/inline/Makefile |
---|
85 | rtems/inline/rtems/Makefile |
---|
86 | rtems/inline/rtems/rtems/Makefile |
---|
87 | rtems/macros/Makefile |
---|
88 | rtems/macros/rtems/Makefile |
---|
89 | rtems/macros/rtems/rtems/Makefile |
---|
90 | sapi/Makefile |
---|
91 | sapi/src/Makefile |
---|
92 | sapi/include/Makefile |
---|
93 | sapi/include/rtems/Makefile |
---|
94 | sapi/include/rtems/sptables.h |
---|
95 | sapi/inline/Makefile |
---|
96 | sapi/inline/rtems/Makefile |
---|
97 | sapi/macros/Makefile |
---|
98 | sapi/macros/rtems/Makefile |
---|
99 | sapi/optman/Makefile |
---|
100 | score/Makefile |
---|
101 | score/cpu/Makefile |
---|
102 | score/include/Makefile |
---|
103 | score/include/rtems/Makefile |
---|
104 | score/include/rtems/score/Makefile |
---|
105 | score/inline/Makefile |
---|
106 | score/inline/rtems/Makefile |
---|
107 | score/inline/rtems/score/Makefile |
---|
108 | score/macros/Makefile |
---|
109 | score/macros/rtems/Makefile |
---|
110 | score/macros/rtems/score/Makefile |
---|
111 | score/src/Makefile |
---|
112 | wrapup/Makefile |
---|
113 | wrapup/rtems/Makefile |
---|
114 | wrapup/itron/Makefile |
---|
115 | wrapup/posix/Makefile |
---|
116 | ) |
---|