configure.ac: separate -std=gnu99 condition

Also necessary on mingw, cygwin, darwin and netbsd.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-02-04 08:17:44 +00:00
Родитель df2b8c05ba
Коммит cc7dedfb4d
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -615,9 +615,11 @@ AS_IF([test "$GCC" = yes], [
],
[cygwin*|darwin*|netbsd*], [
# need lgamma_r(), finite()
],
[solaris*], [
])
# ANSI (no XCFLAGS because this is C only)
AS_CASE(["$target_os"],
[solaris*], [
# Because "-std=gnu99" affects existance of functions on Solaris,
# "-std=gnu99" will be appended to CPPFLAGS.
for ansi_options in -std=gnu99; do