From 427b2ac250543a0d1691d0ebf8b4c56adb3b13b2 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 6 Feb 2018 08:00:17 +0000 Subject: [PATCH] configure.ac: removed unnecessary pushdef/popdef git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.ac | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 79a0bebb93..02b334566b 100644 --- a/configure.ac +++ b/configure.ac @@ -1263,13 +1263,11 @@ AC_CACHE_CHECK([appropriate way to simulate va_copy], rb_cv_va_copy, [dnl 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