* configure.in (RUBY_DEFINE_IF): revert r33534 partially to get

rid of AS_ECHO which is not available in autoconf 2.61.
  [ruby-dev:44702]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-10-27 09:28:21 +00:00
Родитель 723038b0ba
Коммит c1de566071
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Thu Oct 27 18:28:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (RUBY_DEFINE_IF): revert r33534 partially to get
rid of AS_ECHO which is not available in autoconf 2.61.
[ruby-dev:44702]
Thu Oct 27 16:10:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Oct 27 16:10:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (rb_big_divide): raise ZeroDivisionError if divisor is * bignum.c (rb_big_divide): raise ZeroDivisionError if divisor is

Просмотреть файл

@ -797,9 +797,15 @@ if test "$rb_cv_va_args_macro" = yes; then
fi fi
AC_DEFUN([RUBY_DEFINE_IF], [dnl AC_DEFUN([RUBY_DEFINE_IF], [dnl
m4_ifval([$1],[test "$1" && AS_ECHO("@%:@if $1") >> confdefs.h]) m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])cat <<EOH >> confdefs.h
@%:@if $1
EOH
])dnl
AC_DEFINE_UNQUOTED($2, $3)dnl AC_DEFINE_UNQUOTED($2, $3)dnl
m4_ifval([$1],[test "$1" && AS_ECHO("@%:@endif /* $1 */") >> confdefs.h]) m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])cat <<EOH >> confdefs.h
@%:@endif /* $1 */
EOH
])dnl
])dnl ])dnl
dnl RUBY_FUNC_ATTRIBUTE(attrib, macroname, cachevar, condition) dnl RUBY_FUNC_ATTRIBUTE(attrib, macroname, cachevar, condition)