Ignore:
Timestamp:
Jun 30, 2002, 6:27:36 AM (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
18ec075f
Parents:
48e7a718
Message:

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

  • aclocal/check-multiprocessing.m4: Reworked.
  • aclocal/enable-multiprocessing.m4: Remove RTEMS_HAS_MULTIPROCESSING.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal/check-multiprocessing.m4

    r48e7a718 r0f8ae13c  
    1212AC_REQUIRE([RTEMS_BSP_ALIAS])dnl
    1313
    14 AC_CACHE_CHECK([whether BSP supports multiprocessing],
    15   rtems_cv_HAS_MP,
    16   [dnl
    17     if test x"$multilib" = x"yes"; then
    18       # FIXME: Currently, multilibs and multiprocessing can not be
    19       # build simultaneously
    20       rtems_cv_HAS_MP="disabled"
     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" ;
    2132    else
    22       if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then
    23         if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
    24           rtems_cv_HAS_MP="yes" ;
    25         else
    26           rtems_cv_HAS_MP="disabled";
    27         fi
    28       else
    2933        rtems_cv_HAS_MP="no";
    30       fi
    31     fi])
    32 if test "$rtems_cv_HAS_MP" = "yes"; then
    33 HAS_MP="yes"
    34 else
    35 HAS_MP="no"
     34    fi
     35  ])
     36if test $rtems_cv_HAS_MP = "no"; then
     37AC_MSG_ERROR([multiprocessing requested but not supported])
    3638fi
    37 AC_SUBST(HAS_MP)
     39],[rtems_cv_HAS_MP="no";])
     40
     41AC_SUBST(HAS_MP,[$rtems_cv_HAS_MP])
    3842])
    39 
    40 AC_DEFUN(RTEMS_DEFINE_MULTIPROCESSING,
    41 [AC_REQUIRE([RTEMS_CHECK_MULTIPROCESSING])dnl
    42 if test x"${HAS_MP}" = x"yes";
    43 then
    44   AC_DEFINE_UNQUOTED(RTEMS_MULTIPROCESSING,1,[if multiprocessing is supported])
    45 fi
    46 ])
Note: See TracChangeset for help on using the changeset viewer.