26
26
[default_collation="$withval"],
27
27
[default_collation="default"])
30
AC_ARG_WITH(extra-charsets,
31
[ --with-extra-charsets=CHARSET[,CHARSET,...]
32
Use charsets in addition to default (none, complex,
33
all, or a list selected from the above sets)],
34
[extra_charsets="$withval"],
35
[extra_charsets="none"])
38
29
AC_MSG_CHECKING("character sets")
40
CHARSETS="$default_charset latin1 utf8 utf8mb3"
42
if test "$extra_charsets" = no; then
44
elif test "$extra_charsets" = none; then
46
elif test "$extra_charsets" = complex; then
47
CHARSETS="$CHARSETS $CHARSETS_COMPLEX"
48
AC_DEFINE([DEFINE_ALL_CHARACTER_SETS],1,[all charsets are available])
49
elif test "$extra_charsets" = all; then
50
CHARSETS="$CHARSETS $CHARSETS_AVAILABLE"
51
AC_DEFINE([DEFINE_ALL_CHARACTER_SETS],1,[all charsets are available])
53
EXTRA_CHARSETS=`echo $extra_charsets | sed -e 's/,/ /g'`
54
CHARSETS="$CHARSETS $EXTRA_CHARSETS"
31
CHARSETS="$default_charset utf8 utf8mb3"
57
33
for cs in $CHARSETS
61
AC_DEFINE(HAVE_CHARSET_armscii8, 1,
62
[Define to enable charset armscii8])
65
AC_DEFINE(HAVE_CHARSET_ascii, 1,
66
[Define to enable ascii character set])
69
AC_DEFINE(HAVE_CHARSET_big5, 1, [Define to enable charset big5])
70
AC_DEFINE([USE_MB], [1], [Use multi-byte character routines])
39
AC_DEFINE(HAVE_CHARSET_utf8mb4, 1, [Define to enable ut8])
40
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
71
41
AC_DEFINE(USE_MB_IDENT, [1], [ ])
76
AC_DEFINE(HAVE_CHARSET_cp1250, 1, [Define to enable cp1250])
79
AC_DEFINE(HAVE_CHARSET_cp1251, 1, [Define to enable charset cp1251])
82
AC_DEFINE(HAVE_CHARSET_cp1256, 1, [Define to enable charset cp1256])
85
AC_DEFINE(HAVE_CHARSET_cp1257, 1, [Define to enable charset cp1257])
88
AC_DEFINE(HAVE_CHARSET_cp850, 1, [Define to enable charset cp850])
91
AC_DEFINE(HAVE_CHARSET_cp852, 1, [Define to enable charset cp852])
94
AC_DEFINE(HAVE_CHARSET_cp866, 1, [Define to enable charset cp866])
97
AC_DEFINE(HAVE_CHARSET_cp932, 1, [Define to enable charset cp932])
98
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
99
AC_DEFINE(USE_MB_IDENT, 1)
102
AC_DEFINE(HAVE_CHARSET_dec8, 1, [Define to enable charset dec8])
105
AC_DEFINE(HAVE_CHARSET_eucjpms, 1, [Define to enable charset eucjpms])
106
AC_DEFINE([USE_MB], [1], [Use multi-byte character routines])
107
AC_DEFINE(USE_MB_IDENT, 1)
110
AC_DEFINE(HAVE_CHARSET_euckr, 1, [Define to enable charset euckr])
111
AC_DEFINE([USE_MB], [1], [Use multi-byte character routines])
112
AC_DEFINE(USE_MB_IDENT, 1)
115
AC_DEFINE(HAVE_CHARSET_gb2312, 1, [Define to enable charset gb2312])
116
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
117
AC_DEFINE(USE_MB_IDENT, 1)
120
AC_DEFINE(HAVE_CHARSET_gbk, 1, [Define to enable charset gbk])
121
AC_DEFINE([USE_MB], [1], [Use multi-byte character routines])
122
AC_DEFINE(USE_MB_IDENT, 1)
125
AC_DEFINE(HAVE_CHARSET_geostd8, 1, [Define to enable charset geostd8])
128
AC_DEFINE(HAVE_CHARSET_greek, 1, [Define to enable charset greek])
131
AC_DEFINE(HAVE_CHARSET_hebrew, 1, [Define to enable charset hebrew])
134
AC_DEFINE(HAVE_CHARSET_hp8, 1, [Define to enable charset hp8])
137
AC_DEFINE(HAVE_CHARSET_keybcs2, 1, [Define to enable charset keybcs2])
140
AC_DEFINE(HAVE_CHARSET_koi8r, 1, [Define to enable charset koi8r])
143
AC_DEFINE(HAVE_CHARSET_koi8u, 1, [Define to enable charset koi8u])
146
AC_DEFINE(HAVE_CHARSET_latin1, 1, [Define to enable charset latin1])
149
AC_DEFINE(HAVE_CHARSET_latin2, 1, [Define to enable charset latin2])
152
AC_DEFINE(HAVE_CHARSET_latin5, 1, [Define to enable charset latin5])
155
AC_DEFINE(HAVE_CHARSET_latin7, 1, [Define to enable charset latin7])
158
AC_DEFINE(HAVE_CHARSET_macce, 1, [Define to enable charset macce])
161
AC_DEFINE(HAVE_CHARSET_macroman, 1,
162
[Define to enable charset macroman])
165
AC_DEFINE(HAVE_CHARSET_sjis, 1, [Define to enable charset sjis])
166
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
167
AC_DEFINE(USE_MB_IDENT, 1)
170
AC_DEFINE(HAVE_CHARSET_swe7, 1, [Define to enable charset swe7])
173
AC_DEFINE(HAVE_CHARSET_tis620, 1, [Define to enable charset tis620])
176
AC_DEFINE(HAVE_CHARSET_ucs2, 1, [Define to enable charset ucs2])
177
AC_DEFINE([USE_MB], [1], [Use multi-byte character routines])
178
AC_DEFINE(USE_MB_IDENT, 1)
181
AC_DEFINE(HAVE_CHARSET_ujis, 1, [Define to enable charset ujis])
182
AC_DEFINE([USE_MB], [1], [Use multi-byte character routines])
183
AC_DEFINE(USE_MB_IDENT, 1)
186
AC_DEFINE(HAVE_CHARSET_utf8mb4, 1, [Define to enable ut8])
187
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
188
AC_DEFINE(USE_MB_IDENT, 1)
191
44
AC_DEFINE(HAVE_CHARSET_utf8mb3, 1, [Define to enable ut8])
192
45
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
193
46
AC_DEFINE(USE_MB_IDENT, 1)
196
AC_DEFINE(HAVE_CHARSET_utf16, 1, [Define to enable utf16])
197
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
198
AC_DEFINE(USE_MB_IDENT, 1)
201
AC_DEFINE(HAVE_CHARSET_utf32, 1, [Define to enable utf32])
202
AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
203
AC_DEFINE(USE_MB_IDENT, 1)
206
49
AC_MSG_ERROR([Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
207
50
See the Installation chapter in the Reference Manual.])
212
55
default_charset_collations=""
214
57
case $default_charset in
216
default_charset_default_collation="armscii8_general_ci"
217
default_charset_collations="armscii8_general_ci armscii8_bin"
220
default_charset_default_collation="ascii_general_ci"
221
default_charset_collations="ascii_general_ci ascii_bin"
224
default_charset_default_collation="big5_chinese_ci"
225
default_charset_collations="big5_chinese_ci big5_bin"
228
default_charset_default_collation="binary"
229
default_charset_collations="binary"
232
default_charset_default_collation="cp1250_general_ci"
233
default_charset_collations="cp1250_general_ci cp1250_czech_cs cp1250_bin"
236
default_charset_default_collation="cp1251_general_ci"
237
default_charset_collations="cp1251_general_ci cp1251_general_cs cp1251_bin cp1251_bulgarian_ci cp1251_ukrainian_ci"
240
default_charset_default_collation="cp1256_general_ci"
241
default_charset_collations="cp1256_general_ci cp1256_bin"
244
default_charset_default_collation="cp1257_general_ci"
245
default_charset_collations="cp1257_general_ci cp1257_lithuanian_ci cp1257_bin"
248
default_charset_default_collation="cp850_general_ci"
249
default_charset_collations="cp850_general_ci cp850_bin"
252
default_charset_default_collation="cp852_general_ci"
253
default_charset_collations="cp852_general_ci cp852_bin"
256
default_charset_default_collation="cp866_general_ci"
257
default_charset_collations="cp866_general_ci cp866_bin"
260
default_charset_default_collation="cp932_japanese_ci"
261
default_charset_collations="cp932_japanese_ci cp932_bin"
264
default_charset_default_collation="dec8_swedish_ci"
265
default_charset_collations="dec8_swedish_ci dec8_bin"
268
default_charset_default_collation="eucjpms_japanese_ci"
269
default_charset_collations="eucjpms_japanese_ci ujis_bin"
272
default_charset_default_collation="euckr_korean_ci"
273
default_charset_collations="euckr_korean_ci euckr_bin"
276
default_charset_default_collation="gb2312_chinese_ci"
277
default_charset_collations="gb2312_chinese_ci gb2312_bin"
280
default_charset_default_collation="gbk_chinese_ci"
281
default_charset_collations="gbk_chinese_ci gbk_bin"
284
default_charset_default_collation="geostd8_general_ci"
285
default_charset_collations="geostd8_general_ci geostd8_bin"
288
default_charset_default_collation="greek_general_ci"
289
default_charset_collations="greek_general_ci greek_bin"
292
default_charset_default_collation="hebrew_general_ci"
293
default_charset_collations="hebrew_general_ci hebrew_bin"
296
default_charset_default_collation="hp8_english_ci"
297
default_charset_collations="hp8_english_ci hp8_bin"
300
default_charset_default_collation="keybcs2_general_ci"
301
default_charset_collations="keybcs2_general_ci keybcs2_bin"
304
default_charset_default_collation="koi8r_general_ci"
305
default_charset_collations="koi8r_general_ci koi8r_bin"
308
default_charset_default_collation="koi8u_general_ci"
309
default_charset_collations="koi8u_general_ci koi8u_bin"
312
default_charset_default_collation="latin1_swedish_ci"
313
default_charset_collations="latin1_general_ci latin1_general_cs latin1_bin latin1_german1_ci latin1_german2_ci latin1_danish_ci latin1_spanish_ci latin1_swedish_ci"
316
default_charset_default_collation="latin2_general_ci"
317
default_charset_collations="latin2_general_ci latin2_bin latin2_czech_cs latin2_hungarian_ci latin2_croatian_ci"
320
default_charset_default_collation="latin5_turkish_ci"
321
default_charset_collations="latin5_turkish_ci latin5_bin"
324
default_charset_default_collation="latin7_general_ci"
325
default_charset_collations="latin7_general_ci latin7_general_cs latin7_bin latin7_estonian_cs"
328
default_charset_default_collation="macce_general_ci"
329
default_charset_collations="macce_general_ci macce_bin"
332
default_charset_default_collation="macroman_general_ci"
333
default_charset_collations="macroman_general_ci macroman_bin"
336
default_charset_default_collation="sjis_japanese_ci"
337
default_charset_collations="sjis_japanese_ci sjis_bin"
340
default_charset_default_collation="swe7_swedish_ci"
341
default_charset_collations="swe7_swedish_ci swe7_bin"
344
default_charset_default_collation="tis620_thai_ci"
345
default_charset_collations="tis620_thai_ci tis620_bin"
348
default_charset_default_collation="ucs2_general_ci"
349
define(UCSC1, ucs2_general_ci ucs2_bin)
350
define(UCSC2, ucs2_czech_ci ucs2_danish_ci)
351
define(UCSC3, ucs2_esperanto_ci ucs2_estonian_ci ucs2_icelandic_ci)
352
define(UCSC4, ucs2_latvian_ci ucs2_lithuanian_ci)
353
define(UCSC5, ucs2_persian_ci ucs2_polish_ci ucs2_romanian_ci)
354
define(UCSC6, ucs2_sinhala_ci ucs2_slovak_ci ucs2_slovenian_ci)
355
define(UCSC7, ucs2_spanish2_ci ucs2_spanish_ci)
356
define(UCSC8, ucs2_swedish_ci ucs2_turkish_ci)
357
define(UCSC9, ucs2_unicode_ci)
358
UCSC="UCSC1 UCSC2 UCSC3 UCSC4 UCSC5 UCSC6 UCSC7 UCSC8 UCSC9"
359
default_charset_collations="$UCSC"
362
default_charset_default_collation="ujis_japanese_ci"
363
default_charset_collations="ujis_japanese_ci ujis_bin"
366
59
default_charset_default_collation="utf8_general_ci"
367
60
define(UTFC1, utf8_general_ci utf8_bin)
398
91
default_charset_collations="$UTFC"
401
default_charset_default_collation="utf16_general_ci"
402
define(UTFC1, utf16_general_ci utf16_bin)
403
define(UTFC2, utf16_czech_ci utf16_danish_ci)
404
define(UTFC3, utf16_esperanto_ci utf16_estonian_ci utf16_icelandic_ci)
405
define(UTFC4, utf16_latvian_ci utf16_lithuanian_ci)
406
define(UTFC5, utf16_persian_ci utf16_polish_ci utf16_romanian_ci)
407
define(UTFC6, utf16_sinhala_ci utf16_slovak_ci utf16_slovenian_ci)
408
define(UTFC7, utf16_spanish2_ci utf16_spanish_ci)
409
define(UTFC8, utf16_swedish_ci utf16_turkish_ci)
410
define(UTFC9, utf16_unicode_ci)
411
UTFC="UTFC1 UTFC2 UTFC3 UTFC4 UTFC5 UTFC6 UTFC7 UTFC8 UTFC9"
412
default_charset_collations="$UTFC"
415
default_charset_default_collation="utf32_general_ci"
416
define(UTFC1, utf32_general_ci utf32_bin)
417
define(UTFC2, utf32_czech_ci utf32_danish_ci)
418
define(UTFC3, utf32_esperanto_ci utf32_estonian_ci utf32_icelandic_ci)
419
define(UTFC4, utf32_latvian_ci utf32_lithuanian_ci)
420
define(UTFC5, utf32_persian_ci utf32_polish_ci utf32_romanian_ci)
421
define(UTFC6, utf32_sinhala_ci utf32_slovak_ci utf32_slovenian_ci)
422
define(UTFC7, utf32_spanish2_ci utf32_spanish_ci)
423
define(UTFC8, utf32_swedish_ci utf32_turkish_ci)
424
define(UTFC9, utf32_unicode_ci)
425
UTFC="UTFC1 UTFC2 UTFC3 UTFC4 UTFC5 UTFC6 UTFC7 UTFC8 UTFC9"
426
default_charset_collations="$UTFC"
429
94
AC_MSG_ERROR([Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
430
95
See the Installation chapter in the Reference Manual.])