1From 912a8dcfc5369d840dcd6bf0f88ee0bac7d902d6 Mon Sep 17 00:00:00 2001 2From: Nobuyoshi Nakada <nobu@ruby-lang.org> 3Date: Thu, 30 Sep 2021 18:24:37 +0900 4Subject: [PATCH] Needs `AC_PROG_CC` 5 6Although `AC_PROG_CC_C99` has been obsolete, `AC_PROG_CC` is not 7and the latter is necessary not to make C++ compiler mandatory. 8 9[Retrieved from: 10https://github.com/ruby/ruby/commit/912a8dcfc5369d840dcd6bf0f88ee0bac7d902d6] 11Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 12--- 13 configure.ac | 2 +- 14 1 file changed, 1 insertion(+), 1 deletion(-) 15 16diff --git a/configure.ac b/configure.ac 17index b24a8f59b0d2..c7059ee1ecf4 100644 18--- a/configure.ac 19+++ b/configure.ac 20@@ -218,7 +218,7 @@ rb_test_CXXFLAGS=${CXXFLAGS+yes} 21 # BSD's ports and MacPorts prefix GNU binutils with 'g' 22 23 dnl Seems necessarily in order to add -std=gnu99 option for gcc 4.9. 24-m4_version_prereq([2.70], [], [AC_PROG_CC_C99]) 25+m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C99]) 26 27 AC_PROG_CXX 28 AC_PROG_CPP 29