source: rtems/testsuites/configure.ac @ 11ff3a9

Last change on this file since 11ff3a9 was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 12, 2017 at 8:00:10 AM

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([PROBLEMS])
6RTEMS_TOP([..],[])
7
8RTEMS_CANONICAL_TARGET_CPU
9
10AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
11AM_MAINTAINER_MODE
12
13RTEMS_ENABLE_TESTS
14RTEMS_ENABLE_CXX
15
16RTEMS_ENV_RTEMSBSP
17
18RTEMS_PROJECT_ROOT
19
20RTEMS_PROG_CC_FOR_TARGET
21RTEMS_PROG_CXX_FOR_TARGET
22RTEMS_CANONICALIZE_TOOLS
23AM_PROG_CC_C_O
24
25AC_ARG_ENABLE([ada],
26[AS_HELP_STRING(--enable-ada,enable Ada support)],
27[case "${enable_ada}" in
28  yes) ;;
29  no) ;;
30  *)  AC_MSG_ERROR(bad value ${enable_ada} for --enable-ada) ;;
31esac],[enable_ada=no])
32
33RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
34
35RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
36RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
37RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
38RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
39
40case $enable_tests in
41yes | samples )
42  AC_CONFIG_SUBDIRS(samples)
43  ;;
44esac
45
46if test "$enable_tests" = "yes"; then
47  # do functionality tests first, then performance tests
48  AC_CONFIG_SUBDIRS(libtests sptests fstests psxtests)
49  if test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes"; then
50    AC_CONFIG_SUBDIRS(mptests)
51  fi
52  if test "$rtems_cv_RTEMS_SMP" = "yes"; then
53    AC_CONFIG_SUBDIRS(smptests)
54  fi
55  if test "$enable_ada" = "yes"; then
56    AC_CONFIG_SUBDIRS(ada)
57  fi
58  # Now do performance tests
59  AC_CONFIG_SUBDIRS(tmtests psxtmtests benchmarks rhealstone)
60fi
61
62# Explicitly list all Makefiles here
63AC_CONFIG_FILES([Makefile])
64AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.