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