Commit bde47d3b authored by Roland Levillain's avatar Roland Levillain
Browse files

Do not require Ruby for Swilena.

	* m4/with-swilena.m4 (_OLN_WITH_SWIG): Disable tests on Ruby.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3952 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 5a52d6a9
2009-06-03 Roland Levillain <roland@lrde.epita.fr>
Do not require Ruby for Swilena.
* m4/with-swilena.m4 (_OLN_WITH_SWIG): Disable tests on Ruby.
2009-05-29 Thierry Geraud <thierry.geraud@lrde.epita.fr>
Update makefile list.
......
......@@ -50,28 +50,33 @@ if test x$with_swig != xno; then
CPPFLAGS=$save_CPPFLAGS
# Check for Ruby.
AC_CHECK_PROGS([RUBY], [ruby], [$am_aux_dir/missing ruby])
if test "x$RUBY" = "x$am_aux_dir/missing ruby"; then
AC_MSG_ERROR([no suitable Ruby interpreter found])
fi
AC_ARG_VAR([RUBY_CPPFLAGS], [Path to ruby.h])
AC_ARG_WITH([ruby-includedir], [Include path for ruby.h],
[RUBY_CPPFLAGS="-I$withval"],
[RUBY_CPPFLAGS="-I`$RUBY -e 'puts $:.join("\n")' | \
while read line
do
if [[ -f ${line}/ruby.h ]]; then
echo $line
fi
done`"])
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
AC_CHECK_HEADERS([ruby.h], [],
[AC_MSG_ERROR(
[You need Ruby development files to compile the Ruby interface.])])
CPPFLAGS=$save_CPPFLAGS
# FIXME: Disabled. Swilena does not support Ruby again (as it used to
# in Olena 0.11). Moreover, the user should be given the choice
# between the front ends (Python, Ruby, etc.); enabling Swilena shall
# not systematically imply compiling the *whole* back ends!
#
# # Check for Ruby.
# AC_CHECK_PROGS([RUBY], [ruby], [$am_aux_dir/missing ruby])
# if test "x$RUBY" = "x$am_aux_dir/missing ruby"; then
# AC_MSG_ERROR([no suitable Ruby interpreter found])
# fi
#
# AC_ARG_VAR([RUBY_CPPFLAGS], [Path to ruby.h])
# AC_ARG_WITH([ruby-includedir], [Include path for ruby.h],
# [RUBY_CPPFLAGS="-I$withval"],
# [RUBY_CPPFLAGS="-I`$RUBY -e 'puts $:.join("\n")' | \
# while read line
# do
# if [[ -f ${line}/ruby.h ]]; then
# echo $line
# fi
# done`"])
# save_CPPFLAGS=$CPPFLAGS
# CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
# AC_CHECK_HEADERS([ruby.h], [],
# [AC_MSG_ERROR(
# [You need Ruby development files to compile the Ruby interface.])])
# CPPFLAGS=$save_CPPFLAGS
AC_PROG_SWIG([1.3.31])
if (eval "$SWIG -version") >/dev/null 2>&1; then :; else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment