1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.52) |
---|
6 | AC_INIT |
---|
7 | AC_CONFIG_SRCDIR([exec]) |
---|
8 | RTEMS_TOP(../..) |
---|
9 | AC_CONFIG_AUX_DIR(../..) |
---|
10 | |
---|
11 | RTEMS_ENABLE_CXX |
---|
12 | RTEMS_ENABLE_NETWORKING |
---|
13 | RTEMS_ENABLE_RDBG |
---|
14 | |
---|
15 | RTEMS_CANONICAL_TARGET_CPU |
---|
16 | RTEMS_CANONICAL_HOST |
---|
17 | |
---|
18 | AM_INIT_AUTOMAKE(rtems-c-src,$RTEMS_VERSION,no) |
---|
19 | AM_MAINTAINER_MODE |
---|
20 | |
---|
21 | RTEMS_ENABLE_MULTILIB |
---|
22 | RTEMS_ENV_RTEMSBSP |
---|
23 | RTEMS_CHECK_CPU |
---|
24 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
25 | |
---|
26 | RTEMS_CHECK_NETWORKING(RTEMS_BSP) |
---|
27 | |
---|
28 | ## Note: the order of the directories below is essential |
---|
29 | AC_CONFIG_SUBDIRS(make) |
---|
30 | |
---|
31 | ## Exclude exec from building if multilibs are enabled |
---|
32 | if test x"$multilib" = x"no"; then |
---|
33 | hst_subdirs="$hst_subdirs exec" |
---|
34 | fi |
---|
35 | hst_subdirs="$hst_subdirs lib" |
---|
36 | hst_subdirs="$hst_subdirs lib/libcpu" |
---|
37 | hst_subdirs="$hst_subdirs lib/libbsp" |
---|
38 | hst_subdirs="$hst_subdirs libfs" |
---|
39 | hst_subdirs="$hst_subdirs libmisc" |
---|
40 | |
---|
41 | if test "$RTEMS_CPU" != "unix"; then |
---|
42 | ## HACK: Suppress libchip for unix |
---|
43 | hst_subdirs="$hst_subdirs libchip" |
---|
44 | fi |
---|
45 | |
---|
46 | if test "$HAS_NETWORKING" = "yes"; then |
---|
47 | hst_subdirs="$hst_subdirs libnetworking librpc" |
---|
48 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
49 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
50 | fi |
---|
51 | fi |
---|
52 | |
---|
53 | if test "$HAS_RDBG" = "yes"; then |
---|
54 | hst_subdirs="$hst_subdirs librdbg" |
---|
55 | fi |
---|
56 | AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" ) |
---|
57 | AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" ) |
---|
58 | |
---|
59 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
60 | hst_subdirs="$hst_subdirs librtems++"; |
---|
61 | fi |
---|
62 | |
---|
63 | AC_CONFIG_SUBDIRS($hst_subdirs) |
---|
64 | AC_SUBST(hst_subdirs) |
---|
65 | |
---|
66 | AC_CONFIG_SUBDIRS(wrapup tests) |
---|
67 | |
---|
68 | RTEMS_PROJECT_ROOT |
---|
69 | |
---|
70 | # Explicitly list all Makefiles here |
---|
71 | AC_CONFIG_FILES([Makefile |
---|
72 | ]) |
---|
73 | AC_CONFIG_COMMANDS([default],[[]],[[test -d lib || mkdir lib |
---|
74 | ]]) |
---|
75 | AC_OUTPUT |
---|