source: rtems/aclocal/bsp-arg-enable.m4 @ 87a95526

4.104.114.84.9
Last change on this file since 87a95526 was 21d7de3a, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 2, 2001 at 6:30:42 PM

2001-02-02 Ralf Corsepius <corsepiu@…>

  • configre.in: Fix AM_INIT_AUTOMAKE.
  • aclocal/bsp-arg-enable.m4: Extend comments.
  • aclocal/check-bsps.m4: Remove extraneous comments, add test -d in the default clause.
  • Property mode set to 100644
File size: 668 bytes
Line 
1dnl $Id$
2dnl
3dnl RTEMS_BSP_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE])
4dnl
5dnl Accept --enable-FEATURE=<RTEMS_BSP>:<bsp-value> and
6dnl --enable-FEATURE=<value> in BSP-configure scripts.
7dnl
8dnl Configure scripts will receive <bsp-value> if <RTEMS_BSP> matches the
9dnl actual value of the shell variable RTEMS_BSP (cf. RTEMS_ENV_RTEMSBSP),
10dnl and the raw value passed to --enable-FEATURE otherwise.
11dnl
12AC_DEFUN(RTEMS_BSP_ARG_ENABLE,
13[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
14AC_ARG_ENABLE([$1],[$2],
15[enableval=`echo "[$enable_]patsubst([$1], -, _)" | sed -e "s%^${RTEMS_BSP}:%%"`
16  eval "[enable_]patsubst([$1], -, _)='$enableval'"
17$3],[$4])
18])
Note: See TracBrowser for help on using the repository browser.