Commit 2fddfe2f authored by unknown's avatar unknown

Compile all charset conversion tables if --with-extra-charsets=all

or --with-extra-charsets=complex is given.
parent 4b5953b9
...@@ -281,6 +281,9 @@ ...@@ -281,6 +281,9 @@
/* READLINE: */ /* READLINE: */
#undef VOID_SIGHANDLER #undef VOID_SIGHANDLER
/* Define this if you want extra character set conversion table*/
#undef DEFINE_ALL_CHARACTER_SETS
/* Leave that blank line there!! Autoheader needs it. /* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind: If you're adding to this file, keep in mind:
......
...@@ -2262,9 +2262,11 @@ elif test "$extra_charsets" = complex; then ...@@ -2262,9 +2262,11 @@ elif test "$extra_charsets" = complex; then
CHARSETS=`/bin/ls -1 $srcdir/strings/ctype-*.c | \ CHARSETS=`/bin/ls -1 $srcdir/strings/ctype-*.c | \
sed -e 's;^.*/ctype-;;' -e 's;.c$;;'` sed -e 's;^.*/ctype-;;' -e 's;.c$;;'`
CHARSETS=`echo $CHARSETS` # get rid of line breaks CHARSETS=`echo $CHARSETS` # get rid of line breaks
AC_DEFINE([DEFINE_ALL_CHARACTER_SETS])
else else
if test "$extra_charsets" = all; then if test "$extra_charsets" = all; then
CHARSETS="$CHARSETS_AVAILABLE $CHARSETS_DEPRECATED" CHARSETS="$CHARSETS_AVAILABLE $CHARSETS_DEPRECATED"
AC_DEFINE([DEFINE_ALL_CHARACTER_SETS])
else else
CHARSETS=`echo $extra_charsets | sed -e 's/,/ /g'` CHARSETS=`echo $extra_charsets | sed -e 's/,/ /g'`
fi fi
......
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
** Some of the tables are hidden behind IFDEF to reduce some space. ** Some of the tables are hidden behind IFDEF to reduce some space.
** One can enable them by removing the // characters from the next comment ** One can enable them by removing the // characters from the next comment
** One must also give a name to each mapping that one wants to use... ** One must also give a name to each mapping that one wants to use...
**
** All tables are activated if --with-extra-charsets=all or
** --with-extra-charsets=complex was given to configure.
*/ */
/* #define DEFINE_ALL_CHARACTER_SETS */ /* #define DEFINE_ALL_CHARACTER_SETS */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment