1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ([2.68]) |
---|
6 | AC_INIT([rtems-c-src-tests-psxtests],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
7 | AC_CONFIG_SRCDIR([psx01]) |
---|
8 | AC_CONFIG_HEADER([config.h]) |
---|
9 | RTEMS_TOP([../..],[..]) |
---|
10 | |
---|
11 | RTEMS_CANONICAL_TARGET_CPU |
---|
12 | |
---|
13 | AM_INIT_AUTOMAKE([no-define foreign 1.11.1]) |
---|
14 | AM_MAINTAINER_MODE |
---|
15 | |
---|
16 | RTEMS_ENV_RTEMSBSP |
---|
17 | |
---|
18 | RTEMS_PROJECT_ROOT |
---|
19 | |
---|
20 | RTEMS_PROG_CC_FOR_TARGET |
---|
21 | |
---|
22 | RTEMS_CANONICALIZE_TOOLS |
---|
23 | |
---|
24 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
25 | |
---|
26 | AM_CONDITIONAL([HAS_NETWORKING],[test "$HAS_NETWORKING" = "yes"]) |
---|
27 | |
---|
28 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
29 | AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") |
---|
30 | |
---|
31 | # FIXME: IEEE Std 1003.1-2008 mandates sys/mman.h, |
---|
32 | # but newlib doesn't have sys/mman.h |
---|
33 | AC_CHECK_HEADERS([sys/mman.h]) |
---|
34 | |
---|
35 | # FIXME: newlib should supply declaration of pthread_rwlock_unlock() |
---|
36 | AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]]) |
---|
37 | |
---|
38 | # FIXME: newlib should supply declaration of pthread_atfork() |
---|
39 | AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]]) |
---|
40 | |
---|
41 | # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1 |
---|
42 | # Likely an anachronism in RTEMS. |
---|
43 | AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]]) |
---|
44 | |
---|
45 | # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1 |
---|
46 | # Likely an anachronism in RTEMS. |
---|
47 | AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]]) |
---|
48 | |
---|
49 | # FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1 |
---|
50 | # Likely an anachronism in RTEMS. |
---|
51 | AC_CHECK_DECLS([pthread_attr_setcputime],[],[],[[#include <pthread.h>]]) |
---|
52 | |
---|
53 | # Added to pthreads after initial revision. May not be in toolset |
---|
54 | AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]]) |
---|
55 | |
---|
56 | # Added to pthreads after initial revision. May not be in toolset |
---|
57 | AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]]) |
---|
58 | |
---|
59 | # Added to pthreads after initial revision. May not be in toolset |
---|
60 | AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]]) |
---|
61 | |
---|
62 | # Added to pthreads after initial revision. May not be in toolset |
---|
63 | AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]]) |
---|
64 | |
---|
65 | # FIXME: adjtime is a non-standardized BSD/Linux extension |
---|
66 | # RTEMS should not rely on adjtime |
---|
67 | AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]]) |
---|
68 | |
---|
69 | # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h, |
---|
70 | # RTEMS provides a stub, despite newlib doesn't have sys/mman.h |
---|
71 | AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]]) |
---|
72 | |
---|
73 | # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h |
---|
74 | # RTEMS provides it, despite newlib doesn't declare it. |
---|
75 | AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>]) |
---|
76 | |
---|
77 | # FIXME: We should get rid of this. It's a cludge. |
---|
78 | AC_CHECK_SIZEOF([off_t]) |
---|
79 | AC_CHECK_SIZEOF([blksize_t]) |
---|
80 | AC_CHECK_SIZEOF([blkcnt_t]) |
---|
81 | |
---|
82 | # Explicitly list all Makefiles here |
---|
83 | AC_CONFIG_FILES([Makefile |
---|
84 | psx01/Makefile |
---|
85 | psx02/Makefile |
---|
86 | psx03/Makefile |
---|
87 | psx04/Makefile |
---|
88 | psx05/Makefile |
---|
89 | psx06/Makefile |
---|
90 | psx07/Makefile |
---|
91 | psx08/Makefile |
---|
92 | psx09/Makefile |
---|
93 | psx10/Makefile |
---|
94 | psx11/Makefile |
---|
95 | psx12/Makefile |
---|
96 | psx13/Makefile |
---|
97 | psx14/Makefile |
---|
98 | psx15/Makefile |
---|
99 | psx16/Makefile |
---|
100 | psxaio01/Makefile |
---|
101 | psxaio02/Makefile |
---|
102 | psxaio03/Makefile |
---|
103 | psxalarm01/Makefile |
---|
104 | psxautoinit01/Makefile |
---|
105 | psxautoinit02/Makefile |
---|
106 | psxbarrier01/Makefile |
---|
107 | psxcancel/Makefile |
---|
108 | psxcancel01/Makefile |
---|
109 | psxchroot01/Makefile |
---|
110 | psxclassic01/Makefile |
---|
111 | psxcleanup/Makefile |
---|
112 | psxcleanup01/Makefile |
---|
113 | psxclock/Makefile |
---|
114 | psxcond01/Makefile |
---|
115 | psxeintr_join/Makefile |
---|
116 | psxenosys/Makefile |
---|
117 | psxfatal01/Makefile |
---|
118 | psxfatal02/Makefile |
---|
119 | psxfchx01/Makefile |
---|
120 | psxfile01/Makefile |
---|
121 | psxfile02/Makefile |
---|
122 | psxfilelock01/Makefile |
---|
123 | psxgetrusage01/Makefile |
---|
124 | psxhdrs/Makefile |
---|
125 | psxid01/Makefile |
---|
126 | psximfs01/Makefile |
---|
127 | psximfs02/Makefile |
---|
128 | psxintrcritical01/Makefile |
---|
129 | psxitimer/Makefile |
---|
130 | psxkey01/Makefile |
---|
131 | psxkey02/Makefile |
---|
132 | psxkey03/Makefile |
---|
133 | psxmount/Makefile |
---|
134 | psxmsgq01/Makefile |
---|
135 | psxmsgq02/Makefile |
---|
136 | psxmsgq03/Makefile |
---|
137 | psxmsgq04/Makefile |
---|
138 | psxmutexattr01/Makefile |
---|
139 | psxobj01/Makefile |
---|
140 | psxpasswd01/Makefile |
---|
141 | psxpasswd02/Makefile |
---|
142 | psxpipe01/Makefile |
---|
143 | psxreaddir/Makefile |
---|
144 | psxrdwrv/Makefile |
---|
145 | psxrwlock01/Makefile |
---|
146 | psxsem01/Makefile |
---|
147 | psxsignal01/Makefile |
---|
148 | psxsignal02/Makefile |
---|
149 | psxsignal03/Makefile |
---|
150 | psxsignal04/Makefile |
---|
151 | psxsignal05/Makefile |
---|
152 | psxsignal06/Makefile |
---|
153 | psxspin01/Makefile |
---|
154 | psxspin02/Makefile |
---|
155 | psxstack01/Makefile |
---|
156 | psxstack02/Makefile |
---|
157 | psxstat/Makefile |
---|
158 | psxsysconf/Makefile |
---|
159 | psxtime/Makefile |
---|
160 | psxtimer01/Makefile |
---|
161 | psxtimer02/Makefile |
---|
162 | psxtimes01/Makefile |
---|
163 | psxualarm/Makefile |
---|
164 | psxusleep/Makefile |
---|
165 | ]) |
---|
166 | AC_OUTPUT |
---|