зеркало из https://github.com/github/ruby.git
Reuse the default `AC_LANG_PROGRAM(C)` definition
This commit is contained in:
Родитель
ad150a1459
Коммит
355bc37196
|
@ -3,15 +3,7 @@ dnl
|
||||||
dnl Autoconf 2.67 fails to detect `-Werror=old-style-definition` due
|
dnl Autoconf 2.67 fails to detect `-Werror=old-style-definition` due
|
||||||
dnl to the old style definition of `main`.
|
dnl to the old style definition of `main`.
|
||||||
m4_version_prereq([2.70], [], [
|
m4_version_prereq([2.70], [], [
|
||||||
m4_define([AC_LANG_PROGRAM(C)],
|
m4_defun([AC_LANG_PROGRAM(C)], m4_bpatsubst(m4_defn([AC_LANG_PROGRAM(C)]), [main ()], [main (void)]))
|
||||||
[$1
|
|
||||||
int
|
|
||||||
main (void)
|
|
||||||
{
|
|
||||||
$2
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}])
|
|
||||||
])dnl
|
])dnl
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN([RUBY_TRY_CFLAGS], [
|
AC_DEFUN([RUBY_TRY_CFLAGS], [
|
||||||
|
|
Загрузка…
Ссылка в новой задаче