2002-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* aclocal/bsp-configure.m4: Create bspopts.h on the fly, filter out
	autoconf-2.53 PACKAGE crap.
This commit is contained in:
Ralf Corsepius
2002-08-29 15:54:00 +00:00
parent 6c15108b60
commit 72f4ec871e
2 changed files with 23 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2002-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/bsp-configure.m4: Create bspopts.h on the fly, filter out
autoconf-2.53 PACKAGE crap.
2002-08-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/prog-gnat.m4: New.

View File

@@ -12,7 +12,24 @@ AC_DEFUN([RTEMS_BSP_CONFIGURE],
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
RTEMS_CANONICAL_HOST
AM_CONFIG_HEADER([include/bspopts.h])
AM_CONFIG_HEADER([include/bspopts.tmp:include/bspopts.h.in],[
echo "/* BSP dependent options file */" >$tmp/config.h
echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h
echo >>$tmp/config.h
echo "#ifndef __BSP_OPTIONS_h" >>$tmp/config.h
echo "#define __BSP_OPTIONS_h" >>$tmp/config.h
echo >>$tmp/config.h
sed -e '/.*PACKAGE.*/d' include/bspopts.tmp >> $tmp/config.h
echo >>$tmp/config.h
echo "#endif" >>$tmp/config.h
AS_IF([cmp -s include/bspopts.h $tmp/config.h 2>/dev/null],[
AC_MSG_NOTICE([include/bspopts.h is unchanged])
rm -f $tmp/config.h],[
AC_MSG_NOTICE([creating include/bspopts.h])
rm -f include/bspopts.h
mv $tmp/config.h include/bspopts.h
])
])
RTEMS_PROJECT_ROOT
RTEMS_CHECK_MULTIPROCESSING