1AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],[Enable debug build options])], [enable_debug=$enableval], [enable_debug="no"])
2if test "x$enable_debug" = "xyes"; then
3    AC_DEFINE([DEBUG], 1, [Debug Mode])
4fi
5AC_ARG_ENABLE([assert], [AS_HELP_STRING([--enable-assert],[Enable assert build options])], [enable_assert=$enableval], [enable_assert="no"])
6if test "x$enable_assert" = "xyes"; then
7    AC_DEFINE([ENABLE_ASSERT], 1, [Asserts Enabled])
8fi
9
10AC_ARG_ENABLE([unimplemented], [AS_HELP_STRING([--enable-unimplemented],[Enable unimplemented asserts options])], [enable_unimplemented=$enableval], [enable_unimplemented="no"])
11if test "x$enable_unimplemented" = "xyes"; then
12    AC_DEFINE([ENABLE_UNIMPLEMENTED_ASSERT], 1, [Asserts Enabled])
13fi
14
15
16INLINE=''
17AC_ARG_ENABLE([inline], [AS_HELP_STRING([--disable-inline], [Do not use inline functions])], [enable_inline=$enableval], [enable_inline="yes"])
18if test "x$enable_inline" = "xyes"; then
19    INLINE="inline"
20fi
21AC_DEFINE_UNQUOTED(INLINE, $INLINE, [Inlining status])
22
23AC_ARG_ENABLE([perf], [AS_HELP_STRING([--disable-perf], [Disable performance statistics])], [enable_perf=$enableval], [enable_perf="yes"])
24if test "x$enable_perf" = "xyes"; then
25    AC_DEFINE([RZB_PERF], 1, [Performance Stats])
26fi
27
28AC_ARG_ENABLE([profile], [AS_HELP_STRING([--enable-profile], [Enable profile build options])], [enable_profile=$enableval], [enable_profile="no"])
29if test "x$enable_profile" = "xyes"; then
30    AC_DEFINE([PROFILE], 1, [Profiling])
31    PROFILE_LDFLAGS="-XCClinker -pg"
32fi
33
34