null+****@clear*****
null+****@clear*****
2012年 6月 9日 (土) 19:17:57 JST
Kouhei Sutou 2012-06-09 19:17:57 +0900 (Sat, 09 Jun 2012)
New Revision: 6ab5b9c7c346ac6fe2caa52131d3c60eef818eb3
Log:
Use "-not-found" suffix for Ruby 1.9 is not found case
Modified files:
configure.ac
Modified: configure.ac (+4 -3)
===================================================================
--- configure.ac 2012-06-09 19:08:51 +0900 (0e0be94)
+++ configure.ac 2012-06-09 19:17:57 +0900 (2b029d0)
@@ -682,14 +682,15 @@ if test "x$RUBY" = "xno"; then
RUBY=
else
if test "x$RUBY" = "xyes"; then
- AC_PATH_PROGS(RUBY, [ruby1.9 ruby19 ruby1.9.1], none)
- if test "$RUBY" != "none"; then
+ AC_PATH_PROGS(RUBY, [ruby1.9 ruby19 ruby1.9.1], ruby19-not-found)
+ if test "$RUBY" != "ruby19-not-found"; then
ac_cv_ruby_available="yes"
fi
else
AC_CHECK_FILE([$RUBY],
[ac_cv_ruby_available="yes"],
- [AC_MSG_WARN([$RUBY is not found. Disable HTTP test.])])
+ [AC_MSG_WARN([$RUBY is not found. Disable HTTP test.])
+ RUBY="$RUBY-not-found"])
fi
fi
AC_SUBST(RUBY)