* Merged with default branch at rev 16f3633aaa5a.
[cacao.git] / configure.ac
index 20886c8023a544ff29c46979072dc95350253bbd..94ba4b3187efb8383cb63d59329f004c3009542e 100644 (file)
@@ -497,6 +497,23 @@ if test x"${ENABLE_MEMCHECK}" = "xyes"; then
 fi
 
 
+dnl check for handles (indirection cells) support
+AC_MSG_CHECKING(whether handles (indirection cells) should be enabled)
+AC_ARG_ENABLE([handles],
+              [AS_HELP_STRING(--enable-handles,enable handles (indirection cells) [[default=no]])],
+              [case "${enableval}" in
+                   yes) ENABLE_HANDLES=yes;;
+                   *) ENABLE_HANDLES=no;;
+               esac],
+              [ENABLE_HANDLES=no])
+AC_MSG_RESULT(${ENABLE_HANDLES})
+AM_CONDITIONAL([ENABLE_HANDLES], test x"${ENABLE_HANDLES}" = "xyes")
+
+if test x"${ENABLE_HANDLES}" = "xyes"; then
+    AC_DEFINE([ENABLE_HANDLES], 1, [enable handles (indirection cells)])
+fi
+
+
 dnl check for vmlog support
 AC_MSG_CHECKING(whether vmlog tracing should be enabled)
 AC_ARG_ENABLE([vmlog],
@@ -1012,4 +1029,4 @@ AC_OUTPUT
 ## c-basic-offset: 4
 ## tab-width: 8
 ## compile-command: "automake --add-missing"
-## End:
+## End:
\ No newline at end of file