source: rtems/c/src/exec/posix/configure.in @ 352c9b2

4.104.114.84.95
Last change on this file since 352c9b2 was 352c9b2, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/99 at 22:07:23

This patch adds the basic framework for the ITRON 3.0 API implementation
for RTEMS.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(optman)
7RTEMS_TOP(../../../..)
8AC_CONFIG_AUX_DIR(../../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE(rtems-c-src-exec-posix,$RTEMS_VERSION,no)
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_MULTIPROCESSING
16RTEMS_ENABLE_POSIX
17RTEMS_ENABLE_POSIX
18RTEMS_ENABLE_INLINES
19
20RTEMS_ENV_RTEMSBSP
21
22RTEMS_CHECK_CPU
23RTEMS_CANONICAL_HOST
24
25RTEMS_PROJECT_ROOT
26
27## FIXME: needed for INSTALL_CHANGE in autoconf subdirectories
28RTEMS_PATH_KSH
29
30dnl check target cc
31RTEMS_PROG_CC_FOR_TARGET
32RTEMS_CANONICALIZE_TOOLS
33
34# Check if there is custom/*.cfg for this BSP
35RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
36RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
37RTEMS_CHECK_POSIX_API(RTEMS_BSP)
38
39# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
40if test "$RTEMS_USE_MACROS" = "yes"; then
41  INLINEdir="macros"
42  if test "$HAS_POSIX_API" = "yes"; then
43    # The problem is that there is currently no code in posix/macros :)
44    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
45  fi
46else
47  INLINEdir="inline"
48fi
49AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" )
50AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" )
51
52## Needed when using automake for libs/rels
53RTEMS_CHECK_NEWLIB
54
55## Refuse to build if bsp does not support libposix
56if test "$HAS_POSIX_API" != "yes"; then
57AC_MSG_ERROR([BSP $RTEMS_BSP does not support libposix])
58fi
59
60# If RTEMS macros are enabled, then use them.  Otherwise, refuse to build
61if test "$RTEMS_USE_MACROS" = "yes"; then
62# The problem is that there is currently no code in posix/macros :)
63AC_MSG_ERROR(Macros are not implemented for the POSIX API)
64fi
65
66PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
67AC_SUBST(PROJECT_INCLUDE)
68
69##
70## FIXME: We configure and build the macros subdirectory, too.
71## Should probably use AM_CONDITIONALs to disable them in future
72# Try to explicitly list a Makefile here
73AC_OUTPUT(
74Makefile
75src/Makefile
76include/Makefile
77include/sys/Makefile
78include/rtems/Makefile
79include/rtems/posix/Makefile
80optman/Makefile
81inline/Makefile
82inline/rtems/Makefile
83inline/rtems/posix/Makefile
84macros/Makefile
85macros/rtems/Makefile
86macros/rtems/posix/Makefile
87)
Note: See TracBrowser for help on using the repository browser.