mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-24 23:38:20 +08:00
We always build a C++ compiler and building with C++ does not effect RTEMS or the runtime. This patch always enabled the support. There is no need to manually enable it any more. You can disable C++ with '--disable-cxx'. If an architecture does not have a C++ compiler support is automatically disabled.
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
## Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([rtems-c-src-tests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
|
|
AC_CONFIG_SRCDIR([PROBLEMS])
|
|
RTEMS_TOP([..],[])
|
|
|
|
RTEMS_CANONICAL_TARGET_CPU
|
|
|
|
AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
|
|
AM_MAINTAINER_MODE
|
|
|
|
RTEMS_ENABLE_TESTS
|
|
RTEMS_ENABLE_CXX
|
|
|
|
RTEMS_ENV_RTEMSBSP
|
|
|
|
RTEMS_PROJECT_ROOT
|
|
|
|
RTEMS_PROG_CC_FOR_TARGET
|
|
RTEMS_PROG_CXX_FOR_TARGET
|
|
RTEMS_CANONICALIZE_TOOLS
|
|
AM_PROG_CC_C_O
|
|
|
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
|
|
|
RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
|
|
RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
|
|
RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
|
|
RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
|
|
|
|
case $enable_tests in
|
|
yes | samples )
|
|
AC_CONFIG_SUBDIRS(samples)
|
|
;;
|
|
esac
|
|
|
|
if test "$enable_tests" = "yes"; then
|
|
# do functionality tests first, then performance tests
|
|
AC_CONFIG_SUBDIRS(libtests sptests fstests psxtests)
|
|
if test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes"; then
|
|
AC_CONFIG_SUBDIRS(mptests)
|
|
fi
|
|
if test "$rtems_cv_RTEMS_SMP" = "yes"; then
|
|
AC_CONFIG_SUBDIRS(smptests)
|
|
fi
|
|
# Now do performance tests
|
|
AC_CONFIG_SUBDIRS(tmtests psxtmtests rhealstone)
|
|
fi
|
|
|
|
# Explicitly list all Makefiles here
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|