diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 6 | ||||
-rwxr-xr-x | win32/configure.bat | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 2a25ccc74d..766f934081 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -276,6 +276,12 @@ XRUBY = $(RUNRUBY) !ifndef RUBY RUBY = ruby !endif +!if "$(USE_RUBYGEMS)" == "NO" +DEFAULT_PRELUDES = $(NO_GEM_PRELUDE) +!else +DEFAULT_PRELUDES = $(YES_GEM_PRELUDE) +!endif + MAKEDIRS = $(MINIRUBY) -run -e mkdir -- -p !if !defined(STACK) diff --git a/win32/configure.bat b/win32/configure.bat index 4497653379..6eb0320a20 100755 --- a/win32/configure.bat +++ b/win32/configure.bat @@ -26,6 +26,8 @@ if "%1" == "--enable-win95" goto :enable-win95 if "%1" == "--disable-win95" goto :disable-win95
if "%1" == "--enable-debug-env" goto :enable-debug-env
if "%1" == "--disable-debug-env" goto :disable-debug-env
+if "%1" == "--enable-rubygems" goto :enable-rubygems
+if "%1" == "--disable-rubygems" goto :disable-rubygems
if "%1" == "--extout" goto :extout
if "%1" == "--path" goto :path
if "%1" == "--with-baseruby" goto :baseruby
@@ -123,6 +125,16 @@ goto :loop echo>>confargs.tmp %1 \
shift
goto :loop
+:enable-rubygems
+ echo>> ~tmp~.mak "USE_RUBYGEMS=YES" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop
+:disable-rubygems
+ echo>> ~tmp~.mak "USE_RUBYGEMS=NO" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop
:ntver
echo>> ~tmp~.mak "NTVER=%~2" \
echo>>confargs.tmp %1=%2 \
|