|
|
5257f0 |
diff --git a/Makefile.in b/Makefile.in
|
|
|
5257f0 |
index a93a1e6..fb30c19 100644
|
|
|
5257f0 |
--- a/Makefile.in
|
|
|
5257f0 |
+++ b/Makefile.in
|
|
|
4acc54 |
@@ -111,6 +111,7 @@ XRUBY_RUBYLIBDIR = @XRUBY_RUBYLIBDIR@
|
|
|
5257f0 |
XRUBY_RUBYHDRDIR = @XRUBY_RUBYHDRDIR@
|
|
|
5257f0 |
|
|
|
5257f0 |
DEFAULT_PRELUDES = $(@USE_RUBYGEMS@_GEM_PRELUDE)
|
|
|
5257f0 |
+OPTIONAL_PRELUDES = @OPTIONAL_PRELUDES@
|
|
|
5257f0 |
|
|
|
5257f0 |
#### End of system configuration section. ####
|
|
|
5257f0 |
|
|
|
5257f0 |
diff --git a/common.mk b/common.mk
|
|
|
5257f0 |
index e5069e5..ca5e3f9 100644
|
|
|
5257f0 |
--- a/common.mk
|
|
|
5257f0 |
+++ b/common.mk
|
|
|
5257f0 |
@@ -107,7 +107,7 @@ ALLOBJS = $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT)
|
|
|
5257f0 |
|
|
|
5257f0 |
GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
|
|
|
5257f0 |
|
|
|
5257f0 |
-PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(DEFAULT_PRELUDES)
|
|
|
5257f0 |
+PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(DEFAULT_PRELUDES) $(OPTIONAL_PRELUDES)
|
|
|
5257f0 |
GEM_PRELUDE = $(srcdir)/gem_prelude.rb
|
|
|
5257f0 |
YES_GEM_PRELUDE = $(GEM_PRELUDE)
|
|
|
5257f0 |
NO_GEM_PRELUDE =
|
|
|
5257f0 |
diff --git a/configure.in b/configure.in
|
|
|
5257f0 |
index 7977aaf..1ef42cd 100644
|
|
|
5257f0 |
--- a/configure.in
|
|
|
5257f0 |
+++ b/configure.in
|
|
|
4acc54 |
@@ -3559,6 +3559,13 @@ AC_SUBST(rubyarchhdrdir)dnl
|
|
|
5257f0 |
AC_SUBST(sitearchhdrdir)dnl
|
|
|
5257f0 |
AC_SUBST(vendorarchhdrdir)dnl
|
|
|
5257f0 |
|
|
|
5257f0 |
+AC_ARG_WITH(prelude,
|
|
|
5257f0 |
+ AS_HELP_STRING([--with-prelude=FILE-LIST], [specify additional preludes separated by space]),
|
|
|
5257f0 |
+ [prelude=$withval])
|
|
|
5257f0 |
+if test "$prelude" != ""; then
|
|
|
5257f0 |
+ AC_SUBST(OPTIONAL_PRELUDES, $prelude)
|
|
|
5257f0 |
+fi
|
|
|
5257f0 |
+
|
|
|
5257f0 |
AC_ARG_WITH(mantype,
|
|
|
5257f0 |
AS_HELP_STRING([--with-mantype=TYPE], [specify man page type; TYPE is one of man and doc]),
|
|
|
5257f0 |
[
|