4.104.114.84.95
Last change
on this file since 3959276e was
d2efe941,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/23/03 at 15:39:37
|
2003-10-23 Ralf Corsepius <corsepiu@…>
- acinclude.m4: Merge-in former ../aclocal/config-subdirs.m4.
- configure.ac: remove RTEMS_CANONICAL_HOST.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1b16201e] | 1 | dnl $Id$ |
---|
| 2 | |
---|
| 3 | dnl check if RTEMS support a cpu |
---|
| 4 | AC_DEFUN(RTEMS_CHECK_CPU, |
---|
| 5 | [dnl |
---|
| 6 | AC_REQUIRE([RTEMS_TOP]) |
---|
| 7 | AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU]) |
---|
| 8 | |
---|
| 9 | # Is this a supported CPU? |
---|
| 10 | AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported]) |
---|
| 11 | # FIXME: Temporary hack |
---|
| 12 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/$RTEMS_CPU"; then |
---|
| 13 | AC_MSG_RESULT(yes) |
---|
| 14 | else |
---|
| 15 | AC_MSG_ERROR(no) |
---|
| 16 | fi |
---|
| 17 | ])dnl |
---|
| 18 | |
---|
[d2efe941] | 19 | dnl |
---|
| 20 | dnl Misc utility macros for subdir handling to work around missing abilities |
---|
| 21 | dnl in autoconf, automake and structural issues with RTEMS |
---|
| 22 | dnl |
---|
| 23 | dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus' |
---|
| 24 | dnl configure.in. |
---|
| 25 | dnl |
---|
| 26 | |
---|
| 27 | dnl |
---|
| 28 | dnl _AC_DOTS(PATH) |
---|
| 29 | dnl |
---|
| 30 | AC_DEFUN(_AC_DOTS,[ |
---|
| 31 | # A "../" for each directory in $1. |
---|
| 32 | ac_dots=`echo $1 | \ |
---|
| 33 | sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` |
---|
| 34 | ]) |
---|
| 35 | |
---|
| 36 | dnl |
---|
| 37 | dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR]) |
---|
| 38 | dnl |
---|
| 39 | AC_DEFUN(_RTEMS_ADJUST_SRCDIR,[ |
---|
| 40 | _AC_DOTS(ifelse([$3], ,[$2],[$3/$2])) |
---|
| 41 | |
---|
| 42 | case "$srcdir" in |
---|
| 43 | .) # No --srcdir option. We are building in place. |
---|
| 44 | $1=$srcdir ;; |
---|
| 45 | [[\\/]]* | ?:[[\\/]]*) # Absolute path. |
---|
| 46 | $1=$srcdir/$2 ;; |
---|
| 47 | *) # Relative path. |
---|
| 48 | $1=$ac_dots$srcdir/$2 ;; |
---|
| 49 | esac |
---|
| 50 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.