changed --enable-unicode to --enable-wide-char in configure.ac

This commit is contained in:
hyunghwan.chung 2020-08-18 02:53:26 +00:00
parent b3f9ad5590
commit 45abb459c5
12 changed files with 58 additions and 79 deletions

View File

@ -349,7 +349,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@

View File

@ -333,7 +333,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@

68
moo/configure vendored
View File

@ -783,7 +783,6 @@ infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
@ -820,7 +819,7 @@ enable_libtool_lock
enable_largefile
enable_experimental
enable_debug
enable_unicode
enable_wide_char
enable_full_liw
enable_fltmax
enable_dynamic_module
@ -881,7 +880,6 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@ -1134,15 +1132,6 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-runstatedir | --runstatedir | --runstatedi | --runstated \
| --runstate | --runstat | --runsta | --runst | --runs \
| --run | --ru | --r)
ac_prev=runstatedir ;;
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
| --run=* | --ru=* | --r=*)
runstatedir=$ac_optarg ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@ -1280,7 +1269,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir runstatedir
libdir localedir mandir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
@ -1433,7 +1422,6 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@ -1486,9 +1474,9 @@ Optional Features:
--disable-largefile omit support for large files
--enable-experimental enable experimental feature(default. no)
--enable-debug compile the code in the debug mode (default. no)
--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-wide-char Use the wide-character type as the default character
type. one of yes, no, yes:2, yes:4, no:2, no:4
(default. yes)
--enable-full-liw Use a full word as a large integer word (default.
no)
--enable-awk-fltmax use hawk_fltmax_t for floating-point numbers
@ -13273,7 +13261,7 @@ else
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
@ -13319,7 +13307,7 @@ else
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
@ -13343,7 +13331,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
@ -13388,7 +13376,7 @@ else
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
@ -13412,7 +13400,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
@ -17898,63 +17886,63 @@ $as_echo "#define MOO_BUILD_RELEASE 1" >>confdefs.h
fi
# Check whether --enable-unicode was given.
if test "${enable_unicode+set}" = set; then :
enableval=$enable_unicode; enable_unicode=$enableval
# Check whether --enable-wide-char was given.
if test "${enable_wide_char+set}" = set; then :
enableval=$enable_wide_char; enable_wide_char=$enableval
else
enable_unicode=yes
enable_wide_char=yes
fi
if test "${enable_unicode}" = "yes:4"
if test "${enable_wide_char}" = "yes:4"
then
$as_echo "#define MOO_UNICODE_SIZE 4" >>confdefs.h
$as_echo "#define MOO_WIDE_CHAR_SIZE 4" >>confdefs.h
$as_echo "#define MOO_ENABLE_UNICODE 1" >>confdefs.h
$as_echo "#define MOO_ENABLE_WIDE_CHAR 1" >>confdefs.h
if test "${platform_win32}" = "yes"
then
CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"
fi
elif test "${enable_unicode}" = "yes:2"
elif test "${enable_wide_char}" = "yes:2"
then
$as_echo "#define MOO_UNICODE_SIZE 2" >>confdefs.h
$as_echo "#define MOO_WIDE_CHAR_SIZE 2" >>confdefs.h
$as_echo "#define MOO_ENABLE_UNICODE 1" >>confdefs.h
$as_echo "#define MOO_ENABLE_WIDE_CHAR 1" >>confdefs.h
if test "${platform_win32}" = "yes"
then
CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"
fi
elif test "${enable_unicode}" = "yes"
elif test "${enable_wide_char}" = "yes"
then
$as_echo "#define MOO_UNICODE_SIZE 1" >>confdefs.h
$as_echo "#define MOO_WIDE_CHAR_SIZE 1" >>confdefs.h
$as_echo "#define MOO_ENABLE_UNICODE 1" >>confdefs.h
$as_echo "#define MOO_ENABLE_WIDE_CHAR 1" >>confdefs.h
if test "${platform_win32}" = "yes"
then
CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"
fi
elif test "${enable_unicode}" = "no:4"
elif test "${enable_wide_char}" = "no:4"
then
$as_echo "#define MOO_UNICODE_SIZE 4" >>confdefs.h
$as_echo "#define MOO_WIDE_CHAR_SIZE 4" >>confdefs.h
elif test "${enable_unicode}" = "no:2"
elif test "${enable_wide_char}" = "no:2"
then
$as_echo "#define MOO_UNICODE_SIZE 2" >>confdefs.h
$as_echo "#define MOO_WIDE_CHAR_SIZE 2" >>confdefs.h
else
$as_echo "#define MOO_UNICODE_SIZE 1" >>confdefs.h
$as_echo "#define MOO_WIDE_CHAR_SIZE 1" >>confdefs.h
fi

