source: rtems/c/src/exec/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 05/17/02 at 18:32:38

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

  • configure.ac: Add libcsupport.
  • wrapup/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[66387986]1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
[eb299afc]4
[66387986]5AC_PREREQ(2.52)
[1960925d]6AC_INIT([rtems-c-src-exec],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
[66387986]7AC_CONFIG_SRCDIR([score])
[eb299afc]8RTEMS_TOP(../../..)
9AC_CONFIG_AUX_DIR(../../..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
[1960925d]13AM_INIT_AUTOMAKE([no-define foreign 1.6])
[eb299afc]14AM_MAINTAINER_MODE
[04e6f7bf]15
16RTEMS_ENABLE_MULTILIB
[eb299afc]17RTEMS_ENABLE_MULTIPROCESSING
18RTEMS_ENABLE_POSIX
[352c9b2]19RTEMS_ENABLE_ITRON
[eb299afc]20RTEMS_ENABLE_INLINES
[39607984]21RTEMS_ENABLE_RTEMS_DEBUG
[eb299afc]22
[04e6f7bf]23RTEMS_ENV_RTEMSCPU
[39607984]24RTEMS_CHECK_RTEMS_DEBUG
[eb299afc]25
26RTEMS_CHECK_CPU
27RTEMS_CANONICAL_HOST
28
29RTEMS_PROJECT_ROOT
30
[53c3a2c6]31RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
[eb299afc]32RTEMS_CANONICALIZE_TOOLS
33
34RTEMS_CHECK_NEWLIB
35
[1896a650]36RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
[3a8915e]37RTEMS_CHECK_POSIX_API(RTEMS_BSP)
[352c9b2]38RTEMS_CHECK_ITRON_API(RTEMS_BSP)
[1896a650]39
[eb299afc]40# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
[8217c40]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" )
[1896a650]48
[e1d8abb]49AC_SUBST(RTEMS_VERSION)
[1896a650]50
[8217c40]51AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes")
52AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes")
[eb299afc]53
[8217c40]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)
[7660ccd8]60RTEMS_CPU_SUBDIRS([score/cpu])
[eb299afc]61
[90926129]62AC_CONFIG_SUBDIRS([libcsupport])
63
[b8a30d07]64RTEMS_DEFINE_POSIX_API
65RTEMS_DEFINE_ITRON_API
66RTEMS_DEFINE_MULTIPROCESSING
67
[c0394d4b]68# HACK: We should use a feature-based configuration.
[8217c40]69AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
[64b1f81]70  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
[8217c40]71# HACK: silently accept --enable-unixlib
[64b1f81]72  test -n "${enable_unixlib}" || enable_unixlib="yes"
[8217c40]73])
74
75AS_IF([test x"${enable_unixlib}" = x"yes"],
[64b1f81]76  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
[8217c40]77    [to indicate RTEMS using RTEMS's unixlib])]
78)
[c0394d4b]79
[e0ba3e8]80AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
81
[8217c40]82AC_ENABLE_MULTILIB([Makefile],[..])
83
[64b1f81]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
[70810dc]91# Explicitly list all Makefiles here
[66387986]92AC_CONFIG_FILES([Makefile
[8217c40]93include/Makefile
[1896a650]94rtems/Makefile
95rtems/src/Makefile
96rtems/include/Makefile
[e1d8abb]97rtems/inline/Makefile
98rtems/macros/Makefile
[1896a650]99sapi/Makefile
100sapi/src/Makefile
101sapi/include/Makefile
102sapi/include/rtems/sptables.h
[e1d8abb]103sapi/inline/Makefile
104sapi/macros/Makefile
[eb299afc]105score/Makefile
106score/cpu/Makefile
107score/include/Makefile
[e1d8abb]108score/inline/Makefile
109score/macros/Makefile
[eb299afc]110score/src/Makefile
[029527b6]111wrapup/Makefile
[66387986]112])
113AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.