if test "x$RUBY" != "x"; then
RUBY_INCLUDES="-I`ruby $TOP_DIR/config/config_ruby.rb INCLUDES`"
RUBY_LIBS="-L`ruby $TOP_DIR/config/config_ruby.rb lib` -lruby"
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS $RUBY_INCLUDES"
+ AC_CHECK_HEADER(ruby.h,,[
+ AC_MSG_WARN([Unable to find header ruby.h. The Ruby packages will not be built])
+ RUBY=
+ ])
+ CPPFLAGS=$save_CPPFLAGS
fi
AC_SUBST(RUBY_INCLUDES)
AC_SUBST(RUBY_LIBS)