summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36b2a24)
raw | patch | inline | side by side (parent: 36b2a24)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 3 Mar 2007 11:03:38 +0000 (11:03 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 3 Mar 2007 11:03:38 +0000 (11:03 +0000) |
* do more testing before building the ruby extension
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1012 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1012 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/Makefile.am | patch | blob | history | |
program/bindings/ruby/extconf.rb | patch | blob | history | |
program/configure.ac | patch | blob | history |
diff --git a/program/Makefile.am b/program/Makefile.am
index cc9eeff51c006268f95e4480ece0eab7ef101949..4bbab3e13a6b785dc8e7599449a3253046fd26e2 100644 (file)
--- a/program/Makefile.am
+++ b/program/Makefile.am
RSYNC = rsync --rsh=ssh
# build the following subdirectories
-SUBDIRS = src bindings doc examples
+SUBDIRS = src doc examples bindings
# the following files are not mentioned in any other Makefile
EXTRA_DIST = COPYRIGHT CHANGES WIN32-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \
index dc3071248fbc5245a3f6170a96a3ba5961c96114..2045e5a5dca2a06dbc86356eeb520684d5197e85 100644 (file)
elsif /solaris/ =~ RUBY_PLATFORM
$LDFLAGS += '-R$(EPREFIX)/lib'
elsif /hpux/ =~ RUBY_PLATFORM
- $LDFLAGS += '+b$(EPREFIX)/lib';
+ $LDFLAGS += '+b$(EPREFIX)/lib'
elsif /aix/ =~ RUBY_PLATFORM
$LDFLAGS += '-Wl,-blibpath:$(EPREFIX)/lib'
end
diff --git a/program/configure.ac b/program/configure.ac
index c9732dfa4f81cbd2a1e8cf5a1cd92890317f94a1..3af4293b1d61a5fbf87b669d289159283b2bff59 100644 (file)
--- a/program/configure.ac
+++ b/program/configure.ac
+
dnl RRDtool AutoConf script ...
dnl ---------------------------
dnl
AC_ARG_ENABLE(ruby,[ --disable-ruby do not build the ruby modules],
[],[enable_ruby=yes])
+AC_MSG_CHECKING(if ruby modules can be built)
if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
COMP_RUBY=
+ AC_MSG_RESULT(No .. Ruby not found or disabled)
else
- COMP_RUBY="ruby"
-
+ if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
+ COMP_RUBY="ruby"
+ AC_MSG_RESULT(YES)
+ else
+ COMP_RUBY=
+ AC_MSG_RESULT(Ruby found but mkmf is missing! Install the -dev package)
+ fi
fi
-AC_MSG_CHECKING(Ruby Modules to build)
-AC_MSG_RESULT(${COMP_RUBY:-No Ruby Modules will be built})
-
dnl pass additional ruby options when generating Makefile from Makefile.PL
AC_ARG_ENABLE(ruby-site-install,
[ --enable-ruby-site-install by default the rrdtool ruby modules are installed