source: rtems/testsuites/psxtests/configure.ac @ 9a4eca5

5
Last change on this file since 9a4eca5 was 6131b84, checked in by Joel Sherrill <joel@…>, on 03/09/16 at 21:15:37

Add pthread_condattr_getclock() and pthread_condattr_setclock()

updates #2608.

  • Property mode set to 100644
File size: 5.5 KB
RevLine 
[d7aecdc]1## Process this file with autoconf to produce a configure script.
2
[0f77281]3AC_PREREQ([2.69])
[12072880]4AC_INIT([rtems-c-src-tests-psxtests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
[d7aecdc]5AC_CONFIG_SRCDIR([psx01])
[027e40d]6AC_CONFIG_HEADER([config.h])
[7c48a2e8]7RTEMS_TOP([../..],[..])
[d7aecdc]8
9RTEMS_CANONICAL_TARGET_CPU
10
[bb2b825]11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
[d7aecdc]12AM_MAINTAINER_MODE
13
[a38ced2]14RTEMS_ENABLE_CXX
15
[d7aecdc]16RTEMS_ENV_RTEMSBSP
17
18RTEMS_PROJECT_ROOT
19
[50a7df1]20RTEMS_PROG_CC_FOR_TARGET
[a38ced2]21RTEMS_PROG_CXX_FOR_TARGET
[d7aecdc]22
23RTEMS_CANONICALIZE_TOOLS
24
25RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
[a38ced2]26RTEMS_CHECK_CXX(RTEMS_BSP)
[eedaf9b]27RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
28RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
[d7aecdc]29
[eedaf9b]30AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes")
31AM_CONDITIONAL([HAS_NETWORKING],test "$rtems_cv_RTEMS_NETWORKING" = "yes")
[a38ced2]32AM_CONDITIONAL([HAS_CPLUSPLUS],[test x"$HAS_CPLUSPLUS" = x"yes"])
[d7aecdc]33
[88271c33]34RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
35AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
36
[f2ced5d]37# FIXME: IEEE Std 1003.1-2008 mandates sys/mman.h,
38# but newlib doesn't have sys/mman.h
39AC_CHECK_HEADERS([sys/mman.h])
40
[cd06fd58]41# FIXME: newlib should supply declaration of pthread_rwlock_unlock()
42AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
43
[f2ced5d]44# FIXME: newlib should supply declaration of pthread_atfork()
45AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
46
[6baf5a5]47# Added to pthreads after initial revision.  May not be in toolset
48AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
49
50# Added to pthreads after initial revision.  May not be in toolset
51AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
52
53# Added to pthreads after initial revision.  May not be in toolset
54AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
55
56# Added to pthreads after initial revision.  May not be in toolset
57AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
58
[73184499]59# Added to newlib pthreads for RTEMS SMP (np), may not be present
[f38060b]60AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[
61  #define _GNU_SOURCE
62  #include <pthread.h>]])
[73184499]63
64# Added to newlib pthreads for RTEMS SMP (np), may not be present
[f38060b]65AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[
66  #define _GNU_SOURCE
67  #include <pthread.h>]])
[73184499]68
69# Added to newlib pthreads for RTEMS SMP (np), may not be present
[f38060b]70AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[
71  #define _GNU_SOURCE
72  #include <pthread.h>]])
[73184499]73
74# Added to newlib pthreads for RTEMS SMP (np), may not be present
[f38060b]75AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[
76  #define _GNU_SOURCE
77  #include <pthread.h>]])
[73184499]78
[f38060b]79# Added to newlib pthreads for RTEMS SMP (np), may not be present
80AC_CHECK_DECLS([pthread_getattr_np],[],[],[[
81  #define _GNU_SOURCE
82  #include <pthread.h>]])
[73184499]83
84# Added to newlib pthreads for RTEMS SMP (np), may not be present
85AC_CHECK_HEADERS([cpuset.h])
86
87# Mandated by POSIX, not declared in some versions of newlib.
88AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
89
[4b274633]90# Mandated by POSIX, not declared in some versions of newlib.
91AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
92
[f2ced5d]93# FIXME: adjtime is a non-standardized BSD/Linux extension
94# RTEMS should not rely on adjtime
95AC_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
99AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
100
[5218693]101# FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
102# RTEMS provides it, despite newlib doesn't declare it.
103AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
104
[700b9116]105# FIXME: We should get rid of this. It's a cludge.
106AC_CHECK_SIZEOF([off_t])
[c03792f]107AC_CHECK_SIZEOF([blksize_t])
108AC_CHECK_SIZEOF([blkcnt_t])
[b47a7cc]109AC_CHECK_SIZEOF([time_t])
[c1b890c8]110AC_CHECK_SIZEOF([mode_t])
[700b9116]111
[d7aecdc]112# Explicitly list all Makefiles here
113AC_CONFIG_FILES([Makefile
114psx01/Makefile
115psx02/Makefile
116psx03/Makefile
117psx04/Makefile
118psx05/Makefile
119psx06/Makefile
120psx07/Makefile
121psx08/Makefile
122psx09/Makefile
123psx10/Makefile
124psx11/Makefile
125psx12/Makefile
126psx13/Makefile
[c87593f]127psx14/Makefile
[4bff276]128psx15/Makefile
[76e9a52f]129psx16/Makefile
[db8c6d6]130psxaio01/Makefile
131psxaio02/Makefile
[a0cd0829]132psxaio03/Makefile
[a4506973]133psxalarm01/Makefile
[9a845e17]134psxautoinit01/Makefile
[13a4c71c]135psxautoinit02/Makefile
[b4e79bc]136psxbarrier01/Makefile
[d7aecdc]137psxcancel/Makefile
[bfd225e]138psxcancel01/Makefile
[d7aecdc]139psxchroot01/Makefile
[408eea8]140psxclassic01/Makefile
[f7ad5b3]141psxcleanup/Makefile
[a3a9a2d]142psxcleanup01/Makefile
[2b137ed]143psxcleanup02/Makefile
[88271c33]144psxclock/Makefile
[56c7192]145psxclock01/Makefile
[8228548]146psxconcurrency01/Makefile
[14d3ad4f]147psxcond01/Makefile
[6131b84]148psxcond02/Makefile
[b6c5fe0]149psxconfig01/Makefile
[bd1505b2]150psxeintr_join/Makefile
[8728969]151psxenosys/Makefile
[920343e]152psxfatal01/Makefile
153psxfatal02/Makefile
[b05cc32]154psxfchx01/Makefile
[d7aecdc]155psxfile01/Makefile
[6cb7221]156psxfile02/Makefile
[98e16aad]157psxfilelock01/Makefile
[c315dbf2]158psxgetattrnp01/Makefile
[85c8e754]159psxgetrusage01/Makefile
[a38ced2]160psxglobalcon01/Makefile
161psxglobalcon02/Makefile
[d7aecdc]162psxhdrs/Makefile
[98e16aad]163psxid01/Makefile
[43efb633]164psximfs01/Makefile
[d08ba49e]165psximfs02/Makefile
[6ffde61]166psxintrcritical01/Makefile
[9bced10]167psxitimer/Makefile
[f8d39b8d]168psxkey01/Makefile
[3e5a9e51]169psxkey02/Makefile
[64bad68b]170psxkey03/Makefile
[b5c9064]171psxkey04/Makefile
172psxkey05/Makefile
173psxkey06/Makefile
174psxkey07/Makefile
175psxkey08/Makefile
176psxkey09/Makefile
177psxkey10/Makefile
[d7aecdc]178psxmount/Makefile
179psxmsgq01/Makefile
[f8d39b8d]180psxmsgq02/Makefile
[7cd9cd89]181psxmsgq03/Makefile
[330e858c]182psxmsgq04/Makefile
[5d6e8c88]183psxmutexattr01/Makefile
[c0ae267]184psxobj01/Makefile
[6592cab]185psxonce01/Makefile
[4828ee2]186psxpasswd01/Makefile
[1fe4042]187psxpasswd02/Makefile
[f1b2dab2]188psxpipe01/Makefile
[d7aecdc]189psxreaddir/Makefile
[41f17ba]190psxrdwrv/Makefile
[b4e79bc]191psxrwlock01/Makefile
[d7aecdc]192psxsem01/Makefile
[7689b49]193psxsignal01/Makefile
[a3e4a58]194psxsignal02/Makefile
[2ad8f85]195psxsignal03/Makefile
[70a66ca]196psxsignal04/Makefile
[b053cab]197psxsignal05/Makefile
[4fcd106]198psxsignal06/Makefile
[b4e79bc]199psxspin01/Makefile
[1938cc07]200psxspin02/Makefile
[c05f2010]201psxstack01/Makefile
[6baf5a5]202psxstack02/Makefile
[d7aecdc]203psxstat/Makefile
[901a913]204psxsysconf/Makefile
[d7aecdc]205psxtime/Makefile
[eed0b96d]206psxtimer01/Makefile
207psxtimer02/Makefile
[85c8e754]208psxtimes01/Makefile
[c3a8293]209psxualarm/Makefile
[ea7d86b]210psxusleep/Makefile
[d7aecdc]211])
212AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.