source: rtems/testsuites/psxtests/configure.ac @ f38060b

4.115
Last change on this file since f38060b was f38060b, checked in by Jennifer Averett <jennifer.averett@…>, on 02/17/14 at 18:17:26

psxtests: Correct bug in check of affinity support in newlib.

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