Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f86fb1e
commit a2ea4ec
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
dnl -*- Autoconf -*- | ||
AC_DEFUN([RUBY_SHARED_GC],[ | ||
AC_ARG_WITH(shared-gc, | ||
AS_HELP_STRING([--with-shared-gc], | ||
[Enable replacement of Ruby's GC from a shared library.]), | ||
[with_shared_gc=$withval], [unset with_shared_gc] | ||
) | ||
AC_SUBST([with_shared_gc]) | ||
AC_MSG_CHECKING([if Ruby is build with shared GC support]) | ||
AS_IF([test "$with_shared_gc" = "yes"], [ | ||
AC_MSG_RESULT([yes]) | ||
AC_DEFINE([USE_SHARED_GC], [1]) | ||
], [ | ||
AC_MSG_RESULT([no]) | ||
with_shared_gc="no" | ||
AC_DEFINE([USE_SHARED_GC], [0]) | ||
]) | ||
])dnl |