1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems-c-src-tests-smptests],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
5 | AC_CONFIG_SRCDIR([smp01]) |
---|
6 | AC_CONFIG_HEADER([config.h]) |
---|
7 | RTEMS_TOP([../..],[..]) |
---|
8 | |
---|
9 | RTEMS_CANONICAL_TARGET_CPU |
---|
10 | |
---|
11 | AM_INIT_AUTOMAKE([no-define foreign 1.12.2]) |
---|
12 | AM_MAINTAINER_MODE |
---|
13 | |
---|
14 | RTEMS_ENABLE_CXX |
---|
15 | |
---|
16 | RTEMS_ENV_RTEMSBSP |
---|
17 | |
---|
18 | RTEMS_PROJECT_ROOT |
---|
19 | |
---|
20 | RTEMS_PROG_CC_FOR_TARGET |
---|
21 | |
---|
22 | RTEMS_PROG_CXX_FOR_TARGET |
---|
23 | RTEMS_CANONICALIZE_TOOLS |
---|
24 | |
---|
25 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
26 | |
---|
27 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
28 | RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING]) |
---|
29 | RTEMS_CHECK_CXX(RTEMS_BSP) |
---|
30 | RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING]) |
---|
31 | RTEMS_CHECK_CPUOPTS([RTEMS_SMP]) |
---|
32 | |
---|
33 | AM_CONDITIONAL(SMPTESTS,test "$rtems_cv_RTEMS_SMP" = "yes") |
---|
34 | |
---|
35 | AM_CONDITIONAL([HAS_POSIX],[test x"${rtems_cv_RTEMS_POSIX_API}" = xyes]) |
---|
36 | |
---|
37 | # These are SMP related and were added to newlib by RTEMS. |
---|
38 | AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[ |
---|
39 | #define _GNU_SOURCE |
---|
40 | #include <pthread.h>]]) |
---|
41 | AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[ |
---|
42 | #define _GNU_SOURCE |
---|
43 | #include <pthread.h>]]) |
---|
44 | AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[ |
---|
45 | #define _GNU_SOURCE |
---|
46 | #include <pthread.h>]]) |
---|
47 | AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[ |
---|
48 | #define _GNU_SOURCE |
---|
49 | #include <pthread.h>]]) |
---|
50 | AC_CHECK_DECLS([pthread_getattr_np],[],[],[[ |
---|
51 | #define _GNU_SOURCE |
---|
52 | #include <pthread.h>]]) |
---|
53 | |
---|
54 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
55 | AC_CHECK_HEADERS([sys/cpuset.h]) |
---|
56 | AM_CONDITIONAL(HAS_CPUSET,test x"${ac_cv_header_sys_cpuset_h}" = x"yes") |
---|
57 | |
---|
58 | # Explicitly list all Makefiles here |
---|
59 | AC_CONFIG_FILES([Makefile |
---|
60 | smp01/Makefile |
---|
61 | smp02/Makefile |
---|
62 | smp03/Makefile |
---|
63 | smp05/Makefile |
---|
64 | smp07/Makefile |
---|
65 | smp08/Makefile |
---|
66 | smp09/Makefile |
---|
67 | smpaffinity01/Makefile |
---|
68 | smpatomic01/Makefile |
---|
69 | smpfatal01/Makefile |
---|
70 | smpfatal02/Makefile |
---|
71 | smpfatal03/Makefile |
---|
72 | smpfatal04/Makefile |
---|
73 | smpfatal05/Makefile |
---|
74 | smpfatal07/Makefile |
---|
75 | smpfatal08/Makefile |
---|
76 | smpipi01/Makefile |
---|
77 | smpload01/Makefile |
---|
78 | smplock01/Makefile |
---|
79 | smpmigration01/Makefile |
---|
80 | smppsxaffinity01/Makefile |
---|
81 | smppsxaffinity02/Makefile |
---|
82 | smppsxsignal01/Makefile |
---|
83 | smpscheduler01/Makefile |
---|
84 | smpscheduler02/Makefile |
---|
85 | smpsignal01/Makefile |
---|
86 | smpswitchextension01/Makefile |
---|
87 | smpthreadlife01/Makefile |
---|
88 | smpunsupported01/Makefile |
---|
89 | ]) |
---|
90 | AC_OUTPUT |
---|