summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch')
-rw-r--r--meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch173
1 files changed, 173 insertions, 0 deletions
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch
new file mode 100644
index 0000000000..fe8df5bb4a
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch
@@ -0,0 +1,173 @@
1Patch obtained from OpenEmbedded.
2
3Signed-off-by: Scott Garman <scott.a.garman@intel.com>
4-- config/acinclude.m4
5+++ config/acinclude.m4 2002/04/08 23:13:37
6@@ -0,0 +1,61 @@
7+dnl Configure-time switch with default
8+dnl
9+dnl Each switch defines an --enable-FOO and --disable-FOO option in
10+dnl the resulting configure script.
11+dnl
12+dnl Usage:
13+dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
14+dnl
15+dnl where:
16+dnl
17+dnl name name of switch; generates --enable-name & --disable-name
18+dnl options
19+dnl description help string is set to this prefixed by "enable" or
20+dnl "disable", whichever is the non-default value
21+dnl default either "on" or "off"; specifies default if neither
22+dnl --enable-name nor --disable-name is specified
23+dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
24+dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
25+dnl
26+AC_DEFUN(SMR_SWITCH, [
27+ AC_MSG_CHECKING(whether to enable $2)
28+ AC_ARG_ENABLE(
29+ $1,
30+ ifelse($3, on,
31+ [ --disable-[$1] disable [$2]],
32+ [ --enable-[$1] enable [$2]]),
33+ [ if test "$enableval" = yes; then
34+ AC_MSG_RESULT(yes)
35+ ifelse($4, , , AC_DEFINE($4))
36+ else
37+ AC_MSG_RESULT(no)
38+ ifelse($5, , , AC_DEFINE($5))
39+ fi ],
40+ ifelse($3, on,
41+ [ AC_MSG_RESULT(yes)
42+ ifelse($4, , , AC_DEFINE($4)) ],
43+ [ AC_MSG_RESULT(no)
44+ ifelse($5, , , AC_DEFINE($5))]))])
45+
46+dnl
47+dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
48+dnl
49+AC_DEFUN(OJ_SIZE_T_IS_UINT,[
50+ AC_REQUIRE([AC_TYPE_SIZE_T])
51+ AC_MSG_CHECKING(whether size_t is unsigned int)
52+ ac_cv_size_t_is_uint=no
53+ AC_LANG_SAVE
54+ AC_LANG_CPLUSPLUS
55+ AC_TRY_COMPILE([#include <unistd.h>
56+
57+ template<class T> class foo { };
58+
59+ ], [
60+ foo<size_t> x;
61+ foo<unsigned int> y;
62+ x = y;
63+ ],ac_cv_size_t_is_uint=yes)
64+ AC_LANG_RESTORE
65+ AC_MSG_RESULT($ac_cv_size_t_is_uint)
66+ test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
67+])
68Index: openjade-1.3.2/config/acinclude.m4
69===================================================================
70--- openjade-1.3.2.orig/config/acinclude.m4
71+++ openjade-1.3.2/config/acinclude.m4
72@@ -1,3 +1,64 @@
73+dnl Configure-time switch with default
74+dnl
75+dnl Each switch defines an --enable-FOO and --disable-FOO option in
76+dnl the resulting configure script.
77+dnl
78+dnl Usage:
79+dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
80+dnl
81+dnl where:
82+dnl
83+dnl name name of switch; generates --enable-name & --disable-name
84+dnl options
85+dnl description help string is set to this prefixed by "enable" or
86+dnl "disable", whichever is the non-default value
87+dnl default either "on" or "off"; specifies default if neither
88+dnl --enable-name nor --disable-name is specified
89+dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
90+dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
91+dnl
92+AC_DEFUN(SMR_SWITCH, [
93+ AC_MSG_CHECKING(whether to enable $2)
94+ AC_ARG_ENABLE(
95+ $1,
96+ ifelse($3, on,
97+ [ --disable-[$1] disable [$2]],
98+ [ --enable-[$1] enable [$2]]),
99+ [ if test "$enableval" = yes; then
100+ AC_MSG_RESULT(yes)
101+ ifelse($4, , , AC_DEFINE($4))
102+ else
103+ AC_MSG_RESULT(no)
104+ ifelse($5, , , AC_DEFINE($5))
105+ fi ],
106+ ifelse($3, on,
107+ [ AC_MSG_RESULT(yes)
108+ ifelse($4, , , AC_DEFINE($4)) ],
109+ [ AC_MSG_RESULT(no)
110+ ifelse($5, , , AC_DEFINE($5))]))])
111+
112+dnl
113+dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
114+dnl
115+AC_DEFUN(OJ_SIZE_T_IS_UINT,[
116+ AC_REQUIRE([AC_TYPE_SIZE_T])
117+ AC_MSG_CHECKING(whether size_t is unsigned int)
118+ ac_cv_size_t_is_uint=no
119+ AC_LANG_SAVE
120+ AC_LANG_CPLUSPLUS
121+ AC_TRY_COMPILE([#include <unistd.h>
122+
123+ template<class T> class foo { };
124+
125+ ], [
126+ foo<size_t> x;
127+ foo<unsigned int> y;
128+ x = y;
129+ ],ac_cv_size_t_is_uint=yes)
130+ AC_LANG_RESTORE
131+ AC_MSG_RESULT($ac_cv_size_t_is_uint)
132+ test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
133+])
134 dnl
135 dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
136 dnl
137Index: openjade-1.3.2/config/aclocal.m4
138===================================================================
139--- openjade-1.3.2.orig/config/aclocal.m4
140+++ openjade-1.3.2/config/aclocal.m4
141@@ -3352,7 +3352,7 @@ dnl Each switch defines an --enable-FOO
142 dnl the resulting configure script.
143 dnl
144 dnl Usage:
145-dnl smr_SWITCH(name, description, default, pos-def, neg-def)
146+dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
147 dnl
148 dnl where:
149 dnl
150@@ -3365,7 +3365,7 @@ dnl --enable-name nor --disa
151 dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
152 dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
153 dnl
154-AC_DEFUN(smr_SWITCH, [
155+AC_DEFUN(SMR_SWITCH, [
156 AC_MSG_CHECKING(whether to enable $2)
157 AC_ARG_ENABLE(
158 $1,
159Index: openjade-1.3.2/config/configure.in
160===================================================================
161--- openjade-1.3.2.orig/config/configure.in
162+++ openjade-1.3.2/config/configure.in
163@@ -243,8 +243,8 @@ AC_ARG_ENABLE(http,
164 dnl
165 dnl optional backends
166 dnl
167-smr_SWITCH(mif, support for FrameMaker MIF output, on, JADE_MIF, DUMMY)
168-smr_SWITCH(html, support for HTML+CSS output, on, JADE_HTML, DUMMY)
169+SMR_SWITCH(mif, support for FrameMaker MIF output, on, JADE_MIF, DUMMY)
170+SMR_SWITCH(html, support for HTML+CSS output, on, JADE_HTML, DUMMY)
171
172
173 dnl