2 +++ openjade-1.3.2/config/acinclude.m4
4 +dnl Configure-time switch with default
6 +dnl Each switch defines an --enable-FOO and --disable-FOO option in
7 +dnl the resulting configure script.
10 +dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
14 +dnl name name of switch; generates --enable-name & --disable-name
16 +dnl description help string is set to this prefixed by "enable" or
17 +dnl "disable", whichever is the non-default value
18 +dnl default either "on" or "off"; specifies default if neither
19 +dnl --enable-name nor --disable-name is specified
20 +dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
21 +dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
23 +AC_DEFUN(SMR_SWITCH, [
24 + AC_MSG_CHECKING(whether to enable $2)
28 + [ --disable-[$1] disable [$2]],
29 + [ --enable-[$1] enable [$2]]),
30 + [ if test "$enableval" = yes; then
32 + ifelse($4, , , AC_DEFINE($4))
35 + ifelse($5, , , AC_DEFINE($5))
38 + [ AC_MSG_RESULT(yes)
39 + ifelse($4, , , AC_DEFINE($4)) ],
41 + ifelse($5, , , AC_DEFINE($5))]))])
44 +dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
46 +AC_DEFUN(OJ_SIZE_T_IS_UINT,[
47 + AC_REQUIRE([AC_TYPE_SIZE_T])
48 + AC_MSG_CHECKING(whether size_t is unsigned int)
49 + ac_cv_size_t_is_uint=no
52 + AC_TRY_COMPILE([#include <unistd.h>
54 + template<class T> class foo { };
58 + foo<unsigned int> y;
60 + ],ac_cv_size_t_is_uint=yes)
62 + AC_MSG_RESULT($ac_cv_size_t_is_uint)
63 + test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
65 --- openjade-1.3.2/config/aclocal.m4.orig
66 +++ openjade-1.3.2/config/aclocal.m4
68 dnl the resulting configure script.
71 -dnl smr_SWITCH(name, description, default, pos-def, neg-def)
72 +dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
77 dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
78 dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
80 -AC_DEFUN(smr_SWITCH, [
81 +AC_DEFUN(SMR_SWITCH, [
82 AC_MSG_CHECKING(whether to enable $2)
85 --- openjade-1.3.2/config/configure.in.orig
86 +++ openjade-1.3.2/config/configure.in
91 -smr_SWITCH(mif, support for FrameMaker MIF output, on, JADE_MIF, DUMMY)
92 -smr_SWITCH(html, support for HTML+CSS output, on, JADE_HTML, DUMMY)
93 +SMR_SWITCH(mif, support for FrameMaker MIF output, on, JADE_MIF, DUMMY)
94 +SMR_SWITCH(html, support for HTML+CSS output, on, JADE_HTML, DUMMY)
98 --- openjade-1.3.2/jade/Makefile.sub.orig
99 +++ openjade-1.3.2/jade/Makefile.sub
101 INCLUDE=-I$(srcdir)/../grove -I$(srcdir)/../spgrove -I$(srcdir)/../style
102 # XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a \
104 -XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a $(splibdir)/libosp.a
105 +XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a $(splibdir)/libosp.so
106 GENSRCS=JadeMessages.h HtmlMessages.h RtfMessages.h TeXMessages.h \
107 HtmlFOTBuilder_inst.cxx RtfFOTBuilder_inst.cxx TeXFOTBuilder_inst.cxx \
108 TransformFOTBuilder_inst.cxx MifMessages.h MifFOTBuilder_inst.cxx