|
|
d54c42 |
From 996012f6abe0ce4d68a2de9f249935c6d5b467bc Mon Sep 17 00:00:00 2001
|
|
|
d54c42 |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
|
|
d54c42 |
Date: Fri, 4 Oct 2013 22:13:11 +0200
|
|
|
d54c42 |
Subject: [PATCH] Allow to specify addition preludes by configuration option.
|
|
|
d54c42 |
|
|
|
d54c42 |
---
|
|
|
d54c42 |
Makefile.in | 2 ++
|
|
|
d54c42 |
common.mk | 2 +-
|
|
|
d54c42 |
configure.in | 7 +++++++
|
|
|
d54c42 |
3 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
d54c42 |
|
|
|
d54c42 |
diff --git a/Makefile.in b/Makefile.in
|
|
|
d54c42 |
index 7e8ed82..7916993 100644
|
|
|
d54c42 |
--- a/Makefile.in
|
|
|
d54c42 |
+++ b/Makefile.in
|
|
|
d54c42 |
@@ -114,6 +114,8 @@ XRUBY_LIBDIR = @XRUBY_LIBDIR@
|
|
|
d54c42 |
XRUBY_RUBYLIBDIR = @XRUBY_RUBYLIBDIR@
|
|
|
d54c42 |
XRUBY_RUBYHDRDIR = @XRUBY_RUBYHDRDIR@
|
|
|
d54c42 |
|
|
|
d54c42 |
+OPTIONAL_PRELUDES = @OPTIONAL_PRELUDES@
|
|
|
d54c42 |
+
|
|
|
d54c42 |
#### End of system configuration section. ####
|
|
|
d54c42 |
|
|
|
d54c42 |
MAJOR= @MAJOR@
|
|
|
d54c42 |
diff --git a/common.mk b/common.mk
|
|
|
d54c42 |
index 5cfbc3d..3f0a82e 100644
|
|
|
d54c42 |
--- a/common.mk
|
|
|
d54c42 |
+++ b/common.mk
|
|
|
d54c42 |
@@ -117,7 +117,7 @@ ALLOBJS = $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(INITOBJS)
|
|
|
d54c42 |
GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
|
|
|
d54c42 |
|
|
|
d54c42 |
DEFAULT_PRELUDES = $(GEM_PRELUDE)
|
|
|
d54c42 |
-PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(DEFAULT_PRELUDES)
|
|
|
d54c42 |
+PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(DEFAULT_PRELUDES) $(OPTIONAL_PRELUDES)
|
|
|
d54c42 |
GEM_PRELUDE = $(srcdir)/gem_prelude.rb
|
|
|
d54c42 |
PRELUDES = {$(srcdir)}prelude.c {$(srcdir)}miniprelude.c
|
|
|
d54c42 |
GOLFPRELUDES = {$(srcdir)}golf_prelude.c
|
|
|
d54c42 |
diff --git a/configure.in b/configure.in
|
|
|
d54c42 |
index 0e371e2..d4f1dcb 100644
|
|
|
d54c42 |
--- a/configure.in
|
|
|
d54c42 |
+++ b/configure.in
|
|
|
d54c42 |
@@ -4165,6 +4165,13 @@ AC_SUBST(rubyarchhdrdir)dnl
|
|
|
d54c42 |
AC_SUBST(sitearchhdrdir)dnl
|
|
|
d54c42 |
AC_SUBST(vendorarchhdrdir)dnl
|
|
|
d54c42 |
|
|
|
d54c42 |
+AC_ARG_WITH(prelude,
|
|
|
d54c42 |
+ AS_HELP_STRING([--with-prelude=FILE-LIST], [specify additional preludes separated by space]),
|
|
|
d54c42 |
+ [prelude=$withval])
|
|
|
d54c42 |
+if test "$prelude" != ""; then
|
|
|
d54c42 |
+ AC_SUBST(OPTIONAL_PRELUDES, $prelude)
|
|
|
d54c42 |
+fi
|
|
|
d54c42 |
+
|
|
|
d54c42 |
AC_ARG_WITH(mantype,
|
|
|
d54c42 |
AS_HELP_STRING([--with-mantype=TYPE], [specify man page type; TYPE is one of man and doc]),
|
|
|
d54c42 |
[
|
|
|
d54c42 |
--
|
|
|
d54c42 |
1.8.3.1
|
|
|
d54c42 |
|