mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Override AC_C_PROGRAM
on old autoconf
Autoconf 2.69 fails to detect `-Werror=old-style-definition` due to the old style definition of `main`.
This commit is contained in:
parent
2c25427496
commit
ad150a1459
1 changed files with 15 additions and 0 deletions
|
@ -1,4 +1,19 @@
|
||||||
dnl -*- Autoconf -*-
|
dnl -*- Autoconf -*-
|
||||||
|
dnl
|
||||||
|
dnl Autoconf 2.67 fails to detect `-Werror=old-style-definition` due
|
||||||
|
dnl to the old style definition of `main`.
|
||||||
|
m4_version_prereq([2.70], [], [
|
||||||
|
m4_define([AC_LANG_PROGRAM(C)],
|
||||||
|
[$1
|
||||||
|
int
|
||||||
|
main (void)
|
||||||
|
{
|
||||||
|
$2
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}])
|
||||||
|
])dnl
|
||||||
|
dnl
|
||||||
AC_DEFUN([RUBY_TRY_CFLAGS], [
|
AC_DEFUN([RUBY_TRY_CFLAGS], [
|
||||||
AC_MSG_CHECKING([whether ]$1[ is accepted as CFLAGS])
|
AC_MSG_CHECKING([whether ]$1[ is accepted as CFLAGS])
|
||||||
RUBY_WERROR_FLAG([
|
RUBY_WERROR_FLAG([
|
||||||
|
|
Loading…
Reference in a new issue