[d7aecdc] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | |
---|
[0f77281] | 3 | AC_PREREQ([2.69]) |
---|
[12072880] | 4 | AC_INIT([rtems-c-src-tests-psxtests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
[d7aecdc] | 5 | AC_CONFIG_SRCDIR([psx01]) |
---|
[027e40d] | 6 | AC_CONFIG_HEADER([config.h]) |
---|
[7c48a2e8] | 7 | RTEMS_TOP([../..],[..]) |
---|
[d7aecdc] | 8 | |
---|
| 9 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 10 | |
---|
[bb2b825] | 11 | AM_INIT_AUTOMAKE([no-define foreign 1.12.2]) |
---|
[d7aecdc] | 12 | AM_MAINTAINER_MODE |
---|
| 13 | |
---|
[a38ced2] | 14 | RTEMS_ENABLE_CXX |
---|
| 15 | |
---|
[d7aecdc] | 16 | RTEMS_ENV_RTEMSBSP |
---|
| 17 | |
---|
| 18 | RTEMS_PROJECT_ROOT |
---|
| 19 | |
---|
[50a7df1] | 20 | RTEMS_PROG_CC_FOR_TARGET |
---|
[a38ced2] | 21 | RTEMS_PROG_CXX_FOR_TARGET |
---|
[d7aecdc] | 22 | |
---|
| 23 | RTEMS_CANONICALIZE_TOOLS |
---|
| 24 | |
---|
| 25 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
[a38ced2] | 26 | RTEMS_CHECK_CXX(RTEMS_BSP) |
---|
[eedaf9b] | 27 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
| 28 | RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING]) |
---|
[d7aecdc] | 29 | |
---|
[eedaf9b] | 30 | AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes") |
---|
| 31 | AM_CONDITIONAL([HAS_NETWORKING],test "$rtems_cv_RTEMS_NETWORKING" = "yes") |
---|
[a38ced2] | 32 | AM_CONDITIONAL([HAS_CPLUSPLUS],[test x"$HAS_CPLUSPLUS" = x"yes"]) |
---|
[d7aecdc] | 33 | |
---|
[88271c33] | 34 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
| 35 | AM_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 |
---|
| 39 | AC_CHECK_HEADERS([sys/mman.h]) |
---|
| 40 | |
---|
[cd06fd58] | 41 | # FIXME: newlib should supply declaration of pthread_rwlock_unlock() |
---|
| 42 | AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]]) |
---|
| 43 | |
---|
[f2ced5d] | 44 | # FIXME: newlib should supply declaration of pthread_atfork() |
---|
| 45 | AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]]) |
---|
| 46 | |
---|
[6baf5a5] | 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 | |
---|
[73184499] | 59 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
[f38060b] | 60 | AC_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] | 65 | AC_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] | 70 | AC_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] | 75 | AC_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 |
---|
| 80 | AC_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 |
---|
| 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 | |
---|
[4b274633] | 90 | # Mandated by POSIX, not declared in some versions of newlib. |
---|
| 91 | AC_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 |
---|
| 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 | |
---|
[5218693] | 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 | |
---|
[700b9116] | 105 | # FIXME: We should get rid of this. It's a cludge. |
---|
| 106 | AC_CHECK_SIZEOF([off_t]) |
---|
[c03792f] | 107 | AC_CHECK_SIZEOF([blksize_t]) |
---|
| 108 | AC_CHECK_SIZEOF([blkcnt_t]) |
---|
[b47a7cc] | 109 | AC_CHECK_SIZEOF([time_t]) |
---|
[c1b890c8] | 110 | AC_CHECK_SIZEOF([mode_t]) |
---|
[700b9116] | 111 | |
---|
[d7aecdc] | 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 |
---|
[c87593f] | 127 | psx14/Makefile |
---|
[4bff276] | 128 | psx15/Makefile |
---|
[76e9a52f] | 129 | psx16/Makefile |
---|
[db8c6d6] | 130 | psxaio01/Makefile |
---|
| 131 | psxaio02/Makefile |
---|
[a0cd0829] | 132 | psxaio03/Makefile |
---|
[a4506973] | 133 | psxalarm01/Makefile |
---|
[9a845e17] | 134 | psxautoinit01/Makefile |
---|
[13a4c71c] | 135 | psxautoinit02/Makefile |
---|
[b4e79bc] | 136 | psxbarrier01/Makefile |
---|
[d7aecdc] | 137 | psxcancel/Makefile |
---|
[bfd225e] | 138 | psxcancel01/Makefile |
---|
[d7aecdc] | 139 | psxchroot01/Makefile |
---|
[408eea8] | 140 | psxclassic01/Makefile |
---|
[f7ad5b3] | 141 | psxcleanup/Makefile |
---|
[a3a9a2d] | 142 | psxcleanup01/Makefile |
---|
[2b137ed] | 143 | psxcleanup02/Makefile |
---|
[88271c33] | 144 | psxclock/Makefile |
---|
[56c7192] | 145 | psxclock01/Makefile |
---|
[8228548] | 146 | psxconcurrency01/Makefile |
---|
[14d3ad4f] | 147 | psxcond01/Makefile |
---|
[6131b84] | 148 | psxcond02/Makefile |
---|
[b6c5fe0] | 149 | psxconfig01/Makefile |
---|
[bd1505b2] | 150 | psxeintr_join/Makefile |
---|
[8728969] | 151 | psxenosys/Makefile |
---|
[920343e] | 152 | psxfatal01/Makefile |
---|
| 153 | psxfatal02/Makefile |
---|
[b05cc32] | 154 | psxfchx01/Makefile |
---|
[d7aecdc] | 155 | psxfile01/Makefile |
---|
[6cb7221] | 156 | psxfile02/Makefile |
---|
[98e16aad] | 157 | psxfilelock01/Makefile |
---|
[c315dbf2] | 158 | psxgetattrnp01/Makefile |
---|
[85c8e754] | 159 | psxgetrusage01/Makefile |
---|
[a38ced2] | 160 | psxglobalcon01/Makefile |
---|
| 161 | psxglobalcon02/Makefile |
---|
[d7aecdc] | 162 | psxhdrs/Makefile |
---|
[98e16aad] | 163 | psxid01/Makefile |
---|
[43efb633] | 164 | psximfs01/Makefile |
---|
[d08ba49e] | 165 | psximfs02/Makefile |
---|
[6ffde61] | 166 | psxintrcritical01/Makefile |
---|
[9bced10] | 167 | psxitimer/Makefile |
---|
[f8d39b8d] | 168 | psxkey01/Makefile |
---|
[3e5a9e51] | 169 | psxkey02/Makefile |
---|
[64bad68b] | 170 | psxkey03/Makefile |
---|
[b5c9064] | 171 | psxkey04/Makefile |
---|
| 172 | psxkey05/Makefile |
---|
| 173 | psxkey06/Makefile |
---|
| 174 | psxkey07/Makefile |
---|
| 175 | psxkey08/Makefile |
---|
| 176 | psxkey09/Makefile |
---|
| 177 | psxkey10/Makefile |
---|
[d7aecdc] | 178 | psxmount/Makefile |
---|
| 179 | psxmsgq01/Makefile |
---|
[f8d39b8d] | 180 | psxmsgq02/Makefile |
---|
[7cd9cd89] | 181 | psxmsgq03/Makefile |
---|
[330e858c] | 182 | psxmsgq04/Makefile |
---|
[5d6e8c88] | 183 | psxmutexattr01/Makefile |
---|
[c0ae267] | 184 | psxobj01/Makefile |
---|
[6592cab] | 185 | psxonce01/Makefile |
---|
[4828ee2] | 186 | psxpasswd01/Makefile |
---|
[1fe4042] | 187 | psxpasswd02/Makefile |
---|
[f1b2dab2] | 188 | psxpipe01/Makefile |
---|
[d7aecdc] | 189 | psxreaddir/Makefile |
---|
[41f17ba] | 190 | psxrdwrv/Makefile |
---|
[b4e79bc] | 191 | psxrwlock01/Makefile |
---|
[d7aecdc] | 192 | psxsem01/Makefile |
---|
[7689b49] | 193 | psxsignal01/Makefile |
---|
[a3e4a58] | 194 | psxsignal02/Makefile |
---|
[2ad8f85] | 195 | psxsignal03/Makefile |
---|
[70a66ca] | 196 | psxsignal04/Makefile |
---|
[b053cab] | 197 | psxsignal05/Makefile |
---|
[4fcd106] | 198 | psxsignal06/Makefile |
---|
[b4e79bc] | 199 | psxspin01/Makefile |
---|
[1938cc07] | 200 | psxspin02/Makefile |
---|
[c05f2010] | 201 | psxstack01/Makefile |
---|
[6baf5a5] | 202 | psxstack02/Makefile |
---|
[d7aecdc] | 203 | psxstat/Makefile |
---|
[901a913] | 204 | psxsysconf/Makefile |
---|
[d7aecdc] | 205 | psxtime/Makefile |
---|
[eed0b96d] | 206 | psxtimer01/Makefile |
---|
| 207 | psxtimer02/Makefile |
---|
[85c8e754] | 208 | psxtimes01/Makefile |
---|
[c3a8293] | 209 | psxualarm/Makefile |
---|
[ea7d86b] | 210 | psxusleep/Makefile |
---|
[d7aecdc] | 211 | ]) |
---|
| 212 | AC_OUTPUT |
---|