source: rtems/aclocal/check-multiprocessing.m4 @ 87a95526

4.104.114.84.9
Last change on this file since 87a95526 was 0f8ae13c, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 30, 2002 at 6:27:36 AM

2002-06-30 Ralf Corsepius <corsepiu@…>

  • aclocal/check-multiprocessing.m4: Reworked.
  • aclocal/enable-multiprocessing.m4: Remove RTEMS_HAS_MULTIPROCESSING.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1dnl
2dnl $Id$
3dnl
4
5AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
6[dnl
7AC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnl
8AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl
9AC_REQUIRE([RTEMS_TOP])dnl
10AC_REQUIRE([RTEMS_CHECK_CPU])dnl
11AC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnl
12AC_REQUIRE([RTEMS_BSP_ALIAS])dnl
13
14AC_CACHE_CHECK([if wanting multiprocessing],
15  [rtems_cv_want_multiprocessing],
16  [
17    AS_IF([test x"$multilib" = x"no"],
18      [# no cpukit
19       rtems_cv_want_multiprocessing="$enable_multiprocessing"
20      ],[
21#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead
22       rtems_cv_want_multiprocessing="$enable_multiprocessing"
23      ])
24  ])
25
26AS_IF([test "$rtems_cv_want_multiprocessing" = "yes"],
27[
28  AC_CACHE_CHECK([whether BSP supports multiprocessing],
29  [rtems_cv_HAS_MP],[
30    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then
31        rtems_cv_HAS_MP="yes" ;
32    else
33        rtems_cv_HAS_MP="no";
34    fi
35  ])
36if test $rtems_cv_HAS_MP = "no"; then
37AC_MSG_ERROR([multiprocessing requested but not supported])
38fi
39],[rtems_cv_HAS_MP="no";])
40
41AC_SUBST(HAS_MP,[$rtems_cv_HAS_MP])
42])
Note: See TracBrowser for help on using the repository browser.