source: rtems/c/acinclude.m4 @ 180ae7a1

4.104.114.84.95
Last change on this file since 180ae7a1 was dfc099fd, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 26, 2003 at 6:06:05 AM

2003-11-26 Ralf Corsepius <corsepiu@…>

  • acinclude.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[1b16201e]1dnl $Id$
2
3dnl check if RTEMS support a cpu
[dfc099fd]4AC_DEFUN([RTEMS_CHECK_CPU],
[1b16201e]5[dnl
6AC_REQUIRE([RTEMS_TOP])
7AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
8
9# Is this a supported CPU?
10AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
11# FIXME: Temporary hack
12if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/$RTEMS_CPU"; then
13  AC_MSG_RESULT(yes)
14else
15  AC_MSG_ERROR(no)
16fi
17])dnl
18
[d2efe941]19dnl
20dnl Misc utility macros for subdir handling to work around missing abilities
21dnl in autoconf, automake and structural issues with RTEMS
22dnl
23dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
24dnl configure.in.
25dnl
26
27dnl
28dnl _AC_DOTS(PATH)
29dnl
[dfc099fd]30AC_DEFUN([_AC_DOTS],[
[d2efe941]31# A "../" for each directory in $1.
32    ac_dots=`echo $1 | \
33             sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
34])
35
36dnl
37dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
38dnl
[dfc099fd]39AC_DEFUN([_RTEMS_ADJUST_SRCDIR],[
[d2efe941]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.