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(optman) |
---|
7 | RTEMS_TOP(../../../..) |
---|
8 | AC_CONFIG_AUX_DIR(../../../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | |
---|
12 | AM_INIT_AUTOMAKE(rtems-c-src-exec-posix,$RTEMS_VERSION,no) |
---|
13 | AM_MAINTAINER_MODE |
---|
14 | |
---|
15 | RTEMS_ENABLE_POSIX |
---|
16 | RTEMS_ENABLE_INLINES |
---|
17 | |
---|
18 | RTEMS_ENV_RTEMSCPU |
---|
19 | |
---|
20 | RTEMS_CHECK_CPU |
---|
21 | RTEMS_CANONICAL_HOST |
---|
22 | |
---|
23 | RTEMS_PROJECT_ROOT |
---|
24 | |
---|
25 | RTEMS_PROG_CC_FOR_TARGET |
---|
26 | RTEMS_CANONICALIZE_TOOLS |
---|
27 | |
---|
28 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
29 | RTEMS_CHECK_POSIX_API(RTEMS_BSP) |
---|
30 | |
---|
31 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
32 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
33 | INLINEdir="macros" |
---|
34 | if test "$HAS_POSIX_API" = "yes"; then |
---|
35 | # The problem is that there is currently no code in posix/macros :) |
---|
36 | AC_MSG_ERROR(Macros are not implemented for the POSIX API) |
---|
37 | fi |
---|
38 | else |
---|
39 | INLINEdir="inline" |
---|
40 | fi |
---|
41 | AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" ) |
---|
42 | AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" ) |
---|
43 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" ) |
---|
44 | |
---|
45 | ## Needed when using automake for libs/rels |
---|
46 | RTEMS_CHECK_NEWLIB |
---|
47 | |
---|
48 | ## Refuse to build if bsp does not support libposix |
---|
49 | if test "$HAS_POSIX_API" != "yes"; then |
---|
50 | AC_MSG_ERROR([BSP $RTEMS_BSP does not support libposix]) |
---|
51 | fi |
---|
52 | |
---|
53 | # If RTEMS macros are enabled, then use them. Otherwise, refuse to build |
---|
54 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
55 | # The problem is that there is currently no code in posix/macros :) |
---|
56 | AC_MSG_ERROR(Macros are not implemented for the POSIX API) |
---|
57 | fi |
---|
58 | |
---|
59 | # Explicitly list all Makefiles here |
---|
60 | AC_OUTPUT( |
---|
61 | Makefile |
---|
62 | src/Makefile |
---|
63 | include/Makefile |
---|
64 | include/sys/Makefile |
---|
65 | include/rtems/Makefile |
---|
66 | include/rtems/posix/Makefile |
---|
67 | optman/Makefile |
---|
68 | inline/Makefile |
---|
69 | inline/rtems/Makefile |
---|
70 | inline/rtems/posix/Makefile |
---|
71 | macros/Makefile |
---|
72 | macros/rtems/Makefile |
---|
73 | macros/rtems/posix/Makefile |
---|
74 | ) |
---|