source: rtems/aclocal/enable-inlines.m4 @ 4f2064f1

4.104.114.84.9
Last change on this file since 4f2064f1 was e05468fb, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 6, 2002 at 11:16:52 AM

2002-11-06 Ralf Corsepius <corsepiu@…>

Further preparations for autoconf > 2.52:

  • aclocal/enable-inlines.m4: Use AS_IF instead of if/then/else.
  • aclocal/quoting.m4: Use eval echo $ac_args to unquote $ac_arg.
  • aclocal/target.m4: Use eval echo $rtems_args to unquote $ac_arg.
  • Property mode set to 100644
File size: 575 bytes
Line 
1dnl $Id$
2
3AC_DEFUN(RTEMS_ENABLE_INLINES,
4[AC_ARG_ENABLE(rtems-inlines,
5[AC_HELP_STRING([--enable-rtems-inlines],
6[enable RTEMS inline functions (default:enabled, disable to use macros)])],
7[case "${enableval}" in
8  yes) RTEMS_USE_MACROS=no ;;
9  no) RTEMS_USE_MACROS=yes ;;
10  *)  AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
11esac],[RTEMS_USE_MACROS=no])
12AC_SUBST(RTEMS_USE_MACROS)dnl
13
14AS_IF([test x"${RTEMS_USE_MACROS}" = x"yes"],
15  [AC_DEFINE_UNQUOTED(USE_MACROS,1,[if using macros])],
16  [AC_DEFINE_UNQUOTED(USE_INLINES,1,[if using inlines])])
17])
Note: See TracBrowser for help on using the repository browser.