Changeset 1951


Ignore:
Timestamp:
Nov 14, 2007, 12:55:01 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Autotoolified the Ruby bindings. Use --enable-ruby.
Location:
libcaca/trunk
Files:
2 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/Makefile.am

    r1878 r1951  
    11# $Id$
    22
    3 SUBDIRS = kernel cucul caca src test tools cxx doc
     3SUBDIRS = kernel cucul caca src test tools cxx ruby doc
    44DIST_SUBDIRS = $(SUBDIRS) msvc
    55
  • libcaca/trunk/configure.ac

    r1912 r1951  
    6363AC_ARG_ENABLE(cxx,
    6464  [  --enable-cxx            C++ bindings (default disabled)])
     65AC_ARG_ENABLE(ruby,
     66  [  --enable-ruby           Ruby bindings (default disabled)])
    6567
    6668dnl example programs features
     
    318320AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes")
    319321
     322# Build the Ruby bindings?
     323ac_cv_my_have_ruby="no"
     324if test "${enable_ruby}" = "yes"; then
     325  AC_PATH_PROG(RUBY, ruby, no)
     326  if test "${RUBY}" != "no"; then
     327    AC_MSG_CHECKING(for mkmf.rb)
     328    if "${RUBY}" -e 'require "mkmf"' >/dev/null 2>&1; then
     329      AC_MSG_RESULT(yes)
     330      ac_cv_my_have_ruby="yes"
     331    else
     332      AC_MSG_RESULT(no)
     333    fi
     334  fi
     335fi
     336AM_CONDITIONAL(USE_RUBY, test "${ac_cv_my_have_ruby}" = "yes")
     337
    320338# Build cacaserver?
    321339ac_cv_my_have_network="no"
     
    379397  tools/Makefile
    380398  cxx/Makefile
     399  ruby/Makefile
    381400  doc/Makefile
    382401  msvc/Makefile
Note: See TracChangeset for help on using the changeset viewer.