source: rtems/c/src/aclocal/bsp-arg-enable.m4 @ 6e868d87

4.115
Last change on this file since 6e868d87 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

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