ruby-changes:54091
From: naruse <ko1@a...>
Date: Tue, 11 Dec 2018 00:48:52 +0900 (JST)
Subject: [ruby-changes:54091] naruse:r66312 (trunk): fix r66311
naruse 2018-12-11 00:48:45 +0900 (Tue, 11 Dec 2018) New Revision: 66312 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66312 Log: fix r66311 Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 66311) +++ configure.ac (revision 66312) @@ -730,12 +730,14 @@ test -z "${ac_env_CFLAGS_set}" -a -n "${ https://github.com/ruby/ruby/blob/trunk/configure.ac#L730 test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\"" } -AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ - int main(void) { - return __extension__ ({ int a = 0; a; }); - } - ]])], - [AC_DEFINE(HAVE_STMT_AND_DECL_IN_EXPR, 1)]) +AC_CACHE_CHECK([whether compiler has statement and declarations in expressions], + rb_cv_have_stmt_and_decl_in_expr, + [AC_TRY_COMPILE([],[ __extension__ ({ int a = 0; a; }); ], + [rb_cv_have_stmt_and_decl_in_expr=yes], + [rb_cv_have_stmt_and_decl_in_expr=no])]) +AS_IF([test "$rb_cv_have_stmt_and_decl_in_expr" = yes], [ + AC_DEFINE(HAVE_STMT_AND_DECL_IN_EXPR) +]) : "header and library section" && { AC_ARG_WITH(winnt-ver, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/