source: rtems/cpukit/configure.ac @ 85eb57e7

4.104.114.84.95
Last change on this file since 85eb57e7 was 85eb57e7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/07/02 at 07:24:06

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

  • configure.ac: Fix bug in librpc activation, having introduced by yesterday's patch.
  • Property mode set to 100644
File size: 3.4 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])
[51b4875]8RTEMS_TOP(..)
[15c107ff]9AC_CONFIG_AUX_DIR(..)
[eb299afc]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
[3e39b47]22RTEMS_ENABLE_NETWORKING
[eb299afc]23
[04e6f7bf]24RTEMS_ENV_RTEMSCPU
[39607984]25RTEMS_CHECK_RTEMS_DEBUG
[eb299afc]26
27RTEMS_CHECK_CPU
28RTEMS_CANONICAL_HOST
29
[53c3a2c6]30RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
[eb299afc]31RTEMS_CANONICALIZE_TOOLS
[e73e576]32AC_PROG_RANLIB
[eb299afc]33
34RTEMS_CHECK_NEWLIB
35
[27f9f12]36RTEMS_CHECK_MULTIPROCESSING
37RTEMS_CHECK_POSIX_API
38RTEMS_CHECK_ITRON_API
[3e39b47]39RTEMS_CHECK_NETWORKING
[1896a650]40
[eb299afc]41# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
[8217c40]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" )
[1896a650]49
[e1d8abb]50AC_SUBST(RTEMS_VERSION)
[1896a650]51
[8217c40]52AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes")
53AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes")
[3e39b47]54AM_CONDITIONAL(HAS_NETWORKING,test x"$HAS_NETWORKING" = x"yes")
[eb299afc]55
[8217c40]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)
[7660ccd8]62RTEMS_CPU_SUBDIRS([score/cpu])
[2a582aa5]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"])
[eb299afc]66
[90926129]67AC_CONFIG_SUBDIRS([libcsupport])
[35cd6ae]68AC_CONFIG_SUBDIRS([libblock])
69AC_CONFIG_SUBDIRS([libfs])
[85eb57e7]70AS_IF([test x"$HAS_NETWORKING" = x"yes"],[
71  AC_CONFIG_SUBDIRS(libnetworking)
72## FIXME: Should better use a feature-based test
73  case "$RTEMS_CPU" in
74  c4x )  LIBRPC=no;;
75  or32 ) LIBRPC=no;;
76  * )    LIBRPC=yes;;
77  esac
78
79  AS_IF([test "$LIBRPC" = "yes"]
80    [AC_CONFIG_SUBDIRS([librpc])
[2a582aa5]81  ])
82])
83AM_CONDITIONAL(LIBRPC,[test "$LIBRPC" = "yes"])
[90926129]84
[b8a30d07]85RTEMS_DEFINE_POSIX_API
86RTEMS_DEFINE_ITRON_API
87RTEMS_DEFINE_MULTIPROCESSING
88
[c0394d4b]89# HACK: We should use a feature-based configuration.
[8217c40]90AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
[64b1f81]91  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
[8217c40]92# HACK: silently accept --enable-unixlib
[64b1f81]93  test -n "${enable_unixlib}" || enable_unixlib="yes"
[8217c40]94])
95
[35cd6ae]96AM_CONDITIONAL(UNIX,[test x"${RTEMS_CPU}" = x"unix"])
97
[8217c40]98AS_IF([test x"${enable_unixlib}" = x"yes"],
[64b1f81]99  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
[8217c40]100    [to indicate RTEMS using RTEMS's unixlib])]
101)
[c0394d4b]102
[e0ba3e8]103AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
104
[8217c40]105AC_ENABLE_MULTILIB([Makefile],[..])
106
[64b1f81]107## HACK: Add a define to cpuopts.h to indicate using multilibs
108## Can be applied to produce compiler errors if using
109## multilib-incompatible settings somewhere else (eg. bspopts.h).
110AS_IF([test x"${enable_multilib}" = x"yes"],[
111  AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])
112])
113
[70810dc]114# Explicitly list all Makefiles here
[66387986]115AC_CONFIG_FILES([Makefile
[8217c40]116include/Makefile
[1896a650]117rtems/Makefile
118rtems/src/Makefile
119rtems/include/Makefile
[e1d8abb]120rtems/inline/Makefile
121rtems/macros/Makefile
[1896a650]122sapi/Makefile
123sapi/src/Makefile
124sapi/include/Makefile
125sapi/include/rtems/sptables.h
[e1d8abb]126sapi/inline/Makefile
127sapi/macros/Makefile
[eb299afc]128score/Makefile
129score/cpu/Makefile
130score/include/Makefile
[e1d8abb]131score/inline/Makefile
132score/macros/Makefile
[eb299afc]133score/src/Makefile
[029527b6]134wrapup/Makefile
[66387986]135])
136AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.