View File

@ -660,44 +660,44 @@ else
AC_SUBST(BUILD_MODE, "release")
fi
dnl ===== 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, yes:2, yes:4, no:2, no:4 (default. yes)])],
enable_unicode=$enableval,
enable_unicode=yes
dnl ===== enable-wide-char =====
AC_ARG_ENABLE([wide-char],
[AS_HELP_STRING([--enable-wide-char],[Use the wide-character type as the default character type. one of yes, no, yes:2, yes:4, no:2, no:4 (default. yes)])],
enable_wide_char=$enableval,
enable_wide_char=yes
)
if test "${enable_unicode}" = "yes:4"
if test "${enable_wide_char}" = "yes:4"
then
AC_DEFINE([MOO_UNICODE_SIZE],[4],[Unicode character type size])
AC_DEFINE([MOO_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
AC_DEFINE([MOO_WIDE_CHAR_SIZE],[4],[Wide-character type size])
AC_DEFINE([MOO_ENABLE_WIDE_CHAR],[1],[Use the wide-character type as the default character type])
if test "${platform_win32}" = "yes"
then
[CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"]
fi
elif test "${enable_unicode}" = "yes:2"
elif test "${enable_wide_char}" = "yes:2"
then
AC_DEFINE([MOO_UNICODE_SIZE],[2],[Unicode character type size])
AC_DEFINE([MOO_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
AC_DEFINE([MOO_WIDE_CHAR_SIZE],[2],[Wide-character type size])
AC_DEFINE([MOO_ENABLE_WIDE_CHAR],[1],[Use the wide-character type as the default character type])
if test "${platform_win32}" = "yes"
then
[CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"]
fi
elif test "${enable_unicode}" = "yes"
elif test "${enable_wide_char}" = "yes"
then
AC_DEFINE([MOO_UNICODE_SIZE],[1],[Unicode character type size])
AC_DEFINE([MOO_ENABLE_UNICODE],[1],[Use the unicode character type as the default character type])
AC_DEFINE([MOO_WIDE_CHAR_SIZE],[1],[Wide-character type size])
AC_DEFINE([MOO_ENABLE_WIDE_CHAR],[1],[Use the wide-character type as the default character type])
if test "${platform_win32}" = "yes"
then
[CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"]
fi
elif test "${enable_unicode}" = "no:4"
elif test "${enable_wide_char}" = "no:4"
then
AC_DEFINE([MOO_UNICODE_SIZE],[4],[Unicode character type size])
elif test "${enable_unicode}" = "no:2"
AC_DEFINE([MOO_WIDE_CHAR_SIZE],[4],[Wide-character type size])
elif test "${enable_wide_char}" = "no:2"
then
AC_DEFINE([MOO_UNICODE_SIZE],[2],[Unicode character type size])
AC_DEFINE([MOO_WIDE_CHAR_SIZE],[2],[Wide-character type size])
else
AC_DEFINE([MOO_UNICODE_SIZE],[1],[Unicode character type size])
AC_DEFINE([MOO_WIDE_CHAR_SIZE],[1],[Wide-character type size])
fi
dnl ===== enable-full-liw =====

View File

@ -413,7 +413,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@

View File

@ -366,8 +366,8 @@
/* link modules statically into the main library */
#undef MOO_ENABLE_STATIC_MODULE
/* Use the unicode character type as the default character type */
#undef MOO_ENABLE_UNICODE
/* Use the wide-character type as the default character type */
#undef MOO_ENABLE_WIDE_CHAR
/* Big Endian */
#undef MOO_ENDIAN_BIG
@ -501,12 +501,12 @@
/* Define if socklen_t is signed */
#undef MOO_SOCKLEN_T_IS_SIGNED
/* Unicode character type size */
#undef MOO_UNICODE_SIZE
/* use hawk_fltmax_t for floating-point numbers */
#undef MOO_USE_FLTMAX
/* Wide-character type size */
#undef MOO_WIDE_CHAR_SIZE
/* The size of `MB_LEN_MAX', as computed by valueof. */
#undef NUMVALOF_MB_LEN_MAX

View File

@ -399,7 +399,7 @@ typedef unsigned char moo_bchu_t; /* unsigned version of moo_bch_t for
#define MOO_SIZEOF_BCH_T MOO_SIZEOF_CHAR
#define MOO_SIZEOF_BCI_T MOO_SIZEOF_INT
#if defined(MOO_UNICODE_SIZE) && (MOO_UNICODE_SIZE >= 4)
#if defined(MOO_WIDE_CHAR_SIZE) && (MOO_WIDE_CHAR_SIZE >= 4)
# if defined(__GNUC__) && defined(__CHAR32_TYPE__)
typedef __CHAR32_TYPE__ moo_uch_t;
# else
@ -453,7 +453,7 @@ struct moo_bcs_t
};
typedef struct moo_bcs_t moo_bcs_t;
#if defined(MOO_ENABLE_UNICODE)
#if defined(MOO_ENABLE_WIDE_CHAR)
typedef moo_uch_t moo_ooch_t;
typedef moo_uchu_t moo_oochu_t;
typedef moo_uci_t moo_ooci_t;

View File

@ -43,7 +43,7 @@ _M_X64 x64 platform
#define MOO_ENABLE_DYNAMIC_MODULE
/* use UCS4 for uch_t */
/*#define MOO_UNICODE_SIZE 4*/
/*#define MOO_WIDE_CHAR_SIZE 4*/
/* windows for most of non-x86 platforms dropped.
* make it selective to support old non-x86 windows platforms. */

View File

@ -431,7 +431,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@

View File

@ -109,15 +109,14 @@ PROGRAMS = $(bin_PROGRAMS)
am_t_001_OBJECTS = t-001.$(OBJEXT)
t_001_OBJECTS = $(am_t_001_OBJECTS)
t_001_LDADD = $(LDADD)
am__DEPENDENCIES_1 =
t_001_DEPENDENCIES = $(am__DEPENDENCIES_1)
t_001_DEPENDENCIES =
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
am_t_002_OBJECTS = t-002.$(OBJEXT)
t_002_OBJECTS = $(am_t_002_OBJECTS)
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
am__DEPENDENCIES_1 =
am_t_003_OBJECTS = t-003.$(OBJEXT)
t_003_OBJECTS = $(am_t_003_OBJECTS)
am_t_004_OBJECTS = t-004.$(OBJEXT)
@ -328,7 +327,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
@ -338,7 +336,6 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = nostdinc
AM_CFLAGS = $(PTHREAD_CFLAGS)
AM_CPPFLAGS = \
-I$(abs_builddir) \
-I$(abs_builddir)/../lib \
@ -347,7 +344,7 @@ AM_CPPFLAGS = \
-I$(includedir)
AM_LDFLAGS = -L$(abs_builddir)/../lib -L$(libdir)
LDADD = $(PTHREAD_LIBS)
LDADD =
t_001_SOURCES = t-001.c
t_002_SOURCES = t-002.c
t_002_LDADD = -lmoo $(LDADD)

View File

@ -325,7 +325,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@

View File

@ -263,7 +263,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@