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

4.104.114.84.95
Last change on this file since e1d8abb was e1d8abb, checked in by Joel Sherrill <joel.sherrill@…>, on 09/07/99 at 13:45:03

Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@…> which converted many
Makefile.in's to Makefile.am's. This added a lot of files.

  • 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_INLINES
18
19RTEMS_ENV_RTEMSBSP
20
21RTEMS_CHECK_CPU
22RTEMS_CANONICAL_HOST
23
24RTEMS_PROJECT_ROOT
25
26## FIXME: needed for INSTALL_CHANGE in autoconf subdirectories
27RTEMS_PATH_KSH
28
29dnl check target cc
30RTEMS_PROG_CC_FOR_TARGET
31RTEMS_CANONICALIZE_TOOLS
32
33# Check if there is custom/*.cfg for this BSP
34RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
35RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
36RTEMS_CHECK_POSIX_API(RTEMS_BSP)
37
38# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
39if test "$RTEMS_USE_MACROS" = "yes"; then
40  INLINEdir="macros"
41  if test "$HAS_POSIX_API" = "yes"; then
42    # The problem is that there is currently no code in posix/macros :)
43    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
44  fi
45else
46  INLINEdir="inline"
47fi
48AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" )
49AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" )
50
51## Needed when using automake for libs/rels
52RTEMS_CHECK_NEWLIB
53
54## Refuse to build if bsp does not support libposix
55if test "$HAS_POSIX_API" != "yes"; then
56AC_MSG_ERROR([BSP $RTEMS_BSP does not support libposix])
57fi
58
59# If RTEMS macros are enabled, then use them.  Otherwise, refuse to build
60if test "$RTEMS_USE_MACROS" = "yes"; then
61# The problem is that there is currently no code in posix/macros :)
62AC_MSG_ERROR(Macros are not implemented for the POSIX API)
63fi
64
65PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
66AC_SUBST(PROJECT_INCLUDE)
67
68##
69## FIXME: We configure and build the macros subdirectory, too.
70## Should probably use AM_CONDITIONALs to disable them in future
71# Try to explicitly list a Makefile here
72AC_OUTPUT(
73Makefile
74src/Makefile
75include/Makefile
76include/sys/Makefile
77include/rtems/Makefile
78include/rtems/posix/Makefile
79optman/Makefile
80inline/Makefile
81inline/rtems/Makefile
82inline/rtems/posix/Makefile
83macros/Makefile
84macros/rtems/Makefile
85macros/rtems/posix/Makefile
86)
Note: See TracBrowser for help on using the repository browser.