mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Prefer printf
like the recent autoconf
This commit is contained in:
parent
3e46117d3f
commit
c7414f517f
Notes:
git
2021-10-01 21:48:27 +09:00
1 changed files with 2 additions and 8 deletions
|
@ -1,12 +1,6 @@
|
|||
dnl -*- Autoconf -*-
|
||||
AC_DEFUN([RUBY_DEFINE_IF], [dnl
|
||||
m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])cat <<EOH >> confdefs.h
|
||||
@%:@if $1
|
||||
EOH
|
||||
])dnl
|
||||
m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])printf "@%:@if %s\n" "$1" >>confdefs.h])
|
||||
AC_DEFINE_UNQUOTED($2, $3)dnl
|
||||
m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])cat <<EOH >> confdefs.h
|
||||
@%:@endif /* $1 */
|
||||
EOH
|
||||
])dnl
|
||||
m4_ifval([$1], [AS_LITERAL_IF([$1], [], [test "X$1" = X || ])printf "@%:@endif /* %s */\n" "$1" >>confdefs.h])
|
||||
])dnl
|
||||
|
|
Loading…
Add table
Reference in a new issue