Ignore:
Timestamp:
Nov 15, 2007, 1:33:29 PM (13 years ago)
Author:
Pascal Terjan
Message:
  • Use autotools for Ruby bindings (2nd part)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r1954 r1962  
    337337  AC_PATH_PROG(RUBY, ruby, no)
    338338  if test "${RUBY}" != "no"; then
    339     AC_MSG_CHECKING(for mkmf.rb)
    340     if "${RUBY}" -e 'require "mkmf"' >/dev/null 2>&1; then
    341       AC_MSG_RESULT(yes)
    342       ac_cv_my_have_ruby="yes"
    343     else
    344       AC_MSG_RESULT(no)
    345     fi
     339    RUBY_ARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@'`
     340    RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitearchdir"@:>@'`
     341    RUBY_LIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@'`
     342    RUBY_SO_NAME=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@'`
     343    AC_SUBST(RUBY_ARCHDIR)
     344    AC_SUBST(RUBY_SITEARCHDIR)
     345    AC_SUBST(RUBY_LIBDIR)
     346    AC_SUBST(RUBY_SO_NAME)
     347    AC_CHECK_HEADERS($RUBY_ARCHDIR/ruby.h, [ac_cv_my_have_ruby="yes"])
    346348  fi
    347349fi
Note: See TracChangeset for help on using the changeset viewer.