deleted unneeded files

This commit is contained in:
hyung-hwan 2021-08-21 14:51:38 +00:00
parent f6e2146485
commit 641e6a06f1
25 changed files with 341 additions and 11690 deletions

View File

@ -89,12 +89,10 @@ build_triplet = @build@
host_triplet = @host@
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_cxx_namespace.m4 \
$(top_srcdir)/m4/ax_numval.m4 $(top_srcdir)/m4/ax_pthread.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/lx_find_mpi.m4 $(top_srcdir)/configure.ac
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
@ -102,7 +100,7 @@ DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/h2/config.h
CONFIG_HEADER = h2-cfg.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
@ -140,7 +138,8 @@ am__recursive_targets = \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
cscope distdir distdir-am dist dist-all distcheck
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
h2-cfg.h.in
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
@ -160,13 +159,12 @@ am__define_uniq_tagged_files = \
ETAGS = etags
CTAGS = ctags
CSCOPE = cscope
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \
$(top_srcdir)/ac/compile $(top_srcdir)/ac/config.guess \
$(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \
$(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing \
$(top_srcdir)/include/h2/config.h.in ac/ar-lib ac/compile \
ac/config.guess ac/config.sub ac/install-sh ac/ltmain.sh \
ac/missing
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/h2-cfg.h.in \
$(top_srcdir)/ac/ar-lib $(top_srcdir)/ac/compile \
$(top_srcdir)/ac/config.guess $(top_srcdir)/ac/config.sub \
$(top_srcdir)/ac/install-sh $(top_srcdir)/ac/ltmain.sh \
$(top_srcdir)/ac/missing ac/ar-lib ac/compile ac/config.guess \
ac/config.sub ac/install-sh ac/ltmain.sh ac/missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
@ -218,24 +216,18 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_MODE = @BUILD_MODE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHAR_TYPE = @CHAR_TYPE@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
@ -256,7 +248,6 @@ H2_SIZEOF_OFF64_T = @H2_SIZEOF_OFF64_T@
H2_SIZEOF_OFF_T = @H2_SIZEOF_OFF_T@
H2_SIZEOF_SHORT = @H2_SIZEOF_SHORT@
H2_SIZEOF_VOID_P = @H2_SIZEOF_VOID_P@
HAVE_CXX = @HAVE_CXX@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@ -276,9 +267,6 @@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MPICC = @MPICC@
MPI_CFLAGS = @MPI_CFLAGS@
MPI_CLDFLAGS = @MPI_CLDFLAGS@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
@ -296,22 +284,11 @@ PACKAGE_VERSION_MAJOR = @PACKAGE_VERSION_MAJOR@
PACKAGE_VERSION_MINOR = @PACKAGE_VERSION_MINOR@
PACKAGE_VERSION_PATCH = @PACKAGE_VERSION_PATCH@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CC = @PTHREAD_CC@
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
QUADMATH_LIBS = @QUADMATH_LIBS@
RANLIB = @RANLIB@
RM = @RM@
RMDIR = @RMDIR@
SED = @SED@
SENDFILE_LIBS = @SENDFILE_LIBS@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SOCKET_LIBS = @SOCKET_LIBS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
TRUE = @TRUE@
UCI_LIBS = @UCI_LIBS@
UNICOWS_LIBS = @UNICOWS_LIBS@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
@ -320,14 +297,12 @@ abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
ax_pthread_config = @ax_pthread_config@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
@ -372,7 +347,8 @@ AUTOMAKE_OPTION = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib bin
DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
all: h2-cfg.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
am--refresh: Makefile
@ -409,20 +385,20 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):
include/h2/config.h: include/h2/stamp-h1
@test -f $@ || rm -f include/h2/stamp-h1
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) include/h2/stamp-h1
h2-cfg.h: stamp-h1
@test -f $@ || rm -f stamp-h1
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
include/h2/stamp-h1: $(top_srcdir)/include/h2/config.h.in $(top_builddir)/config.status
@rm -f include/h2/stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status include/h2/config.h
$(top_srcdir)/include/h2/config.h.in: $(am__configure_deps)
stamp-h1: $(srcdir)/h2-cfg.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status h2-cfg.h
$(srcdir)/h2-cfg.h.in: $(am__configure_deps)
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
rm -f include/h2/stamp-h1
rm -f stamp-h1
touch $@
distclean-hdr:
-rm -f include/h2/config.h include/h2/stamp-h1
-rm -f h2-cfg.h stamp-h1
mostlyclean-libtool:
-rm -f *.lo
@ -738,7 +714,7 @@ distcleancheck: distclean
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile
all-am: Makefile h2-cfg.h
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
@ -841,7 +817,7 @@ ps-am:
uninstall-am:
.MAKE: $(am__recursive_targets) install-am install-strip
.MAKE: $(am__recursive_targets) all install-am install-strip
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
am--refresh check check-am clean clean-cscope clean-generic \

4
aclocal.m4 vendored
View File

@ -1195,12 +1195,8 @@ AC_SUBST([am__tar])
AC_SUBST([am__untar])
]) # _AM_PROG_TAR
m4_include([m4/ax_cxx_namespace.m4])
m4_include([m4/ax_numval.m4])
m4_include([m4/ax_pthread.m4])
m4_include([m4/libtool.m4])
m4_include([m4/ltoptions.m4])
m4_include([m4/ltsugar.m4])
m4_include([m4/ltversion.m4])
m4_include([m4/lt~obsolete.m4])
m4_include([m4/lx_find_mpi.m4])

View File

@ -89,17 +89,15 @@ build_triplet = @build@
host_triplet = @host@
subdir = bin
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_cxx_namespace.m4 \
$(top_srcdir)/m4/ax_numval.m4 $(top_srcdir)/m4/ax_pthread.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/lx_find_mpi.m4 $(top_srcdir)/configure.ac
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/h2/config.h
CONFIG_HEADER = $(top_builddir)/h2-cfg.h
CONFIG_CLEAN_FILES = scheme.gpr
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
@ -133,24 +131,18 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_MODE = @BUILD_MODE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHAR_TYPE = @CHAR_TYPE@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
@ -171,7 +163,6 @@ H2_SIZEOF_OFF64_T = @H2_SIZEOF_OFF64_T@
H2_SIZEOF_OFF_T = @H2_SIZEOF_OFF_T@
H2_SIZEOF_SHORT = @H2_SIZEOF_SHORT@
H2_SIZEOF_VOID_P = @H2_SIZEOF_VOID_P@
HAVE_CXX = @HAVE_CXX@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@ -191,9 +182,6 @@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MPICC = @MPICC@
MPI_CFLAGS = @MPI_CFLAGS@
MPI_CLDFLAGS = @MPI_CLDFLAGS@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
@ -211,22 +199,11 @@ PACKAGE_VERSION_MAJOR = @PACKAGE_VERSION_MAJOR@
PACKAGE_VERSION_MINOR = @PACKAGE_VERSION_MINOR@
PACKAGE_VERSION_PATCH = @PACKAGE_VERSION_PATCH@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CC = @PTHREAD_CC@
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
QUADMATH_LIBS = @QUADMATH_LIBS@
RANLIB = @RANLIB@
RM = @RM@
RMDIR = @RMDIR@
SED = @SED@
SENDFILE_LIBS = @SENDFILE_LIBS@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SOCKET_LIBS = @SOCKET_LIBS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
TRUE = @TRUE@
UCI_LIBS = @UCI_LIBS@
UNICOWS_LIBS = @UNICOWS_LIBS@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
@ -235,14 +212,12 @@ abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
ax_pthread_config = @ax_pthread_config@
bindir = @bindir@
build = @build@
build_alias = @build_alias@

