[eb299afc] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | dnl |
---|
| 3 | dnl $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ(2.13) |
---|
[3a8915e] | 6 | AC_INIT(samples) |
---|
[eb299afc] | 7 | RTEMS_TOP(../../..) |
---|
| 8 | AC_CONFIG_AUX_DIR(../../..) |
---|
| 9 | |
---|
| 10 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 11 | |
---|
[3a8915e] | 12 | AM_INIT_AUTOMAKE(rtems-c-src-tests,$RTEMS_VERSION,no) |
---|
[eb299afc] | 13 | AM_MAINTAINER_MODE |
---|
| 14 | |
---|
| 15 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 16 | RTEMS_ENABLE_POSIX |
---|
[352c9b2] | 17 | RTEMS_ENABLE_ITRON |
---|
[eb299afc] | 18 | RTEMS_ENABLE_NETWORKING |
---|
| 19 | RTEMS_ENABLE_INLINES |
---|
| 20 | RTEMS_ENABLE_CXX |
---|
| 21 | RTEMS_ENABLE_GCC28 |
---|
| 22 | RTEMS_ENABLE_LIBCDIR |
---|
| 23 | RTEMS_ENABLE_BARE |
---|
| 24 | RTEMS_ENABLE_TESTS |
---|
| 25 | |
---|
| 26 | RTEMS_ENV_RTEMSBSP |
---|
| 27 | RTEMS_CHECK_CPU |
---|
| 28 | RTEMS_CANONICAL_HOST |
---|
| 29 | |
---|
| 30 | RTEMS_PROJECT_ROOT |
---|
| 31 | |
---|
| 32 | dnl check target cc |
---|
| 33 | RTEMS_PROG_CC_FOR_TARGET |
---|
| 34 | |
---|
| 35 | dnl check for g++ |
---|
| 36 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 37 | RTEMS_PROG_CXX_FOR_TARGET |
---|
| 38 | fi |
---|
| 39 | |
---|
| 40 | RTEMS_CANONICALIZE_TOOLS |
---|
| 41 | |
---|
| 42 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
[1896a650] | 43 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
[3a8915e] | 44 | RTEMS_CHECK_POSIX_API(RTEMS_BSP) |
---|
[352c9b2] | 45 | RTEMS_CHECK_ITRON_API(RTEMS_BSP) |
---|
[1896a650] | 46 | |
---|
[eb299afc] | 47 | if test "$tests_enabled" = "yes"; then |
---|
[352c9b2] | 48 | # do functionality tests first, then performance tests |
---|
[3a8915e] | 49 | cfg_subdirs="libtests sptests" |
---|
[1896a650] | 50 | if test "$HAS_MP" = "yes"; then |
---|
[3a8915e] | 51 | cfg_subdirs="$cfg_subdirs mptests" |
---|
[1896a650] | 52 | fi |
---|
[3a8915e] | 53 | if test "$HAS_POSIX_API" = "yes"; then |
---|
| 54 | cfg_subdirs="$cfg_subdirs psxtests" |
---|
[1896a650] | 55 | fi |
---|
[352c9b2] | 56 | if test "$HAS_ITRON_API" = "yes"; then |
---|
| 57 | cfg_subdirs="$cfg_subdirs itrontests tmitrontests" |
---|
| 58 | fi |
---|
| 59 | # Now do performance tests |
---|
[3a8915e] | 60 | cfg_subdirs="$cfg_subdirs tmtests" |
---|
[352c9b2] | 61 | if test "$HAS_ITRON_API" = "yes"; then |
---|
| 62 | cfg_subdirs="$cfg_subdirs tmitrontests" |
---|
| 63 | fi |
---|
[3a8915e] | 64 | fi |
---|
[eb299afc] | 65 | |
---|
| 66 | AC_SUBST(BARE_CPU_CFLAGS) |
---|
| 67 | AC_SUBST(BARE_CPU_MODEL) |
---|
| 68 | |
---|
[3a8915e] | 69 | AC_CONFIG_SUBDIRS(tools) |
---|
| 70 | AC_CONFIG_SUBDIRS(support) |
---|
| 71 | AC_CONFIG_SUBDIRS(samples) |
---|
| 72 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
[eb299afc] | 73 | |
---|
| 74 | # Try to explicitly list a Makefile here |
---|
| 75 | AC_OUTPUT( |
---|
| 76 | Makefile |
---|
[3a8915e] | 77 | ) |
---|