ruby-changes:49865
From: shyouhei <ko1@a...>
Date: Sat, 20 Jan 2018 16:15:07 +0900 (JST)
Subject: [ruby-changes:49865] shyouhei:r61983 (trunk): Emacs friendliness [ci skip]
shyouhei 2018-01-20 16:14:59 +0900 (Sat, 20 Jan 2018) New Revision: 61983 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61983 Log: Emacs friendliness [ci skip] Just add comment by: sed -i $'1i\\\n# -*- Autoconf -*-' tool/m4/*.m4 Modified files: trunk/tool/m4/_colorize_result_prepare.m4 trunk/tool/m4/ac_checking.m4 trunk/tool/m4/ac_msg_result.m4 trunk/tool/m4/colorize_result.m4 trunk/tool/m4/ruby_append_option.m4 trunk/tool/m4/ruby_append_options.m4 trunk/tool/m4/ruby_check_builtin_func.m4 trunk/tool/m4/ruby_check_builtin_setjmp.m4 trunk/tool/m4/ruby_check_printf_prefix.m4 trunk/tool/m4/ruby_check_setjmp.m4 trunk/tool/m4/ruby_check_signedness.m4 trunk/tool/m4/ruby_check_sizeof.m4 trunk/tool/m4/ruby_check_sysconf.m4 trunk/tool/m4/ruby_cppoutfile.m4 trunk/tool/m4/ruby_decl_attribute.m4 trunk/tool/m4/ruby_default_arch.m4 trunk/tool/m4/ruby_define_if.m4 trunk/tool/m4/ruby_defint.m4 trunk/tool/m4/ruby_dtrace_available.m4 trunk/tool/m4/ruby_dtrace_postprocess.m4 trunk/tool/m4/ruby_func_attribute.m4 trunk/tool/m4/ruby_mingw32.m4 trunk/tool/m4/ruby_prepend_option.m4 trunk/tool/m4/ruby_prepend_options.m4 trunk/tool/m4/ruby_prog_gnu_ld.m4 trunk/tool/m4/ruby_replace_type.m4 trunk/tool/m4/ruby_rm_recursive.m4 trunk/tool/m4/ruby_setjmp_type.m4 trunk/tool/m4/ruby_stack_grow_direction.m4 trunk/tool/m4/ruby_try_cflags.m4 trunk/tool/m4/ruby_try_ldflags.m4 trunk/tool/m4/ruby_type_attribute.m4 trunk/tool/m4/ruby_universal_arch.m4 trunk/tool/m4/ruby_werror_flag.m4 Index: tool/m4/ruby_prog_gnu_ld.m4 =================================================================== --- tool/m4/ruby_prog_gnu_ld.m4 (revision 61982) +++ tool/m4/ruby_prog_gnu_ld.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_prog_gnu_ld.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_PROG_GNU_LD], [AC_CACHE_CHECK(whether the linker is GNU ld, rb_cv_prog_gnu_ld, [AS_IF([`$CC $CFLAGS $CPPFLAGS $LDFLAGS --print-prog-name=ld 2>&1` -v 2>&1 | grep "GNU ld" > /dev/null], [ Index: tool/m4/ruby_check_setjmp.m4 =================================================================== --- tool/m4/ruby_check_setjmp.m4 (revision 61982) +++ tool/m4/ruby_check_setjmp.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_setjmp.m4#L1 +# -*- Autoconf -*- # used for AC_ARG_WITH(setjmp-type) AC_DEFUN([RUBY_CHECK_SETJMP], [ AC_CACHE_CHECK([for ]$1[ as a macro or function], ac_cv_func_$1, Index: tool/m4/ruby_dtrace_available.m4 =================================================================== --- tool/m4/ruby_dtrace_available.m4 (revision 61982) +++ tool/m4/ruby_dtrace_available.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_dtrace_available.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_DTRACE_AVAILABLE], [AC_CACHE_CHECK(whether dtrace USDT is available, rb_cv_dtrace_available, [ Index: tool/m4/ruby_rm_recursive.m4 =================================================================== --- tool/m4/ruby_rm_recursive.m4 (revision 61982) +++ tool/m4/ruby_rm_recursive.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_rm_recursive.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_RM_RECURSIVE], [ m4_version_prereq([2.70], [-1], [ # suppress error messages, rm: cannot remove 'conftest.dSYM', from Index: tool/m4/ruby_universal_arch.m4 =================================================================== --- tool/m4/ruby_universal_arch.m4 (revision 61982) +++ tool/m4/ruby_universal_arch.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_universal_arch.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_UNIVERSAL_ARCH], [ # RUBY_UNIVERSAL_ARCH begin ARCH_FLAG=`expr " $CXXFLAGS " : ['.* \(-m[0-9][0-9]*\) ']` Index: tool/m4/ruby_dtrace_postprocess.m4 =================================================================== --- tool/m4/ruby_dtrace_postprocess.m4 (revision 61982) +++ tool/m4/ruby_dtrace_postprocess.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_dtrace_postprocess.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_DTRACE_POSTPROCESS], [AC_CACHE_CHECK(whether $DTRACE needs post processing, rb_cv_prog_dtrace_g, [ Index: tool/m4/ruby_prepend_options.m4 =================================================================== --- tool/m4/ruby_prepend_options.m4 (revision 61982) +++ tool/m4/ruby_prepend_options.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_prepend_options.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_PREPEND_OPTIONS], [# RUBY_PREPEND_OPTIONS($1) unset rb_opts; for rb_opt in $2; do Index: tool/m4/ruby_define_if.m4 =================================================================== --- tool/m4/ruby_define_if.m4 (revision 61982) +++ tool/m4/ruby_define_if.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_define_if.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_DEFINE_IF], [dnl m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])cat <<EOH >> confdefs.h @%:@if $1 Index: tool/m4/ruby_try_ldflags.m4 =================================================================== --- tool/m4/ruby_try_ldflags.m4 (revision 61982) +++ tool/m4/ruby_try_ldflags.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_try_ldflags.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_TRY_LDFLAGS], [ save_LDFLAGS="$LDFLAGS" LDFLAGS="[$]LDFLAGS $1" Index: tool/m4/ruby_cppoutfile.m4 =================================================================== --- tool/m4/ruby_cppoutfile.m4 (revision 61982) +++ tool/m4/ruby_cppoutfile.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_cppoutfile.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_CPPOUTFILE], [AC_CACHE_CHECK(whether ${CPP} accepts -o, rb_cv_cppoutfile, [save_CPPFLAGS="$CPPFLAGS" Index: tool/m4/ruby_replace_type.m4 =================================================================== --- tool/m4/ruby_replace_type.m4 (revision 61982) +++ tool/m4/ruby_replace_type.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_replace_type.m4#L1 +# -*- Autoconf -*- dnl RUBY_REPLACE_TYPE [typename] [default type] [macro type] [included] AC_DEFUN([RUBY_REPLACE_TYPE], [dnl AC_CHECK_TYPE([$1], Index: tool/m4/ruby_check_printf_prefix.m4 =================================================================== --- tool/m4/ruby_check_printf_prefix.m4 (revision 61982) +++ tool/m4/ruby_check_printf_prefix.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_printf_prefix.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_CHECK_PRINTF_PREFIX], [ AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[ [rb_cv_pri_prefix_]AS_TR_SH($1)=[NONE] Index: tool/m4/ruby_func_attribute.m4 =================================================================== --- tool/m4/ruby_func_attribute.m4 (revision 61982) +++ tool/m4/ruby_func_attribute.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_func_attribute.m4#L1 +# -*- Autoconf -*- dnl RUBY_FUNC_ATTRIBUTE(attrib, macroname, cachevar, condition) AC_DEFUN([RUBY_FUNC_ATTRIBUTE], [dnl RUBY_DECL_ATTRIBUTE([$1], [$2], [$3], [$4], Index: tool/m4/ruby_append_options.m4 =================================================================== --- tool/m4/ruby_append_options.m4 (revision 61982) +++ tool/m4/ruby_append_options.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_append_options.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_APPEND_OPTIONS], [# RUBY_APPEND_OPTIONS($1) for rb_opt in $2; do Index: tool/m4/colorize_result.m4 =================================================================== --- tool/m4/colorize_result.m4 (revision 61982) +++ tool/m4/colorize_result.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/colorize_result.m4#L1 +# -*- Autoconf -*- AC_DEFUN([COLORIZE_RESULT], [AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl AS_LITERAL_IF([$1], [m4_case([$1], Index: tool/m4/ruby_prepend_option.m4 =================================================================== --- tool/m4/ruby_prepend_option.m4 (revision 61982) +++ tool/m4/ruby_prepend_option.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_prepend_option.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_PREPEND_OPTION], [# RUBY_PREPEND_OPTION($1) AS_CASE([" [$]{$1-} "], Index: tool/m4/ruby_mingw32.m4 =================================================================== --- tool/m4/ruby_mingw32.m4 (revision 61982) +++ tool/m4/ruby_mingw32.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_mingw32.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_MINGW32], [AS_CASE(["$host_os"], [cygwin*], [ Index: tool/m4/ac_msg_result.m4 =================================================================== --- tool/m4/ac_msg_result.m4 (revision 61982) +++ tool/m4/ac_msg_result.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ac_msg_result.m4#L1 +# -*- Autoconf -*- AC_DEFUN([AC_MSG_RESULT], [dnl { _AS_ECHO_LOG([result: $1]) COLORIZE_RESULT([$1]); dnl Index: tool/m4/ruby_decl_attribute.m4 =================================================================== --- tool/m4/ruby_decl_attribute.m4 (revision 61982) +++ tool/m4/ruby_decl_attribute.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_decl_attribute.m4#L1 +# -*- Autoconf -*- dnl RUBY_DECL_ATTRIBUTE(attrib, macroname, cachevar, condition, type, code) AC_DEFUN([RUBY_DECL_ATTRIBUTE], [dnl m4_ifval([$2], dnl Index: tool/m4/ruby_check_sizeof.m4 =================================================================== --- tool/m4/ruby_check_sizeof.m4 (revision 61982) +++ tool/m4/ruby_check_sizeof.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_sizeof.m4#L1 +# -*- Autoconf -*- dnl RUBY_CHECK_SIZEOF [typename], [maybe same size types], [macros], [include] AC_DEFUN([RUBY_CHECK_SIZEOF], [dnl Index: tool/m4/ruby_append_option.m4 =================================================================== --- tool/m4/ruby_append_option.m4 (revision 61982) +++ tool/m4/ruby_append_option.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_append_option.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_APPEND_OPTION], [# RUBY_APPEND_OPTION($1) AS_CASE([" [$]{$1-} "], Index: tool/m4/ruby_check_signedness.m4 =================================================================== --- tool/m4/ruby_check_signedness.m4 (revision 61982) +++ tool/m4/ruby_check_signedness.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_signedness.m4#L1 +# -*- Autoconf -*- dnl RUBY_CHECK_SIGNEDNESS [typename] [if-signed] [if-unsigned] [included] AC_DEFUN([RUBY_CHECK_SIGNEDNESS], [dnl AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([AC_INCLUDES_DEFAULT([$4])], [($1)-1 > 0])], Index: tool/m4/_colorize_result_prepare.m4 =================================================================== --- tool/m4/_colorize_result_prepare.m4 (revision 61982) +++ tool/m4/_colorize_result_prepare.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/_colorize_result_prepare.m4#L1 +# -*- Autoconf -*- AC_DEFUN([_COLORIZE_RESULT_PREPARE], [ msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset= AS_IF([test "x${CONFIGURE_TTY}" = xyes -o -t 1], [ Index: tool/m4/ruby_stack_grow_direction.m4 =================================================================== --- tool/m4/ruby_stack_grow_direction.m4 (revision 61982) +++ tool/m4/ruby_stack_grow_direction.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_stack_grow_direction.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_STACK_GROW_DIRECTION], [ AS_VAR_PUSHDEF([stack_grow_dir], [rb_cv_stack_grow_dir_$1]) AC_CACHE_CHECK(stack growing direction on $1, stack_grow_dir, [ Index: tool/m4/ruby_setjmp_type.m4 =================================================================== --- tool/m4/ruby_setjmp_type.m4 (revision 61982) +++ tool/m4/ruby_setjmp_type.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_setjmp_type.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_SETJMP_TYPE], [ RUBY_CHECK_BUILTIN_SETJMP RUBY_CHECK_SETJMP(_setjmpex, [], [@%:@include <setjmpex.h>]) Index: tool/m4/ruby_defint.m4 =================================================================== --- tool/m4/ruby_defint.m4 (revision 61982) +++ tool/m4/ruby_defint.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_defint.m4#L1 +# -*- Autoconf -*- dnl RUBY_DEFINT TYPENAME, SIZE, [UNSIGNED], [INCLUDES = DEFAULT-INCLUDES] AC_DEFUN([RUBY_DEFINT], [dnl AS_VAR_PUSHDEF([cond], [rb_defint_cond])dnl Index: tool/m4/ac_checking.m4 =================================================================== --- tool/m4/ac_checking.m4 (revision 61982) +++ tool/m4/ac_checking.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ac_checking.m4#L1 +# -*- Autoconf -*- AC_DEFUN([AC_CHECKING],[dnl AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl AS_MESSAGE([checking ${msg_checking}$1${msg_reset}...])])dnl Index: tool/m4/ruby_check_sysconf.m4 =================================================================== --- tool/m4/ruby_check_sysconf.m4 (revision 61982) +++ tool/m4/ruby_check_sysconf.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_sysconf.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_CHECK_SYSCONF], [dnl AC_CACHE_CHECK([whether _SC_$1 is supported], rb_cv_have_sc_[]m4_tolower($1), [AC_TRY_COMPILE([#include <unistd.h> Index: tool/m4/ruby_check_builtin_setjmp.m4 =================================================================== --- tool/m4/ruby_check_builtin_setjmp.m4 (revision 61982) +++ tool/m4/ruby_check_builtin_setjmp.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_builtin_setjmp.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_CHECK_BUILTIN_SETJMP], [ AS_IF([test x"${ac_cv_func___builtin_setjmp}" = xyes], [ unset ac_cv_func___builtin_setjmp Index: tool/m4/ruby_type_attribute.m4 =================================================================== --- tool/m4/ruby_type_attribute.m4 (revision 61982) +++ tool/m4/ruby_type_attribute.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_type_attribute.m4#L1 +# -*- Autoconf -*- dnl RUBY_TYPE_ATTRIBUTE(attrib, macroname, cachevar, condition) AC_DEFUN([RUBY_TYPE_ATTRIBUTE], [dnl RUBY_DECL_ATTRIBUTE([$1], [$2], [$3], [$4], Index: tool/m4/ruby_werror_flag.m4 =================================================================== --- tool/m4/ruby_werror_flag.m4 (revision 61982) +++ tool/m4/ruby_werror_flag.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_werror_flag.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_WERROR_FLAG], [dnl save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $rb_cv_warnflags" Index: tool/m4/ruby_check_builtin_func.m4 =================================================================== --- tool/m4/ruby_check_builtin_func.m4 (revision 61982) +++ tool/m4/ruby_check_builtin_func.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_check_builtin_func.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_CHECK_BUILTIN_FUNC], [dnl AC_CACHE_CHECK([for $1], AS_TR_SH(rb_cv_builtin_$1), [AC_LINK_IFELSE( Index: tool/m4/ruby_default_arch.m4 =================================================================== --- tool/m4/ruby_default_arch.m4 (revision 61982) +++ tool/m4/ruby_default_arch.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_default_arch.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_DEFAULT_ARCH], [ AC_MSG_CHECKING([arch option]) AS_CASE([$1], Index: tool/m4/ruby_try_cflags.m4 =================================================================== --- tool/m4/ruby_try_cflags.m4 (revision 61982) +++ tool/m4/ruby_try_cflags.m4 (revision 61983) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/ruby_try_cflags.m4#L1 +# -*- Autoconf -*- AC_DEFUN([RUBY_TRY_CFLAGS], [ AC_MSG_CHECKING([whether ]$1[ is accepted as CFLAGS]) RUBY_WERROR_FLAG([ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/