ruby-changes:50129
From: nobu <ko1@a...>
Date: Tue, 6 Feb 2018 17:00:22 +0900 (JST)
Subject: [ruby-changes:50129] nobu:r62247 (trunk): configure.ac: removed unnecessary pushdef/popdef
nobu 2018-02-06 17:00:17 +0900 (Tue, 06 Feb 2018) New Revision: 62247 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62247 Log: configure.ac: removed unnecessary pushdef/popdef Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 62246) +++ configure.ac (revision 62247) @@ -1263,13 +1263,11 @@ AC_CACHE_CHECK([appropriate way to simul https://github.com/ruby/ruby/blob/trunk/configure.ac#L1263 RUBY_CHECK_VA_COPY([va_copy via memcpy], [memcpy(&(dst), &(src), sizeof(va_list))]) ]) -if test "x$rb_cv_va_copy" = x; then +AS_IF([test "x$rb_cv_va_copy" = x], [ AC_ERROR([no way to simulate va_copy]) -else - m4_pushdef([macro], AS_TR_CPP(HAVE_$1)) - AC_DEFINE_UNQUOTED(macro($rb_cv_va_copy)) - m4_popdef([macro]) -fi +], [ + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$rb_cv_va_copy)) +]) AC_CACHE_CHECK([for alignas() syntax], rb_cv_have_alignas, [ rb_cv_have_alignas=no -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/