7444
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,8 @@
dnl AC_PREREQ([2.67])
dnl Make sure you change the version information
dnl in include/h2/conf_*.h whenever you change the version
dnl here. Those files don't depend on autoconf, thus requiring
dnl manual change.
AC_INIT([h2],[0.1.0],[Chung, Hyung-Hwan (hyunghwan.chung@gmail.com)],[],[http://code.abiyo.net/@h2])
AC_INIT([h2],[0.1.0],[Chung, Hyung-Hwan (hyunghwan.chung@gmail.com)],[],[http://code.miflux.com/@h2])
AC_CONFIG_HEADER([include/h2/config.h])
AC_CONFIG_HEADER([h2-cfg.h])
AC_CONFIG_AUX_DIR([ac])
AC_CONFIG_MACRO_DIR([m4])
@ -24,29 +20,11 @@ dnl m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl determine a C compiler to use
AC_PROG_CC
dnl determine a C++ compiler to use
AC_PROG_CXX
dnl check if the C++ compiler exists in PATH
AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
dnl check if the C++ compiler supports namespace
AX_CXX_NAMESPACE_STD
dnl determine some key programs
AC_PROG_INSTALL
AC_PROG_EGREP
AC_PROG_LN_S
dnl check other tools
AC_CHECK_TOOL(RM, rm)
AC_CHECK_TOOL(RMDIR, rmdir)
AC_CHECK_TOOL(TRUE, true)
AC_CHECK_TOOL(ECHO, echo)
dnl avoid "'/bin/rm: cannot remove `libtoolT': No such file or directory"
RM="$RM -f"
dnl initialize libtool
LT_INIT
AC_SUBST(LIBTOOL_DEPS)
@ -94,118 +72,10 @@ AC_SUBST(LIBM, $LIBM)
dnl check header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stddef.h wchar.h wctype.h errno.h signal.h fcntl.h dirent.h])
AC_CHECK_HEADERS([time.h sys/time.h utime.h spawn.h execinfo.h ucontext.h])
AC_CHECK_HEADERS([sys/resource.h sys/wait.h sys/syscall.h sys/ioctl.h])
AC_CHECK_HEADERS([sys/sendfile.h sys/epoll.h sys/event.h])
AC_CHECK_HEADERS([sys/sysctl.h sys/socket.h sys/sockio.h ifaddrs.h linux/netfilter_ipv4.h])
AC_CHECK_HEADERS([net/if.h net/if_dl.h], [], [], [
#include <sys/types.h>
#include <sys/socket.h>])
AC_CHECK_HEADERS([sys/stropts.h sys/macstat.h linux/ethtool.h linux/sockios.h])
AC_CHECK_HEADERS([quadmath.h crt_externs.h sys/prctl.h uci.h])
dnl check functions
AC_CHECK_FUNCS([uselocale])
AC_CHECK_FUNCS([mbrlen mbrtowc wcrtomb])
AC_CHECK_FUNCS([mbsnrtowcs mbsrtowcs wcsnrtombs wcsrtombs])
AC_CHECK_FUNCS([wctype iswctype wctrans towctrans])
AC_CHECK_FUNCS([isblank iswblank])
AC_CHECK_FUNCS([lseek64 stat64 fstat64 lstat64 ftruncate64 readdir64])
AC_CHECK_FUNCS([timegm timelocal])
AC_CHECK_FUNCS([utime utimes])
AC_CHECK_FUNCS([sysconf prctl fdopendir setrlimit getrlimit])
AC_CHECK_FUNCS([backtrace backtrace_symbols])
AC_CHECK_FUNCS([fork vfork posix_spawn gettid nanosleep select])
AC_CHECK_FUNCS([makecontext swapcontext getcontext setcontext])
AC_CHECK_FUNCS([_vsnprintf _vsnwprintf])
dnl AC_CHECK_FUNCS([_vsnprintf _vsnwprintf])
OLDLIBS="$LIBS"
LIBS="$LIBM $LIBS"
AC_CHECK_FUNCS([powl fmodl sinl cosl tanl atanl atan2l logl log10l expl sqrtl ceill floorl roundl])
AC_CHECK_FUNCS([pow fmod sin cos tan atan atan2 log log10 exp sqrt ceil floor round])
AC_CHECK_FUNCS([powf fmodf sinf cosf tanf atanf atan2f logf log10f expf sqrtf ceilf floorf roundf])
LIBS="$OLDLIBS"
dnl OLDLIBS="$LIBS"
dnl AC_SEARCH_LIBS([connect], [socket])
dnl LIBS="$OLDLIBS"
dnl if test "$ac_cv_search_connect" != "none required" -a "$ac_cv_search_connect" != "no"
dnl then
dnl SOCKET_LIBS="$SOCKET_LIBS -lsocket"
dnl fi
dnl AC_SUBST(SOCKET_LIBS)
AC_CHECK_FUNCS([connect gethostbyname])
if test "$ac_cv_func_gethostbyname" = "no"
then
AC_CHECK_LIB([nsl], [gethostbyname], [
SOCKET_LIBS="$SOCKET_LIBS -lnsl"
AC_DEFINE(HAVE_GETHOSTBYNAME, 1)
])
fi
if test "$ac_cv_func_connect" = "no"
then
AC_CHECK_LIB([socket], [connect], [
SOCKET_LIBS="$SOCKET_LIBS -lsocket"
AC_DEFINE(HAVE_CONNECT, 1)
])
fi
if test "${platform_win32}" = "yes"
then
SOCKET_LIBS="$SOCKET_LIBS -lws2_32"
fi
AC_SUBST(SOCKET_LIBS)
OLDLIBS="$LIBS"
LIBS="$SOCKET_LIBS $LIBS"
AC_CHECK_FUNCS([if_nametoindex if_indextoname getifaddrs])
LIBS="$OLDLIBS"
dnl check if sendfile and its variants exist in the standard c library
dnl it inspects the existence of each missing function in the sendfile library.
AC_CHECK_FUNCS([sendfile sendfile64 sendfilev sendfilev64])
if test "$ac_cv_func_sendfile" = "no"
then
AC_CHECK_LIB([sendfile], [sendfile], [
SENDFILE_LIBS="-lsendfile"
dnl only for consistency with AC_CHECK_FUNCS
AC_DEFINE(HAVE_SENDFILE, 1)
])
fi
if test "$ac_cv_func_sendfile64" = "no"
then
AC_CHECK_LIB([sendfile], [sendfile64], [
SENDFILE_LIBS="-lsendfile"
dnl only for consistency with AC_CHECK_FUNCS
AC_DEFINE(HAVE_SENDFILE64, 1)
])
fi
if test "$ac_cv_func_sendfilev" = "no"
then
AC_CHECK_LIB([sendfile], [sendfilev], [
SENDFILE_LIBS="-lsendfile"
dnl only for consistency with AC_CHECK_FUNCS
AC_DEFINE(HAVE_SENDFILEV, 1)
])
fi
if test "$ac_cv_func_sendfilev64" = "no"
then
AC_CHECK_LIB([sendfile], [sendfilev64], [
SENDFILE_LIBS="-lsendfile"
dnl only for consistency with AC_CHECK_FUNCS
AC_DEFINE(HAVE_SENDFILEV64, 1)
])
fi
AC_SUBST(SENDFILE_LIBS)
AC_CHECK_FUNCS([epoll_create epoll_create1])
if test "$ac_cv_func_epoll_create" = "yes"
then
AC_DEFINE(HAVE_EPOLL, 1, [epoll support])
fi
AC_CHECK_FUNCS([kqueue kqueue1 kevent])
dnl check is the import library for unicows.dll exists
dnl this check doesn't look for a particular symbol
@ -214,69 +84,6 @@ dnl the existence of the libaray.
AC_CHECK_LIB([unicows], [main], [UNICOWS_LIBS="-lunicows"])
AC_SUBST(UNICOWS_LIBS)
AC_ARG_ENABLE([ssl], [AS_HELP_STRING([--enable-ssl],[build the library in the ssl mode (default. yes)])],
enable_ssl_is=$enableval,enable_ssl_is=yes)
if test "$enable_ssl_is" = "yes"
then
dnl check for an SSL library
AC_CHECK_FUNCS([SSL_library_init])
if test "$ac_cv_func_SSL_library_init" = "yes"
then
AC_DEFINE(HAVE_SSL, 1, [ssl support])
else
AC_CHECK_LIB([ssl], [SSL_library_init], [
SSL_LIBS="-lssl"
AC_DEFINE(HAVE_SSL, 1, [ssl support])
dnl additional check
AC_CHECK_LIB([crypto], [ERR_get_error], [
SSL_LIBS="${SSL_LIBS} -lcrypto"
])
dnl only for consistency with AC_CHECK_FUNCS
AC_DEFINE(HAVE_SSL_LIBRARY_INIT, 1)
])
fi
fi
AC_SUBST(SSL_LIBS)
dnl MPI (optional)
LX_FIND_MPI(C)
AM_CONDITIONAL(HAVE_C_MPI, test "${have_C_mpi}" = "yes" )
dnl AM_CONDITIONAL(HAVE_CXX_MPI, test "${have_CXX_mpi}" = "yes" )
dnl libuci (optional)
AC_CHECK_LIB([uci], [uci_alloc_context], [UCI_LIBS="-luci"])
AC_SUBST(UCI_LIBS)
AM_CONDITIONAL(HAVE_LIBUCI, test "${ac_cv_lib_uci_uci_alloc_context}" = "yes" -a "${ac_cv_header_uci_h}" = "yes")
AC_STRUCT_DIRENT_D_TYPE
AC_CHECK_MEMBERS([struct stat.st_birthtime])
AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec])
AC_CHECK_MEMBERS([struct stat.st_birthtim.tv_nsec])
AC_CHECK_MEMBERS([struct stat.st_mtimespec.tv_nsec])
AC_CHECK_MEMBERS([struct stat.st_birthtimespec.tv_nsec])
AC_CHECK_MEMBERS([struct ifreq.ifr_ifindex, struct ifreq.ifr_mtu], [], [],
[#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif])
AC_CHECK_TYPES([struct lifconf, struct lifreq, struct if_laddrreq], [], [],
[#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif])
AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id], [], [],
[#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>])
AC_MSG_CHECKING([for va_copy])
AC_TRY_LINK(
[#include <stdarg.h>],
@ -332,108 +139,6 @@ AC_CHECK_SIZEOF(wchar_t)
AC_CHECK_SIZEOF(off_t)
AC_CHECK_SIZEOF(off64_t)
AC_CHECK_SIZEOF(mbstate_t,,[#include <wchar.h>])
AX_CHECK_NUMVALOF(MB_LEN_MAX,[32],[#include <limits.h>])
if test "${platform_win32}" == "yes"
then
AC_CHECK_SIZEOF(struct sockaddr_in,,[
#include <winsock2.h>
#include <ws2tcpip.h>])
AC_CHECK_SIZEOF(struct sockaddr_in6,, [
#include <winsock2.h>
#include <ws2tcpip.h>])
else
AC_CHECK_SIZEOF(struct sockaddr_in,,[
#include <sys/socket.h>
#include <netinet/in.h>])
AC_CHECK_SIZEOF(struct sockaddr_in6,, [
#include <sys/socket.h>
#include <netinet/in.h>])
fi
dnl gcc 3.4.3 on opensolaris x86 gave this warning without -msse or
dnl something similar.
dnl SSE vector argument without SSE enabled changes the ABI
dnl it also ended with an internal compiler error while compiling
dnl some expressions like 'v % base' where v is of the __int128_t type.
dnl so i've added this check to determine if the compiler has
dnl proper support for __int128_t.
dnl
dnl Changing ac_cv_sizeof___int128_t here doesn't corret SIZEOF___INT128_T
dnl since it's already generated. It only affects H2_SIZEOF___INT128_T below.
if test ${ac_cv_sizeof___int128_t} -gt 0
then
AC_MSG_CHECKING([__int128_t with %])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([], [
volatile __int128_t x, base;
x = (__int128_t)&base;
base = (__int128_t)&x;
x = x % base;
return (int)x;
])],
[
AC_MSG_RESULT(yes)
],
[
AC_MSG_RESULT(no)
ac_cv_sizeof___int128_t=0
]
)
fi
dnl Some compilers doesn't seem to have full support for __float128
dnl even if the type is available.
if test ${ac_cv_sizeof___float128} -gt 0
then
AC_MSG_CHECKING([__float128 with linking])
AC_TRY_LINK(
[#include <stdio.h>],
[
__float128 x, y, z;
z = x * y + x;
printf ("%p", (char*)(int)z);
],
[AC_MSG_RESULT(yes)],
[
AC_MSG_RESULT(no)
ac_cv_sizeof___float128=0
]
)
fi
if test ${ac_cv_sizeof___float128} -gt 0
then
AC_CHECK_FUNCS([quadmath_snprintf])
if test "$ac_cv_func_quadmath_snprintf" = "no"
then
OLDLIBS="$LIBS"
LIBS="$LIBM $LIBS"
AC_CHECK_FUNCS([quadmath_snprintf])
LIBS="$OLDLIBS"
if test "$ac_cv_func_quadmath_snprintf" = "no"
then
AC_CHECK_LIB([quadmath], [quadmath_snprintf], [
QUADMATH_LIBS="-lquadmath"
LIBM="$LIBM -lquadmath"
AC_DEFINE(HAVE_QUADMATH_SNPRINTF, 1)
])
else
QUADMATH_LIBS="$LIBM"
fi
fi
OLDLIBS="$LIBS"
LIBS="$LIBM $LIBS"
AC_CHECK_FUNCS([powq fmodq sinq cosq tanq atanq atan2q logq log10q expq sqrtq ceilq floorq roundq])
AC_CHECK_FUNCS([strtoflt128])
LIBS="$OLDLIBS"
fi
AC_SUBST(QUADMATH_LIBS)
AC_DEFINE_UNQUOTED(H2_SIZEOF_CHAR, ${ac_cv_sizeof_char}, [sizeof(char)])
AC_DEFINE_UNQUOTED(H2_SIZEOF_SHORT, ${ac_cv_sizeof_short}, [sizeof(short)])
AC_DEFINE_UNQUOTED(H2_SIZEOF_INT, ${ac_cv_sizeof_int}, [sizeof(int)])
@ -454,12 +159,6 @@ AC_DEFINE_UNQUOTED(H2_SIZEOF___FLOAT128, ${ac_cv_sizeof___float128}, [sizeof(__f
AC_DEFINE_UNQUOTED(H2_SIZEOF_OFF_T, ${ac_cv_sizeof_off_t}, [sizeof(off_t)])
AC_DEFINE_UNQUOTED(H2_SIZEOF_OFF64_T, ${ac_cv_sizeof_off64_t}, [sizeof(off64_t)])
AC_DEFINE_UNQUOTED(H2_SIZEOF_MBSTATE_T, ${ac_cv_sizeof_mbstate_t}, [sizeof(mbstate_t)])
AC_DEFINE_UNQUOTED(H2_MBLEN_MAX, ${ax_cv_numvalof_MB_LEN_MAX}, [MB_LEN_MAX])
AC_DEFINE_UNQUOTED(H2_SIZEOF_STRUCT_SOCKADDR_IN, ${ac_cv_sizeof_struct_sockaddr_in}, [sizeof(struct sockaddr_in)])
AC_DEFINE_UNQUOTED(H2_SIZEOF_STRUCT_SOCKADDR_IN6, ${ac_cv_sizeof_struct_sockaddr_in6}, [sizeof(struct sockaddr_in6)])
h2_package_version_major="`echo ${PACKAGE_VERSION} | cut -d. -f1`"
h2_package_version_minor="`echo ${PACKAGE_VERSION} | cut -d. -f2`"
h2_package_version_patch="`echo ${PACKAGE_VERSION} | cut -d. -f3`"
@ -484,46 +183,19 @@ AC_C_BIGENDIAN(
[AC_DEFINE([H2_ENDIAN_LITTLE],[],[Little Endian])],
[AC_DEFINE([H2_ENDIAN_UNKNOWN],[],[Unknown Endian])])
dnl define extra options
AC_ARG_ENABLE([mchar], [AS_HELP_STRING([--enable-mchar],[enable qse_mchar_t (default. yes)])],
enable_mchar_is=$enableval,enable_mchar_is=yes)
if test "${enable_mchar_is}" = "yes"
then
AC_DEFINE([H2_ENABLE_MCHAR],[],[Enable qse_mchar_t])
fi
AM_CONDITIONAL(ENABLE_MCHAR, test "${enable_mchar_is}" = "yes" )
AC_ARG_ENABLE([wchar], [AS_HELP_STRING([--enable-wchar],[enable qse_wchar_t (default. yes)])],
enable_wchar_is=$enableval,enable_wchar_is=yes)
if test "${enable_wchar_is}" = "yes"
then
AC_DEFINE([H2_ENABLE_WCHAR],[],[Enable qse_wchar_t])
fi
AM_CONDITIONAL(ENABLE_WCHAR, test "${enable_wchar_is}" = "yes" )
AC_ARG_ENABLE([wwchar], [AS_HELP_STRING([--enable-wwchar],[enable qse_wwchar_t (default. yes)])],
enable_wwchar_is=$enableval,enable_wwchar_is=yes)
if test "${enable_wwchar_is}" = "yes"
then
AC_DEFINE([H2_ENABLE_WWCHAR],[],[Enable qse_wwchar_t])
fi
AM_CONDITIONAL(ENABLE_WWCHAR, test "${enable_wwchar_is}" = "yes" )
AC_ARG_WITH([char-type],
[AS_HELP_STRING(--with-char-type,[specify the default character type. one of mchar, wchar, wwchar])],
[char_type=$withval]
)
if test "${char_type}" = "mchar" -a "${enable_mchar_is}" = "yes"
if test "${char_type}" = "mchar"
then
AC_DEFINE([H2_CHAR_IS_MCHAR],[],[Define h2_char_t to h2_mchar_t])
AC_SUBST(CHAR_TYPE, "H2_CHAR_IS_MCHAR")
elif test "$char_type" = "wchar" -a "${enable_wchar_is}" = "yes"
elif test "$char_type" = "wchar"
then
AC_DEFINE([H2_CHAR_IS_WCHAR],[],[Define h2_char_t to h2_wchar_t])
AC_SUBST(CHAR_TYPE, "H2_CHAR_IS_WCHAR")
elif test "$char_type" = "wwchar" -a "${enable_wwchar_is}" = "yes"
elif test "$char_type" = "wwchar"
then
AC_DEFINE([H2_CHAR_IS_WWCHAR],[],[Define h2_char_t to h2_wwchar_t])
AC_SUBST(CHAR_TYPE, "H2_CHAR_IS_WWCHAR")
@ -531,102 +203,6 @@ else
AC_MSG_ERROR([The default character type(--with-char-type) must be one of mchar, wchar, wwchar and it must be enabled.])
fi
AC_ARG_ENABLE([bundled-unicode], [AS_HELP_STRING([--enable-bundled-unicode],[use thn bundled unicode routines (default. no)])],
enable_bundled_unicode_is=$enableval,enable_bundled_unicode_is=yes)
if test "${ac_cv_header_wctype_h}" = "no" -o "${ac_cv_func_wctrans}" = "no" -o "${ac_cv_func_wctype}" = "no"
then
dnl force bundled-unicode to yes if some wchar functions are not available
enable_bundled_unicode_is=yes
fi
if test "${enable_bundled_unicode_is}" = "yes"
then
AC_DEFINE([H2_ENABLE_BUNDLED_UNICODE],[],[use the bundled unicode routines])
fi
AM_CONDITIONAL(ENABLE_BUNDLED_UNICODE, test "${enable_bundled_unicode_is}" = "yes")
AC_ARG_ENABLE([xcmgrs], [AS_HELP_STRING([--enable-xcmgrs],[include more built-in cmgrs like cp949 and cp950 when enabled (default. yes)])],
enable_xcmgrs_is=$enableval,enable_xcmgrs_is=yes)
if test "${enable_xcmgrs_is}" = "yes"
then
AC_DEFINE([H2_ENABLE_XCMGRS],[],[include more built-in cmgrs like cp949 and cp950])
fi
AM_CONDITIONAL(ENABLE_XCMGRS, test "${enable_xcmgrs_is}" = "yes" )
AC_ARG_ENABLE([syscall], [AS_HELP_STRING([--enable-syscall],[use the syscall() function to call system calls (default. no)])],
enable_syscall_is=$enableval,enable_syscall_is=no)
if test "${enable_syscall_is}" = "yes"
then
AC_DEFINE([H2_USE_SYSCALL],[],[use the syscall() function to invoke a system call])
fi
AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],[build the library in the debug mode (default. no)])],
enable_debug_is=$enableval,enable_debug_is=no)
if test "$enable_debug_is" = "yes"
then
[CFLAGS="$CFLAGS -g -D_DEBUG -UNDEBUG -DH2_BUILD_DEBUG -U_FORTIFY_SOURCE"]
[CXXFLAGS="$CXXFLAGS -g -D_DEBUG -UNDEBUG -DH2_BUILD_DEBUG -U_FORTIFY_SOURCE"]
AC_SUBST(BUILD_MODE, "debug")
else
[CFLAGS="$CFLAGS -DNDEBUG -U_DEBUG -DH2_BUILD_RELEASE -U_FORTIFY_SOURCE"]
[CXXFLAGS="$CXXFLAGS -DNDEBUG -U_DEBUG -DH2_BUILD_RELEASE -U_FORTIFY_SOURCE"]
AC_SUBST(BUILD_MODE, "release")
fi
AC_ARG_ENABLE([cxx],
[AS_HELP_STRING([--enable-cxx],[build the library for C++ if a C++ compiler is available (default. yes)])],
enable_cxx_is=$enableval,
enable_cxx_is=yes
)
dnl disable c++ if no c++ compiler was found
test "${HAVE_CXX}" = "yes" || enable_cxx_is="no"
dnl disable c++ if the compiler is too old.
test "${ax_cv_cxx_have_std_namespace}" = "yes" || enable_cxx_is="no"
AM_CONDITIONAL(ENABLE_CXX, test "${enable_cxx_is}" = "yes" )
AX_PTHREAD()
AC_ARG_ENABLE([reentrant], [AS_HELP_STRING([--enable-reentrant],[add thread options (default. no)])],
enable_reentrant_is=$enableval,enable_reentrant_is=no)
if test "$enable_reentrant_is" = "yes"
then
[CFLAGS="$CFLAGS $PTHREAD_CFLAGS"]
[CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"]
fi
AC_ARG_ENABLE([awk-intmax],
[AS_HELP_STRING([--enable-awk-intmax],[use h2_intmax_t for integers in AWK (default. no)])],
enable_awk_intmax_is=$enableval,
enable_awk_intmax_is=no
)
if test "${enable_awk_intmax_is}" = "yes"
then
AC_DEFINE([H2_USE_AWK_INTMAX],[],[use h2_intmax_t for integers in AWK])
fi
AC_ARG_ENABLE([awk-fltmax],
[AS_HELP_STRING([--enable-awk-fltmax],[use h2_fltmax_t for floating-point numbers in AWK (default. no)])],
enable_awk_fltmax_is=$enableval,
enable_awk_fltmax_is=no
)
if test "${enable_awk_fltmax_is}" = "yes"
then
AC_DEFINE([H2_USE_AWK_FLTMAX],[],[use h2_fltmax_t for floating-point numbers in AWK])
fi
AC_ARG_ENABLE([sed-tracer],
[AS_HELP_STRING([--enable-sed-tracer],[enable h2_sed_setexectracer() (default. yes)])],
enable_sed_tracer_is=$enableval,
enable_sed_tracer_is=yes
)
if test "${enable_sed_tracer_is}" = "yes"
then
AC_DEFINE([H2_ENABLE_SED_TRACER],[],[enable h2_sed_setexectracer()])
fi
AC_ARG_WITH([ada-objdir],
[AS_HELP_STRING(--with-ada-objdir,specify ada object directory path)],
[ada_objdir=$withval]
@ -638,15 +214,6 @@ else
AC_SUBST(ADA_OBJDIR, "objdir")
fi
AC_MSG_CHECKING([for socklen_t in sys/socket.h])
AC_TRY_COMPILE([#define _POSIX_PII_SOCKET
#include <sys/types.h>
#include <sys/socket.h>], [socklen_t x = 5;],
[AC_DEFINE(HAVE_SOCKLEN_T, 1, [Define it socklen_t typedef is in sys/socket.h.])
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)]
)
if test "${enable_shared}" = "no" -a "${enable_static}" = "yes"
then
AC_DEFINE([H2_ENABLE_STATIC_MODULE],[],[link modules statically into the main library])
@ -672,7 +239,6 @@ AC_SUBST(H2_PROJECT_URL, "${PACKAGE_URL}")
AC_CONFIG_FILES([
Makefile
lib/Makefile
lib/cmn/Makefile
lib/lib.gpr
lib/libh2.gpr
bin/Makefile
@ -689,13 +255,6 @@ echo " Build mode : ${BUILD_MODE}"
echo " Source directory: ${srcdir}"
echo " Installation directory: ${prefix}"
echo " C compiler: ${CC} ${CFLAGS}"
echo " C++ compiler: ${CXX} ${CXXFLAGS}"
echo " C++ support: ${enable_cxx_is}"
echo " Wide character: ${enable_wchar_is}"
echo " Math library: ${LIBM}"
echo " Pthread library: ${PTHREAD_LIBS}"
echo " Socket library: ${SOCKET_LIBS}"
echo " Sendfile library: ${SENDFILE_LIBS}"
echo " SSL library: ${SSL_LIBS}"
echo "-------------------------------------------------------------------------"
]

247
h2-cfg.h.in Normal file
View File

@ -0,0 +1,247 @@
/* h2-cfg.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Define h2_char_t to h2_mchar_t */
#undef H2_CHAR_IS_MCHAR
/* Define h2_char_t to h2_wchar_t */
#undef H2_CHAR_IS_WCHAR
/* Define h2_char_t to h2_wwchar_t */
#undef H2_CHAR_IS_WWCHAR
/* link modules statically into the main library */
#undef H2_ENABLE_STATIC_MODULE
/* Big Endian */
#undef H2_ENDIAN_BIG
/* Little Endian */
#undef H2_ENDIAN_LITTLE
/* Unknown Endian */
#undef H2_ENDIAN_UNKNOWN
/* Author */
#undef H2_PACKAGE_AUTHOR
/* package name */
#undef H2_PACKAGE_NAME
/* Project URL */
#undef H2_PACKAGE_URL
/* Package version */
#undef H2_PACKAGE_VERSION
/* Major version number */
#undef H2_PACKAGE_VERSION_MAJOR
/* Minor version number */
#undef H2_PACKAGE_VERSION_MINOR
/* Patch level */
#undef H2_PACKAGE_VERSION_PATCH
/* sizeof(char) */
#undef H2_SIZEOF_CHAR
/* sizeof(double) */
#undef H2_SIZEOF_DOUBLE
/* sizeof(float) */
#undef H2_SIZEOF_FLOAT
/* sizeof(int) */
#undef H2_SIZEOF_INT
/* sizeof(long) */
#undef H2_SIZEOF_LONG
/* sizeof(long double) */
#undef H2_SIZEOF_LONG_DOUBLE
/* sizeof(long long) */
#undef H2_SIZEOF_LONG_LONG
/* sizeof(off64_t) */
#undef H2_SIZEOF_OFF64_T
/* sizeof(off_t) */
#undef H2_SIZEOF_OFF_T
/* sizeof(short) */
#undef H2_SIZEOF_SHORT
/* sizeof(void*) */
#undef H2_SIZEOF_VOID_P
/* sizeof(__float128) */
#undef H2_SIZEOF___FLOAT128
/* sizeof(__int128) */
#undef H2_SIZEOF___INT128
/* sizeof(__int128_t) */
#undef H2_SIZEOF___INT128_T
/* sizeof(__int16) */
#undef H2_SIZEOF___INT16
/* sizeof(__int32) */
#undef H2_SIZEOF___INT32
/* sizeof(__int64) */
#undef H2_SIZEOF___INT64
/* sizeof(__int8) */
#undef H2_SIZEOF___INT8
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* va_copy is available */
#undef HAVE_VA_COPY
/* __va_copy is available */
#undef HAVE___VA_COPY
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* The size of `char', as computed by sizeof. */
#undef SIZEOF_CHAR
/* The size of `double', as computed by sizeof. */
#undef SIZEOF_DOUBLE
/* The size of `float', as computed by sizeof. */
#undef SIZEOF_FLOAT
/* The size of `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of `long double', as computed by sizeof. */
#undef SIZEOF_LONG_DOUBLE
/* The size of `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
/* The size of `off64_t', as computed by sizeof. */
#undef SIZEOF_OFF64_T
/* The size of `off_t', as computed by sizeof. */
#undef SIZEOF_OFF_T
/* The size of `short', as computed by sizeof. */
#undef SIZEOF_SHORT
/* The size of `void *', as computed by sizeof. */
#undef SIZEOF_VOID_P
/* The size of `wchar_t', as computed by sizeof. */
#undef SIZEOF_WCHAR_T
/* The size of `__float128', as computed by sizeof. */
#undef SIZEOF___FLOAT128
/* The size of `__int128', as computed by sizeof. */
#undef SIZEOF___INT128
/* The size of `__int128_t', as computed by sizeof. */
#undef SIZEOF___INT128_T
/* The size of `__int16', as computed by sizeof. */
#undef SIZEOF___INT16
/* The size of `__int16_t', as computed by sizeof. */
#undef SIZEOF___INT16_T
/* The size of `__int32', as computed by sizeof. */
#undef SIZEOF___INT32
/* The size of `__int32_t', as computed by sizeof. */
#undef SIZEOF___INT32_T
/* The size of `__int64', as computed by sizeof. */
#undef SIZEOF___INT64
/* The size of `__int64_t', as computed by sizeof. */
#undef SIZEOF___INT64_T
/* The size of `__int8', as computed by sizeof. */
#undef SIZEOF___INT8
/* The size of `__int8_t', as computed by sizeof. */
#undef SIZEOF___INT8_T
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif

View File

@ -1,15 +0,0 @@
/* This is a private header. */
#ifdef __cplusplus
extern "C" {
#endif
int H2_XFUN(strcmp) (const h2_xchar_t* str1, const h2_xchar_t* str2);
h2_size_t H2_XFUN(strcpy) (h2_xchar_t* dst, const h2_xchar_t* src);
h2_size_t H2_XFUN(strfmc) (h2_xchar_t* buf, const h2_xchar_t* fmt, const h2_xchar_t* str[]);
h2_size_t H2_XFUN(strlen) (const h2_xchar_t* str);
#ifdef __cplusplus
}
#endif

View File

@ -1,36 +0,0 @@
#ifndef _H2_STR_H_
#define _H2_STR_H_
#include <h2/types.h>
#include <h2/macros.h>
#if defined(H2_ENABLE_MCHAR)
# define h2_xchar_t h2_mchar_t
# define H2_XFUN(x) H2_FUN_M(x)
# include "str-priv.h"
# undef h2_xchar_t
# undef H2_XFUN
#endif
#if defined(H2_ENABLE_WCHAR)
# define h2_xchar_t h2_wchar_t
# define H2_XFUN(x) H2_FUN_W(x)
# include "str-priv.h"
# undef h2_xchar_t
# undef H2_XFUN
#endif
#if defined(H2_ENABLE_WWCHAR)
# define h2_xchar_t h2_wwchar_t
# define H2_XFUN(x) H2_FUN_WW(x)
# include "str-priv.h"
# undef h2_xchar_t
# undef H2_XFUN
#endif
#define h2_strcmp H2_FUN(strcmp)
#define h2_strcpy H2_FUN(strcpy)
#define h2_strfmc H2_FUN(strfmc)
#define h2_strlen H2_FUN(strlen)
#endif

View File

@ -1,103 +0,0 @@
/*
* $Id$
*
Copyright 2006-2014 Chung, Hyung-Hwan.
This file is part of H2.
H2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
H2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with H2. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H2_CMN_UTF16_H_
#define _H2_CMN_UTF16_H_
#include <h2/types.h>
#include <h2/macros.h>
/** \file
* This file provides functions, types, macros for utf16 conversion.
*/
/**
* The H2_UTF16LEN_MAX macro defines the maximum number of qse_wchar_t
* needed to form a single unicode character.
*/
#define H2_UTF16LEN_MAX (H2_SIZEOF_WXCHAR_T / H2_SIZEOF_WCHAR_T)
#ifdef __cplusplus
extern "C" {
#endif
/**
* The h2_uctoutf16() function converts a unicode character to a utf16 sequence.
* \return
* - 0 is returned if \a uc is invalid.
* - An integer greater than \a size is returned if the \a utf16 sequence buffer
* is not #H2_NULL and not large enough. This integer is actually the number
* of bytes needed.
* - If \a utf16 is #H2_NULL, the number of bytes that would have been stored
* into \a utf16 if it had not been #H2_NULL is returned.
* - An integer between 1 and size inclusive is returned in all other cases.
* \note
* This function doesn't check invalid unicode code points and performs
* conversion compuationally.
*/
h2_size_t h2_uctoutf16 (
h2_wxchar_t uc,
h2_wchar_t* utf16,
h2_size_t size
);
/**
* The h2_utf16touc() function converts a utf16 sequence to a unicode character.
* \return
* - 0 is returned if the \a utf16 sequence is invalid.
* - An integer greater than \a size is returned if the \a utf16 sequence is
* not complete.
* - An integer between 1 and size inclusive is returned in all other cases.
*/
h2_size_t h2_utf16touc (
const h2_wchar_t* utf16,
h2_size_t size,
h2_wxchar_t* uc
);
/**
* The h2_utf16len() function scans at most \a size bytes from the \a utf16
* sequence and returns the number of bytes needed to form a single unicode
* character.
* \return
* - 0 is returned if the \a utf16 sequence is invalid.
* - An integer greater than \a size is returned if the \a utf16 sequence is
* not complete.
* - An integer between 1 and size inclusive is returned in all other cases.
*/
h2_size_t h2_utf16len (
const h2_wchar_t* utf16,
h2_size_t size
);
/**
* The h2_utf16lenmax() function returns the maximum number of qse_wchar_t
* needed to form a single unicode character. Use #H2_UTF16LEN_MAX if you
* need a compile-time constant.
*/
h2_size_t h2_utf16lenmax (
void
);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,109 +0,0 @@
/*
* $Id$
*
Copyright 2006-2014 Chung, Hyung-Hwan.
This file is part of H2.
H2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
H2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with H2. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H2_CMN_UTF8_H_
#define _H2_CMN_UTF8_H_
#include <h2/types.h>
#include <h2/macros.h>
/** \file
* This file provides functions, types, macros for utf8 conversion.
*/
/**
* The H2_UTF8LEN_MAX macro defines the maximum number of bytes
* needed to form a single unicode character.
*/
#if H2_SIZEOF_WXCHAR_T == 2
# define H2_UTF8LEN_MAX 3
#elif H2_SIZEOF_WXCHAR_T == 4
# define H2_UTF8LEN_MAX 6
#else
# error Unsupported wide character size
#endif
#ifdef __cplusplus
extern "C" {
#endif
/**
* The h2_uctoutf8() function converts a unicode character to a utf8 sequence.
* \return
* - 0 is returned if \a uc is invalid.
* - An integer greater than \a size is returned if the \a utf8 sequence buffer
* is not #H2_NULL and not large enough. This integer is actually the number
* of bytes needed.
* - If \a utf8 is #H2_NULL, the number of bytes that would have been stored
* into \a utf8 if it had not been #H2_NULL is returned.
* - An integer between 1 and size inclusive is returned in all other cases.
* \note
* This function doesn't check invalid unicode code points and performs
* conversion compuationally.
*/
h2_size_t h2_uctoutf8 (
h2_wxchar_t uc,
h2_mchar_t* utf8,
h2_size_t size
);
/**
* The h2_utf8touc() function converts a utf8 sequence to a unicode character.
* \return
* - 0 is returned if the \a utf8 sequence is invalid.
* - An integer greater than \a size is returned if the \a utf8 sequence is
* not complete.
* - An integer between 1 and size inclusive is returned in all other cases.
*/
h2_size_t h2_utf8touc (
const h2_mchar_t* utf8,
h2_size_t size,
h2_wxchar_t* uc
);
/**
* The h2_utf8len() function scans at most \a size bytes from the \a utf8
* sequence and returns the number of bytes needed to form a single unicode
* character.
* \return
* - 0 is returned if the \a utf8 sequence is invalid.
* - An integer greater than \a size is returned if the \a utf8 sequence is
* not complete.
* - An integer between 1 and size inclusive is returned in all other cases.
*/
h2_size_t h2_utf8len (
const h2_mchar_t* utf8,
h2_size_t size
);
/**
* The h2_utf8lenmax() function returns the maximum number of bytes needed
* to form a single unicode character. Use #H2_UTF8LEN_MAX if you need a
* compile-time constant.
*/
h2_size_t h2_utf8lenmax (
void
);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,824 +0,0 @@
/* include/h2/config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Define h2_char_t to h2_mchar_t */
#undef H2_CHAR_IS_MCHAR
/* Define h2_char_t to h2_wchar_t */
#undef H2_CHAR_IS_WCHAR
/* Define h2_char_t to h2_wwchar_t */
#undef H2_CHAR_IS_WWCHAR
/* use the bundled unicode routines */
#undef H2_ENABLE_BUNDLED_UNICODE
/* Enable qse_mchar_t */
#undef H2_ENABLE_MCHAR
/* enable h2_sed_setexectracer() */
#undef H2_ENABLE_SED_TRACER
/* link modules statically into the main library */
#undef H2_ENABLE_STATIC_MODULE
/* Enable qse_wchar_t */
#undef H2_ENABLE_WCHAR
/* Enable qse_wwchar_t */
#undef H2_ENABLE_WWCHAR
/* include more built-in cmgrs like cp949 and cp950 */
#undef H2_ENABLE_XCMGRS
/* Big Endian */
#undef H2_ENDIAN_BIG
/* Little Endian */
#undef H2_ENDIAN_LITTLE
/* Unknown Endian */
#undef H2_ENDIAN_UNKNOWN
/* MB_LEN_MAX */
#undef H2_MBLEN_MAX
/* Author */
#undef H2_PACKAGE_AUTHOR
/* package name */
#undef H2_PACKAGE_NAME
/* Project URL */
#undef H2_PACKAGE_URL
/* Package version */
#undef H2_PACKAGE_VERSION
/* Major version number */
#undef H2_PACKAGE_VERSION_MAJOR
/* Minor version number */
#undef H2_PACKAGE_VERSION_MINOR
/* Patch level */
#undef H2_PACKAGE_VERSION_PATCH
/* sizeof(char) */
#undef H2_SIZEOF_CHAR
/* sizeof(double) */
#undef H2_SIZEOF_DOUBLE
/* sizeof(float) */
#undef H2_SIZEOF_FLOAT
/* sizeof(int) */
#undef H2_SIZEOF_INT
/* sizeof(long) */
#undef H2_SIZEOF_LONG
/* sizeof(long double) */
#undef H2_SIZEOF_LONG_DOUBLE
/* sizeof(long long) */
#undef H2_SIZEOF_LONG_LONG
/* sizeof(mbstate_t) */
#undef H2_SIZEOF_MBSTATE_T
/* sizeof(off64_t) */
#undef H2_SIZEOF_OFF64_T
/* sizeof(off_t) */
#undef H2_SIZEOF_OFF_T
/* sizeof(short) */
#undef H2_SIZEOF_SHORT
/* sizeof(struct sockaddr_in) */
#undef H2_SIZEOF_STRUCT_SOCKADDR_IN
/* sizeof(struct sockaddr_in6) */
#undef H2_SIZEOF_STRUCT_SOCKADDR_IN6
/* sizeof(void*) */
#undef H2_SIZEOF_VOID_P
/* sizeof(__float128) */
#undef H2_SIZEOF___FLOAT128
/* sizeof(__int128) */
#undef H2_SIZEOF___INT128
/* sizeof(__int128_t) */
#undef H2_SIZEOF___INT128_T
/* sizeof(__int16) */
#undef H2_SIZEOF___INT16
/* sizeof(__int32) */
#undef H2_SIZEOF___INT32
/* sizeof(__int64) */
#undef H2_SIZEOF___INT64
/* sizeof(__int8) */
#undef H2_SIZEOF___INT8
/* use h2_fltmax_t for floating-point numbers in AWK */
#undef H2_USE_AWK_FLTMAX
/* use h2_intmax_t for integers in AWK */
#undef H2_USE_AWK_INTMAX
/* use the syscall() function to invoke a system call */
#undef H2_USE_SYSCALL
/* Define to 1 if you have the `atan' function. */
#undef HAVE_ATAN
/* Define to 1 if you have the `atan2' function. */
#undef HAVE_ATAN2
/* Define to 1 if you have the `atan2f' function. */
#undef HAVE_ATAN2F
/* Define to 1 if you have the `atan2l' function. */
#undef HAVE_ATAN2L
/* Define to 1 if you have the `atan2q' function. */
#undef HAVE_ATAN2Q
/* Define to 1 if you have the `atanf' function. */
#undef HAVE_ATANF
/* Define to 1 if you have the `atanl' function. */
#undef HAVE_ATANL
/* Define to 1 if you have the `atanq' function. */
#undef HAVE_ATANQ
/* Define to 1 if you have the `backtrace' function. */
#undef HAVE_BACKTRACE
/* Define to 1 if you have the `backtrace_symbols' function. */
#undef HAVE_BACKTRACE_SYMBOLS
/* Define to 1 if you have the `ceil' function. */
#undef HAVE_CEIL
/* Define to 1 if you have the `ceilf' function. */
#undef HAVE_CEILF
/* Define to 1 if you have the `ceill' function. */
#undef HAVE_CEILL
/* Define to 1 if you have the `ceilq' function. */
#undef HAVE_CEILQ
/* Define to 1 if you have the `connect' function. */
#undef HAVE_CONNECT
/* Define to 1 if you have the `cos' function. */
#undef HAVE_COS
/* Define to 1 if you have the `cosf' function. */
#undef HAVE_COSF
/* Define to 1 if you have the `cosl' function. */
#undef HAVE_COSL
/* Define to 1 if you have the `cosq' function. */
#undef HAVE_COSQ
/* Define to 1 if you have the <crt_externs.h> header file. */
#undef HAVE_CRT_EXTERNS_H
/* Define if c++ supports namespace std. */
#undef HAVE_CXX_NAMESPACE_STD
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#undef HAVE_DIRENT_H
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* epoll support */
#undef HAVE_EPOLL
/* Define to 1 if you have the `epoll_create' function. */
#undef HAVE_EPOLL_CREATE
/* Define to 1 if you have the `epoll_create1' function. */
#undef HAVE_EPOLL_CREATE1
/* Define to 1 if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
/* Define to 1 if you have the <execinfo.h> header file. */
#undef HAVE_EXECINFO_H
/* Define to 1 if you have the `exp' function. */
#undef HAVE_EXP
/* Define to 1 if you have the `expf' function. */
#undef HAVE_EXPF
/* Define to 1 if you have the `expl' function. */
#undef HAVE_EXPL
/* Define to 1 if you have the `expq' function. */
#undef HAVE_EXPQ
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the `fdopendir' function. */
#undef HAVE_FDOPENDIR
/* Define to 1 if you have the `floor' function. */
#undef HAVE_FLOOR
/* Define to 1 if you have the `floorf' function. */
#undef HAVE_FLOORF
/* Define to 1 if you have the `floorl' function. */
#undef HAVE_FLOORL
/* Define to 1 if you have the `floorq' function. */
#undef HAVE_FLOORQ
/* Define to 1 if you have the `fmod' function. */
#undef HAVE_FMOD
/* Define to 1 if you have the `fmodf' function. */
#undef HAVE_FMODF
/* Define to 1 if you have the `fmodl' function. */
#undef HAVE_FMODL
/* Define to 1 if you have the `fmodq' function. */
#undef HAVE_FMODQ
/* Define to 1 if you have the `fork' function. */
#undef HAVE_FORK
/* Define to 1 if you have the `fstat64' function. */
#undef HAVE_FSTAT64
/* Define to 1 if you have the `ftruncate64' function. */
#undef HAVE_FTRUNCATE64
/* Define to 1 if you have the `getcontext' function. */
#undef HAVE_GETCONTEXT
/* Define to 1 if you have the `gethostbyname' function. */
#undef HAVE_GETHOSTBYNAME
/* Define to 1 if you have the `getifaddrs' function. */
#undef HAVE_GETIFADDRS
/* Define to 1 if you have the `getrlimit' function. */
#undef HAVE_GETRLIMIT
/* Define to 1 if you have the `gettid' function. */
#undef HAVE_GETTID
/* Define to 1 if you have the <ifaddrs.h> header file. */
#undef HAVE_IFADDRS_H
/* Define to 1 if you have the `if_indextoname' function. */
#undef HAVE_IF_INDEXTONAME
/* Define to 1 if you have the `if_nametoindex' function. */
#undef HAVE_IF_NAMETOINDEX
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `isblank' function. */
#undef HAVE_ISBLANK
/* Define to 1 if you have the `iswblank' function. */
#undef HAVE_ISWBLANK
/* Define to 1 if you have the `iswctype' function. */
#undef HAVE_ISWCTYPE
/* Define to 1 if you have the `kevent' function. */
#undef HAVE_KEVENT
/* Define to 1 if you have the `kqueue' function. */
#undef HAVE_KQUEUE
/* Define to 1 if you have the `kqueue1' function. */
#undef HAVE_KQUEUE1
/* Define to 1 if you have the <linux/ethtool.h> header file. */
#undef HAVE_LINUX_ETHTOOL_H
/* Define to 1 if you have the <linux/netfilter_ipv4.h> header file. */
#undef HAVE_LINUX_NETFILTER_IPV4_H
/* Define to 1 if you have the <linux/sockios.h> header file. */
#undef HAVE_LINUX_SOCKIOS_H
/* Define to 1 if you have the `log' function. */
#undef HAVE_LOG
/* Define to 1 if you have the `log10' function. */
#undef HAVE_LOG10
/* Define to 1 if you have the `log10f' function. */
#undef HAVE_LOG10F
/* Define to 1 if you have the `log10l' function. */
#undef HAVE_LOG10L
/* Define to 1 if you have the `log10q' function. */
#undef HAVE_LOG10Q
/* Define to 1 if you have the `logf' function. */
#undef HAVE_LOGF
/* Define to 1 if you have the `logl' function. */
#undef HAVE_LOGL
/* Define to 1 if you have the `logq' function. */
#undef HAVE_LOGQ
/* Define to 1 if you have the `lseek64' function. */
#undef HAVE_LSEEK64
/* Define to 1 if you have the `lstat64' function. */
#undef HAVE_LSTAT64
/* Define to 1 if you have the `makecontext' function. */
#undef HAVE_MAKECONTEXT
/* Define to 1 if you have the `mbrlen' function. */
#undef HAVE_MBRLEN
/* Define to 1 if you have the `mbrtowc' function. */
#undef HAVE_MBRTOWC
/* Define to 1 if you have the `mbsnrtowcs' function. */
#undef HAVE_MBSNRTOWCS
/* Define to 1 if you have the `mbsrtowcs' function. */
#undef HAVE_MBSRTOWCS
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have MPI libs and headers. */
#undef HAVE_MPI
/* Define to 1 if you have the `nanosleep' function. */
#undef HAVE_NANOSLEEP
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H
/* Define to 1 if you have the <net/if_dl.h> header file. */
#undef HAVE_NET_IF_DL_H
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H
/* Define to 1 if you have the `posix_spawn' function. */
#undef HAVE_POSIX_SPAWN
/* Define to 1 if you have the `pow' function. */
#undef HAVE_POW
/* Define to 1 if you have the `powf' function. */
#undef HAVE_POWF
/* Define to 1 if you have the `powl' function. */
#undef HAVE_POWL
/* Define to 1 if you have the `powq' function. */
#undef HAVE_POWQ
/* Define to 1 if you have the `prctl' function. */
#undef HAVE_PRCTL
/* Define if you have POSIX threads libraries and header files. */
#undef HAVE_PTHREAD
/* Have PTHREAD_PRIO_INHERIT. */
#undef HAVE_PTHREAD_PRIO_INHERIT
/* Define to 1 if you have the <quadmath.h> header file. */
#undef HAVE_QUADMATH_H
/* Define to 1 if you have the `quadmath_snprintf' function. */
#undef HAVE_QUADMATH_SNPRINTF
/* Define to 1 if you have the `readdir64' function. */
#undef HAVE_READDIR64
/* Define to 1 if you have the `round' function. */
#undef HAVE_ROUND
/* Define to 1 if you have the `roundf' function. */
#undef HAVE_ROUNDF
/* Define to 1 if you have the `roundl' function. */
#undef HAVE_ROUNDL
/* Define to 1 if you have the `roundq' function. */
#undef HAVE_ROUNDQ
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
/* Define to 1 if you have the `sendfile' function. */
#undef HAVE_SENDFILE
/* Define to 1 if you have the `sendfile64' function. */
#undef HAVE_SENDFILE64
/* Define to 1 if you have the `sendfilev' function. */
#undef HAVE_SENDFILEV
/* Define to 1 if you have the `sendfilev64' function. */
#undef HAVE_SENDFILEV64
/* Define to 1 if you have the `setcontext' function. */
#undef HAVE_SETCONTEXT
/* Define to 1 if you have the `setrlimit' function. */
#undef HAVE_SETRLIMIT
/* Define to 1 if you have the <signal.h> header file. */
#undef HAVE_SIGNAL_H
/* Define to 1 if you have the `sin' function. */
#undef HAVE_SIN
/* Define to 1 if you have the `sinf' function. */
#undef HAVE_SINF
/* Define to 1 if you have the `sinl' function. */
#undef HAVE_SINL
/* Define to 1 if you have the `sinq' function. */
#undef HAVE_SINQ
/* Define it socklen_t typedef is in sys/socket.h. */
#undef HAVE_SOCKLEN_T
/* Define to 1 if you have the <spawn.h> header file. */
#undef HAVE_SPAWN_H
/* Define to 1 if you have the `sqrt' function. */
#undef HAVE_SQRT
/* Define to 1 if you have the `sqrtf' function. */
#undef HAVE_SQRTF
/* Define to 1 if you have the `sqrtl' function. */
#undef HAVE_SQRTL
/* Define to 1 if you have the `sqrtq' function. */
#undef HAVE_SQRTQ
/* ssl support */
#undef HAVE_SSL
/* Define to 1 if you have the `SSL_library_init' function. */
#undef HAVE_SSL_LIBRARY_INIT
/* Define to 1 if you have the `stat64' function. */
#undef HAVE_STAT64
/* Define to 1 if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strtoflt128' function. */
#undef HAVE_STRTOFLT128
/* Define to 1 if `d_type' is a member of `struct dirent'. */
#undef HAVE_STRUCT_DIRENT_D_TYPE
/* Define to 1 if `ifr_ifindex' is a member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_IFINDEX
/* Define to 1 if `ifr_mtu' is a member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_MTU
/* Define to 1 if the system has the type `struct if_laddrreq'. */
#undef HAVE_STRUCT_IF_LADDRREQ
/* Define to 1 if the system has the type `struct lifconf'. */
#undef HAVE_STRUCT_LIFCONF
/* Define to 1 if the system has the type `struct lifreq'. */
#undef HAVE_STRUCT_LIFREQ
/* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */
#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
/* Define to 1 if `st_birthtime' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BIRTHTIME
/* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
/* Define to 1 if `st_birthtim.tv_nsec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC
/* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
/* Define to 1 if you have the `swapcontext' function. */
#undef HAVE_SWAPCONTEXT
/* Define to 1 if you have the `sysconf' function. */
#undef HAVE_SYSCONF
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
*/
#undef HAVE_SYS_DIR_H
/* Define to 1 if you have the <sys/epoll.h> header file. */
#undef HAVE_SYS_EPOLL_H
/* Define to 1 if you have the <sys/event.h> header file. */
#undef HAVE_SYS_EVENT_H
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
/* Define to 1 if you have the <sys/macstat.h> header file. */
#undef HAVE_SYS_MACSTAT_H
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
#undef HAVE_SYS_NDIR_H
/* Define to 1 if you have the <sys/prctl.h> header file. */
#undef HAVE_SYS_PRCTL_H
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define to 1 if you have the <sys/sendfile.h> header file. */
#undef HAVE_SYS_SENDFILE_H
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
/* Define to 1 if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/stropts.h> header file. */
#undef HAVE_SYS_STROPTS_H
/* Define to 1 if you have the <sys/syscall.h> header file. */
#undef HAVE_SYS_SYSCALL_H
/* Define to 1 if you have the <sys/sysctl.h> header file. */
#undef HAVE_SYS_SYSCTL_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <sys/wait.h> header file. */
#undef HAVE_SYS_WAIT_H
/* Define to 1 if you have the `tan' function. */
#undef HAVE_TAN
/* Define to 1 if you have the `tanf' function. */
#undef HAVE_TANF
/* Define to 1 if you have the `tanl' function. */
#undef HAVE_TANL
/* Define to 1 if you have the `tanq' function. */
#undef HAVE_TANQ
/* Define to 1 if you have the `timegm' function. */
#undef HAVE_TIMEGM
/* Define to 1 if you have the `timelocal' function. */
#undef HAVE_TIMELOCAL
/* Define to 1 if you have the <time.h> header file. */
#undef HAVE_TIME_H
/* Define to 1 if you have the `towctrans' function. */
#undef HAVE_TOWCTRANS
/* Define to 1 if you have the <uci.h> header file. */
#undef HAVE_UCI_H
/* Define to 1 if you have the <ucontext.h> header file. */
#undef HAVE_UCONTEXT_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `uselocale' function. */
#undef HAVE_USELOCALE
/* Define to 1 if you have the `utime' function. */
#undef HAVE_UTIME
/* Define to 1 if you have the `utimes' function. */
#undef HAVE_UTIMES
/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* va_copy is available */
#undef HAVE_VA_COPY
/* Define to 1 if you have the `vfork' function. */
#undef HAVE_VFORK
/* Define to 1 if you have the <wchar.h> header file. */
#undef HAVE_WCHAR_H
/* Define to 1 if you have the `wcrtomb' function. */
#undef HAVE_WCRTOMB
/* Define to 1 if you have the `wcsnrtombs' function. */
#undef HAVE_WCSNRTOMBS
/* Define to 1 if you have the `wcsrtombs' function. */
#undef HAVE_WCSRTOMBS
/* Define to 1 if you have the `wctrans' function. */
#undef HAVE_WCTRANS
/* Define to 1 if you have the `wctype' function. */
#undef HAVE_WCTYPE
/* Define to 1 if you have the <wctype.h> header file. */
#undef HAVE_WCTYPE_H
/* Define to 1 if you have the `_vsnprintf' function. */
#undef HAVE__VSNPRINTF
/* Define to 1 if you have the `_vsnwprintf' function. */
#undef HAVE__VSNWPRINTF
/* __va_copy is available */
#undef HAVE___VA_COPY
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* The size of `MB_LEN_MAX', as computed by valueof. */
#undef NUMVALOF_MB_LEN_MAX
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to necessary symbol if this constant uses a non-standard name on
your system. */
#undef PTHREAD_CREATE_JOINABLE
/* The size of `char', as computed by sizeof. */
#undef SIZEOF_CHAR
/* The size of `double', as computed by sizeof. */
#undef SIZEOF_DOUBLE
/* The size of `float', as computed by sizeof. */
#undef SIZEOF_FLOAT
/* The size of `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of `long double', as computed by sizeof. */
#undef SIZEOF_LONG_DOUBLE
/* The size of `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
/* The size of `mbstate_t', as computed by sizeof. */
#undef SIZEOF_MBSTATE_T
/* The size of `off64_t', as computed by sizeof. */
#undef SIZEOF_OFF64_T
/* The size of `off_t', as computed by sizeof. */
#undef SIZEOF_OFF_T
/* The size of `short', as computed by sizeof. */
#undef SIZEOF_SHORT
/* The size of `struct sockaddr_in', as computed by sizeof. */
#undef SIZEOF_STRUCT_SOCKADDR_IN
/* The size of `struct sockaddr_in6', as computed by sizeof. */
#undef SIZEOF_STRUCT_SOCKADDR_IN6
/* The size of `void *', as computed by sizeof. */
#undef SIZEOF_VOID_P
/* The size of `wchar_t', as computed by sizeof. */
#undef SIZEOF_WCHAR_T
/* The size of `__float128', as computed by sizeof. */
#undef SIZEOF___FLOAT128
/* The size of `__int128', as computed by sizeof. */
#undef SIZEOF___INT128
/* The size of `__int128_t', as computed by sizeof. */
#undef SIZEOF___INT128_T
/* The size of `__int16', as computed by sizeof. */
#undef SIZEOF___INT16
/* The size of `__int16_t', as computed by sizeof. */
#undef SIZEOF___INT16_T
/* The size of `__int32', as computed by sizeof. */
#undef SIZEOF___INT32
/* The size of `__int32_t', as computed by sizeof. */
#undef SIZEOF___INT32_T
/* The size of `__int64', as computed by sizeof. */
#undef SIZEOF___INT64
/* The size of `__int64_t', as computed by sizeof. */
#undef SIZEOF___INT64_T
/* The size of `__int8', as computed by sizeof. */
#undef SIZEOF___INT8
/* The size of `__int8_t', as computed by sizeof. */
#undef SIZEOF___INT8_T
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif

View File

@ -1,90 +0,0 @@
#ifndef _H2_MACROS_H_
#define _H2_MACROS_H_
#include <h2/types.h>
#define H2_MCHAR(x) ((h2_mchar_t)(x))
#define H2_WCHAR(x) ((h2_wchar_t)(x))
#define H2_WWCHAR(x) ((h2_wwchar_t)(x))
#define H2_FUN_M(x) h2_ ## x ## _m
#define H2_FUN_W(x) h2_ ## x ## _w
#define H2_FUN_WW(x) h2_ ## x ## _ww
#if defined(H2_CHAR_IS_MCHAR)
# define H2_CHAR(x) H2_MCHAR(x)
# define H2_FUN(x) H2_FUN_M(x)
#elif defined(H2_CHAR_IS_WCHAR)
# define H2_CHAR(x) H2_WCHAR(x)
# define H2_FUN(x) H2_FUN_W(x)
#elif defined(H2_CHAR_IS_WWCHAR)
# define H2_CHAR(x) H2_WWCHAR(x)
# define H2_FUN(x) H2_FUN_WW(x)
#else
# error Unknown default character type
#endif
/* Basic character codes... */
#define H2_CHAR_NUL 0
#define H2_CHAR_SPC 32
/**
* The H2_SIZEOF() macro gets data size in bytes. It is equivalent to the
* sizeof operator. The following code snippet should print sizeof(int)*128.
* @code
* int x[128];
* printf ("%d\n", (int)H2_SIZEOF(x));
* @endcode
*/
#define H2_SIZEOF(n) (sizeof(n))
/**
* The H2_COUNTOF() macro returns the number elements in an array.
* The following code snippet should print 128.
* @code
* int x[128];
* printf ("%d\n", (int)H2_COUNTOF(x));
* @endcode
*/
#define H2_COUNTOF(n) (sizeof(n)/sizeof(n[0]))
/**
* The #H2_NULL macro defines a special pointer value to indicate an error or
* that it does not point to anything.
*/
#ifdef __cplusplus
# if H2_SIZEOF_VOID_P == H2_SIZEOF_INT
# define H2_NULL (0)
# elif H2_SIZEOF_VOID_P == H2_SIZEOF_LONG
# define H2_NULL (0l)
# elif H2_SIZEOF_VOID_P == H2_SIZEOF_LONG_LONG
# define H2_NULL (0ll)
# else
# define H2_NULL (0)
# endif
#else
# define H2_NULL ((void*)0)
#endif
/* TODO: define these properly */
#define H2_ASSERT(expr) ((void)0)
#define H2_ASSERTX(expr,desc) ((void)0)
#if defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L)
# define H2_INLINE inline
# define H2_HAVE_INLINE
#elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)
# define H2_INLINE /*extern*/ inline
# define H2_HAVE_INLINE
#else
# define H2_INLINE
# undef H2_HAVE_INLINE
#endif
#endif

View File

@ -1,712 +0,0 @@
#ifndef _H2_TYPES_H_
#define _H2_TYPES_H_
/* WARNING: NEVER CHANGE/DELETE THE FOLLOWING H2_HAVE_CONFIG_H DEFINITION.
* IT IS USED FOR DEPLOYMENT BY MAKEFILE.AM */
/*#define H2_HAVE_CONFIG_H*/
#if defined(H2_HAVE_CONFIG_H)
# include <h2/config.h>
#elif defined(_WIN32)
# include <h2/conf-msw.h>
#elif defined(__OS2__)
# include <h2/conf-os2.h>
#elif defined(__DOS__)
# include <h2/conf-dos.h>
#elif defined(vms) || defined(__vms)
# include <h2/conf-vms.h>
#elif defined(macintosh)
# include <:h2:conf-mac.h> /* class mac os */
#else
# error Unsupported operating system
#endif
/** \typedef h2_int_t
* The h2_int_t type defines a signed integer type as large as a pointer.
*/
/** \typedef h2_uint_t
* The h2_uint_t type defines an unsigned integer type as large as a pointer.
*/
#if (defined(hpux) || defined(__hpux) || defined(__hpux__) || \
(defined(__APPLE__) && defined(__MACH__))) && \
(H2_SIZEOF_VOID_P == H2_SIZEOF_LONG)
typedef signed long h2_int_t;
typedef unsigned long h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF_LONG
#define H2_SIZEOF_UINT_T H2_SIZEOF_LONG
#elif defined(__SPU__) && (H2_SIZEOF_VOID_P == H2_SIZEOF_LONG)
typedef signed long h2_int_t;
typedef unsigned long h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF_LONG
#define H2_SIZEOF_UINT_T H2_SIZEOF_LONG
#elif H2_SIZEOF_VOID_P == H2_SIZEOF_INT
typedef signed int h2_int_t;
typedef unsigned int h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF_INT
#define H2_SIZEOF_UINT_T H2_SIZEOF_INT
#elif H2_SIZEOF_VOID_P == H2_SIZEOF_LONG
typedef signed long h2_int_t;
typedef unsigned long h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF_LONG
#define H2_SIZEOF_UINT_T H2_SIZEOF_LONG
#elif H2_SIZEOF_VOID_P == H2_SIZEOF_LONG_LONG
typedef signed long long h2_int_t;
typedef unsigned long long h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF_LONG_LONG
#define H2_SIZEOF_UINT_T H2_SIZEOF_LONG_LONG
#elif H2_SIZEOF_VOID_P == H2_SIZEOF___INT32
typedef signed __int32 h2_int_t;
typedef unsigned __int32 h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF___INT32
#define H2_SIZEOF_UINT_T H2_SIZEOF___INT32
#elif H2_SIZEOF_VOID_P == H2_SIZEOF___INT32_T
typedef __int32_t h2_int_t;
typedef __uint32_t h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF___INT32_T
#define H2_SIZEOF_UINT_T H2_SIZEOF___INT32_T
#elif H2_SIZEOF_VOID_P == H2_SIZEOF___INT64
typedef signed __int64 h2_int_t;
typedef unsigned __int64 h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF___INT64
#define H2_SIZEOF_UINT_T H2_SIZEOF___INT64
#elif H2_SIZEOF_VOID_P == H2_SIZEOF___INT64_T
typedef __int64_t h2_int_t;
typedef __uint64_t h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF___INT64_T
#define H2_SIZEOF_UINT_T H2_SIZEOF___INT64_T
#elif H2_SIZEOF_VOID_P == H2_SIZEOF___INT128
typedef signed __int128 h2_int_t;
typedef unsigned __int128 h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF___INT128
#define H2_SIZEOF_UINT_T H2_SIZEOF___INT128
#elif H2_SIZEOF_VOID_P == H2_SIZEOF___INT128_T
typedef __int128_t h2_int_t;
typedef __uint128_t h2_uint_t;
#define H2_SIZEOF_INT_T H2_SIZEOF___INT128_T
#define H2_SIZEOF_UINT_T H2_SIZEOF___INT128_T
#else
# error unsupported pointer size
#endif
/** \typedef h2_long_t
* The h2_long_t type defines the largest signed integer type that supported.
*/
/** \typedef h2_ulong_t
* The h2_ulong_t type defines the largest unsigned integer type supported.
*/
#if H2_SIZEOF_LONG >= H2_SIZEOF_LONG_LONG
typedef signed long h2_long_t;
typedef unsigned long h2_ulong_t;
#define H2_SIZEOF_LONG_T H2_SIZEOF_LONG
#define H2_SIZEOF_ULONG_T H2_SIZEOF_LONG
#elif H2_SIZEOF_LONG_LONG > 0
typedef signed long long h2_long_t;
typedef unsigned long long h2_ulong_t;
#define H2_SIZEOF_LONG_T H2_SIZEOF_LONG_LONG
#define H2_SIZEOF_ULONG_T H2_SIZEOF_LONG_LONG
#elif H2_SIZEOF___INT64 > 0
typedef signed __int64 h2_long_t;
typedef unsigned __int64 h2_ulong_t;
#define H2_SIZEOF_LONG_T H2_SIZEOF___INT64
#define H2_SIZEOF_ULONG_T H2_SIZEOF___INT64
#elif H2_SIZEOF___INT64_T > 0
typedef __int64_t h2_long_t;
typedef __uint64_t h2_ulong_t;
#define H2_SIZEOF_LONG_T H2_SIZEOF___INT64_T
#define H2_SIZEOF_ULONG_T H2_SIZEOF___INT64_T
#else
typedef signed long h2_long_t;
typedef unsigned long h2_ulong_t;
#define H2_SIZEOF_LONG_T H2_SIZEOF_LONG
#define H2_SIZEOF_ULONG_T H2_SIZEOF_LONG
#endif
/* these two items are revised whenever the size of a
* fixed-size integer is determined */
#define H2_SIZEOF_INTMAX_T 0
#define H2_SIZEOF_UINTMAX_T 0
/** \typedef h2_int8_t
* The h2_int8_t defines an 8-bit signed integer type.
*/
/** \typedef h2_uint8_t
* The h2_uint8_t type defines an 8-bit unsigned integer type.
*/
#if H2_SIZEOF_CHAR == 1
# define H2_HAVE_INT8_T
# define H2_HAVE_UINT8_T
typedef signed char h2_int8_t;
typedef unsigned char h2_uint8_t;
#elif H2_SIZEOF___INT8 == 1
# define H2_HAVE_INT8_T
# define H2_HAVE_UINT8_T
typedef signed __int8 h2_int8_t;
typedef unsigned __int8 h2_uint8_t;
#elif H2_SIZEOF___INT8_T == 1
# define H2_HAVE_INT8_T
# define H2_HAVE_UINT8_T
typedef __int8_t h2_int8_t;
typedef __uint8_t h2_uint8_t;
#endif
#ifdef H2_HAVE_INT8_T
# define H2_SIZEOF_INT8_T 1
# define H2_SIZEOF_UINT8_T 1
# undef H2_SIZEOF_INTMAX_T
# undef H2_SIZEOF_UINTMAX_T
# define H2_SIZEOF_INTMAX_T 1
# define H2_SIZEOF_UINTMAX_T 1
#else
# define H2_SIZEOF_INT8_T 0
# define H2_SIZEOF_UINT8_T 0
#endif
/** \typedef h2_int16_t
* The h2_int16_t defines an 16-bit signed integer type.
*/
/** \typedef h2_uint16_t
* The h2_uint16_t type defines an 16-bit unsigned integer type.
*/
#if H2_SIZEOF_SHORT == 2
# define H2_HAVE_INT16_T
# define H2_HAVE_UINT16_T
typedef signed short h2_int16_t;
typedef unsigned short h2_uint16_t;
#elif H2_SIZEOF___INT16 == 2
# define H2_HAVE_INT16_T
# define H2_HAVE_UINT16_T
typedef signed __int16 h2_int16_t;
typedef unsigned __int16 h2_uint16_t;
#elif H2_SIZEOF___INT16_T == 2
# define H2_HAVE_INT16_T
# define H2_HAVE_UINT16_T
typedef __int16_t h2_int16_t;
typedef __uint16_t h2_uint16_t;
#endif
#ifdef H2_HAVE_INT16_T
# define H2_SIZEOF_INT16_T 2
# define H2_SIZEOF_UINT16_T 2
# undef H2_SIZEOF_INTMAX_T
# undef H2_SIZEOF_UINTMAX_T
# define H2_SIZEOF_INTMAX_T 2
# define H2_SIZEOF_UINTMAX_T 2
#else
# define H2_SIZEOF_INT16_T 0
# define H2_SIZEOF_UINT16_T 0
#endif
/** \typedef h2_int32_t
* The h2_int32_t defines an 32-bit signed integer type.
*/
/** \typedef h2_uint32_t
* The h2_uint32_t type defines an 32-bit unsigned integer type.
*/
#if H2_SIZEOF_INT == 4
# define H2_HAVE_INT32_T
# define H2_HAVE_UINT32_T
typedef signed int h2_int32_t;
typedef unsigned int h2_uint32_t;
#elif H2_SIZEOF_LONG == 4
# define H2_HAVE_INT32_T
# define H2_HAVE_UINT32_T
typedef signed long h2_int32_t;
typedef unsigned long h2_uint32_t;
#elif H2_SIZEOF___INT32 == 4
# define H2_HAVE_INT32_T
# define H2_HAVE_UINT32_T
typedef signed __int32 h2_int32_t;
typedef unsigned __int32 h2_uint32_t;
#elif H2_SIZEOF___INT32_T == 4
# define H2_HAVE_INT32_T
# define H2_HAVE_UINT32_T
typedef __int32_t h2_int32_t;
typedef __uint32_t h2_uint32_t;
#endif
#ifdef H2_HAVE_INT32_T
# define H2_SIZEOF_INT32_T 4
# define H2_SIZEOF_UINT32_T 4
# undef H2_SIZEOF_INTMAX_T
# undef H2_SIZEOF_UINTMAX_T
# define H2_SIZEOF_INTMAX_T 4
# define H2_SIZEOF_UINTMAX_T 4
#else
# define H2_SIZEOF_INT32_T 0
# define H2_SIZEOF_UINT32_T 0
#endif
/** \typedef h2_int64_t
* The h2_int64_t defines an 64-bit signed integer type.
*/
/** \typedef h2_uint64_t
* The h2_uint64_t type defines an 64-bit unsigned integer type.
*/
#if H2_SIZEOF_INT == 8
# define H2_HAVE_INT64_T
# define H2_HAVE_UINT64_T
typedef signed int h2_int64_t;
typedef unsigned int h2_uint64_t;
#elif H2_SIZEOF_LONG == 8
# define H2_HAVE_INT64_T
# define H2_HAVE_UINT64_T
typedef signed long h2_int64_t;
typedef unsigned long h2_uint64_t;
#elif H2_SIZEOF_LONG_LONG == 8
# define H2_HAVE_INT64_T
# define H2_HAVE_UINT64_T
typedef signed long long h2_int64_t;
typedef unsigned long long h2_uint64_t;
#elif H2_SIZEOF___INT64 == 8
# define H2_HAVE_INT64_T
# define H2_HAVE_UINT64_T
typedef signed __int64 h2_int64_t;
typedef unsigned __int64 h2_uint64_t;
#elif H2_SIZEOF___INT64_T == 8
# define H2_HAVE_INT64_T
# define H2_HAVE_UINT64_T
typedef __int64_t h2_int64_t;
typedef __uint64_t h2_uint64_t;
#endif
#ifdef H2_HAVE_INT64_T
# define H2_SIZEOF_INT64_T 8
# define H2_SIZEOF_UINT64_T 8
# undef H2_SIZEOF_INTMAX_T
# undef H2_SIZEOF_UINTMAX_T
# define H2_SIZEOF_INTMAX_T 8
# define H2_SIZEOF_UINTMAX_T 8
#else
# define H2_SIZEOF_INT64_T 0
# define H2_SIZEOF_UINT64_T 0
#endif
#if H2_SIZEOF_INT == 16
# define H2_HAVE_INT128_T
# define H2_HAVE_UINT128_T
typedef signed int h2_int128_t;
typedef unsigned int h2_uint128_t;
#elif H2_SIZEOF_LONG == 16
# define H2_HAVE_INT128_T
# define H2_HAVE_UINT128_T
typedef signed long h2_int128_t;
typedef unsigned long h2_uint128_t;
#elif H2_SIZEOF_LONG_LONG == 16
# define H2_HAVE_INT128_T
# define H2_HAVE_UINT128_T
typedef signed long long h2_int128_t;
typedef unsigned long long h2_uint128_t;
#elif H2_SIZEOF___INT128 == 16
# define H2_HAVE_INT128_T
# define H2_HAVE_UINT128_T
typedef signed __int128 h2_int128_t;
typedef unsigned __int128 h2_uint128_t;
#elif (H2_SIZEOF___INT128_T == 16)
# define H2_HAVE_INT128_T
# define H2_HAVE_UINT128_T
typedef __int128_t h2_int128_t;
typedef __uint128_t h2_uint128_t;
#endif
#ifdef H2_HAVE_INT128_T
# define H2_SIZEOF_INT128_T 16
# define H2_SIZEOF_UINT128_T 16
# undef H2_SIZEOF_INTMAX_T
# undef H2_SIZEOF_UINTMAX_T
# define H2_SIZEOF_INTMAX_T 16
# define H2_SIZEOF_UINTMAX_T 16
#else
# define H2_SIZEOF_INT128_T 0
# define H2_SIZEOF_UINT128_T 0
#endif
/**
* The h2_byte_t defines a byte type.
*/
typedef h2_uint8_t h2_byte_t;
#define H2_SIZEOF_BYTE_T H2_SIZEOF_UINT8_T
/**
* The h2_size_t type defines an unsigned integer type that is as large as
* to hold a pointer value.
*/
#if defined(__SIZE_TYPE__) && defined(__SIZEOF_SIZE_T__)
typedef __SIZE_TYPE__ h2_size_t;
# define H2_SIZEOF_SIZE_T __SIZEOF_SIZE_T__
#else
typedef h2_uint_t h2_size_t;
# define H2_SIZEOF_SIZE_T H2_SIZEOF_UINT_T
#endif
/**
* The h2_ssize_t type defines a signed integer type that is as large as
* to hold a pointer value.
*/
typedef h2_int_t h2_ssize_t;
#define H2_SIZEOF_SSIZE_T H2_SIZEOF_INT_T
/**
* The h2_word_t type redefines h2_uint_t.
*/
typedef h2_uint_t h2_word_t;
#define H2_SIZEOF_WORD_T H2_SIZEOF_UINT_T
/**
* The h2_uintptr_t redefines h2_uint_t to indicate that you are dealing
* with a pointer.
*/
typedef h2_uint_t h2_uintptr_t;
#define H2_SIZEOF_UINTPTR_T H2_SIZEOF_UINT_T
/**
* The h2_untptr_t redefines h2_int_t to indicate that you are dealing
* with a pointer.
*/
typedef h2_int_t h2_intptr_t;
#define H2_SIZEOF_INTPTR_T H2_SIZEOF_INT_T
/** \typedef h2_intmax_t
* The h2_llong_t type defines the largest signed integer type supported.
*/
/** \typedef h2_uintmax_t
* The h2_ullong_t type defines the largest unsigned integer type supported.
*/
#if (H2_SIZEOF_LONG >= H2_SIZEOF_LONG_LONG) && \
(H2_SIZEOF_LONG >= H2_SIZEOF_INTMAX_T)
typedef long h2_intmax_t;
typedef unsigned long h2_uintmax_t;
#undef H2_SIZEOF_INTMAX_T
#undef H2_SIZEOF_UINTMAX_T
#define H2_SIZEOF_INTMAX_T H2_SIZEOF_LONG
#define H2_SIZEOF_UINTMAX_T H2_SIZEOF_LONG
#elif (H2_SIZEOF_LONG_LONG >= H2_SIZEOF_INTMAX_T)
typedef long long h2_intmax_t;
typedef unsigned long long h2_uintmax_t;
#undef H2_SIZEOF_INTMAX_T
#undef H2_SIZEOF_UINTMAX_T
#define H2_SIZEOF_INTMAX_T H2_SIZEOF_LONG_LONG
#define H2_SIZEOF_UINTMAX_T H2_SIZEOF_LONG_LONG
#elif (H2_SIZEOF_INTMAX_T == H2_SIZEOF_INT128_T)
typedef h2_int128_t h2_intmax_t;
typedef h2_uint128_t h2_uintmax_t;
/* H2_SIZEOF_INTMAX_T and H2_SIZEOF_UINTMAX_T are
* defined when h2_int128_t is defined */
#elif (H2_SIZEOF_INTMAX_T == H2_SIZEOF_INT64_T)
typedef h2_int64_t h2_intmax_t;
typedef h2_uint64_t h2_uintmax_t;
/* H2_SIZEOF_INTMAX_T and H2_SIZEOF_UINTMAX_T are
* defined when h2_int64_t is defined */
#elif (H2_SIZEOF_INTMAX_T == H2_SIZEOF_INT32_T)
typedef h2_int32_t h2_intmax_t;
typedef h2_uint32_t h2_uintmax_t;
/* H2_SIZEOF_INTMAX_T and H2_SIZEOF_UINTMAX_T are
* defined when h2_int32_t is defined */
#elif (H2_SIZEOF_INTMAX_T == H2_SIZEOF_INT16_T)
typedef h2_int16_t h2_intmax_t;
typedef h2_uint16_t h2_uintmax_t;
/* H2_SIZEOF_INTMAX_T and H2_SIZEOF_UINTMAX_T are
* defined when h2_int16_t is defined */
#elif (H2_SIZEOF_INTMAX_T == H2_SIZEOF_INT8_T)
typedef h2_int8_t h2_intmax_t;
typedef h2_uint8_t h2_uintmax_t;
/* H2_SIZEOF_INTMAX_T and H2_SIZEOF_UINTMAX_T are
* defined when h2_int8_t is defined */
#else
# error FATAL. THIS MUST NOT HAPPEN
#endif
/** \typedef h2_flt_t
* The h2_flt_t type defines the largest floating-pointer number type
* naturally supported.
*/
#if defined(__FreeBSD__) || defined(__MINGW32__)
/* TODO: check if the support for long double is complete.
* if so, use long double for h2_flt_t */
typedef double h2_flt_t;
# define H2_SIZEOF_FLT_T H2_SIZEOF_DOUBLE
#elif H2_SIZEOF_LONG_DOUBLE > H2_SIZEOF_DOUBLE
typedef long double h2_flt_t;
# define H2_SIZEOF_FLT_T H2_SIZEOF_LONG_DOUBLE
#else
typedef double h2_flt_t;
# define H2_SIZEOF_FLT_T H2_SIZEOF_DOUBLE
#endif
/** \typedef h2_fltmax_t
* The h2_fltmax_t type defines the largest floating-pointer number type
* ever supported.
*/
#if H2_SIZEOF___FLOAT128 >= H2_SIZEOF_FLT_T
/* the size of long double may be equal to the size of __float128
* for alignment on some platforms */
typedef __float128 h2_fltmax_t;
# define H2_SIZEOF_FLTMAX_T H2_SIZEOF___FLOAT128
#else
typedef h2_flt_t h2_fltmax_t;
# define H2_SIZEOF_FLTMAX_T H2_SIZEOF_FLT_T
#endif
/** \typedef h2_ptrdiff_t
*/
typedef h2_ssize_t h2_ptrdiff_t;
#define H2_SIZEOF_PTRDIFF_T H2_SIZEOF_SSIZE_T
/** \typdef h2_mchar_t
* The h2_mchar_t type is an alias to the char type.
*/
typedef char h2_mchar_t;
typedef int h2_mcint_t;
#define H2_SIZEOF_MCHAR_T H2_SIZEOF_CHAR
#define H2_SIZEOF_MCINT_T H2_SIZEOF_INT_T
/** \typedef h2_wchar_t
* The h2_wchar_t type defines a 16-bit wide character type.
*/
typedef h2_uint16_t h2_wchar_t;
typedef h2_uint32_t h2_wcint_t;
#define H2_SIZEOF_WCHAR_T H2_SIZEOF_UINT16_T
#define H2_SIZEOF_WCINT_T H2_SIZEOF_UINT32_T
/** typedef h2_wwchar_t
* The h2_wwchar_t type defines a 32-bit wide character type.
*/
typedef h2_uint32_t h2_wwchar_t;
typedef h2_uint32_t h2_wwcint_t;
#define H2_SIZEOF_WWCHAR_T H2_SIZEOF_UINT32_T
#define H2_SIZEOF_WWCINT_T H2_SIZEOF_UINT32_T
/** typedef h2_mcstr_t
* The h2_mcstr_t type defines a structure containing a pointer to
* a h2_mchar_t array and its length
*/
struct h2_mcstr_t
{
h2_mchar_t* ptr;
h2_size_t len;
};
/** typedef h2_wcstr_t
* The h2_wcstr_t type defines a structure containing a pointer to
* a h2_wchar_t array and its length
*/
struct h2_wcstr_t
{
h2_wchar_t* ptr;
h2_size_t len;
};
/** typedef h2_wwcstr_t
* The h2_wwcstr_t type defines a structure containing a pointer to
* a h2_wwchar_t array and its length
*/
struct h2_wwcstr_t
{
h2_wwchar_t* ptr;
h2_size_t len;
};
typedef struct h2_mcstr_t h2_mcstr_t;
typedef struct h2_wcstr_t h2_wcstr_t;
typedef struct h2_wwcstr_t h2_wwcstr_t;
/** typedef h2_char_t
* The h2_char_t type defines the primary character type.
*/
#if defined(H2_CHAR_IS_MCHAR)
typedef h2_mchar_t h2_char_t;
typedef h2_mcint_t h2_cint_t;
typedef h2_mcstr_t h2_cstr_t;
#elif defined(H2_CHAR_IS_WCHAR)
typedef h2_wchar_t h2_char_t;
typedef h2_wcint_t h2_cint_t;
typedef h2_wcstr_t h2_cstr_t;
#elif defined(H2_CHAR_IS_WWCHAR)
typedef h2_wwchar_t h2_char_t;
typedef h2_wwcint_t h2_cint_t;
typedef h2_wwcstr_t h2_cstr_t;
#else
# error Unknown default character type
#endif
/** typedef h2_wxchar_t
* The h2_wxchar_t type defines the widest character type supported.
*/
typedef h2_wwchar_t h2_wxchar_t;
typedef h2_wwcint_t h2_wxcint_t;
#define H2_SIZEOF_WXCHAR_T H2_SIZEOF_WWCHAR_T
#define H2_SIZEOF_WXCINT_T H2_SIZEOF_WWCINT_T
#if defined(_WIN32) && defined(H2_ENABLE_WCHAR)
# define H2_OSCHAR_IS_WCHAR 1
#elif defined(H2_ENABLE_MCHAR)
# define H2_OSCHAR_IS_MCHAR 1
#else
# error Required OS character type is not enabled.
#endif
/** typedef h2_oschar_t
* The h2_oschar_t type defines the character type the operating system
* calls use.
*/
#if defined(H2_OSCHAR_IS_MCHAR)
typedef h2_mchar_t h2_oschar_t;
typedef h2_mcint_t h2_oscint_t;
typedef h2_mcstr_t h2_oscstr_t;
# define H2_SIZEOF_OSCHAR_T H2_SIZEOF_MCHAR_T
# define H2_SIZEOF_OSCINT_T H2_SIZEOF_MCINT_T
#elif defined(H2_OSCHAR_IS_WCHAR)
typedef h2_wchar_t h2_oschar_t;
typedef h2_wcint_t h2_oscint_t;
typedef h2_wcstr_t h2_oscstr_t;
# define H2_SIZEOF_OSCHAR_T H2_SIZEOF_WCHAR_T
# define H2_SIZEOF_OSCINT_T H2_SIZEOF_WCINT_T
#elif defined(H2_OSCHAR_IS_WWCHAR)
typedef h2_wwchar_t h2_oschar_t;
typedef h2_wwcint_t h2_oscint_t;
typedef h2_wwcstr_t h2_oscstr_t;
# define H2_SIZEOF_OSCHAR_T H2_SIZEOF_WWCHAR_T
# define H2_SIZEOF_OSCINT_T H2_SIZEOF_WWCINT_T
#else
# error Unknown OS character type
#endif
enum h2_char_type_t
{
H2_MCHAR_T = 0,
H2_WCHAR_T = 1,
H2_WWCHAR_T = 2,
#if defined(H2_CHAR_IS_MCHAR)
H2_CHAR_T = H2_MCHAR_T,
#elif defined(H2_CHAR_IS_WCHAR)
H2_CHAR_T = H2_WCHAR_T,
#elif defined(H2_CHAR_IS_WWCHAR)
H2_CHAR_T = H2_WWCHAR_T,
#else
# error Unknown default character type
#endif
#if defined(H2_OSCHAR_IS_MCHAR)
H2_OSCHAR_T = H2_MCHAR_T,
#elif defined(H2_OSCHAR_IS_WCHAR)
H2_OSCHAR_T = H2_WCHAR_T,
#elif defined(H2_OSCHAR_IS_WWCHAR)
H2_OSCHAR_T = H2_WWCHAR_T,
#else
# error Unknown OS character type
#endif
};
typedef enum h2_char_type_t h2_char_type_t;
typedef struct h2_cmgr_t h2_cmgr_t;
typedef h2_size_t (*h2_cmgr_mbtowc_t) (
h2_cmgr_t* cmgr,
const h2_mchar_t* mb,
h2_size_t size,
h2_wxchar_t* wc
);
typedef h2_size_t (*h2_cmgr_wctomb_t) (
h2_cmgr_t* cmgr,
h2_wxchar_t wc,
h2_mchar_t* mb,
h2_size_t size
);
/*
typedef h2_size_t (*h2_cmgr_mtowx_t) (
h2_cmgr_t* cmgr,
const h2_mchar_t* mb,
h2_size_t size,
h2_wxchar_t* wc
);
typedef h2_size_t (*h2_cmgr_wxtom_t) (
h2_cmgr_t* cmgr,
h2_wxchar_t wc,
h2_mchar_t* mb,
h2_size_t size
);
*/
/**
* The h2_cmgr_t type defines the character-level interface to
* multibyte/wide-character conversion. This interface doesn't
* provide any facility to store conversion state in a context
* independent manner. This leads to the limitation that it can
* handle a stateless multibyte encoding only.
*/
struct h2_cmgr_t
{
h2_cmgr_mbtowc_t mbtowc;
h2_cmgr_wctomb_t wctomb;
/*
h2_cmgr_mtowx_t mtowx;
h2_cmgr_wxtom_t wxtom;
*/
void* ctx;
};
typedef struct h2_mmgr_t h2_mmgr_t;
/**
* allocate a memory chunk of the size @a n.
* @return pointer to a memory chunk on success, QSE_NULL on failure.
*/
typedef void* (*h2_mmgr_alloc_t) (h2_mmgr_t* mmgr, h2_size_t n);
/**
* resize a memory chunk pointed to by @a ptr to the size @a n.
* @return pointer to a memory chunk on success, QSE_NULL on failure.
*/
typedef void* (*h2_mmgr_realloc_t) (h2_mmgr_t* mmgr, void* ptr, h2_size_t n);
/**
* free a memory chunk pointed to by @a ptr.
*/
typedef void (*h2_mmgr_free_t) (h2_mmgr_t* mmgr, void* ptr);
/**
* The h2_mmgr_t type defines the memory management interface.
* As the type is merely a structure, it is just used as a single container
* for memory management functions with a pointer to user-defined data.
* The user-defined data pointer @a ctx is passed to each memory management
* function whenever it is called. You can allocate, reallocate, and free
* a memory chunk.
*
* For example, a h2_xxx_open() function accepts a pointer of the h2_mmgr_t
* type and the xxx object uses it to manage dynamic data within the object.
*/
struct h2_mmgr_t
{
h2_mmgr_alloc_t alloc; /**< allocation function */
h2_mmgr_realloc_t realloc; /**< resizing function */
h2_mmgr_free_t free; /**< disposal function */
void* ctx; /**< user-defined data pointer */
};
/* Special definition to use Unicode APIs on Windows */
#if defined(_WIN32)
# if !defined(UNICODE)
# define UNICODE
# endif
# if !defined(_UNICODE)
# define _UNICODE
# endif
#endif
#endif

View File

@ -1,22 +0,0 @@
#ifndef _H2SCM_H_
#define _H2SCM_H_
typedef struct h2scm_t h2scm_t;
typedef struct h2scm_obj_t h2scm_obj_t;
#ifdef __cplusplus
extern "C" {
#endif
h2scm_t* h2scm_open (void);
void h2scm_close (h2scm_t* scm);
int h2scm_evaluate (h2scm_t* scm, h2scm_obj_t* src);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,7 +1,5 @@
AUTOMAKE_OPTIONS = nostdinc subdir-objects
SUBDIRS = cmn
EXTRA_DIST = \
h2.ads \
h2-pool.ads \

View File

@ -91,17 +91,15 @@ host_triplet = @host@
noinst_PROGRAMS = sysdef$(EXEEXT)
subdir = lib
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_cxx_namespace.m4 \
$(top_srcdir)/m4/ax_numval.m4 $(top_srcdir)/m4/ax_pthread.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/lx_find_mpi.m4 $(top_srcdir)/configure.ac
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/h2/config.h
CONFIG_HEADER = $(top_builddir)/h2-cfg.h
CONFIG_CLEAN_FILES = lib.gpr libh2.gpr
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
@ -153,27 +151,11 @@ am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(sysdef_SOURCES)
DIST_SOURCES = $(sysdef_SOURCES)
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
install-exec-recursive install-html-recursive \
install-info-recursive install-pdf-recursive \
install-ps-recursive install-recursive installcheck-recursive \
installdirs-recursive pdf-recursive ps-recursive \
tags-recursive uninstall-recursive
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
$(RECURSIVE_TARGETS) \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
distdir distdir-am
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
@ -193,35 +175,9 @@ am__define_uniq_tagged_files = \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/lib.gpr.in \
$(srcdir)/libh2.gpr.in $(top_srcdir)/ac/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
ACLOCAL = @ACLOCAL@
ADA_OBJDIR = @ADA_OBJDIR@
AMTAR = @AMTAR@
@ -231,24 +187,18 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_MODE = @BUILD_MODE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHAR_TYPE = @CHAR_TYPE@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
@ -269,7 +219,6 @@ H2_SIZEOF_OFF64_T = @H2_SIZEOF_OFF64_T@
H2_SIZEOF_OFF_T = @H2_SIZEOF_OFF_T@
H2_SIZEOF_SHORT = @H2_SIZEOF_SHORT@
H2_SIZEOF_VOID_P = @H2_SIZEOF_VOID_P@
HAVE_CXX = @HAVE_CXX@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@ -289,9 +238,6 @@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MPICC = @MPICC@
MPI_CFLAGS = @MPI_CFLAGS@
MPI_CLDFLAGS = @MPI_CLDFLAGS@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
@ -309,22 +255,11 @@ PACKAGE_VERSION_MAJOR = @PACKAGE_VERSION_MAJOR@
PACKAGE_VERSION_MINOR = @PACKAGE_VERSION_MINOR@
PACKAGE_VERSION_PATCH = @PACKAGE_VERSION_PATCH@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CC = @PTHREAD_CC@
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
QUADMATH_LIBS = @QUADMATH_LIBS@
RANLIB = @RANLIB@
RM = @RM@
RMDIR = @RMDIR@
SED = @SED@
SENDFILE_LIBS = @SENDFILE_LIBS@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SOCKET_LIBS = @SOCKET_LIBS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
TRUE = @TRUE@
UCI_LIBS = @UCI_LIBS@
UNICOWS_LIBS = @UNICOWS_LIBS@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
@ -333,14 +268,12 @@ abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
ax_pthread_config = @ax_pthread_config@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
@ -382,7 +315,6 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = nostdinc subdir-objects
SUBDIRS = cmn
EXTRA_DIST = \
h2.ads \
h2-pool.ads \
@ -411,7 +343,7 @@ sysdef_SOURCES = posix/sysdef.c
sysdef_CPPFLAGS =
sysdef_LDFLAGS =
sysdef_LDADD =
all: all-recursive
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
@ -529,61 +461,14 @@ mostlyclean-libtool:
clean-libtool:
-rm -rf .libs _libs
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(am__recursive_targets):
@fail=; \
if $(am__make_keepgoing); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-recursive
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
@ -596,7 +481,7 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$$unique; \
fi; \
fi
ctags: ctags-recursive
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
@ -609,7 +494,7 @@ GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-recursive
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
@ -661,45 +546,19 @@ distdir-am: $(DISTFILES)
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
check: check-am
all-am: Makefile $(PROGRAMS) all-local
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
@ -723,93 +582,92 @@ distclean-generic:
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean: clean-am
clean-am: clean-generic clean-libtool clean-local clean-noinstPROGRAMS \
mostlyclean-am
distclean: distclean-recursive
distclean: distclean-am
-rm -f posix/$(DEPDIR)/sysdef-sysdef.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-recursive
dvi: dvi-am
dvi-am:
html: html-recursive
html: html-am
html-am:
info: info-recursive
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html: install-html-am
install-html-am:
install-info: install-info-recursive
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-recursive
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
maintainer-clean: maintainer-clean-am
-rm -f posix/$(DEPDIR)/sysdef-sysdef.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-recursive
pdf: pdf-am
pdf-am:
ps: ps-recursive
ps: ps-am
ps-am:
uninstall-am:
.MAKE: $(am__recursive_targets) install-am install-strip
.MAKE: install-am install-strip
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
am--depfiles check check-am clean clean-generic clean-libtool \
clean-local clean-noinstPROGRAMS cscopelist-am ctags ctags-am \
distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am
.PHONY: CTAGS GTAGS TAGS all all-am all-local am--depfiles check \
check-am clean clean-generic clean-libtool clean-local \
clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
distclean-compile distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile

View File

@ -1,151 +0,0 @@
AUTOMAKE_OPTIONS = nostdinc
AM_CPPFLAGS = \
-I$(top_builddir)/include \
-I$(top_srcdir)/include
lib_LTLIBRARIES = libh2cmn.la
#noinst_HEADERS = \
# cp949.h \
# cp950.h \
# fmt.h \
# fmt-intmax.h \
# fmt-out.h \
# fs.h \
# mem.h \
# str-dyn.h \
# str-fcpy.h \
# str-fmt.h \
# str-join.h \
# str-subst.h \
# syscall.h \
# syserr.h \
# tre.h \
# tre-ast.h \
# tre-compile.h \
# tre-match-utils.h \
# tre-parse.h \
# tre-stack.h
#
#libh2cmn_la_SOURCES = \
# alg-base64.c \
# alg-rand.c \
# alg-search.c \
# alg-sort.c \
# assert.c \
# chr.c \
# dir.c \
# dll.c \
# env.c \
# gdl.c \
# htb.c \
# fio.c \
# fma.c \
# fmt-intmax.c \
# fmt-out.c \
# fs.c \
# fs-err.c \
# fs-move.c \
# glob.c \
# hton.c \
# ipad.c \
# lda.c \
# main.c \
# mb8.c \
# mbwc.c \
# mbwc-str.c \
# mem.c \
# mux.c \
# nwad.c \
# nwad-skad.c \
# nwif.c \
# nwif-cfg.c \
# nwio.c \
# oht.c \
# opt.c \
# path-basename.c \
# path-canon.c \
# pio.c \
# pma.c \
# rbt.c \
# rex.c \
# sio.c \
# sll.c \
# slmb.c \
# str-beg.c \
# str-cat.c \
# str-chr.c \
# str-cnv.c \
# str-cmp.c \
# str-cpy.c \
# str-del.c \
# str-dup.c \
# str-dyn.c \
# str-end.c \
# str-excl.c \
# str-fcpy.c \
# str-fmt.c \
# str-fnmat.c \
# str-incl.c \
# str-join.c \
# str-len.c \
# str-pac.c \
# str-pbrk.c \
# str-put.c \
# str-rev.c \
# str-rot.c \
# str-set.c \
# str-spl.c \
# str-spn.c \
# str-str.c \
# str-subst.c \
# str-tok.c \
# str-trm.c \
# str-word.c \
# task.c \
# time.c \
# tio.c \
# tre.c \
# tre-ast.c \
# tre-compile.c \
# tre-match-backtrack.c \
# tre-match-parallel.c \
# tre-parse.c \
# tre-stack.c \
# uri.c \
# utf8.c \
# xma.c
noinst_HEADERS = \
str-cmp.h \
str-cpy.h \
str-fmc.h \
str-len.h
libh2cmn_la_SOURCES = \
str.c \
utf16.c \
utf8.c
#if ENABLE_BUNDLED_UNICODE
#libh2cmn_la_SOURCES += uni.c
#endif
#
#if ENABLE_XCMGRS
#libh2cmn_la_SOURCES += cp949.c cp950.c
#endif
libh2cmn_la_LDFLAGS = -version-info 1:0:0 -no-undefined
libh2cmn_la_LIBADD = $(SOCKET_LIBS) $(QUADMATH_LIBS)
#if ENABLE_CXX
#
#lib_LTLIBRARIES += libh2cmnxx.la
#libh2cmnxx_la_SOURCES = \
# Mmgr.cpp StdMmgr.cpp
#libh2cmnxx_la_LDFLAGS = -version-info 1:0:0 -no-undefined
#libh2cmnxx_la_LIBADD =
#
#endif

View File

@ -1,853 +0,0 @@
# Makefile.in generated by automake 1.16.2 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = lib/cmn
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_cxx_namespace.m4 \
$(top_srcdir)/m4/ax_numval.m4 $(top_srcdir)/m4/ax_pthread.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/lx_find_mpi.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
$(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/h2/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(libdir)"
LTLIBRARIES = $(lib_LTLIBRARIES)
am__DEPENDENCIES_1 =
libh2cmn_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_libh2cmn_la_OBJECTS = str.lo utf16.lo utf8.lo
libh2cmn_la_OBJECTS = $(am_libh2cmn_la_OBJECTS)
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 =
libh2cmn_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(libh2cmn_la_LDFLAGS) $(LDFLAGS) -o $@
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES =
depcomp = $(SHELL) $(top_srcdir)/ac/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/str.Plo ./$(DEPDIR)/utf16.Plo \
./$(DEPDIR)/utf8.Plo
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(libh2cmn_la_SOURCES)
DIST_SOURCES = $(libh2cmn_la_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
HEADERS = $(noinst_HEADERS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ADA_OBJDIR = @ADA_OBJDIR@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_MODE = @BUILD_MODE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHAR_TYPE = @CHAR_TYPE@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
H2_PROJECT_AUTHOR = @H2_PROJECT_AUTHOR@
H2_PROJECT_URL = @H2_PROJECT_URL@
H2_SIZEOF_CHAR = @H2_SIZEOF_CHAR@
H2_SIZEOF_DOUBLE = @H2_SIZEOF_DOUBLE@
H2_SIZEOF_FLOAT = @H2_SIZEOF_FLOAT@
H2_SIZEOF_INT = @H2_SIZEOF_INT@
H2_SIZEOF_LONG = @H2_SIZEOF_LONG@
H2_SIZEOF_LONG_DOUBLE = @H2_SIZEOF_LONG_DOUBLE@
H2_SIZEOF_LONG_LONG = @H2_SIZEOF_LONG_LONG@
H2_SIZEOF_OFF64_T = @H2_SIZEOF_OFF64_T@
H2_SIZEOF_OFF_T = @H2_SIZEOF_OFF_T@
H2_SIZEOF_SHORT = @H2_SIZEOF_SHORT@
H2_SIZEOF_VOID_P = @H2_SIZEOF_VOID_P@
HAVE_CXX = @HAVE_CXX@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBM = @LIBM@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MPICC = @MPICC@
MPI_CFLAGS = @MPI_CFLAGS@
MPI_CLDFLAGS = @MPI_CLDFLAGS@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_VERSION_MAJOR = @PACKAGE_VERSION_MAJOR@
PACKAGE_VERSION_MINOR = @PACKAGE_VERSION_MINOR@
PACKAGE_VERSION_PATCH = @PACKAGE_VERSION_PATCH@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CC = @PTHREAD_CC@
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
QUADMATH_LIBS = @QUADMATH_LIBS@
RANLIB = @RANLIB@
RM = @RM@
RMDIR = @RMDIR@
SED = @SED@
SENDFILE_LIBS = @SENDFILE_LIBS@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SOCKET_LIBS = @SOCKET_LIBS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
TRUE = @TRUE@
UCI_LIBS = @UCI_LIBS@
UNICOWS_LIBS = @UNICOWS_LIBS@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
ax_pthread_config = @ax_pthread_config@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = nostdinc
AM_CPPFLAGS = \
-I$(top_builddir)/include \
-I$(top_srcdir)/include
lib_LTLIBRARIES = libh2cmn.la
#noinst_HEADERS = \
# cp949.h \
# cp950.h \
# fmt.h \
# fmt-intmax.h \
# fmt-out.h \
# fs.h \
# mem.h \
# str-dyn.h \
# str-fcpy.h \
# str-fmt.h \
# str-join.h \
# str-subst.h \
# syscall.h \
# syserr.h \
# tre.h \
# tre-ast.h \
# tre-compile.h \
# tre-match-utils.h \
# tre-parse.h \
# tre-stack.h
#
#libh2cmn_la_SOURCES = \
# alg-base64.c \
# alg-rand.c \
# alg-search.c \
# alg-sort.c \
# assert.c \
# chr.c \
# dir.c \
# dll.c \
# env.c \
# gdl.c \
# htb.c \
# fio.c \
# fma.c \
# fmt-intmax.c \
# fmt-out.c \
# fs.c \
# fs-err.c \
# fs-move.c \
# glob.c \
# hton.c \
# ipad.c \
# lda.c \
# main.c \
# mb8.c \
# mbwc.c \
# mbwc-str.c \
# mem.c \
# mux.c \
# nwad.c \
# nwad-skad.c \
# nwif.c \
# nwif-cfg.c \
# nwio.c \
# oht.c \
# opt.c \
# path-basename.c \
# path-canon.c \
# pio.c \
# pma.c \
# rbt.c \
# rex.c \
# sio.c \
# sll.c \
# slmb.c \
# str-beg.c \
# str-cat.c \
# str-chr.c \
# str-cnv.c \
# str-cmp.c \
# str-cpy.c \
# str-del.c \
# str-dup.c \
# str-dyn.c \
# str-end.c \
# str-excl.c \
# str-fcpy.c \
# str-fmt.c \
# str-fnmat.c \
# str-incl.c \
# str-join.c \
# str-len.c \
# str-pac.c \
# str-pbrk.c \
# str-put.c \
# str-rev.c \
# str-rot.c \
# str-set.c \
# str-spl.c \
# str-spn.c \
# str-str.c \
# str-subst.c \
# str-tok.c \
# str-trm.c \
# str-word.c \
# task.c \
# time.c \
# tio.c \
# tre.c \
# tre-ast.c \
# tre-compile.c \
# tre-match-backtrack.c \
# tre-match-parallel.c \
# tre-parse.c \
# tre-stack.c \
# uri.c \
# utf8.c \
# xma.c
noinst_HEADERS = \
str-cmp.h \
str-cpy.h \
str-fmc.h \
str-len.h
libh2cmn_la_SOURCES = \
str.c \
utf16.c \
utf8.c
#if ENABLE_BUNDLED_UNICODE
#libh2cmn_la_SOURCES += uni.c
#endif
#
#if ENABLE_XCMGRS
#libh2cmn_la_SOURCES += cp949.c cp950.c
#endif
libh2cmn_la_LDFLAGS = -version-info 1:0:0 -no-undefined
libh2cmn_la_LIBADD = $(SOCKET_LIBS) $(QUADMATH_LIBS)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign lib/cmn/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign lib/cmn/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
list2="$$list2 $$p"; \
else :; fi; \
done; \
test -z "$$list2" || { \
echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
}
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
for p in $$list; do \
$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
libh2cmn.la: $(libh2cmn_la_OBJECTS) $(libh2cmn_la_DEPENDENCIES) $(EXTRA_libh2cmn_la_DEPENDENCIES)
$(AM_V_CCLD)$(libh2cmn_la_LINK) -rpath $(libdir) $(libh2cmn_la_OBJECTS) $(libh2cmn_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/str.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf16.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf8.Plo@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(libdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/str.Plo
-rm -f ./$(DEPDIR)/utf16.Plo
-rm -f ./$(DEPDIR)/utf8.Plo
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am: install-libLTLIBRARIES
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/str.Plo
-rm -f ./$(DEPDIR)/utf16.Plo
-rm -f ./$(DEPDIR)/utf8.Plo
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-libLTLIBRARIES
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-generic clean-libLTLIBRARIES clean-libtool cscopelist-am \
ctags ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-libLTLIBRARIES install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES
.PRECIOUS: Makefile
#if ENABLE_CXX
#
#lib_LTLIBRARIES += libh2cmnxx.la
#libh2cmnxx_la_SOURCES = \
# Mmgr.cpp StdMmgr.cpp
#libh2cmnxx_la_LDFLAGS = -version-info 1:0:0 -no-undefined
#libh2cmnxx_la_LIBADD =
#
#endif
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,12 +0,0 @@
int XFUN(strcmp) (const xchar_t* s1, const xchar_t* s2)
{
while (*s1 == *s2)
{
if (*s1 == XCHAR('\0')) return 0;
s1++, s2++;
}
return (*s1 > *s2)? 1: -1;
}

View File

@ -1,7 +0,0 @@
h2_size_t XFUN(strcpy) (xchar_t* dst, const xchar_t* src)
{
const xchar_t* p = src;
while (*p != XCHAR('\0')) *dst++ = *p++;
return p - src;
}

View File

@ -1,228 +0,0 @@
h2_size_t XFUN(strfmc) (
xchar_t* buf, const xchar_t* fmt, const xchar_t* str[])
{
xchar_t* b = buf;
const xchar_t* f = fmt;
while (*f != XCHAR('\0'))
{
if (*f == XCHAR('$'))
{
if (f[1] == XCHAR('{') &&
(f[2] >= XCHAR('0') && f[2] <= XCHAR('9')))
{
const xchar_t* tmp;
h2_size_t idx = 0;
tmp = f;
f += 2;
do idx = idx * 10 + (*f++ - XCHAR('0'));
while (*f >= XCHAR('0') && *f <= XCHAR('9'));
if (*f != XCHAR('}'))
{
f = tmp;
goto normal;
}
f++;
tmp = str[idx];
while (*tmp != XCHAR('\0')) *b++ = *tmp++;
continue;
}
else if (f[1] == XCHAR('$')) f++;
}
normal:
*b++ = *f++;
}
*b = XCHAR('\0');
return b - buf;
}
#if 0
h2_size_t XFUN(strfncpy) (
xchar_t* buf, const xchar_t* fmt, const cstr_t str[])
{
xchar_t* b = buf;
const xchar_t* f = fmt;
while (*f != XCHAR('\0'))
{
if (*f == XCHAR('\\'))
{
/* get the escaped character and treat it normally.
* if the escaper is the last character, treat it
* normally also. */
if (f[1] != XCHAR('\0')) f++;
}
else if (*f == XCHAR('$'))
{
if (f[1] == XCHAR('{') &&
(f[2] >= XCHAR('0') && f[2] <= XCHAR('9')))
{
const xchar_t* tmp, * tmpend;
h2_size_t idx = 0;
tmp = f;
f += 2;
do idx = idx * 10 + (*f++ - XCHAR('0'));
while (*f >= XCHAR('0') && *f <= XCHAR('9'));
if (*f != XCHAR('}'))
{
f = tmp;
goto normal;
}
f++;
tmp = str[idx].ptr;
tmpend = tmp + str[idx].len;
while (tmp < tmpend) *b++ = *tmp++;
continue;
}
else if (f[1] == XCHAR('$')) f++;
}
normal:
*b++ = *f++;
}
*b = XCHAR('\0');
return b - buf;
}
h2_size_t XFUN(strxfmc) (
xchar_t* buf, h2_size_t bsz,
const xchar_t* fmt, const xchar_t* str[])
{
xchar_t* b = buf;
xchar_t* end = buf + bsz - 1;
const xchar_t* f = fmt;
if (bsz <= 0) return 0;
while (*f != XCHAR('\0'))
{
if (*f == XCHAR('\\'))
{
/* get the escaped character and treat it normally.
* if the escaper is the last character, treat it
* normally also. */
if (f[1] != XCHAR('\0')) f++;
}
else if (*f == XCHAR('$'))
{
if (f[1] == XCHAR('{') &&
(f[2] >= XCHAR('0') && f[2] <= XCHAR('9')))
{
const xchar_t* tmp;
h2_size_t idx = 0;
tmp = f;
f += 2;
do idx = idx * 10 + (*f++ - XCHAR('0'));
while (*f >= XCHAR('0') && *f <= XCHAR('9'));
if (*f != XCHAR('}'))
{
f = tmp;
goto normal;
}
f++;
tmp = str[idx];
while (*tmp != XCHAR('\0'))
{
if (b >= end) goto fini;
*b++ = *tmp++;
}
continue;
}
else if (f[1] == XCHAR('$')) f++;
}
normal:
if (b >= end) break;
*b++ = *f++;
}
fini:
*b = XCHAR('\0');
return b - buf;
}
h2_size_t XFUN(strxfncpy) (
xchar_t* buf, h2_size_t bsz,
const xchar_t* fmt, const cstr_t str[])
{
xchar_t* b = buf;
xchar_t* end = buf + bsz - 1;
const xchar_t* f = fmt;
if (bsz <= 0) return 0;
while (*f != XCHAR('\0'))
{
if (*f == XCHAR('\\'))
{
/* get the escaped character and treat it normally.
* if the escaper is the last character, treat it
* normally also. */
if (f[1] != XCHAR('\0')) f++;
}
else if (*f == XCHAR('$'))
{
if (f[1] == XCHAR('{') &&
(f[2] >= XCHAR('0') && f[2] <= XCHAR('9')))
{
const xchar_t* tmp, * tmpend;
h2_size_t idx = 0;
tmp = f;
f += 2;
do idx = idx * 10 + (*f++ - XCHAR('0'));
while (*f >= XCHAR('0') && *f <= XCHAR('9'));
if (*f != XCHAR('}'))
{
f = tmp;
goto normal;
}
f++;
tmp = str[idx].ptr;
tmpend = tmp + str[idx].len;
while (tmp < tmpend)
{
if (b >= end) goto fini;
*b++ = *tmp++;
}
continue;
}
else if (f[1] == XCHAR('$')) f++;
}
normal:
if (b >= end) break;
*b++ = *f++;
}
fini:
*b = XCHAR('\0');
return b - buf;
}
#endif

View File

@ -1,8 +0,0 @@
h2_size_t XFUN(strlen) (const xchar_t* str)
{
const xchar_t* p = str;
while (*p != XCHAR('\0')) p++;
return p - str;
}

View File

@ -1,40 +0,0 @@
#include <h2/cmn/str.h>
#if defined(H2_ENABLE_MCHAR)
# define xchar_t h2_mchar_t
# define XFUN(x) H2_FUN_M(x)
# define XCHAR(x) H2_MCHAR(x)
# include "str-cmp.h"
# include "str-cpy.h"
# include "str-fmc.h"
# include "str-len.h"
# undef xchar_t
# undef XFUN
# undef XCHAR
#endif
#if defined(H2_ENABLE_WCHAR)
# define xchar_t h2_wchar_t
# define XFUN(x) H2_FUN_W(x)
# define XCHAR(x) H2_WCHAR(x)
# include "str-cmp.h"
# include "str-cpy.h"
# include "str-fmc.h"
# include "str-len.h"
# undef xchar_t
# undef XFUN
# undef XCHAR
#endif
#if defined(H2_ENABLE_WWCHAR)
# define xchar_t h2_wwchar_t
# define XFUN(x) H2_FUN_WW(x)
# define XCHAR(x) H2_WWCHAR(x)
# include "str-cmp.h"
# include "str-cpy.h"
# include "str-fmc.h"
# include "str-len.h"
# undef xchar_t
# undef XFUN
# undef XCHAR
#endif

View File

@ -1,147 +0,0 @@
/*
* $Id$
*
Copyright 2006-2014 Chung, Hyung-Hwan.
This file is part of H2.
H2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
H2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with H2. If not, see <http://www.gnu.org/licenses/>.
*/
#include <h2/cmn/utf16.h>
#define LEAD_SURROGATE_MIN 0xD800lu
#define LEAD_SURROGATE_MAX 0xDBFFlu
#define TRAIL_SURROGATE_MIN 0xDC00lu
#define TRAIL_SURROGATE_MAX 0xDFFFlu
#define IS_SURROGATE(x) ((x) >= LEAD_SURROGATE_MIN && (x) <= TRAIL_SURROGATE_MAX)
#define IS_LEAD_SURROGATE(x) ((x) >= LEAD_SURROGATE_MIN && (x) <= LEAD_SURROGATE_MAX)
#define IS_TRAIL_SURROGATE(x) ((x) >= TRAIL_SURROGATE_MIN && (x) <= TRAIL_SURROGATE_MAX)
h2_size_t h2_uctoutf16 (h2_wxchar_t uc, h2_wchar_t* utf16, h2_size_t size)
{
#if (H2_SIZEOF_WXCHAR_T > H2_SIZEOF_WCHAR_T)
/*if (IS_SURROGATE(uc)) return 0;*/ /* illegal character */
if (uc <= 0xFFFFlu)
{
if (utf16 && size >= 1) *utf16 = uc;
return 1;
}
if (uc >= 0x10000lu && uc <= 0x10FFFlu)
{
if (utf16 && size >= 2)
{
h2_uint32_t tmp;
tmp = uc - 0x10000lu;
utf16[0] = LEAD_SURROGATE_MIN | (tmp >> 10);
utf16[1] = TRAIL_SURROGATE_MIN | (tmp & 0x3FFlu);
}
return 2;
}
else
{
return 0; /* illegal character */
}
#elif (H2_SIZEOF_WXCHAR_T == H2_SIZEOF_WCHAR_T)
/*if (IS_SURROGATE(uc)) return 0;*/ /* illegal character */
/* ucs2 is assumed in this case */
if (utf16 && size >= 1) *utf16 = uc;
/* small buffer is also indicated by this return value
* greater than 'size'. */
return 1;
#else
# error Unsupported size of h2_wxchar_t
#endif
}
h2_size_t h2_utf16touc (
const h2_wchar_t* utf16, h2_size_t size, h2_wxchar_t* uc)
{
H2_ASSERT (utf16 != H2_NULL);
H2_ASSERT (size > 0);
#if (H2_SIZEOF_WXCHAR_T > H2_SIZEOF_WCHAR_T)
if (IS_LEAD_SURROGATE(utf16[0]))
{
if (size >= 2)
{
if (IS_TRAIL_SURROGATE(utf16[1]))
{
if (uc)
{
h2_uint32_t tmp = 0x10000lu;
tmp += (utf16[0] & 0x3FFlu) << 10;
tmp += (utf16[1] & 0x3FFlu);
*uc = tmp;
}
/* this return value can indicate both
* the correct length (size >= 2)
* and
* the incomplete seqeunce error (size < 2).
*/
return 2;
}
else
{
return 0; /* invalid sequence */
}
}
else return 2; /* this should indicate the incomplete sequence */
}
else if (IS_TRAIL_SURROGATE(utf16[0]))
{
return 0; /* invalid sequence */
}
else
{
if (uc) *uc = utf16[0];
return 1;
}
#elif (H2_SIZEOF_WXCHAR_T == H2_SIZEOF_WCHAR_T)
/*if (IS_SURROGATE(utf16[0])) return 0;*/ /* illegal character */
/* ucs2 is assumed in this case */
if (uc) *uc = utf16[0];
/* small buffer is also indicated by this return value
* greater than 'size'. */
return 1;
#else
# error Unsupported size of h2_wxchar_t
#endif
}
h2_size_t h2_utf16len (const h2_wchar_t* utf16, h2_size_t size)
{
return h2_utf16touc (utf16, size, H2_NULL);
}
h2_size_t h2_utf16lenmax (void)
{
return H2_UTF16LEN_MAX;
}

View File

@ -1,183 +0,0 @@
/*
* $Id$
*
Copyright 2006-2014 Chung, Hyung-Hwan.
This file is part of H2.
H2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
H2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with H2. If not, see <http://www.gnu.org/licenses/>.
*/
#include <h2/cmn/utf8.h>
/*
* from RFC 2279 UTF-8, a transformation format of ISO 10646
*
* UCS-4 range (hex.) UTF-8 octet sequence (binary)
* 1:2 00000000-0000007F 0xxxxxxx
* 2:2 00000080-000007FF 110xxxxx 10xxxxxx
* 3:2 00000800-0000FFFF 1110xxxx 10xxxxxx 10xxxxxx
* 4:4 00010000-001FFFFF 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
* inv 00200000-03FFFFFF 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
* inv 04000000-7FFFFFFF 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
*/
struct __utf8_t
{
h2_uint32_t lower;
h2_uint32_t upper;
h2_uint8_t fbyte;
h2_uint8_t mask; /* mask for getting the fixed bits in the first byte (First byte & mask => fbyte) */
h2_uint8_t fmask; /* mask for getting the actual values bits off the first byte */
int length; /* number of bytes */
};
typedef struct __utf8_t __utf8_t;
static __utf8_t utf8_table[] =
{
{0x00000000ul, 0x0000007Ful, 0x00, 0x80, 0x7F, 1},
{0x00000080ul, 0x000007FFul, 0xC0, 0xE0, 0x1F, 2},
{0x00000800ul, 0x0000FFFFul, 0xE0, 0xF0, 0x0F, 3},
{0x00010000ul, 0x001FFFFFul, 0xF0, 0xF8, 0x07, 4},
{0x00200000ul, 0x03FFFFFFul, 0xF8, 0xFC, 0x03, 5},
{0x04000000ul, 0x7FFFFFFFul, 0xFC, 0xFE, 0x01, 6}
};
static H2_INLINE __utf8_t* get_utf8_slot (h2_wxchar_t uc)
{
__utf8_t* cur, * end;
H2_ASSERT (H2_SIZEOF(h2_mchar_t) == 1);
H2_ASSERT (H2_SIZEOF(h2_wxchar_t) >= 2);
end = utf8_table + H2_COUNTOF(utf8_table);
cur = utf8_table;
while (cur < end)
{
if (uc >= cur->lower && uc <= cur->upper) return cur;
cur++;
}
return H2_NULL; /* invalid character */
}
h2_size_t h2_uctoutf8 (h2_wxchar_t uc, h2_mchar_t* utf8, h2_size_t size)
{
__utf8_t* cur = get_utf8_slot (uc);
if (cur == H2_NULL) return 0; /* illegal character */
if (utf8 && cur->length <= size)
{
int index = cur->length;
while (index > 1)
{
/*
* 0x3F: 00111111
* 0x80: 10000000
*/
utf8[--index] = (uc & 0x3F) | 0x80;
uc >>= 6;
}
utf8[0] = uc | cur->fbyte;
}
/* small buffer is also indicated by this return value
* greater than 'size'. */
return (h2_size_t)cur->length;
}
h2_size_t h2_utf8touc (
const h2_mchar_t* utf8, h2_size_t size, h2_wxchar_t* uc)
{
__utf8_t* cur, * end;
H2_ASSERT (utf8 != H2_NULL);
H2_ASSERT (size > 0);
H2_ASSERT (H2_SIZEOF(h2_mchar_t) == 1);
H2_ASSERT (H2_SIZEOF(h2_wxchar_t) >= 2);
end = utf8_table + H2_COUNTOF(utf8_table);
cur = utf8_table;
while (cur < end)
{
if ((utf8[0] & cur->mask) == cur->fbyte)
{
/* if size is less that cur->length, the incomplete-seqeunce
* error is naturally indicated. so validate the string
* only if size is as large as cur->length. */
if (size >= cur->length)
{
int i;
if (uc)
{
h2_wxchar_t w;
w = utf8[0] & cur->fmask;
for (i = 1; i < cur->length; i++)
{
/* in utf8, trailing bytes are all
* set with 0x80.
*
* 10XXXXXX & 11000000 => 10000000
*
* if not, invalid. */
if ((utf8[i] & 0xC0) != 0x80) return 0;
w = (w << 6) | (utf8[i] & 0x3F);
}
*uc = w;
}
else
{
for (i = 1; i < cur->length; i++)
{
/* in utf8, trailing bytes are all
* set with 0x80.
*
* 10XXXXXX & 11000000 => 10000000
*
* if not, invalid. */
if ((utf8[i] & 0xC0) != 0x80) return 0;
}
}
}
/* this return value can indicate both
* the correct length (len >= cur->length)
* and
* the incomplete seqeunce error (len < cur->length).
*/
return (h2_size_t)cur->length;
}
cur++;
}
return 0; /* error - invalid sequence */
}
h2_size_t h2_utf8len (const h2_mchar_t* utf8, h2_size_t size)
{
return h2_utf8touc (utf8, size, H2_NULL);
}
h2_size_t h2_utf8lenmax (void)
{
return H2_UTF8LEN_MAX;
}