-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.m4
208 lines (183 loc) · 7.92 KB
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
dnl $Id$
dnl config.m4 for extension stem
PHP_ARG_ENABLE(stem, whether to enable stem support,
[ --enable-stem Enable stem support], no)
PHP_ARG_ENABLE(stem-armenian, whether to compile Armenian stemming algorithm,
[ --enable-stem-armenian Whether to compile Armenian stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-basque, whether to compile Basque stemming algorithm,
[ --enable-stem-basque Whether to compile Basque stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-catalan, whether to compile Catalan stemming algorithm,
[ --enable-stem-catalan Whether to compile Catalan stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-czech, whether to compile Czech stemming algorithm,
[ --enable-stem-czech Whether to compile Czech stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-danish, whether to compile Danish stemming algorithm,
[ --enable-stem-danish Whether to compile Danish stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-dutch, whether to compile Dutch stemming algorithm,
[ --enable-stem-dutch Whether to compile Dutch stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-english, whether to compile English (non Porter) stemming algorithm,
[ --enable-stem-english Whether to compile English (non Porter) stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-french, whether to compile French stemming algorithm,
[ --enable-stem-french Whether to compile French stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-finnish, whether to compile Finnish stemming algorithm,
[ --enable-stem-finnish Whether to compile Finnish stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-german, whether to compile German stemming algorithm,
[ --enable-stem-german Whether to compile German stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-german2, whether to compile German2 stemming algorithm,
[ --enable-stem-german2 Whether to compile German2 stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-hungarian, whether to compile Hungarian stemming algorithm,
[ --enable-stem-hungarian Whether to compile Hungarian stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-irish, whether to compile Irish stemming algorithm,
[ --enable-stem-irish Whether to compile Irish stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-italian, whether to compile Italian stemming algorithm,
[ --enable-stem-italian Whether to compile Italian stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-norwegian, whether to compile Norwegian stemming algorithm,
[ --enable-stem-norwegian Whether to compile Norwegian stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-porter, whether to compile the original porter stemming algorithm,
[ --enable-stem-porter Whether to compile the original porter stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-portuguese, whether to compile Portuguese stemming algorithm,
[ --enable-stem-portuguese Whether to compile Portuguese stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-romanian, whether to compile Romanian stemming algorithm,
[ --enable-stem-romanian Whether to compile Romanian stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-russian, whether to compile Russian stemming algorithm,
[ --enable-stem-russian Whether to compile Russian stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-spanish, whether to compile Spanish stemming algorithm,
[ --enable-stem-spanish Whether to compile Spanish stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-swedish, whether to compile Swedish stemming algorithm,
[ --enable-stem-swedish Whether to compile Swedish stemming algorithm], yes, no)
PHP_ARG_ENABLE(stem-turkish, whether to compile Turkish stemming algorithm,
[ --enable-stem-turkish Whether to compile Turkish stemming algorithm], yes, no)
if test "$PHP_STEM_ARMENIAN" = "yes"; then
AC_DEFINE(ENABLE_ARMENIAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/armenian.c"
else
AC_DEFINE(ENABLE_ARMENIAN, 0, [ ])
fi
if test "$PHP_STEM_BASQUE" = "yes"; then
AC_DEFINE(ENABLE_BASQUE, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/basque.c"
else
AC_DEFINE(ENABLE_BASQUE, 0, [ ])
fi
if test "$PHP_STEM_CATALAN" = "yes"; then
AC_DEFINE(ENABLE_CATALAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/catalan.c"
else
AC_DEFINE(ENABLE_CATALAN, 0, [ ])
fi
if test "$PHP_STEM_CZECH" = "yes"; then
AC_DEFINE(ENABLE_CZECH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/czech.c"
else
AC_DEFINE(ENABLE_CZECH, 0, [ ])
fi
if test "$PHP_STEM_DANISH" = "yes"; then
AC_DEFINE(ENABLE_DANISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/danish.c"
else
AC_DEFINE(ENABLE_DANISH, 0, [ ])
fi
if test "$PHP_STEM_DUTCH" = "yes"; then
AC_DEFINE(ENABLE_DUTCH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/dutch.c"
else
AC_DEFINE(ENABLE_DUTCH, 0, [ ])
fi
if test "$PHP_STEM_ENGLISH" = "yes"; then
AC_DEFINE(ENABLE_ENGLISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/english.c"
else
AC_DEFINE(ENABLE_ENGLISH, 0, [ ])
fi
if test "$PHP_STEM_FRENCH" = "yes"; then
AC_DEFINE(ENABLE_FRENCH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/french.c"
else
AC_DEFINE(ENABLE_FRENCH, 0, [ ])
fi
if test "$PHP_STEM_FINNISH" = "yes"; then
AC_DEFINE(ENABLE_FINNISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/finnish.c"
else
AC_DEFINE(ENABLE_FINNISH, 0, [ ])
fi
if test "$PHP_STEM_GERMAN" = "yes"; then
AC_DEFINE(ENABLE_GERMAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/german.c"
else
AC_DEFINE(ENABLE_GERMAN, 0, [ ])
fi
if test "$PHP_STEM_GERMAN2" = "yes"; then
AC_DEFINE(ENABLE_GERMAN2, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/german2.c"
else
AC_DEFINE(ENABLE_GERMAN2, 0, [ ])
fi
if test "$PHP_STEM_HUNGARIAN" = "yes"; then
AC_DEFINE(ENABLE_HUNGARIAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/hungarian.c"
else
AC_DEFINE(ENABLE_HUNGARIAN, 0, [ ])
fi
if test "$PHP_STEM_IRISH" = "yes"; then
AC_DEFINE(ENABLE_IRISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/irish.c"
else
AC_DEFINE(ENABLE_IRISH, 0, [ ])
fi
if test "$PHP_STEM_ITALIAN" = "yes"; then
AC_DEFINE(ENABLE_ITALIAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/italian.c"
else
AC_DEFINE(ENABLE_ITALIAN, 0, [ ])
fi
if test "$PHP_STEM_NORWEGIAN" = "yes"; then
AC_DEFINE(ENABLE_NORWEGIAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/norwegian.c"
else
AC_DEFINE(ENABLE_NORWEGIAN, 0, [ ])
fi
if test "$PHP_STEM_PORTER" = "yes"; then
AC_DEFINE(ENABLE_PORTER, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/porter.c"
else
AC_DEFINE(ENABLE_PORTER, 0, [ ])
fi
if test "$PHP_STEM_PORTUGUESE" = "yes"; then
AC_DEFINE(ENABLE_PORTUGUESE, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/portuguese.c"
else
AC_DEFINE(ENABLE_PORTUGUESE, 0, [ ])
fi
if test "$PHP_STEM_ROMANIAN" = "yes"; then
AC_DEFINE(ENABLE_ROMANIAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/romanian.c"
else
AC_DEFINE(ENABLE_ROMANIAN, 0, [ ])
fi
if test "$PHP_STEM_RUSSIAN" = "yes"; then
AC_DEFINE(ENABLE_RUSSIAN, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/russian.c"
else
AC_DEFINE(ENABLE_RUSSIAN, 0, [ ])
fi
if test "$PHP_STEM_SPANISH" = "yes"; then
AC_DEFINE(ENABLE_SPANISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/spanish.c"
else
AC_DEFINE(ENABLE_SPANISH, 0, [ ])
fi
if test "$PHP_STEM_SWEDISH" = "yes"; then
AC_DEFINE(ENABLE_SWEDISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/swedish.c"
else
AC_DEFINE(ENABLE_SWEDISH, 0, [ ])
fi
if test "$PHP_STEM_TURKISH" = "yes"; then
AC_DEFINE(ENABLE_TURKISH, 1, [ ])
extra_lang="$extra_lang snowball_algorithms/turkish.c"
else
AC_DEFINE(ENABLE_TURKISH, 0, [ ])
fi
if test "$PHP_STEM" != "no"; then
PHP_NEW_EXTENSION(stem, stem.c snowball_runtime/api.c snowball_runtime/utilities.c $extra_lang, $ext_shared)
fi