1 AC_DEFUN([AM_DISPATCH_STYLE],
3 AC_MSG_CHECKING(dispatch style)
4 AC_ARG_WITH(dispatch,[ --with-dispatch=(VOID/NONE/VTBL/CASE) Style of operator dispatch implementation (defaults to CASE).],
5 dispatch_style="$withval", dispatch_style="CASE")
7 case "x$dispatch_style" in
9 AC_DEFINE_UNQUOTED(DISPATCHSTYLE, [DISPATCHSTYLE_$dispatch_style], [Define to one of the macros listed in source/classtreemacros.h])
12 AC_DEFINE_UNQUOTED(DISPATCHSTYLE, [DISPATCHSTYLE_$dispatch_style], [Define to one of the macros listed in source/classtreemacros.h])
15 AC_DEFINE_UNQUOTED(DISPATCHSTYLE, [DISPATCHSTYLE_$dispatch_style], [Define to one of the macros listed in source/classtreemacros.h])
18 AC_DEFINE_UNQUOTED(DISPATCHSTYLE, [DISPATCHSTYLE_$dispatch_style], [Define to one of the macros listed in source/classtreemacros.h])
21 AC_MSG_ERROR( [Invalid dispatch style: $dispatch_style] )
25 AC_MSG_RESULT($dispatch_style)