[66387986] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
[eb299afc] | 2 | |
---|
[8ee3775] | 3 | AC_PREREQ([2.68]) |
---|
[fcb0cd46] | 4 | AC_INIT([rtems-cpukit],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
[66387986] | 5 | AC_CONFIG_SRCDIR([score]) |
---|
[2f4c86f] | 6 | RTEMS_TOP([..],[]) |
---|
[eb299afc] | 7 | |
---|
| 8 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 9 | |
---|
[8ee3775] | 10 | AM_INIT_AUTOMAKE([no-define nostdinc subdir-objects foreign 1.11.1]) |
---|
[eb299afc] | 11 | AM_MAINTAINER_MODE |
---|
[04e6f7bf] | 12 | |
---|
| 13 | RTEMS_ENABLE_MULTILIB |
---|
[eb299afc] | 14 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 15 | RTEMS_ENABLE_POSIX |
---|
[39607984] | 16 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
[3e39b47] | 17 | RTEMS_ENABLE_NETWORKING |
---|
[eb299afc] | 18 | |
---|
[04e6f7bf] | 19 | RTEMS_ENV_RTEMSCPU |
---|
[39607984] | 20 | RTEMS_CHECK_RTEMS_DEBUG |
---|
[eb299afc] | 21 | |
---|
[5b2e199] | 22 | # Is this a supported CPU? |
---|
| 23 | AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported]) |
---|
| 24 | if test -d "$srcdir/score/cpu/$RTEMS_CPU"; then |
---|
| 25 | AC_MSG_RESULT(yes) |
---|
| 26 | else |
---|
| 27 | AC_MSG_ERROR(no) |
---|
| 28 | fi |
---|
| 29 | |
---|
[955c499d] | 30 | RTEMS_PROG_CC_FOR_TARGET |
---|
[10ae124c] | 31 | RTEMS_PROG_CCAS |
---|
[eb299afc] | 32 | RTEMS_CANONICALIZE_TOOLS |
---|
[e7d110ba] | 33 | AM_PROG_CC_C_O |
---|
[e73e576] | 34 | AC_PROG_RANLIB |
---|
[eb299afc] | 35 | |
---|
| 36 | RTEMS_CHECK_NEWLIB |
---|
| 37 | |
---|
[b422de6c] | 38 | # BSD-isms, used throughout the sources |
---|
| 39 | # Not really used by this configure script |
---|
| 40 | # FIXME: They should be eliminated if possible. |
---|
[85956f9] | 41 | AC_CHECK_FUNCS([strsep strcasecmp snprintf]) |
---|
[31903f07] | 42 | AC_CHECK_FUNCS([strdup strndup strncasecmp]) |
---|
[b422de6c] | 43 | AC_CHECK_FUNCS([bcopy bcmp]) |
---|
| 44 | AC_CHECK_FUNCS([isascii fileno]) |
---|
[f31a078] | 45 | |
---|
[e83a477] | 46 | # <FIXME> |
---|
| 47 | # Check for functions supplied by newlib >= 1.17.0 |
---|
| 48 | # Newlib's posix/ directory |
---|
[f154804] | 49 | AC_CHECK_FUNCS([readdir_r isatty]) |
---|
[0111c50] | 50 | AC_CHECK_FUNCS([creat \ |
---|
[f154804] | 51 | opendir closedir readdir rewinddir scandir seekdir \ |
---|
| 52 | sleep \ |
---|
| 53 | telldir \ |
---|
| 54 | usleep],, |
---|
[bbc1a10] | 55 | [rtems_missing_func="$ac_func";break]) |
---|
| 56 | AS_IF([test -n "$rtems_missing_func"], |
---|
| 57 | AC_MSG_ERROR([Missing function $rtems_missing_func in libc])]) |
---|
[d020f6f] | 58 | AC_CHECK_FUNCS([__assert]) |
---|
[e83a477] | 59 | AC_CHECK_FUNCS([execl execlp execle execv execvp execve]) |
---|
| 60 | AC_CHECK_FUNCS([regcomp regexec regerror regfree]) |
---|
[8682da39] | 61 | |
---|
| 62 | # Mandated by POSIX, decls not present in some versions of newlib |
---|
[2c0450cb] | 63 | AC_CHECK_DECLS([flockfile],[AC_CHECK_FUNCS([flockfile])],,[#include <stdio.h>]) |
---|
| 64 | AC_CHECK_DECLS([funlockfile],[AC_CHECK_FUNCS([funlockfile])],,[#include <stdio.h>]) |
---|
| 65 | AC_CHECK_DECLS([ftrylockfile],[AC_CHECK_FUNCS([ftrylockfile])],,[#include <stdio.h>]) |
---|
[f4cc6c5] | 66 | |
---|
[b317c391] | 67 | # Newlib proprietary |
---|
| 68 | AC_CHECK_HEADERS([envlock.h]) |
---|
| 69 | AC_CHECK_DECLS([__env_lock],,,[#include <envlock.h>]) |
---|
| 70 | AC_CHECK_DECLS([__env_unlock],,,[#include <envlock.h>]) |
---|
| 71 | |
---|
[7383b644] | 72 | # Mandated by POSIX, older newlibs bogusly provided CLOCK_PROCESS_CPUTIME+CLOCK_THREAD_CPUTIME |
---|
| 73 | AC_CHECK_DECL([CLOCK_PROCESS_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_PROCESS_CPUTIME_ID])],[#include <time.h>]) |
---|
| 74 | AC_CHECK_DECL([CLOCK_THREAD_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_THREAD_CPUTIME_ID])],[#include <time.h>]) |
---|
| 75 | |
---|
[2f797d0] | 76 | # Mandated by POSIX, decls not present in some versions of newlib, |
---|
| 77 | # some versions stubbed in newlib's rtems crt0 |
---|
| 78 | RTEMS_CHECK_FUNC([seteuid],[#include <unistd.h>]) |
---|
| 79 | RTEMS_CHECK_FUNC([geteuid],[#include <unistd.h>]) |
---|
| 80 | RTEMS_CHECK_FUNC([setegid],[#include <unistd.h>]) |
---|
| 81 | RTEMS_CHECK_FUNC([getegid],[#include <unistd.h>]) |
---|
| 82 | RTEMS_CHECK_FUNC([setuid],[#include <unistd.h>]) |
---|
| 83 | RTEMS_CHECK_FUNC([getuid],[#include <unistd.h>]) |
---|
| 84 | RTEMS_CHECK_FUNC([setgid],[#include <unistd.h>]) |
---|
| 85 | RTEMS_CHECK_FUNC([getgid],[#include <unistd.h>]) |
---|
| 86 | RTEMS_CHECK_FUNC([setsid],[#include <unistd.h>]) |
---|
| 87 | RTEMS_CHECK_FUNC([getsid],[#include <unistd.h>]) |
---|
| 88 | RTEMS_CHECK_FUNC([setpgid],[#include <unistd.h>]) |
---|
| 89 | RTEMS_CHECK_FUNC([getpgid],[#include <unistd.h>]) |
---|
| 90 | RTEMS_CHECK_FUNC([setpgrp],[#include <unistd.h>]) |
---|
| 91 | RTEMS_CHECK_FUNC([getpgrp],[#include <unistd.h>]) |
---|
[8682da39] | 92 | |
---|
[199296db] | 93 | # pthread-functions not declared in some versions of newlib. |
---|
[e76a477] | 94 | RTEMS_CHECK_FUNC([pthread_attr_getguardsize],[#include <pthread.h>]) |
---|
| 95 | RTEMS_CHECK_FUNC([pthread_attr_setguardsize],[#include <pthread.h>]) |
---|
| 96 | RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>]) |
---|
| 97 | RTEMS_CHECK_FUNC([pthread_attr_getstack],[#include <pthread.h>]) |
---|
[199296db] | 98 | |
---|
[6649644] | 99 | # Mandated by POSIX, not declared in some versions of newlib. |
---|
| 100 | AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h]) |
---|
| 101 | |
---|
[f4cc6c5] | 102 | # Newlib's unix/ directory |
---|
| 103 | AC_CHECK_FUNCS([ttyname getcwd]) |
---|
[e83a477] | 104 | # </FIXME> |
---|
[f4cc6c5] | 105 | |
---|
[36d9f42f] | 106 | # Check if the installed toolchain provides these headers |
---|
| 107 | # and error out if not. |
---|
| 108 | AC_CHECK_HEADERS([tar.h errno.h sched.h sys/cdefs.h sys/queue.h],, |
---|
| 109 | [rtems_missing_header="$ac_header";break]) |
---|
| 110 | AS_IF([test -n "$rtems_missing_header"], |
---|
| 111 | AC_MSG_ERROR([Missing required header $rtems_missing_header])]) |
---|
[bffdb82] | 112 | |
---|
[85c429b] | 113 | ## error out if libc doesn't provide stdint.h |
---|
[52a634e9] | 114 | AS_IF([test x"${ac_cv_header_stdint_h}" != xyes], |
---|
| 115 | [AC_MSG_ERROR([Required header stdint.h not found])]) |
---|
[d62a2e0] | 116 | |
---|
[85c429b] | 117 | ## error out if libc doesn't provide inttypes.h |
---|
[d62a2e0] | 118 | AS_IF([test x"${ac_cv_header_inttypes_h}" != xyes], |
---|
| 119 | [AC_MSG_ERROR([Required header inttypes.h not found])]) |
---|
[ec75ddc] | 120 | |
---|
[17ed18c0] | 121 | AC_HEADER_STDBOOL |
---|
[19b9991] | 122 | AS_IF([test x"${ac_cv_header_stdbool_h}" != xyes], |
---|
| 123 | [AC_MSG_ERROR([No sufficient stdbool.h found])]) |
---|
[17ed18c0] | 124 | |
---|
[bfe2fd3] | 125 | AC_CHECK_TYPES([ uint8_t, int8_t]) |
---|
| 126 | AC_CHECK_TYPES([uint16_t, int16_t]) |
---|
| 127 | AC_CHECK_TYPES([uint32_t, int32_t]) |
---|
[7b6d1b5] | 128 | AC_CHECK_TYPES([uint64_t, int64_t]) |
---|
[9a673dba] | 129 | AC_CHECK_TYPES([uintmax_t, intmax_t]) |
---|
| 130 | AC_CHECK_TYPES([uintptr_t, intptr_t]) |
---|
| 131 | |
---|
[72e975e] | 132 | # Some toolchain sanity checks and diagnostics |
---|
| 133 | RTEMS_CHECK_GCC_SANITY |
---|
[161016b] | 134 | |
---|
[9a673dba] | 135 | # These are conditionally defined by the toolchain |
---|
| 136 | # FIXME: we should either conditionally compile those parts in |
---|
| 137 | # RTEMS depending on them, or abort - For now, simply check. |
---|
| 138 | AC_CHECK_HEADER([pthread.h],[ |
---|
| 139 | AC_CHECK_TYPES([pthread_rwlock_t]) |
---|
| 140 | AC_CHECK_TYPES([pthread_barrier_t]) |
---|
| 141 | AC_CHECK_TYPES([pthread_spinlock_t]) |
---|
| 142 | ]) |
---|
[bfe2fd3] | 143 | |
---|
[57e278d] | 144 | AC_CHECK_HEADER([signal.h],[ |
---|
| 145 | AC_CHECK_TYPES([sighandler_t]) |
---|
| 146 | ]) |
---|
| 147 | |
---|
[c43981b] | 148 | RTEMS_CHECK_MULTIPROCESSING |
---|
[8d4b5cf] | 149 | RTEMS_CHECK_POSIX_API |
---|
| 150 | RTEMS_CHECK_NETWORKING |
---|
[06dcaf0] | 151 | RTEMS_CHECK_SMP |
---|
[91fadb3] | 152 | |
---|
[ea35fdc6] | 153 | rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"` |
---|
| 154 | rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"` |
---|
| 155 | rtems_revision=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/[[0-9]][[0-9]]*\.//;s/\..*//"` |
---|
| 156 | |
---|
[263ab4b] | 157 | ## This is needed to generate the field offsets of the per CPU |
---|
| 158 | ## data structure so they can be accessed from assembly code. |
---|
| 159 | AC_CHECK_SIZEOF([void *]) |
---|
| 160 | |
---|
[b4dca71] | 161 | _RTEMS_CPUOPT_INIT |
---|
[3da33bf8] | 162 | |
---|
[926e856a] | 163 | RTEMS_CPUOPT([RTEMS_DEBUG], |
---|
| 164 | [test x"${enable_rtems_debug}" = x"yes"], |
---|
| 165 | [1], |
---|
| 166 | [if RTEMS_DEBUG is enabled]) |
---|
| 167 | |
---|
[3da33bf8] | 168 | RTEMS_CPUOPT([RTEMS_MULTIPROCESSING], |
---|
[28caa1d] | 169 | [test x"$enable_multiprocessing" = xyes], |
---|
[3da33bf8] | 170 | [1], |
---|
| 171 | [if multiprocessing is enabled]) |
---|
| 172 | |
---|
| 173 | RTEMS_CPUOPT([RTEMS_NEWLIB], |
---|
[28caa1d] | 174 | [test x"$RTEMS_USE_NEWLIB" = xyes], |
---|
[3da33bf8] | 175 | [1], |
---|
| 176 | [if using newlib]) |
---|
| 177 | |
---|
| 178 | RTEMS_CPUOPT([RTEMS_POSIX_API], |
---|
[28caa1d] | 179 | [test x"$rtems_cv_HAS_POSIX_API" = xyes], |
---|
[3da33bf8] | 180 | [1], |
---|
| 181 | [if posix api is supported]) |
---|
| 182 | |
---|
[06dcaf0] | 183 | RTEMS_CPUOPT([RTEMS_SMP], |
---|
| 184 | [test x"$RTEMS_HAS_SMP" = xyes], |
---|
| 185 | [1], |
---|
| 186 | [if SMP is enabled]) |
---|
| 187 | |
---|
[28caa1d] | 188 | RTEMS_CPUOPT([RTEMS_NETWORKING], |
---|
| 189 | [test x"$rtems_cv_HAS_NETWORKING" = xyes], |
---|
| 190 | [1], |
---|
| 191 | [if networking is enabled]) |
---|
| 192 | |
---|
[3da33bf8] | 193 | RTEMS_CPUOPT([RTEMS_VERSION], |
---|
| 194 | [true], |
---|
[1bcbe41] | 195 | ["]_RTEMS_VERSION["], |
---|
[3da33bf8] | 196 | [RTEMS version string]) |
---|
| 197 | |
---|
[c6f7e060] | 198 | RTEMS_CPUOPT([__RTEMS_USE_TICKS_FOR_STATISTICS__], |
---|
| 199 | [test x"${USE_TICKS_FOR_STATISTICS}" = x"1"], |
---|
| 200 | [1], |
---|
| 201 | [disable nanosecond granularity for statistics]) |
---|
| 202 | |
---|
[c3330a8] | 203 | RTEMS_CPUOPT([__RTEMS_USE_TICKS_CPU_USAGE_STATISTICS__], |
---|
| 204 | [test x"${USE_TICKS_FOR_CPU_USAGE_STATISTICS}" = x"1"], |
---|
| 205 | [1], |
---|
[b4dca71] | 206 | [disable nanosecond granularity for cpu usage statistics]) |
---|
[c3330a8] | 207 | |
---|
| 208 | RTEMS_CPUOPT([__RTEMS_USE_TICKS_RATE_MONOTONIC_STATISTICS__], |
---|
| 209 | [test x"${USE_TICKS_FOR_RATE_MONOTONIC_STATISTICS}" = x"1"], |
---|
| 210 | [1], |
---|
[b4dca71] | 211 | [disable nanosecond granularity for period statistics]) |
---|
[c3330a8] | 212 | |
---|
[e2ba62d1] | 213 | ## This improves both the size and coverage analysis. |
---|
[5603b5a6] | 214 | RTEMS_CPUOPT([__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__], |
---|
| 215 | [test x"${RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH}" = x"1"], |
---|
| 216 | [1], |
---|
[b4dca71] | 217 | [disable inlining _Thread_Enable_dispatch]) |
---|
[5603b5a6] | 218 | |
---|
[e2ba62d1] | 219 | ## This improves both the size and coverage analysis. |
---|
| 220 | RTEMS_CPUOPT([__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__], |
---|
| 221 | [test x"${RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE}" = x"1"], |
---|
| 222 | [1], |
---|
[b4dca71] | 223 | [disable inlining _Thread_Enable_dispatch]) |
---|
[e2ba62d1] | 224 | |
---|
[3a08272] | 225 | ## This improves both the size and coverage analysis. |
---|
| 226 | RTEMS_CPUOPT([__RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY__], |
---|
| 227 | [test x"${RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY}" = x"1"], |
---|
| 228 | [1], |
---|
| 229 | [disable inlining _Thread_queue_Enqueue_priority]) |
---|
| 230 | |
---|
[e2ba62d1] | 231 | ## This gives the same behavior as 4.8 and older |
---|
[66a9239a] | 232 | RTEMS_CPUOPT([__RTEMS_STRICT_ORDER_MUTEX__], |
---|
[a5de1ef] | 233 | [test x"${ENABLE_STRICT_ORDER_MUTEX}" = x"1"], |
---|
[fd84982] | 234 | [1], |
---|
[b4dca71] | 235 | [disable strict order mutex]) |
---|
[fd84982] | 236 | |
---|
[7f5a245d] | 237 | ## Deactivate ada bindings |
---|
| 238 | RTEMS_CPUOPT([__RTEMS_ADA__], |
---|
| 239 | [test x"${enable_ada}" = x"yes"], |
---|
| 240 | [1], |
---|
| 241 | [Define to 1 if ada/gnat bindings are built-in]) |
---|
| 242 | |
---|
[263ab4b] | 243 | ## Then we propagate a private copy of the value into cpuopts.h |
---|
| 244 | ## so it is always available to the RTEMS header files. |
---|
| 245 | |
---|
| 246 | RTEMS_CPUOPT([__RTEMS_SIZEOF_VOID_P__], |
---|
| 247 | [true], |
---|
| 248 | [$ac_cv_sizeof_void_p], |
---|
| 249 | [Size of a void * pointer]) |
---|
| 250 | |
---|
[ea35fdc6] | 251 | RTEMS_CPUOPT([__RTEMS_MAJOR__], |
---|
| 252 | [true], |
---|
| 253 | [$rtems_major], |
---|
| 254 | [major version portion of an RTEMS release]) |
---|
| 255 | |
---|
| 256 | RTEMS_CPUOPT([__RTEMS_MINOR__], |
---|
| 257 | [true], |
---|
| 258 | [$rtems_minor], |
---|
| 259 | [minor version portion of an RTEMS release]) |
---|
| 260 | |
---|
| 261 | RTEMS_CPUOPT([__RTEMS_REVISION__], |
---|
| 262 | [true], |
---|
| 263 | [$rtems_revision], |
---|
| 264 | [revision version portion of an RTEMS release]) |
---|
| 265 | |
---|
[b4dca71] | 266 | _RTEMS_CPUOPT_FINI |
---|
[3da33bf8] | 267 | |
---|
[8217c40] | 268 | AC_ENABLE_MULTILIB([Makefile],[..]) |
---|
| 269 | |
---|
[e30210ea] | 270 | # libmisc/shell/* wants to assign file descriptors to stdio file descriptors. |
---|
| 271 | AC_MSG_CHECKING([for assignable stdio]) |
---|
| 272 | AC_COMPILE_IFELSE( |
---|
| 273 | [AC_LANG_PROGRAM( |
---|
| 274 | [#include <stdio.h>], |
---|
| 275 | [stdin = fopen("/tmp", "r")])], |
---|
| 276 | [HAVE_ASSIGNABLE_STDIO=yes], |
---|
| 277 | [HAVE_ASSIGNABLE_STDIO=no]) |
---|
| 278 | AC_MSG_RESULT([$HAVE_ASSIGNABLE_STDIO]) |
---|
| 279 | |
---|
| 280 | # libmisc/serdbg exploits weak symbols |
---|
[d71ab7fd] | 281 | RTEMS_CHECK_GCC_WEAK |
---|
[f7952533] | 282 | |
---|
[07da959] | 283 | # FIXME: These checks are only in here to provide |
---|
| 284 | # configuration-time diagnostics and are not really used. |
---|
| 285 | AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>]) |
---|
| 286 | AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>]) |
---|
[21d9736] | 287 | |
---|
| 288 | # FIXME: We should get rid of this. |
---|
| 289 | # So far, only used in libfs/src/nfsclient/src/dirutils.c |
---|
| 290 | AC_CHECK_SIZEOF([mode_t]) |
---|
| 291 | AC_CHECK_SIZEOF([off_t]) |
---|
| 292 | |
---|
[ad9eaf26] | 293 | # FIXME: We should get rid of this. It's a cludge. |
---|
| 294 | AC_CHECK_SIZEOF([time_t]) |
---|
| 295 | |
---|
[da0475f] | 296 | # FIXME: Mandatory in SUSv4, optional in SUSv3. |
---|
| 297 | # Not implemented in GCC/newlib, so far. |
---|
| 298 | AC_CHECK_DECLS([WORD_BIT],,,[#include <limits.h>]) |
---|
| 299 | AC_CHECK_DECLS([LONG_BIT],,,[#include <limits.h>]) |
---|
[07da959] | 300 | |
---|
| 301 | ## BSD-ism, excluded from POSIX, but available on most platforms |
---|
| 302 | AC_CHECK_DECLS([sbrk],,,[#include <unistd.h>]) |
---|
[396b80e] | 303 | AC_CHECK_DECLS([rcmd],,,[#include <unistd.h>]) |
---|
[07da959] | 304 | |
---|
| 305 | ## Check if libc provides BSD's strlcpy/strlcat |
---|
| 306 | AC_CHECK_FUNCS(strlcpy strlcat) |
---|
| 307 | |
---|
[74bfa2e4] | 308 | ## Check if libc provides decl of utime |
---|
| 309 | ## FIXME: utime has been deprecated in SUSv4. |
---|
| 310 | ## and is likely to be removed in future versions. |
---|
| 311 | ## FIXME (BUG in newlib): SUSv4 saids including <utime.h> should be sufficient. |
---|
| 312 | AC_CHECK_DECLS([utime],,,[#include <sys/types.h> |
---|
| 313 | #include <utime.h>]) |
---|
| 314 | ## Check if libc provides decl of utimes |
---|
| 315 | AC_CHECK_DECLS([utimes],,,[#include <sys/time.h>]) |
---|
| 316 | |
---|
[07da959] | 317 | # ... far too many conditionals ... |
---|
[f9f51d0] | 318 | AM_CONDITIONAL(LIBRPC,[test x"$rtems_cv_HAS_NETWORKING" = x"yes"]) |
---|
[07da959] | 319 | AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes") |
---|
[b422de6c] | 320 | |
---|
[1bcbe41] | 321 | AM_CONDITIONAL(HAS_MP,test x"$enable_multiprocessing" = x"yes" ) |
---|
[06dcaf0] | 322 | AM_CONDITIONAL(HAS_SMP,[test "$RTEMS_HAS_SMP" = "yes"]) |
---|
[b422de6c] | 323 | |
---|
[2d80c75] | 324 | AM_CONDITIONAL(HAS_PTHREADS,test x"$rtems_cv_HAS_POSIX_API" = x"yes") |
---|
[6e46fa73] | 325 | AM_CONDITIONAL(LIBNETWORKING,test x"$rtems_cv_HAS_NETWORKING" = x"yes") |
---|
[b422de6c] | 326 | |
---|
[720633c] | 327 | AM_CONDITIONAL([LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"]) |
---|
[e30210ea] | 328 | AM_CONDITIONAL([LIBSERDBG],[test x"$rtems_cv_cc_attribute_weak" = x"yes"]) |
---|
[5cad5bf] | 329 | AM_CONDITIONAL([LIBGNAT],[test x"$rtems_cv_HAS_POSIX_API" = x"yes" \ |
---|
| 330 | && test x"$enable_ada" = x"yes"]) |
---|
[e30210ea] | 331 | |
---|
[9f62936] | 332 | AM_CONDITIONAL([LIBDOSFS],[dnl |
---|
[720633c] | 333 | test x"$ac_cv_type_uint8_t" = xyes \ |
---|
[9f62936] | 334 | && test x"$ac_cv_type_uint16_t" = xyes]) |
---|
| 335 | |
---|
[3da33bf8] | 336 | AC_CONFIG_HEADER(config.h) |
---|
| 337 | |
---|
[58d38a0] | 338 | ## These are needed by the NFS Client |
---|
| 339 | AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen) |
---|
| 340 | AM_CONDITIONAL([RPCTOOLS],[test "$RPCGEN" = rpcgen \ |
---|
| 341 | && test -n "$AWK" \ |
---|
| 342 | && test "$enable_rpcgen" = yes]) |
---|
| 343 | |
---|
[ada8d531] | 344 | RTEMS_AMPOLISH3 |
---|
| 345 | |
---|
[70810dc] | 346 | # Explicitly list all Makefiles here |
---|
[b422de6c] | 347 | AC_CONFIG_FILES([ |
---|
[5060d4f] | 348 | Doxyfile |
---|
[b422de6c] | 349 | Makefile |
---|
[1896a650] | 350 | rtems/Makefile |
---|
| 351 | sapi/Makefile |
---|
[eb299afc] | 352 | score/Makefile |
---|
| 353 | score/cpu/Makefile |
---|
[e9d90764] | 354 | score/cpu/arm/Makefile |
---|
[b78d94d] | 355 | score/cpu/bfin/Makefile |
---|
[05f3270] | 356 | score/cpu/avr/Makefile |
---|
[e9d90764] | 357 | score/cpu/h8300/Makefile |
---|
| 358 | score/cpu/i386/Makefile |
---|
[15e44fd] | 359 | score/cpu/lm32/Makefile |
---|
[e9d90764] | 360 | score/cpu/m68k/Makefile |
---|
[0c34b176] | 361 | score/cpu/m32c/Makefile |
---|
[5365e60] | 362 | score/cpu/m32r/Makefile |
---|
[e9d90764] | 363 | score/cpu/mips/Makefile |
---|
[7a28ac8] | 364 | score/cpu/nios2/Makefile |
---|
[e9d90764] | 365 | score/cpu/powerpc/Makefile |
---|
| 366 | score/cpu/sh/Makefile |
---|
| 367 | score/cpu/sparc/Makefile |
---|
[ecbbd968] | 368 | score/cpu/sparc64/Makefile |
---|
[2d7ae960] | 369 | score/cpu/v850/Makefile |
---|
[6b400fed] | 370 | score/cpu/no_cpu/Makefile |
---|
[b422de6c] | 371 | posix/Makefile |
---|
| 372 | libblock/Makefile |
---|
| 373 | libfs/Makefile |
---|
[58d38a0] | 374 | libfs/src/nfsclient/Makefile |
---|
[db27544] | 375 | libgnat/Makefile |
---|
[07da959] | 376 | libcsupport/Makefile |
---|
[b422de6c] | 377 | libnetworking/Makefile |
---|
[da0fc5d] | 378 | librpc/Makefile |
---|
[b422de6c] | 379 | libmisc/Makefile |
---|
[6339f467] | 380 | libi2c/Makefile |
---|
[a70b07b] | 381 | libmd/Makefile |
---|
[fa645f6] | 382 | zlib/Makefile |
---|
[f26145b] | 383 | ftpd/Makefile |
---|
[8280caa4] | 384 | telnetd/Makefile |
---|
[c5bb2a4e] | 385 | pppd/Makefile |
---|
[ba955609] | 386 | mghttpd/Makefile |
---|
[28caa1d] | 387 | wrapup/Makefile]) |
---|
| 388 | |
---|
| 389 | AC_CONFIG_COMMANDS([preinstall-stamp], |
---|
| 390 | [test -z "$with_multisubdir" && ${MAKE} preinstall-stamp], |
---|
| 391 | [MAKE=${MAKE} |
---|
| 392 | with_multisubdir="$with_multisubdir"]) |
---|
[92ed8c2] | 393 | |
---|
[66387986] | 394 | AC_OUTPUT |
---|