changed the format of accepted values by --enable-unicode
This commit is contained in:
parent
701554af0d
commit
aaafc1371b
37
configure
vendored
37
configure
vendored
@ -1453,8 +1453,8 @@ Optional Features:
|
|||||||
--disable-libtool-lock avoid locking (might break parallel builds)
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
||||||
--enable-debug build the library in the debug mode (default. no)
|
--enable-debug build the library in the debug mode (default. no)
|
||||||
--enable-unicode Use the unicode character type as the default
|
--enable-unicode Use the unicode character type as the default
|
||||||
character type. one of yes, no, ucs2, ucs4 (default.
|
character type. one of yes, no, yes:2, yes:4, no:2,
|
||||||
yes)
|
no:4 (default. yes)
|
||||||
--enable-cxx build the library for C++ if a C++ compiler is
|
--enable-cxx build the library for C++ if a C++ compiler is
|
||||||
available (default. yes)
|
available (default. yes)
|
||||||
--enable-dynamic-module enable dynamic module capability(default. yes)
|
--enable-dynamic-module enable dynamic module capability(default. yes)
|
||||||
@ -19423,20 +19423,43 @@ else
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${enable_unicode}" = "yes"
|
if test "${enable_unicode}" = "yes:4"
|
||||||
then
|
then
|
||||||
|
|
||||||
|
$as_echo "#define HCL_UNICODE_SIZE 4" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define HCL_ENABLE_UNICODE 1" >>confdefs.h
|
$as_echo "#define HCL_ENABLE_UNICODE 1" >>confdefs.h
|
||||||
|
|
||||||
elif test "${enable_unicode}" = "ucs2"
|
elif test "${enable_unicode}" = "yes:2"
|
||||||
then
|
then
|
||||||
|
|
||||||
$as_echo "#define HCL_ENABLE_UNICODE 2" >>confdefs.h
|
$as_echo "#define HCL_UNICODE_SIZE 2" >>confdefs.h
|
||||||
|
|
||||||
elif test "${enable_unicode}" = "ucs4"
|
|
||||||
|
$as_echo "#define HCL_ENABLE_UNICODE 1" >>confdefs.h
|
||||||
|
|
||||||
|
elif test "${enable_unicode}" = "yes"
|
||||||
then
|
then
|
||||||
|
|
||||||
$as_echo "#define HCL_ENABLE_UNICODE 4" >>confdefs.h
|
$as_echo "#define HCL_UNICODE_SIZE 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
$as_echo "#define HCL_ENABLE_UNICODE 1" >>confdefs.h
|
||||||
|
|
||||||
|
elif test "${enable_unicode}" = "no:4"
|
||||||
|
then
|
||||||
|
|
||||||
|
$as_echo "#define HCL_UNICODE_SIZE 4" >>confdefs.h
|
||||||
|
|
||||||
|
elif test "${enable_unicode}" = "no:2"
|
||||||
|
then
|
||||||
|
|
||||||
|
$as_echo "#define HCL_UNICODE_SIZE 2" >>confdefs.h
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
$as_echo "#define HCL_UNICODE_SIZE 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
23
configure.ac
23
configure.ac
@ -409,19 +409,30 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([unicode],
|
AC_ARG_ENABLE([unicode],
|
||||||
[AS_HELP_STRING([--enable-unicode],[Use the unicode character type as the default character type. one of yes, no, ucs2, ucs4 (default. yes)])],
|
[AS_HELP_STRING([--enable-unicode],[Use the unicode character type as the default character type. one of yes, no, yes:2, yes:4, no:2, no:4 (default. yes)])],
|
||||||
enable_unicode=$enableval,
|
enable_unicode=$enableval,
|
||||||
enable_unicode=yes
|
enable_unicode=yes
|
||||||
)
|
)
|
||||||
if test "${enable_unicode}" = "yes"
|
if test "${enable_unicode}" = "yes:4"
|
||||||
then
|
then
|
||||||
|
AC_DEFINE([HCL_UNICODE_SIZE],[4],[Unicode character type size])
|
||||||
AC_DEFINE([HCL_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
|
AC_DEFINE([HCL_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
|
||||||
elif test "${enable_unicode}" = "ucs2"
|
elif test "${enable_unicode}" = "yes:2"
|
||||||
then
|
then
|
||||||
AC_DEFINE([HCL_ENABLE_UNICODE],[2],[Use the unicode character type as the default character type])
|
AC_DEFINE([HCL_UNICODE_SIZE],[2],[Unicode character type size])
|
||||||
elif test "${enable_unicode}" = "ucs4"
|
AC_DEFINE([HCL_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
|
||||||
|
elif test "${enable_unicode}" = "yes"
|
||||||
then
|
then
|
||||||
AC_DEFINE([HCL_ENABLE_UNICODE],[4],[Use the unicode character type as the default character type])
|
AC_DEFINE([HCL_UNICODE_SIZE],[1],[Unicode character type size])
|
||||||
|
AC_DEFINE([HCL_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
|
||||||
|
elif test "${enable_unicode}" = "no:4"
|
||||||
|
then
|
||||||
|
AC_DEFINE([HCL_UNICODE_SIZE],[4],[Unicode character type size])
|
||||||
|
elif test "${enable_unicode}" = "no:2"
|
||||||
|
then
|
||||||
|
AC_DEFINE([HCL_UNICODE_SIZE],[2],[Unicode character type size])
|
||||||
|
else
|
||||||
|
AC_DEFINE([HCL_UNICODE_SIZE],[1],[Unicode character type size])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([cxx],
|
AC_ARG_ENABLE([cxx],
|
||||||
|
@ -327,6 +327,9 @@
|
|||||||
/* sizeof(__uint128_t) */
|
/* sizeof(__uint128_t) */
|
||||||
#undef HCL_SIZEOF___UINT128_T
|
#undef HCL_SIZEOF___UINT128_T
|
||||||
|
|
||||||
|
/* Unicode character type size */
|
||||||
|
#undef HCL_UNICODE_SIZE
|
||||||
|
|
||||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||||
#undef LT_OBJDIR
|
#undef LT_OBJDIR
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ typedef unsigned char hcl_bchu_t; /* unsigned version of hcl_bch_t for
|
|||||||
#define HCL_SIZEOF_BCH_T HCL_SIZEOF_CHAR
|
#define HCL_SIZEOF_BCH_T HCL_SIZEOF_CHAR
|
||||||
#define HCL_SIZEOF_BCI_T HCL_SIZEOF_INT
|
#define HCL_SIZEOF_BCI_T HCL_SIZEOF_INT
|
||||||
|
|
||||||
#if defined(HCL_ENABLE_UNICODE) && (HCL_ENABLE_UNICODE == 4)
|
#if defined(HCL_UNICODE_SIZE) && (HCL_UNICODE_SIZE >= 4)
|
||||||
# if defined(__GNUC__) && defined(__CHAR32_TYPE__)
|
# if defined(__GNUC__) && defined(__CHAR32_TYPE__)
|
||||||
typedef __CHAR32_TYPE__ hcl_uch_t;
|
typedef __CHAR32_TYPE__ hcl_uch_t;
|
||||||
# else
|
# else
|
||||||
|
Loading…
Reference in New Issue
Block a user