4.104.114.84.95
Last change
on this file since 6b7ab9bf was
8cdb582,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/12/99 at 15:41:33
|
Patch from Ralf Corsepius <corsepiu@…>:
This patch addresses a few minor issues and contains a few (minor)
preparations for automake.
- configure.in: Fix for handing c/src/tests subdirectory handling (FIX)
- aclocal/rtems-top.m4:
+ Add TARGET_SUBDIR and --with-target-subdir (preparation of future
enhancements for cross-compiling)
+ Activate RTEMS_ROOT handling (automake preparation)
- automake/*.am: replace comments "#" with "##" so that comments won't
get included into Makefile.in's anymore
- c/update-tools/* automake support (NEW)
- ./autogen update/enhancement (cf. ./autogen for details)
After applying this patch please run:
./autogen
cvs add c/update-tools/configure.in
cvs add c/update-tools/Makefile.am
cvs add c/update-tools/aclocal.m4
|
-
Property mode set to
100644
|
File size:
999 bytes
|
Line | |
---|
1 | dnl $Id$ |
---|
2 | |
---|
3 | dnl |
---|
4 | dnl RTEMS_TOP($1) |
---|
5 | dnl |
---|
6 | dnl $1 .. relative path from this configure.in to the toplevel configure.in |
---|
7 | dnl |
---|
8 | AC_DEFUN(RTEMS_TOP, |
---|
9 | [dnl |
---|
10 | AC_ARG_WITH(target-subdir, |
---|
11 | [ --with-target-subdir=DIR], |
---|
12 | TARGET_SUBDIR="$withval", |
---|
13 | TARGET_SUBDIR=".") |
---|
14 | |
---|
15 | RTEMS_TOPdir="$1"; |
---|
16 | AC_SUBST(RTEMS_TOPdir) |
---|
17 | |
---|
18 | PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; |
---|
19 | test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.." |
---|
20 | AC_SUBST(PROJECT_ROOT) |
---|
21 | |
---|
22 | dnl Determine RTEMS Version string from the VERSION file |
---|
23 | dnl Hopefully, Joel never changes its format ;- |
---|
24 | AC_MSG_CHECKING([for RTEMS Version]) |
---|
25 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
26 | changequote(,)dnl |
---|
27 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
28 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
29 | changequote([,])dnl |
---|
30 | else |
---|
31 | AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION) |
---|
32 | fi |
---|
33 | if test -z "$RTEMS_VERSION"; then |
---|
34 | AC_MSG_ERROR(Unable to determine version) |
---|
35 | fi |
---|
36 | AC_MSG_RESULT($RTEMS_VERSION) |
---|
37 | |
---|
38 | RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir; |
---|
39 | AC_SUBST(RTEMS_ROOT) |
---|
40 | ])dnl |
---|
Note: See
TracBrowser
for help on using the repository browser.