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 | AC_CONFIG_SUBDIRS(make) |
---|
29 | |
---|
30 | ## Exclude exec from building if multilibs are enabled |
---|
31 | if test x"$multilib" = x"no"; then |
---|
32 | hst_subdirs="$hst_subdirs exec" |
---|
33 | fi |
---|
34 | hst_subdirs="$hst_subdirs lib" |
---|
35 | hst_subdirs="$hst_subdirs lib/libcpu" |
---|
36 | hst_subdirs="$hst_subdirs lib/libbsp" |
---|
37 | hst_subdirs="$hst_subdirs libfs" |
---|
38 | hst_subdirs="$hst_subdirs libmisc" |
---|
39 | |
---|
40 | if test "$RTEMS_CPU" != "unix"; then |
---|
41 | ## HACK: Suppress libchip for unix |
---|
42 | hst_subdirs="$hst_subdirs libchip" |
---|
43 | fi |
---|
44 | |
---|
45 | if test "$HAS_NETWORKING" = "yes"; then |
---|
46 | hst_subdirs="$hst_subdirs libnetworking librpc" |
---|
47 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
48 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
49 | fi |
---|
50 | fi |
---|
51 | |
---|
52 | if test "$HAS_RDBG" = "yes"; then |
---|
53 | hst_subdirs="$hst_subdirs librdbg" |
---|
54 | fi |
---|
55 | AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" ) |
---|
56 | AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" ) |
---|
57 | |
---|
58 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
59 | hst_subdirs="$hst_subdirs librtems++"; |
---|
60 | fi |
---|
61 | |
---|
62 | AC_CONFIG_SUBDIRS($hst_subdirs) |
---|
63 | AC_SUBST(hst_subdirs) |
---|
64 | |
---|
65 | AC_CONFIG_SUBDIRS(wrapup tests) |
---|
66 | |
---|
67 | RTEMS_PROJECT_ROOT |
---|
68 | |
---|
69 | # Explicitly list all Makefiles here |
---|
70 | AC_OUTPUT( |
---|
71 | Makefile |
---|
72 | ,, |
---|
73 | test -d lib || mkdir lib |
---|
74 | ) |
---|