[eb299afc] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | dnl |
---|
| 3 | dnl $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ(2.13) |
---|
| 6 | AC_INIT(score) |
---|
| 7 | RTEMS_TOP(../../..) |
---|
| 8 | AC_CONFIG_AUX_DIR(../../..) |
---|
| 9 | |
---|
| 10 | AC_PROG_MAKE_SET |
---|
| 11 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 12 | |
---|
| 13 | AM_MAINTAINER_MODE |
---|
| 14 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 15 | RTEMS_ENABLE_POSIX |
---|
| 16 | RTEMS_ENABLE_NETWORKING |
---|
| 17 | RTEMS_ENABLE_INLINES |
---|
| 18 | RTEMS_ENABLE_CXX |
---|
| 19 | RTEMS_ENABLE_GCC28 |
---|
| 20 | RTEMS_ENABLE_LIBCDIR |
---|
| 21 | |
---|
| 22 | RTEMS_ENV_RTEMSBSP |
---|
| 23 | |
---|
| 24 | AC_PROG_LN_S |
---|
| 25 | AC_PROG_INSTALL |
---|
| 26 | RTEMS_PATH_KSH |
---|
| 27 | |
---|
| 28 | RTEMS_CHECK_CPU |
---|
| 29 | RTEMS_CANONICAL_HOST |
---|
| 30 | |
---|
| 31 | RTEMS_PROJECT_ROOT |
---|
| 32 | |
---|
| 33 | dnl check target cc |
---|
| 34 | RTEMS_PROG_CC_FOR_TARGET |
---|
| 35 | |
---|
| 36 | dnl check for g++ |
---|
| 37 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 38 | RTEMS_PROG_CXX_FOR_TARGET |
---|
| 39 | fi |
---|
| 40 | |
---|
| 41 | RTEMS_CANONICALIZE_TOOLS |
---|
| 42 | |
---|
| 43 | dnl if this is an i386, does gas have good code16 support? |
---|
| 44 | RTEMS_I386_GAS_CODE16 |
---|
| 45 | |
---|
| 46 | RTEMS_CHECK_SYSV_UNIX |
---|
| 47 | |
---|
| 48 | RTEMS_CHECK_NEWLIB |
---|
| 49 | |
---|
| 50 | # Check if there is custom/*.cfg for this BSP |
---|
| 51 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
| 52 | |
---|
[1896a650] | 53 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
| 54 | |
---|
| 55 | # find all the Executive Makefiles |
---|
| 56 | RTEMS_CHECK_MAKEFILE(score/cpu/$RTEMS_CPU) |
---|
| 57 | |
---|
[eb299afc] | 58 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
| 59 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
[1896a650] | 60 | inline_dir="macros" |
---|
[eb299afc] | 61 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
| 62 | # The problem is that there is currently no code in posix/macros :) |
---|
| 63 | AC_MSG_ERROR(Macros are not implemented for the POSIX API) |
---|
| 64 | fi |
---|
| 65 | else |
---|
[1896a650] | 66 | inline_dir="inline" |
---|
| 67 | fi |
---|
| 68 | |
---|
| 69 | if test "$RTEMS_HAS_POSIX_API" = "yes"; then |
---|
| 70 | makefiles="$makefiles posix/Makefile" |
---|
| 71 | makefiles="$makefiles posix/src/Makefile" |
---|
| 72 | makefiles="$makefiles posix/include/Makefile" |
---|
| 73 | makefiles="$makefiles posix/include/sys/Makefile" |
---|
| 74 | makefiles="$makefiles posix/include/rtems/Makefile" |
---|
| 75 | makefiles="$makefiles posix/include/rtems/posix/Makefile" |
---|
| 76 | makefiles="$makefiles posix/include/wrap/Makefile" |
---|
| 77 | makefiles="$makefiles posix/optman/Makefile" |
---|
| 78 | makefiles="$makefiles wrapup/posix/Makefile" |
---|
| 79 | |
---|
| 80 | makefiles="$makefiles posix/${inline_dir}/Makefile" |
---|
| 81 | makefiles="$makefiles posix/${inline_dir}/rtems/Makefile" |
---|
| 82 | makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile" |
---|
[eb299afc] | 83 | fi |
---|
| 84 | |
---|
| 85 | AC_SUBST(RTEMS_VERSION) |
---|
| 86 | |
---|
| 87 | AC_SUBST(rtems_cv_prog_cc_cross) |
---|
| 88 | AC_SUBST(RTEMS_HAS_CPLUSPLUS) |
---|
| 89 | AC_SUBST(RTEMS_USE_GCC272) |
---|
| 90 | AC_SUBST(program_prefix) |
---|
| 91 | AC_SUBST(CC_CFLAGS_DEFAULT) |
---|
| 92 | AC_SUBST(CC_CFLAGS_DEBUG_V) |
---|
| 93 | AC_SUBST(CC_CFLAGS_PROFILE_V) |
---|
| 94 | AC_SUBST(CC_LDFLAGS_PROFILE_V) |
---|
| 95 | |
---|
| 96 | # Try to explicitly list a Makefile here |
---|
| 97 | AC_OUTPUT( |
---|
| 98 | Makefile |
---|
[1896a650] | 99 | rtems/Makefile |
---|
| 100 | rtems/src/Makefile |
---|
| 101 | rtems/include/Makefile |
---|
| 102 | rtems/include/wrap/Makefile |
---|
| 103 | rtems/include/rtems/Makefile |
---|
| 104 | rtems/include/rtems/rtems/Makefile |
---|
| 105 | rtems/optman/Makefile |
---|
| 106 | rtems/${inline_dir}/Makefile |
---|
| 107 | rtems/${inline_dir}/rtems/Makefile |
---|
| 108 | rtems/${inline_dir}/rtems/rtems/Makefile |
---|
| 109 | sapi/Makefile |
---|
| 110 | sapi/src/Makefile |
---|
| 111 | sapi/include/Makefile |
---|
| 112 | sapi/include/wrap/Makefile |
---|
| 113 | sapi/include/rtems/Makefile |
---|
| 114 | sapi/include/rtems/sptables.h |
---|
| 115 | sapi/${inline_dir}/Makefile |
---|
| 116 | sapi/${inline_dir}/rtems/Makefile |
---|
| 117 | sapi/optman/Makefile |
---|
[eb299afc] | 118 | score/Makefile |
---|
| 119 | score/cpu/Makefile |
---|
| 120 | score/include/Makefile |
---|
| 121 | score/include/rtems/Makefile |
---|
| 122 | score/include/rtems/wrap/Makefile |
---|
| 123 | score/include/rtems/score/Makefile |
---|
| 124 | score/${inline_dir}/Makefile |
---|
| 125 | score/${inline_dir}/rtems/Makefile |
---|
| 126 | score/${inline_dir}/rtems/score/Makefile |
---|
| 127 | score/src/Makefile |
---|
| 128 | wrapup/Makefile |
---|
| 129 | wrapup/rtems/Makefile |
---|
| 130 | $makefiles |
---|
| 131 | ) |
---|
[1896a650] | 132 | |
---|