source: rtems/c/src/aclocal/bsp-configure.m4 @ 865bffd1

4.115
Last change on this file since 865bffd1 was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on 05/07/12 at 16:08:48

Revert: Remove CVS Ids

See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1dnl $Id$
2
3dnl RTEMS_BSP_CONFIGURE
4dnl Common macro to be included by all bsp-configure.acs
5AC_DEFUN([RTEMS_BSP_CONFIGURE],
6[
7  AC_PREREQ(2.60)
8  AM_MAINTAINER_MODE
9  RTEMS_ENV_RTEMSBSP
10
11  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
12
13  AC_CONFIG_HEADERS([include/bspopts.tmp:include/bspopts.h.in],[
14echo "/* BSP dependent options file */"         >$tmp/config.h
15echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h
16echo                                                  >>$tmp/config.h
17echo "#ifndef __BSP_OPTIONS_H"                        >>$tmp/config.h
18echo "#define __BSP_OPTIONS_H"                        >>$tmp/config.h
19echo                                                  >>$tmp/config.h
20sed \
21  -e '/.*PACKAGE.*/d' \
22  -e '/\/\* Define to.*this package.*\*\//d' \
23include/bspopts.tmp >> $tmp/config.h
24echo                                                  >>$tmp/config.h
25echo "#endif /* __BSP_OPTIONS_H */"                   >>$tmp/config.h
26  AS_IF([cmp -s include/bspopts.h $tmp/config.h 2>/dev/null],[
27    AC_MSG_NOTICE([include/bspopts.h is unchanged])
28    rm -f $tmp/config.h],[
29    AC_MSG_NOTICE([creating include/bspopts.h])
30    rm -f include/bspopts.h
31    mv $tmp/config.h include/bspopts.h
32  ])
33])
34  RTEMS_PROJECT_ROOT
35
36  RTEMS_CHECK_MULTIPROCESSING
37
38  RTEMS_BSP_BOOTCARD_OPTIONS
39])
Note: See TracBrowser for help on using the repository browser.