1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems-c-src-tests-psxtests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
5 | AC_CONFIG_SRCDIR([psx01]) |
---|
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 | RTEMS_PROG_CXX_FOR_TARGET |
---|
22 | |
---|
23 | RTEMS_CANONICALIZE_TOOLS |
---|
24 | |
---|
25 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
26 | RTEMS_CHECK_CXX(RTEMS_BSP) |
---|
27 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
28 | RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING]) |
---|
29 | |
---|
30 | AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes") |
---|
31 | AM_CONDITIONAL([HAS_NETWORKING],test "$rtems_cv_RTEMS_NETWORKING" = "yes") |
---|
32 | AM_CONDITIONAL([HAS_CPLUSPLUS],[test x"$HAS_CPLUSPLUS" = x"yes"]) |
---|
33 | |
---|
34 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
35 | AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") |
---|
36 | |
---|
37 | # FIXME: IEEE Std 1003.1-2008 mandates sys/mman.h, |
---|
38 | # but newlib doesn't have sys/mman.h |
---|
39 | AC_CHECK_HEADERS([sys/mman.h]) |
---|
40 | |
---|
41 | # FIXME: newlib should supply declaration of pthread_rwlock_unlock() |
---|
42 | AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]]) |
---|
43 | |
---|
44 | # FIXME: newlib should supply declaration of pthread_atfork() |
---|
45 | AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]]) |
---|
46 | |
---|
47 | # Added to pthreads after initial revision. May not be in toolset |
---|
48 | AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]]) |
---|
49 | |
---|
50 | # Added to pthreads after initial revision. May not be in toolset |
---|
51 | AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]]) |
---|
52 | |
---|
53 | # Added to pthreads after initial revision. May not be in toolset |
---|
54 | AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]]) |
---|
55 | |
---|
56 | # Added to pthreads after initial revision. May not be in toolset |
---|
57 | AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]]) |
---|
58 | |
---|
59 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
60 | AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[ |
---|
61 | #define _GNU_SOURCE |
---|
62 | #include <pthread.h>]]) |
---|
63 | |
---|
64 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
65 | AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[ |
---|
66 | #define _GNU_SOURCE |
---|
67 | #include <pthread.h>]]) |
---|
68 | |
---|
69 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
70 | AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[ |
---|
71 | #define _GNU_SOURCE |
---|
72 | #include <pthread.h>]]) |
---|
73 | |
---|
74 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
75 | AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[ |
---|
76 | #define _GNU_SOURCE |
---|
77 | #include <pthread.h>]]) |
---|
78 | |
---|
79 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
80 | AC_CHECK_DECLS([pthread_getattr_np],[],[],[[ |
---|
81 | #define _GNU_SOURCE |
---|
82 | #include <pthread.h>]]) |
---|
83 | |
---|
84 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
85 | AC_CHECK_HEADERS([cpuset.h]) |
---|
86 | |
---|
87 | # Mandated by POSIX, not declared in some versions of newlib. |
---|
88 | AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h]) |
---|
89 | |
---|
90 | # Mandated by POSIX, not declared in some versions of newlib. |
---|
91 | AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h]) |
---|
92 | |
---|
93 | # FIXME: adjtime is a non-standardized BSD/Linux extension |
---|
94 | # RTEMS should not rely on adjtime |
---|
95 | AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]]) |
---|
96 | |
---|
97 | # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h, |
---|
98 | # RTEMS provides a stub, despite newlib doesn't have sys/mman.h |
---|
99 | AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]]) |
---|
100 | |
---|
101 | # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h |
---|
102 | # RTEMS provides it, despite newlib doesn't declare it. |
---|
103 | AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>]) |
---|
104 | |
---|
105 | # FIXME: We should get rid of this. It's a cludge. |
---|
106 | AC_CHECK_SIZEOF([off_t]) |
---|
107 | AC_CHECK_SIZEOF([blksize_t]) |
---|
108 | AC_CHECK_SIZEOF([blkcnt_t]) |
---|
109 | AC_CHECK_SIZEOF([time_t]) |
---|
110 | AC_CHECK_SIZEOF([mode_t]) |
---|
111 | |
---|
112 | # Explicitly list all Makefiles here |
---|
113 | AC_CONFIG_FILES([Makefile |
---|
114 | psx01/Makefile |
---|
115 | psx02/Makefile |
---|
116 | psx03/Makefile |
---|
117 | psx04/Makefile |
---|
118 | psx05/Makefile |
---|
119 | psx06/Makefile |
---|
120 | psx07/Makefile |
---|
121 | psx08/Makefile |
---|
122 | psx09/Makefile |
---|
123 | psx10/Makefile |
---|
124 | psx11/Makefile |
---|
125 | psx12/Makefile |
---|
126 | psx13/Makefile |
---|
127 | psx14/Makefile |
---|
128 | psx15/Makefile |
---|
129 | psx16/Makefile |
---|
130 | psxaio01/Makefile |
---|
131 | psxaio02/Makefile |
---|
132 | psxaio03/Makefile |
---|
133 | psxalarm01/Makefile |
---|
134 | psxautoinit01/Makefile |
---|
135 | psxautoinit02/Makefile |
---|
136 | psxbarrier01/Makefile |
---|
137 | psxcancel/Makefile |
---|
138 | psxcancel01/Makefile |
---|
139 | psxchroot01/Makefile |
---|
140 | psxclassic01/Makefile |
---|
141 | psxcleanup/Makefile |
---|
142 | psxcleanup01/Makefile |
---|
143 | psxcleanup02/Makefile |
---|
144 | psxclock/Makefile |
---|
145 | psxclock01/Makefile |
---|
146 | psxconcurrency01/Makefile |
---|
147 | psxcond01/Makefile |
---|
148 | psxcond02/Makefile |
---|
149 | psxconfig01/Makefile |
---|
150 | psxeintr_join/Makefile |
---|
151 | psxenosys/Makefile |
---|
152 | psxfatal01/Makefile |
---|
153 | psxfatal02/Makefile |
---|
154 | psxfchx01/Makefile |
---|
155 | psxfile01/Makefile |
---|
156 | psxfile02/Makefile |
---|
157 | psxfilelock01/Makefile |
---|
158 | psxgetattrnp01/Makefile |
---|
159 | psxgetrusage01/Makefile |
---|
160 | psxglobalcon01/Makefile |
---|
161 | psxglobalcon02/Makefile |
---|
162 | psxhdrs/Makefile |
---|
163 | psxid01/Makefile |
---|
164 | psximfs01/Makefile |
---|
165 | psximfs02/Makefile |
---|
166 | psxintrcritical01/Makefile |
---|
167 | psxitimer/Makefile |
---|
168 | psxkey01/Makefile |
---|
169 | psxkey02/Makefile |
---|
170 | psxkey03/Makefile |
---|
171 | psxkey04/Makefile |
---|
172 | psxkey05/Makefile |
---|
173 | psxkey06/Makefile |
---|
174 | psxkey07/Makefile |
---|
175 | psxkey08/Makefile |
---|
176 | psxkey09/Makefile |
---|
177 | psxkey10/Makefile |
---|
178 | psxmount/Makefile |
---|
179 | psxmsgq01/Makefile |
---|
180 | psxmsgq02/Makefile |
---|
181 | psxmsgq03/Makefile |
---|
182 | psxmsgq04/Makefile |
---|
183 | psxmutexattr01/Makefile |
---|
184 | psxobj01/Makefile |
---|
185 | psxonce01/Makefile |
---|
186 | psxpasswd01/Makefile |
---|
187 | psxpasswd02/Makefile |
---|
188 | psxpipe01/Makefile |
---|
189 | psxreaddir/Makefile |
---|
190 | psxrdwrv/Makefile |
---|
191 | psxrwlock01/Makefile |
---|
192 | psxsem01/Makefile |
---|
193 | psxsignal01/Makefile |
---|
194 | psxsignal02/Makefile |
---|
195 | psxsignal03/Makefile |
---|
196 | psxsignal04/Makefile |
---|
197 | psxsignal05/Makefile |
---|
198 | psxsignal06/Makefile |
---|
199 | psxspin01/Makefile |
---|
200 | psxspin02/Makefile |
---|
201 | psxstack01/Makefile |
---|
202 | psxstack02/Makefile |
---|
203 | psxstat/Makefile |
---|
204 | psxsysconf/Makefile |
---|
205 | psxtime/Makefile |
---|
206 | psxtimer01/Makefile |
---|
207 | psxtimer02/Makefile |
---|
208 | psxtimes01/Makefile |
---|
209 | psxualarm/Makefile |
---|
210 | psxusleep/Makefile |
---|
211 | ]) |
---|
212 | AC_OUTPUT |
---|