Changeset 0f8ae13c in rtems


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.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r48e7a718 r0f8ae13c  
     12002-06-30      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * aclocal/check-multiprocessing.m4: Reworked.
     4        * aclocal/enable-multiprocessing.m4: Remove RTEMS_HAS_MULTIPROCESSING.
     5
    162002-06-30      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • 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 ])
  • aclocal/enable-multiprocessing.m4

    r48e7a718 r0f8ae13c  
    55AC_ARG_ENABLE(multiprocessing,
    66AC_HELP_STRING([--enable-multiprocessing],[enable multiprocessing interface]),
    7 [case "${enableval}" in
    8   yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
    9   no) RTEMS_HAS_MULTIPROCESSING=no ;;
     7[case "${enable_multiprocessing}" in
     8  yes) ;;
     9  no) ;;
    1010  *)  AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
    11 esac],[RTEMS_HAS_MULTIPROCESSING=no])
    12 AC_SUBST(RTEMS_HAS_MULTIPROCESSING)dnl
     11esac],[enable_multiprocessing=no])
    1312])
Note: See TracChangeset for help on using the changeset viewer.