make progs type checking optional at configure time. still defaults to on.

This commit is contained in:
Bill Currie 2001-06-08 00:11:54 +00:00
parent b2cd7c6c36
commit 05cf89dd5d
4 changed files with 11 additions and 2 deletions

View file

@ -130,5 +130,8 @@
/* Define this if you have _mkdir */
#undef HAVE__mkdir
/* Define this if you want progs typechecking */
#undef TYPECHECK_PROGS
@BOTTOM@
#endif // __config_h_

View file

@ -1152,6 +1152,12 @@ AC_ARG_ENABLE(optimize,
optimize=yes
)
AC_ARG_ENABLE(typecheck-progs,
[ --disable-typecheck-progs disable type checking on progs field access])
if test "x$enable_typecheck_progs" != xno; then
AC_DEFINE(TYPECHECK_PROGS)
fi
AC_ARG_WITH(amd,
[ --with-amd Optimize for AMD processors instead of Intel],
HAVE_AMD="yes",

View file

@ -182,7 +182,7 @@ typedef struct
extern sv_fields_t sv_fields;
#if 1
#if TYPECHECK_PROGS
#define SVFIELD(e,f,t) E_var (e, PR_AccessField (&sv_pr_state, #f, ev_##t, __FILE__, __LINE__), t)
#else
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)

View file

@ -157,7 +157,7 @@ typedef struct
extern sv_fields_t sv_fields;
#if 1
#if TYPECHECK_PROGS
#define SVFIELD(e,f,t) E_var (e, PR_AccessField (&sv_pr_state, #f, ev_##t, __FILE__, __LINE__), t)
#else
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)