source: rtems/testsuites/samples/configure.ac @ cdf30f05

4.115
Last change on this file since cdf30f05 was cdf30f05, checked in by Sebastian Huber <sebastian.huber@…>, on 06/19/15 at 12:57:44

rtems: Add rtems_interrupt_local_disable|enable()

Add rtems_interrupt_local_disable|enable() as suggested by Pavel Pisa to
emphasize that interrupts are only disabled on the current processor.
Do not define the rtems_interrupt_disable|enable|flash() macros and
functions on SMP configurations since they don't ensure system wide
mutual exclusion.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests-samples],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([hello])
6AC_CONFIG_HEADER([config.h])
7RTEMS_TOP([../..],[..])
8
9RTEMS_CANONICAL_TARGET_CPU
10
11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
12AM_MAINTAINER_MODE
13
14RTEMS_ENABLE_CXX
15
16RTEMS_ENV_RTEMSBSP
17
18RTEMS_PROJECT_ROOT
19
20RTEMS_PROG_CC_FOR_TARGET
21
22RTEMS_PROG_CXX_FOR_TARGET
23RTEMS_CANONICALIZE_TOOLS
24
25RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
26RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
27RTEMS_CHECK_CXX(RTEMS_BSP)
28RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
29RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
30
31CXXTESTS=$HAS_CPLUSPLUS
32AS_IF([test $HAS_CPLUSPLUS = yes],[
33  AC_LANG_PUSH([C++])
34  AC_CHECK_HEADERS([cstdio cstdlib iostream],[],[CXXTESTS=no])
35  AC_CACHE_CHECK(
36  [if iostream supports std:: namespace],
37  [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE],
38  [AC_COMPILE_IFELSE(
39    [AC_LANG_PROGRAM(
40      [[#include <iostream>]],
41      [[std::cout << "hello" << std::endl;]])
42    ],
43    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=yes],
44    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=no])
45  ])
46  AS_IF([test $rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE = no],[CXXTESTS=no])
47  AS_IF([test $CXXTESTS = no],[
48    AC_MSG_WARN([disabling C++ tests])
49  ])
50  AC_LANG_POP
51])
52
53AM_CONDITIONAL([CXXTESTS],[test $CXXTESTS = "yes"])
54AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
55AM_CONDITIONAL(MPTESTS,test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes")
56AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes")
57
58# FIXME: We should get rid of this. It's a cludge.
59AC_CHECK_SIZEOF([time_t])
60
61# Explicitly list all Makefiles here
62AC_CONFIG_FILES([Makefile
63base_sp/Makefile
64hello/Makefile
65loopback/Makefile
66minimum/Makefile
67fileio/Makefile
68nsecs/Makefile
69paranoia/Makefile
70ticker/Makefile
71unlimited/Makefile
72base_mp/Makefile
73base_mp/node1/Makefile
74base_mp/node2/Makefile
75iostream/Makefile
76cdtest/Makefile
77pppd/Makefile
78capture/Makefile
79])
80AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.