source: rtems/c/src/lib/configure.in @ a719382

4.104.114.84.95
Last change on this file since a719382 was a719382, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 30, 1999 at 6:38:26 PM

Patch from Ralf Corsepius <corsepiu@…> to move
c/src/lib/librtems++ and c/src/lib/include/rtems++ to
their own package librtems++ at the top of the tree.

To apply:

mkdir c/src/librtems++
cp c/src/lib/librtems++/README c/src/librtems++
mkdir c/src/librtems++/src
cp c/src/lib/librtems++/*.cc c/src/librtems++/src
cp c/src/lib/librtems++/Makefile.in c/src/librtems++/src
mkdir c/src/librtems++/include
mkdir c/src/librtems++/include/rtems++
cp c/src/lib/include/rtems++/*.h c/src/librtems++/include/rtems++
patch -p1 <rtems-rc-19990802-5.diff
rm -rf c/src/lib/librtems++
rm -rf c/src/lib/include/rtems++
./autogen

Attention:

  • The procedure above copies the files first, then patches them and finally removes the old files afterwards. This has been done to enable you to copy the files in CVS to preserve their history.
  • Property mode set to 100644
File size: 4.6 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(libbsp)
7RTEMS_TOP(../../..)
8AC_CONFIG_AUX_DIR(../../..)
9
10AC_PROG_MAKE_SET
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_MULTIPROCESSING
16RTEMS_ENABLE_NETWORKING
17RTEMS_ENABLE_RDBG
18RTEMS_ENABLE_CXX
19RTEMS_ENABLE_GCC28
20RTEMS_ENABLE_LIBCDIR
21RTEMS_ENABLE_BARE
22RTEMS_ENABLE_HWAPI
23
24RTEMS_ENV_RTEMSBSP
25
26AC_PROG_INSTALL
27
28RTEMS_CHECK_CPU
29RTEMS_CANONICAL_HOST
30
31RTEMS_PROJECT_ROOT
32
33dnl check target cc
34RTEMS_PROG_CC_FOR_TARGET
35
36RTEMS_CANONICALIZE_TOOLS
37
38dnl if this is an i386, does gas have good code16 support?
39RTEMS_I386_GAS_CODE16
40AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes");
41
42# find all the Makefiles for the BSPs
43makefiles="$makefiles libbsp/$RTEMS_CPU/Makefile"
44
45if test "${RTEMS_BSP}" = "bare"; then
46makefiles="$makefiles libbsp/bare/Makefile"
47fi
48
49RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
50RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
51RTEMS_CHECK_NETWORKING(RTEMS_BSP)
52
53RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir)
54
55# Is there code where there should be for this BSP?
56# The bare bsp is a special case as it is not under the RTEMS_CPU path
57case ${RTEMS_BSP} in
58  bare)
59    bspcpudir=
60    if test "X${BARE_CPU_CFLAGS}" = "X" ; then
61      AC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp])
62    fi
63    if test "X${BARE_CPU_MODEL}" = "X" ; then
64      AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])
65    fi
66    ;;
67  *)
68    bspcpudir=$RTEMS_CPU/
69    ;;
70esac
71
72if test "$RTEMS_BSP" = "bare" ; then
73  RTEMS_LIBBSP_CPU_SUBDIR="bare"
74else
75  RTEMS_LIBBSP_CPU_SUBDIR='$(RTEMS_CPU)'
76fi
77AC_SUBST(RTEMS_LIBBSP_CPU_SUBDIR)
78     
79if test -d "$srcdir/libbsp/$bspcpudir$bspdir"; then
80  RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}$bspdir)
81  RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}shared)
82
83  # HACK: sed out bsp-tools from makefiles
84  t="libbsp/$bspcpudir$bspdir/tools"
85  if test -d "$srcdir/$t"; then
86    bsptools_cfgdirs="$bsptools_cfgdirs $t"
87    makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
88  fi
89else
90  AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  ${RTEMS_BSP}])
91fi
92
93if test "$HAS_MP" = "yes"; then
94  makefiles="$makefiles libbsp/shmdr/Makefile"
95else
96  # HACK: sed out shmsupp/Makefile from makefiles
97  t="libbsp/$bspcpudir$bspdir/shmsupp"
98  makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
99fi
100
101AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")
102# find all the CPU dependent library Makefiles
103RTEMS_CHECK_MAKEFILE(libcpu/$RTEMS_CPU)
104
105dnl Workaround for go32
106case "${target}" in
107changequote(,)dnl
108  i[3456]86-go32-rtems*)
109changequote([,])dnl
110    ;;
111  *)
112    RTEMS_CHECK_MAKEFILE(start/$RTEMS_CPU)
113    ;;
114esac
115
116# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
117if test "$HAS_NETWORKING" = "yes"; then
118  RTEMS_CHECK_MAKEFILE(libnetworking)
119  RTEMS_CHECK_MAKEFILE(librpc)
120
121  if test "$RTEMS_HAS_RDBG" = "yes"; then
122    RTEMS_CHECK_RDBG(RTEMS_BSP)
123
124    if test "$HAS_RDBG" = "yes"; then
125      AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen)
126      AC_PROG_AWK
127      if test -z "$RPCGEN"; then
128        AC_MSG_ERROR([missing rpcgen, required to build librdbg])
129      fi
130      if test -z "$AWK"; then
131        AC_MSG_ERROR([missing awk, required to build librdbg])
132      fi
133    fi
134    if test "$HAS_RDBG" = "yes"; then
135      RTEMS_CHECK_MAKEFILE(librdbg)
136    fi
137  fi
138fi
139
140# If the HWAPI is enabled, the find the HWAPI Makefiles
141RTEMS_ENABLE_HWAPI
142if test "$RTEMS_HAS_HWAPI" = "yes"; then
143  AC_MSG_CHECKING(whether libwapi is present)
144  if test -f ${srcdir}/libhwapi/Makefile.in ; then
145    AC_MSG_RESULT(yes)
146    makefiles="$makefiles libhwapi/Makefile"
147    RTEMS_CHECK_MAKEFILE(libhwapi/analog)
148    RTEMS_CHECK_MAKEFILE(libhwapi/discrete)
149    RTEMS_CHECK_MAKEFILE(libhwapi/drivers)
150    RTEMS_CHECK_MAKEFILE(libhwapi/non_volatile_memory)
151    RTEMS_CHECK_MAKEFILE(libhwapi/serial)
152    RTEMS_CHECK_MAKEFILE(libhwapi/support)
153    RTEMS_CHECK_MAKEFILE(libhwapi/wrapup)
154  else
155    AC_MSG_ERROR(No source code found for the HWAPI)
156  fi
157fi
158
159AC_SUBST(RTEMS_HAS_CPLUSPLUS)
160AC_SUBST(RTEMS_USE_GCC272)
161AC_SUBST(CC_CFLAGS_DEFAULT)
162AC_SUBST(CC_CFLAGS_DEBUG_V)
163AC_SUBST(CC_CFLAGS_PROFILE_V)
164AC_SUBST(CC_LDFLAGS_PROFILE_V)
165
166# pick up all the Makefiles in required parts of the tree
167if test "$RTEMS_CPU" != "unix"; then
168## HACK: Suppress libchip for unix
169RTEMS_CHECK_MAKEFILE(libchip)
170fi
171
172RTEMS_CHECK_MAKEFILE(libmisc)
173
174AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
175
176# FIXME: libhwapi needs a separate configure.in in future ;-
177# AC_CONFIG_SUBDIRS(libhwapi)
178
179# try to explicitly list a Makefile here
180AC_OUTPUT(
181Makefile
182include/Makefile
183libbsp/Makefile
184libc/Makefile
185libcpu/Makefile
186start/Makefile
187wrapup/Makefile
188$makefiles)
Note: See TracBrowser for help on using the repository browser.