[前][次][番号順一覧][スレッド一覧]

ruby-changes:16733

From: nobu <ko1@a...>
Date: Fri, 23 Jul 2010 15:26:59 +0900 (JST)
Subject: [ruby-changes:16733] Ruby:r28729 (trunk): * configure.in (RUBY_TRY_CFLAGS): try with werror turned on.

nobu	2010-07-23 15:05:43 +0900 (Fri, 23 Jul 2010)

  New Revision: 28729

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28729

  Log:
    * configure.in (RUBY_TRY_CFLAGS): try with werror turned on.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 28728)
+++ configure.in	(revision 28729)
@@ -393,15 +393,31 @@
 dnl }
 dnl compiler section {
 
+AC_DEFUN([RUBY_WERROR_FLAG], [dnl
+if test "${ac_c_werror_flag+set}"; then
+  rb_c_werror_flag="$ac_c_werror_flag"
+else
+  unset rb_c_werror_flag
+fi
+ac_c_werror_flag=yes
+$1
+if test "${rb_c_werror_flag+set}"; then
+  ac_c_werror_flag="$rb_c_werror_flag"
+else
+  unset ac_c_werror_flag
+fi])
+
 AC_DEFUN(RUBY_TRY_CFLAGS, [
     save_CFLAGS="$CFLAGS"
     CFLAGS="[$]CFLAGS $1"
     AC_MSG_CHECKING([whether ]$1[ is accepted])
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
+    RUBY_WERROR_FLAG([
+    AC_TRY_COMPILE([$4], [$5],
 	[$2
 	AC_MSG_RESULT(yes)],
 	[$3
 	AC_MSG_RESULT(no)])
+    ])
     CFLAGS="$save_CFLAGS"
     save_CFLAGS=
 ])
@@ -676,20 +692,6 @@
 ])dnl
 ])dnl
 
-AC_DEFUN([RUBY_WERROR_FLAG], [dnl
-if test "${ac_c_werror_flag+set}"; then
-  rb_c_werror_flag="$ac_c_werror_flag"
-else
-  unset rb_c_werror_flag
-fi
-ac_c_werror_flag=yes
-$1
-if test "${rb_c_werror_flag+set}"; then
-  ac_c_werror_flag="$rb_c_werror_flag"
-else
-  unset ac_c_werror_flag
-fi])
-
 dnl RUBY_FUNC_ATTRIBUTE(attrib, macroname, cachevar, condition)
 AC_DEFUN([RUBY_FUNC_ATTRIBUTE], [dnl
 m4_ifval([$2], dnl
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28728)
+++ ChangeLog	(revision 28729)
@@ -1,3 +1,7 @@
+Fri Jul 23 15:05:42 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (RUBY_TRY_CFLAGS): try with werror turned on.
+
 Fri Jul 23 09:02:43 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* re.c (rb_reg_expr_str): fixed out-of-boundary access at invalid

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]