source: rtems/c/src/exec/configure.in @ 3a96054

4.104.114.84.95
Last change on this file since 3a96054 was 9608320, checked in by Joel Sherrill <joel.sherrill@…>, on 11/22/99 at 13:41:11

Patch rtems-rc-19991117-4.diff from Ralf Corsepius <corsepiu@…>:

.. a major configuration cleanup
... major enhancement of automake support.

... and it contains a *major* breakthough:

Automake support for libchip and libmisc *LEAF* directories.

To implement this I have used several nasty tricks

  • The basical trick is to wrap an old Makefile.in's contents into a Makefile.am and still continue to use (i.e include) the old *.cfg files.
  • Replaced each INSTALL_IF_CHANGE and INSTALL_VARIANT with make dependencies
  • Add a gnu-make ifdef AUTOMAKE to main.cfg to avoid conflicts between automake and RTEMS make rules
  • Replaced each install:: and preinstall:: rule with make dependencies
  • Replaced SUB_DIRS with SUBDIRS in all Makefile.ins (Automake convention)
  • Removed each manually added autoconf substitution which automake performs automatically.

This is not yet full automake support, because using the temporary
installation directory, preinstallation in general and building variants
are in contradiction to automake's basic working principles ...

... the new Makefile.ams work still somewhat clumsy
... nevertheless they work (quite well).

WARNING:

At first glance this patch is small, but

  • it affects the whole configuration system.
  • it opens the road to introducing automake to all Makefile.ins currently not being under automake control.

JOEL> Does this remove or add any files?

Both, all Makefile.ins below libchip and libmisc get replaced with
Makefile.ams.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(score)
7RTEMS_TOP(../../..)
8AC_CONFIG_AUX_DIR(../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no)
13AM_MAINTAINER_MODE
14RTEMS_ENABLE_MULTIPROCESSING
15RTEMS_ENABLE_POSIX
16RTEMS_ENABLE_ITRON
17RTEMS_ENABLE_INLINES
18RTEMS_ENABLE_GCC28
19RTEMS_ENABLE_LIBCDIR
20
21RTEMS_ENV_RTEMSBSP
22
23RTEMS_CHECK_CPU
24RTEMS_CANONICAL_HOST
25
26RTEMS_PROJECT_ROOT
27
28dnl check target cc
29RTEMS_PROG_CC_FOR_TARGET
30RTEMS_CANONICALIZE_TOOLS
31
32RTEMS_CHECK_NEWLIB
33
34# Check if there is custom/*.cfg for this BSP
35RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
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.
41if test "$RTEMS_USE_MACROS" = "yes"; then
42  INLINEdir="macros"
43  if test "$HAS_POSIX_API" = "yes"; then
44    # The problem is that there is currently no code in posix/macros :)
45    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
46  fi
47  if test "$HAS_ITRON_API" = "yes"; then
48    # The problem is that there is currently no code in itron/macros :)
49    AC_MSG_ERROR(Macros are not implemented for the ITRON API)
50  fi
51else
52  INLINEdir="inline"
53fi
54AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" )
55AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" )
56AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" )
57
58AC_SUBST(RTEMS_VERSION)
59
60AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes")
61AM_CONDITIONAL(HAS_ITRON,test "$HAS_ITRON_API" = "yes")
62
63if test "$HAS_POSIX_API" = "yes"; then
64  cfg_subdirs="posix"
65fi
66if test "$HAS_ITRON_API" = "yes"; then
67  cfg_subdirs="$cfg_subdirs itron"
68fi
69AC_CONFIG_SUBDIRS($cfg_subdirs)
70AC_CONFIG_SUBDIRS(score/cpu)
71
72PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
73AC_SUBST(PROJECT_INCLUDE)
74
75# Try to explicitly list a Makefile here
76AC_OUTPUT(
77Makefile
78rtems/Makefile
79rtems/src/Makefile
80rtems/include/Makefile
81rtems/include/rtems/Makefile
82rtems/include/rtems/rtems/Makefile
83rtems/optman/Makefile
84rtems/inline/Makefile
85rtems/inline/rtems/Makefile
86rtems/inline/rtems/rtems/Makefile
87rtems/macros/Makefile
88rtems/macros/rtems/Makefile
89rtems/macros/rtems/rtems/Makefile
90sapi/Makefile
91sapi/src/Makefile
92sapi/include/Makefile
93sapi/include/rtems/Makefile
94sapi/include/rtems/sptables.h
95sapi/inline/Makefile
96sapi/inline/rtems/Makefile
97sapi/macros/Makefile
98sapi/macros/rtems/Makefile
99sapi/optman/Makefile
100score/Makefile
101score/cpu/Makefile
102score/include/Makefile
103score/include/rtems/Makefile
104score/include/rtems/score/Makefile
105score/inline/Makefile
106score/inline/rtems/Makefile
107score/inline/rtems/score/Makefile
108score/macros/Makefile
109score/macros/rtems/Makefile
110score/macros/rtems/score/Makefile
111score/src/Makefile
112wrapup/Makefile
113wrapup/rtems/Makefile
114wrapup/itron/Makefile
115wrapup/posix/Makefile
116)
Note: See TracBrowser for help on using the repository browser.