* configure.in (RUBY_CHECK_PRINTF_PREFIX): should not break from
RUBY_WERROR_FLAG, so that ac_c_werror_flag gets restored. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a774aa4e79
commit
6a256d448d
@ -1,3 +1,8 @@
|
|||||||
|
Thu Nov 11 23:29:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in (RUBY_CHECK_PRINTF_PREFIX): should not break from
|
||||||
|
RUBY_WERROR_FLAG, so that ac_c_werror_flag gets restored.
|
||||||
|
|
||||||
Thu Nov 11 23:04:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Nov 11 23:04:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/iconv/iconv.c (warn_deprecated): show caller position.
|
* ext/iconv/iconv.c (warn_deprecated): show caller position.
|
||||||
|
10
configure.in
10
configure.in
@ -583,10 +583,10 @@ RUBY_CHECK_SIZEOF(double)
|
|||||||
RUBY_CHECK_SIZEOF(time_t, [long "long long"], [], [@%:@include <time.h>])
|
RUBY_CHECK_SIZEOF(time_t, [long "long long"], [], [@%:@include <time.h>])
|
||||||
|
|
||||||
AC_DEFUN([RUBY_CHECK_PRINTF_PREFIX], [
|
AC_DEFUN([RUBY_CHECK_PRINTF_PREFIX], [
|
||||||
AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),
|
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]
|
[rb_cv_pri_prefix_]AS_TR_SH($1)=[NONE]
|
||||||
for pri in $2; do
|
RUBY_WERROR_FLAG(for pri in $2; do
|
||||||
RUBY_WERROR_FLAG(AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[@%:@include <stdio.h>
|
[@%:@include <stdio.h>
|
||||||
@%:@include <stddef.h>
|
@%:@include <stddef.h>
|
||||||
@%:@ifdef __GNUC__
|
@%:@ifdef __GNUC__
|
||||||
@ -598,8 +598,8 @@ AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),
|
|||||||
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);],
|
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);],
|
||||||
[printf("%]${pri}[d", (]$1[)42);
|
[printf("%]${pri}[d", (]$1[)42);
|
||||||
test_sprintf("%]${pri}[d", (]$1[)42);],
|
test_sprintf("%]${pri}[d", (]$1[)42);],
|
||||||
[rb_cv_pri_prefix_]AS_TR_SH($1)[=[$pri]; break]))
|
[rb_cv_pri_prefix_]AS_TR_SH($1)[=[$pri]; break])
|
||||||
done)
|
done)])
|
||||||
if test "[$rb_cv_pri_prefix_]AS_TR_SH($1)" != NONE; then
|
if test "[$rb_cv_pri_prefix_]AS_TR_SH($1)" != NONE; then
|
||||||
AC_DEFINE_UNQUOTED([PRI_]m4_ifval($3,$3,AS_TR_CPP(m4_bpatsubst([$1],[_t$])))[_PREFIX],
|
AC_DEFINE_UNQUOTED([PRI_]m4_ifval($3,$3,AS_TR_CPP(m4_bpatsubst([$1],[_t$])))[_PREFIX],
|
||||||
"[$rb_cv_pri_prefix_]AS_TR_SH($1)")
|
"[$rb_cv_pri_prefix_]AS_TR_SH($1)")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user