diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-08-18 12:02:20 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-08-18 12:02:20 +0000 |
commit | 284e4fc53310e93c9c331339c4b5c05b9e3f6010 (patch) | |
tree | 327784c6df6ce3aeda757f192e6689e7249b44d7 /c/src/make/aclocal/enable-inlines.m4 | |
parent | 2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-284e4fc53310e93c9c331339c4b5c05b9e3f6010.tar.bz2 |
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/check-itron.m4: New.
* aclocal/enable-inlines.m4: New.
* Makefile.am: Add -I aclocal to ACLOCAL_AMFLAGS.
Diffstat (limited to '')
-rw-r--r-- | c/src/make/aclocal/enable-inlines.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/c/src/make/aclocal/enable-inlines.m4 b/c/src/make/aclocal/enable-inlines.m4 new file mode 100644 index 0000000000..4e0eb80d24 --- /dev/null +++ b/c/src/make/aclocal/enable-inlines.m4 @@ -0,0 +1,17 @@ +dnl $Id$ + +AC_DEFUN(RTEMS_ENABLE_INLINES, +[AC_ARG_ENABLE(rtems-inlines, +[AC_HELP_STRING([--enable-rtems-inlines], +[enable RTEMS inline functions (default:enabled, disable to use macros)])], +[case "${enableval}" in + yes) RTEMS_USE_MACROS=no ;; + no) RTEMS_USE_MACROS=yes ;; + *) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;; +esac],[RTEMS_USE_MACROS=no]) +AC_SUBST(RTEMS_USE_MACROS)dnl + +AS_IF([test x"${RTEMS_USE_MACROS}" = x"yes"], + [AC_DEFINE_UNQUOTED(USE_MACROS,1,[if using macros])], + [AC_DEFINE_UNQUOTED(USE_INLINES,1,[if using inlines])]) +]) |