From b69642052686971d0694732ee02d742f11982deb Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 23 Jan 2007 06:41:22 +0000 Subject: * Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat, setup.mak}: add --with-baseruby configure option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- wince/Makefile.sub | 3 +++ wince/configure.bat | 7 +++++++ wince/setup.mak | 3 +++ 3 files changed, 13 insertions(+) (limited to 'wince') diff --git a/wince/Makefile.sub b/wince/Makefile.sub index fff533f1e1..5f9cffd749 100644 --- a/wince/Makefile.sub +++ b/wince/Makefile.sub @@ -45,6 +45,9 @@ AR = lib -nologo PURIFY = AUTOCONF = autoconf RM = $(srcdir)\win32\rm.bat +!if !defined(BASERUBY) +BASERUBY = ruby +!endif !if !defined(PROCESSOR_ARCHITECTURE) PROCESSOR_ARCHITECTURE = x86 diff --git a/wince/configure.bat b/wince/configure.bat index 2c4a88fa16..dadfb2fa83 100755 --- a/wince/configure.bat +++ b/wince/configure.bat @@ -21,6 +21,7 @@ if "%1" == "--program-name" goto :progname if "%1" == "--enable-install-doc" goto :enable-rdoc if "%1" == "--disable-install-doc" goto :disable-rdoc if "%1" == "--extout" goto :extout +if "%1" == "--with-baseruby" goto :baseruby if "%1" == "-h" goto :help if "%1" == "--help" goto :help if "%1" == "CC" goto :define @@ -83,6 +84,11 @@ goto :loop shift shift goto :loop +:baseruby + echo>> ~tmp~.mak "BASERUBY=%2" \ + shift + shift +goto :loop :help echo Configuration: echo --help display this help @@ -92,6 +98,7 @@ goto :loop echo System types: echo --target=TARGET configure for TARGET [i386-mswin32] echo Optional Package: + echo --with-baseruby=RUBY use RUBY as baseruby [ruby] echo --with-static-linked-ext link external modules statically echo --enable-install-doc install rdoc indexes during install del ~tmp~.mak diff --git a/wince/setup.mak b/wince/setup.mak index d2dbad2317..838441e669 100644 --- a/wince/setup.mak +++ b/wince/setup.mak @@ -58,6 +58,9 @@ RDOCTARGET = $(RDOCTARGET) !if defined(EXTOUT) EXTOUT = $(EXTOUT) !endif +!if defined(BASERUBY) +BASERUBY = $(BASERUBY) +!endif << @$(CPP) -I$(srcdir) -DRUBY_EXTERN="//" <<"Creating $(MAKEFILE)" >> $(MAKEFILE) #include "version.h" -- cgit v1.2.3