diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2000-10-30 07:17:31 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2000-10-30 07:17:31 +0000 |
commit | e5b6b0ebb94f824f170d91ad2241a0ed65191208 (patch) | |
tree | 7be61dec963202745e03f1ea3d0d73a1fa82beb0 | |
parent | dd9dcd59cf54226aec64dc89156a5e93d1783184 (diff) |
Add new configure option "--enable-uniconv" that enables automatic
code conversion between Unicode and other encodings. Note that
this option requires --enable-multibyte also.
The reason why this is optional is that the feature requires huge
mapping tables and I don't think every user need the feature.
-rw-r--r-- | configure.in | 8 | ||||
-rw-r--r-- | src/include/config.h.in | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index a57dc77d5e6..51d335bbead 100644 --- a/configure.in +++ b/configure.in @@ -201,6 +201,14 @@ Or do not specify an argument to the option to use the default.]);; AC_SUBST(MULTIBYTE) +# +# Unicode conversion (--enable-uniconv) +# +AC_MSG_CHECKING([whether to build with Unicode conversion support]) +PGAC_ARG_BOOL(enable, uniconv, no, [ --enable-uniconv enable unicode conversion support], + [AC_DEFINE([UNICODE_CONVERSION], 1, + [Set to 1 if you want Unicode conversion support (--enable-uniconv)])]) +AC_MSG_RESULT([$enable_uniconv]) # # Default port number (--with-pgport), default 5432 diff --git a/src/include/config.h.in b/src/include/config.h.in index fe6fb972c11..66faa7503bb 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -8,7 +8,7 @@ * or in config.h afterwards. Of course, if you edit config.h, then your * changes will be overwritten the next time you run configure. * - * $Id: config.h.in,v 1.144 2000/10/23 14:49:45 momjian Exp $ + * $Id: config.h.in,v 1.145 2000/10/30 07:17:31 ishii Exp $ */ #ifndef CONFIG_H @@ -42,6 +42,9 @@ /* Set to 1 if you want to use multibyte characters (--enable-multibyte) */ #undef MULTIBYTE +/* Set to 1 if you want Unicode conversion support (--enable-uniconv) */ +#undef UNICODE_CONVERSION + /* Set to 1 if you want ASSERT checking (--enable-cassert) */ #undef USE_ASSERT_CHECKING |