[66387986] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
[6f9c75c3] | 4 | |
---|
[8ee3775] | 5 | AC_PREREQ([2.68]) |
---|
[fcb0cd46] | 6 | AC_INIT([rtems],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
[e712997] | 7 | AC_CONFIG_SRCDIR([c]) |
---|
[ba74852] | 8 | RTEMS_TOP([.]) |
---|
[254b4450] | 9 | |
---|
[df49c60] | 10 | # Abort if trying to build inside of the source tree. |
---|
[bcf4d5bc] | 11 | AS_IF([test -f aclocal/version.m4],[ |
---|
[df49c60] | 12 | rm -f config.cache config.log confdefs.h |
---|
| 13 | AC_MSG_ERROR([***] |
---|
| 14 | [Attempt to build inside of the source tree] |
---|
| 15 | [Please use a separate build directory, instead] ) |
---|
[bcf4d5bc] | 16 | ]) |
---|
[df49c60] | 17 | |
---|
[e712997] | 18 | AC_CANONICAL_TARGET([]) |
---|
[8ee3775] | 19 | AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip 1.11.1]) |
---|
[6693a68] | 20 | AM_MAINTAINER_MODE |
---|
[04c308c] | 21 | |
---|
[66387986] | 22 | ## These option are only in here to let --help report all supported |
---|
| 23 | ## options. |
---|
[04c308c] | 24 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 25 | RTEMS_ENABLE_POSIX |
---|
| 26 | RTEMS_ENABLE_NETWORKING |
---|
| 27 | RTEMS_ENABLE_CXX |
---|
[3174a7ed] | 28 | RTEMS_ENABLE_TESTS |
---|
[39607984] | 29 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
[9078e097] | 30 | RTEMS_ENABLE_RTEMSBSP |
---|
[ba74852] | 31 | RTEMS_ENABLE_MULTILIB |
---|
[48ad47cc] | 32 | |
---|
[003d4da] | 33 | AC_ARG_ENABLE([docs], |
---|
[7d10416] | 34 | [AS_HELP_STRING([--enable-docs],[enable building documentation |
---|
[003d4da] | 35 | (default:disabled)])]) |
---|
| 36 | |
---|
[48ad47cc] | 37 | ## NOTES: |
---|
| 38 | ## * tools/build are host-native tools to be installed on the host. |
---|
| 39 | ## * tools/cpu are host-native or host-cross-target-tools |
---|
[872cc62] | 40 | |
---|
[0b22af6] | 41 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/build]) |
---|
| 42 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/cpu]) |
---|
[7fe5a88c] | 43 | |
---|
| 44 | # FIXME: tools/schedsim has a lot of problems, don't build by default |
---|
| 45 | AC_ARG_ENABLE([schedsim], |
---|
| 46 | [AS_HELP_STRING([--enable-schedsim],[enable building tools/schedsim (default::disabled)])]) |
---|
| 47 | AS_IF([test "$enable_schedsim" = yes],[ |
---|
[ffc3c64] | 48 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/schedsim]) |
---|
[7fe5a88c] | 49 | ]) |
---|
[3174a7ed] | 50 | |
---|
[6f5b510] | 51 | case $enable_tests in |
---|
| 52 | yes | samples ) |
---|
| 53 | RTEMS_BUILD_CONFIG_SUBDIRS([testsuites/tools]) |
---|
| 54 | ;; |
---|
| 55 | esac |
---|
| 56 | |
---|
[0b22af6] | 57 | # Some BSPs carelessly apply these tools as build-tools |
---|
| 58 | AS_IF([test $host != $build],[ |
---|
[ba74852] | 59 | RTEMS_HOST_CONFIG_SUBDIRS([tools/build]) |
---|
[0b22af6] | 60 | ]) |
---|
[3174a7ed] | 61 | |
---|
[003d4da] | 62 | AS_IF([test x"${enable_docs}" = x"yes"], |
---|
[7a928017] | 63 | [RTEMS_BUILD_CONFIG_SUBDIRS([doc])]) |
---|
[003d4da] | 64 | |
---|
[be3e0f7] | 65 | AS_IF([test x"$enable_multilib" = x"yes"],[ |
---|
| 66 | RTEMS_TARGET_CONFIG_SUBDIRS([cpukit]) |
---|
[6f6cde6f] | 67 | ]) |
---|
[ba74852] | 68 | RTEMS_TARGET_CONFIG_SUBDIRS([c]) |
---|
[254b4450] | 69 | |
---|
[86c2108d] | 70 | AC_CONFIG_FILES([Makefile]) |
---|
[6693a68] | 71 | |
---|
[ba74852] | 72 | AC_OUTPUT |
---|