summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-08 14:53:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-08 14:53:55 +0000
commite842d4d10eb8496a3428468aaae4e1bdcc39d0ae (patch)
tree5b7e126d28dff360d52eade51f9e883f533a3ec8 /win32
parent457dfc92eae2a5a50a390994a9f49ecb941ff49a (diff)
downloadruby-e842d4d10eb8496a3428468aaae4e1bdcc39d0ae.tar.gz
ruby-e842d4d10eb8496a3428468aaae4e1bdcc39d0ae.tar.xz
ruby-e842d4d10eb8496a3428468aaae4e1bdcc39d0ae.zip
* win32/configure.bat: now recognize --with-*-{dir,include,lib} options
and pass them to mkmf. * win32/configure.bat: general conversion from ``/'' to ``\'' of configure_args is not necessary any longer. * win32/setup.mak: BASERUBY is used as command, so always need to convert ``/'' to ``\'' within it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/configure.bat15
-rw-r--r--win32/setup.mak2
2 files changed, 14 insertions, 3 deletions
diff --git a/win32/configure.bat b/win32/configure.bat
index ad0026652..4c55271c7 100755
--- a/win32/configure.bat
+++ b/win32/configure.bat
@@ -5,7 +5,7 @@
echo> ~tmp~.mak ####
echo>> ~tmp~.mak conf = %0
-echo>> ~tmp~.mak $(conf:\=/): nul
+echo>> ~tmp~.mak $(conf): nul
echo>> ~tmp~.mak @del ~setup~.mak
echo>> ~tmp~.mak @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak \
if exist pathlist.tmp del pathlist.tmp
@@ -30,9 +30,15 @@ if "%1" == "--disable-win95" goto :disable-win95
if "%1" == "--extout" goto :extout
if "%1" == "--path" goto :path
if "%1" == "--with-baseruby" goto :baseruby
+if "%1" == "--with-ntver" goto :ntver
+echo %1| findstr "^--with-.*-dir$" > nul
+if not errorlevel 1 goto :withdir
+echo %1| findstr "^--with-.*-include$" > nul
+if not errorlevel 1 goto :withdir
+echo %1| findstr "^--with-.*-lib$" > nul
+if not errorlevel 1 goto :withdir
if "%1" == "-h" goto :help
if "%1" == "--help" goto :help
-if "%1" == "--with-ntver" goto :ntver
echo>>confargs.tmp %1 \
shift
goto :loop
@@ -132,6 +138,11 @@ goto :loop
shift
shift
goto :loop
+:withdir
+ echo>>confargs.tmp %1=%2 \
+ shift
+ shift
+goto :loop
:help
echo Configuration:
echo --help display this help
diff --git a/win32/setup.mak b/win32/setup.mak
index b6fb6acad..f463fb26e 100644
--- a/win32/setup.mak
+++ b/win32/setup.mak
@@ -53,7 +53,7 @@ RDOCTARGET = $(RDOCTARGET)
EXTOUT = $(EXTOUT)
!endif
!if defined(BASERUBY)
-BASERUBY = $(BASERUBY)
+BASERUBY = $(BASERUBY:/=\)
!endif
!if defined(NTVER)
NTVER = $(NTVER)