ruby/tool/m4/ruby_check_header.m4
nagachika dc4ca25e0a merge revision(s) 22e4eeda65, 1ab7c412d2, fd549b229b: [Backport #20515]
ci: Test whether GMP is working in compilers.yml (#10875)

	Avoid reoccurence of [Bug #20515]

	Requires https://github.com/ruby/ruby/pull/10876 since 18eaf0be90

	bug: https://bugs.ruby-lang.org/issues/20515

	RUBY_CHECK_HEADER didn't define HAVE_{header-file} (#10876)

	--with-gmp is not working at all because HAVE_GMP_H
	was missing since 18eaf0be90. [Bug #20515]

	bug: https://bugs.ruby-lang.org/issues/20515
	follow-up: https://bugs.ruby-lang.org/issues/20494
	follow-up: 18eaf0be90
	follow-up: https://github.com/ruby/ruby/pull/10805

	test_bignum: defined? returns String (#10880)
	MIME-Version: 1.0
	Content-Type: text/plain; charset=UTF-8
	Content-Transfer-Encoding: 8bit

	didn't verify the test is working properly due to mistaken auto-merge… [Bug #20515]

	bug: https://bugs.ruby-lang.org/issues/20515
	follow-up: 22e4eeda65
	follow-up: https://github.com/ruby/ruby/pull/10875
2024-06-15 13:13:19 +09:00

8 lines
271 B
Text

dnl -*- Autoconf -*-
AC_DEFUN([RUBY_CHECK_HEADER],
[# RUBY_CHECK_HEADER($@)
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS m4_if([$5], [], [$INCFLAGS], [$5])"
AC_CHECK_HEADERS([$1], [$2], [$3], [$4])
CPPFLAGS="$save_CPPFLAGS"
unset save_CPPFLAGS])