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

ruby-changes:22069

From: luislavena <ko1@a...>
Date: Sat, 24 Dec 2011 23:24:42 +0900 (JST)
Subject: [ruby-changes:22069] luislavena:r34118 (trunk): * configure.in: add --with-ntver option to match win32/configure.bat

luislavena	2011-12-24 23:24:32 +0900 (Sat, 24 Dec 2011)

  New Revision: 34118

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

  Log:
    * configure.in: add --with-ntver option to match win32/configure.bat
      functionality. Set 0x0501 as default. [ruby-core:35010]
      [ruby-core:35035]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 34117)
+++ configure.in	(revision 34118)
@@ -940,7 +940,15 @@
 	AS_HELP_STRING([--enable-win95], [enable Windows 95 series support]),
   [AS_CASE(["$enableval"],[yes|no],[enable_win95=$enableval],[unset enable_win95])])
 
+AC_ARG_WITH(ntver,
+  AS_HELP_STRING([--with-ntver=0xXXXX], [target NT version (default to 0x0501)]),
+  [with_ntver="$withval"], [with_ntver="0x0501"])
 AS_CASE(["$target_os"],
+[mingw*], [
+  RUBY_APPEND_OPTION(CPPFLAGS, -D_WIN32_WINNT=$with_ntver)
+])
+
+AS_CASE(["$target_os"],
 [freebsd*], [
   AC_CACHE_CHECK([whether pthread should be enabled by default],
     rb_cv_enable_pthread_default,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34117)
+++ ChangeLog	(revision 34118)
@@ -1,3 +1,9 @@
+Sat Dec 24 23:25:15 2011  Luis Lavena  <luislavena@g...>
+
+	* configure.in: add --with-ntver option to match win32/configure.bat
+	  functionality. Set 0x0501 as default. [ruby-core:35010]
+	  [ruby-core:35035]
+
 Sat Dec 24 12:38:53 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* proc.c (proc_call): get rid of optimazation-out by clang.

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

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