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(exec) |
---|
7 | RTEMS_TOP(../..) |
---|
8 | AC_CONFIG_AUX_DIR(../..) |
---|
9 | |
---|
10 | RTEMS_ENABLE_CXX |
---|
11 | RTEMS_ENABLE_NETWORKING |
---|
12 | RTEMS_ENABLE_RDBG |
---|
13 | |
---|
14 | RTEMS_CANONICAL_TARGET_CPU |
---|
15 | RTEMS_CANONICAL_HOST |
---|
16 | |
---|
17 | AM_INIT_AUTOMAKE(rtems-c-src,$RTEMS_VERSION,no) |
---|
18 | AM_MAINTAINER_MODE |
---|
19 | |
---|
20 | RTEMS_ENABLE_MULTILIB |
---|
21 | RTEMS_ENV_RTEMSBSP |
---|
22 | RTEMS_CHECK_CPU |
---|
23 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
24 | |
---|
25 | RTEMS_CHECK_NETWORKING(RTEMS_BSP) |
---|
26 | |
---|
27 | ## Note: the order of the directories below is essential |
---|
28 | cfg_subdirs="make" |
---|
29 | ## Exclude exec from building if multilibs are enabled |
---|
30 | if test x"$multilib" = x"no"; then |
---|
31 | cfg_subdirs="$cfg_subdirs exec" |
---|
32 | fi |
---|
33 | cfg_subdirs="$cfg_subdirs lib" |
---|
34 | cfg_subdirs="$cfg_subdirs lib/libcpu lib/libbsp" |
---|
35 | cfg_subdirs="$cfg_subdirs libfs libmisc" |
---|
36 | |
---|
37 | if test "$RTEMS_CPU" != "unix"; then |
---|
38 | ## HACK: Suppress libchip for unix |
---|
39 | cfg_subdirs="$cfg_subdirs libchip" |
---|
40 | fi |
---|
41 | |
---|
42 | if test "$HAS_NETWORKING" = "yes"; then |
---|
43 | cfg_subdirs="$cfg_subdirs libnetworking librpc" |
---|
44 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
45 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
46 | fi |
---|
47 | fi |
---|
48 | |
---|
49 | if test "$HAS_RDBG" = "yes"; then |
---|
50 | cfg_subdirs="$cfg_subdirs librdbg" |
---|
51 | fi |
---|
52 | AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" ) |
---|
53 | AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" ) |
---|
54 | |
---|
55 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
56 | cfg_subdirs="$cfg_subdirs librtems++"; |
---|
57 | fi |
---|
58 | |
---|
59 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
60 | AC_SUBST(cfg_subdirs) |
---|
61 | AC_CONFIG_SUBDIRS(tests) |
---|
62 | |
---|
63 | RTEMS_PROJECT_ROOT |
---|
64 | |
---|
65 | RTEMS_PROG_CC_FOR_TARGET |
---|
66 | RTEMS_CANONICALIZE_TOOLS |
---|
67 | |
---|
68 | # Explicitly list all Makefiles here |
---|
69 | AC_OUTPUT( |
---|
70 | Makefile |
---|
71 | wrapup/Makefile |
---|
72 | ) |
---|