From 641e6a06f16fc789b37873fa4ab0f6baa9970902 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 21 Aug 2021 14:51:38 +0000 Subject: [PATCH] deleted unneeded files --- Makefile.in | 76 +- aclocal.m4 | 4 - bin/Makefile.in | 35 +- configure | 7444 +------------------------------------ configure.ac | 453 +-- h2-cfg.h.in | 247 ++ include/h2/cmn/str-priv.h | 15 - include/h2/cmn/str.h | 36 - include/h2/cmn/utf16.h | 103 - include/h2/cmn/utf8.h | 109 - include/h2/config.h.in | 824 ---- include/h2/macros.h | 90 - include/h2/types.h | 712 ---- include/h2scm.h | 22 - lib/Makefile.am | 2 - lib/Makefile.in | 230 +- lib/cmn/Makefile.am | 151 - lib/cmn/Makefile.in | 853 ----- lib/cmn/str-cmp.h | 12 - lib/cmn/str-cpy.h | 7 - lib/cmn/str-fmc.h | 228 -- lib/cmn/str-len.h | 8 - lib/cmn/str.c | 40 - lib/cmn/utf16.c | 147 - lib/cmn/utf8.c | 183 - 25 files changed, 341 insertions(+), 11690 deletions(-) create mode 100644 h2-cfg.h.in delete mode 100644 include/h2/cmn/str-priv.h delete mode 100644 include/h2/cmn/str.h delete mode 100644 include/h2/cmn/utf16.h delete mode 100644 include/h2/cmn/utf8.h delete mode 100644 include/h2/config.h.in delete mode 100644 include/h2/macros.h delete mode 100644 include/h2/types.h delete mode 100644 include/h2scm.h delete mode 100644 lib/cmn/Makefile.am delete mode 100644 lib/cmn/Makefile.in delete mode 100644 lib/cmn/str-cmp.h delete mode 100644 lib/cmn/str-cpy.h delete mode 100644 lib/cmn/str-fmc.h delete mode 100644 lib/cmn/str-len.h delete mode 100644 lib/cmn/str.c delete mode 100644 lib/cmn/utf16.c delete mode 100644 lib/cmn/utf8.c diff --git a/Makefile.in b/Makefile.in index faf23c7..0deca8b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 \ diff --git a/aclocal.m4 b/aclocal.m4 index 0466cd4..956fbab 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -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]) diff --git a/bin/Makefile.in b/bin/Makefile.in index 0e4652b..1e206f6 100644 --- a/bin/Makefile.in +++ b/bin/Makefile.in @@ -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@ diff --git a/configure b/configure index 7e8c794..041b2fd 100755 --- a/configure +++ b/configure @@ -593,7 +593,7 @@ PACKAGE_TARNAME='h2' PACKAGE_VERSION='0.1.0' PACKAGE_STRING='h2 0.1.0' PACKAGE_BUGREPORT='Chung, Hyung-Hwan (hyunghwan.chung@gmail.com)' -PACKAGE_URL='http://code.abiyo.net/@h2' +PACKAGE_URL='http://code.miflux.com/@h2' # Factoring default headers for most tests. ac_includes_default="\ @@ -651,45 +651,15 @@ H2_SIZEOF_LONG_LONG ENABLE_STATIC_MODULE_FALSE ENABLE_STATIC_MODULE_TRUE ADA_OBJDIR -PTHREAD_CFLAGS -PTHREAD_LIBS -PTHREAD_CC -ax_pthread_config -ENABLE_CXX_FALSE -ENABLE_CXX_TRUE -BUILD_MODE -ENABLE_XCMGRS_FALSE -ENABLE_XCMGRS_TRUE -ENABLE_BUNDLED_UNICODE_FALSE -ENABLE_BUNDLED_UNICODE_TRUE CHAR_TYPE -ENABLE_WWCHAR_FALSE -ENABLE_WWCHAR_TRUE -ENABLE_WCHAR_FALSE -ENABLE_WCHAR_TRUE -ENABLE_MCHAR_FALSE -ENABLE_MCHAR_TRUE PACKAGE_VERSION_PATCH PACKAGE_VERSION_MINOR PACKAGE_VERSION_MAJOR -QUADMATH_LIBS -HAVE_LIBUCI_FALSE -HAVE_LIBUCI_TRUE -UCI_LIBS -HAVE_C_MPI_FALSE -HAVE_C_MPI_TRUE -MPI_CLDFLAGS -MPI_CFLAGS -MPICC -SSL_LIBS UNICOWS_LIBS -SENDFILE_LIBS -SOCKET_LIBS LIBM WIN32_FALSE WIN32_TRUE LIBTOOL_DEPS -CXXCPP CPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -716,20 +686,9 @@ build_vendor build_cpu build LIBTOOL -ECHO -TRUE -RMDIR -RM LN_S EGREP GREP -HAVE_CXX -am__fastdepCXX_FALSE -am__fastdepCXX_TRUE -CXXDEPMODE -ac_ct_CXX -CXXFLAGS -CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -827,20 +786,7 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock -enable_ssl -enable_mchar -enable_wchar -enable_wwchar with_char_type -enable_bundled_unicode -enable_xcmgrs -enable_syscall -enable_debug -enable_cxx -enable_reentrant -enable_awk_intmax -enable_awk_fltmax -enable_sed_tracer with_ada_objdir ' ac_precious_vars='build_alias @@ -851,12 +797,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CXX -CXXFLAGS -CCC LT_SYS_LIBRARY_PATH -CPP -CXXCPP' +CPP' # Initialize some variables set by options. @@ -1486,24 +1428,6 @@ Optional Features: --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) - --enable-ssl build the library in the ssl mode (default. yes) - --enable-mchar enable qse_mchar_t (default. yes) - --enable-wchar enable qse_wchar_t (default. yes) - --enable-wwchar enable qse_wwchar_t (default. yes) - --enable-bundled-unicode - use thn bundled unicode routines (default. no) - --enable-xcmgrs include more built-in cmgrs like cp949 and cp950 - when enabled (default. yes) - --enable-syscall use the syscall() function to call system calls - (default. no) - --enable-debug build the library in the debug mode (default. no) - --enable-cxx build the library for C++ if a C++ compiler is - available (default. yes) - --enable-reentrant add thread options (default. no) - --enable-awk-intmax use h2_intmax_t for integers in AWK (default. no) - --enable-awk-fltmax use h2_fltmax_t for floating-point numbers in AWK - (default. no) - --enable-sed-tracer enable h2_sed_setexectracer() (default. yes) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1528,18 +1452,15 @@ Some influential environment variables: LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory - CXX C++ compiler command - CXXFLAGS C++ compiler flags LT_SYS_LIBRARY_PATH User-defined run-time library search path. CPP C preprocessor - CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . -h2 home page: . +h2 home page: . _ACEOF ac_status=$? fi @@ -1654,44 +1575,6 @@ fi } # ac_fn_c_try_compile -# ac_fn_cxx_try_compile LINENO -# ---------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_cxx_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_compile - # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. @@ -1915,291 +1798,6 @@ $as_echo "$ac_res" >&6; } } # ac_fn_c_check_func -# ac_fn_cxx_try_cpp LINENO -# ------------------------ -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_cxx_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_cpp - -# ac_fn_cxx_try_link LINENO -# ------------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_cxx_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_link - -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} -( $as_echo "## HHHHHHHHHHHHHHHHHHHH ## -## Report this to Chung ## -## HHHHHHHHHHHHHHHHHHHH ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel - -# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES -# ---------------------------------------------------- -# Tries to find if the field MEMBER exists in type AGGR, after including -# INCLUDES, setting cache variable VAR accordingly. -ac_fn_c_check_member () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main () -{ -static $2 ac_aggr; -if (ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main () -{ -static $2 ac_aggr; -if (sizeof ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else - eval "$4=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$4 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_member - -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_type - # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes @@ -2735,7 +2333,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_headers="$ac_config_headers include/h2/config.h" +ac_config_headers="$ac_config_headers h2-cfg.h" ac_aux_dir= for ac_dir in ac "$srcdir"/ac; do @@ -5333,480 +4931,6 @@ fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GXX=yes -else - GXX= -fi -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CXX_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - - -# Extract the first word of "$CXX", so it can be a program name with args. -set dummy $CXX; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_HAVE_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$HAVE_CXX"; then - ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_HAVE_CXX="yes" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no" -fi -fi -HAVE_CXX=$ac_cv_prog_HAVE_CXX -if test -n "$HAVE_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5 -$as_echo "$HAVE_CXX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if c++ supports namespace std" >&5 -$as_echo_n "checking if c++ supports namespace std... " >&6; } -if ${ax_cv_cxx_have_std_namespace+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - std::istream& is = std::cin; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ax_cv_cxx_have_std_namespace=yes -else - ax_cv_cxx_have_std_namespace=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 -$as_echo "$ax_cv_cxx_have_std_namespace" >&6; } - if test "$ax_cv_cxx_have_std_namespace" = yes; then - -$as_echo "#define HAVE_CXX_NAMESPACE_STD /**/" >>confdefs.h - - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } @@ -5950,377 +5074,6 @@ $as_echo "no, using $LN_S" >&6; } fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args. -set dummy ${ac_tool_prefix}rm; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RM+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RM"; then - ac_cv_prog_RM="$RM" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RM="${ac_tool_prefix}rm" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -RM=$ac_cv_prog_RM -if test -n "$RM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 -$as_echo "$RM" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RM"; then - ac_ct_RM=$RM - # Extract the first word of "rm", so it can be a program name with args. -set dummy rm; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RM+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RM"; then - ac_cv_prog_ac_ct_RM="$ac_ct_RM" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RM="rm" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_RM=$ac_cv_prog_ac_ct_RM -if test -n "$ac_ct_RM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RM" >&5 -$as_echo "$ac_ct_RM" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RM" = x; then - RM="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - RM=$ac_ct_RM - fi -else - RM="$ac_cv_prog_RM" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}rmdir", so it can be a program name with args. -set dummy ${ac_tool_prefix}rmdir; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RMDIR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RMDIR"; then - ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RMDIR="${ac_tool_prefix}rmdir" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -RMDIR=$ac_cv_prog_RMDIR -if test -n "$RMDIR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 -$as_echo "$RMDIR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RMDIR"; then - ac_ct_RMDIR=$RMDIR - # Extract the first word of "rmdir", so it can be a program name with args. -set dummy rmdir; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RMDIR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RMDIR"; then - ac_cv_prog_ac_ct_RMDIR="$ac_ct_RMDIR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RMDIR="rmdir" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_RMDIR=$ac_cv_prog_ac_ct_RMDIR -if test -n "$ac_ct_RMDIR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RMDIR" >&5 -$as_echo "$ac_ct_RMDIR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RMDIR" = x; then - RMDIR="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - RMDIR=$ac_ct_RMDIR - fi -else - RMDIR="$ac_cv_prog_RMDIR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}true", so it can be a program name with args. -set dummy ${ac_tool_prefix}true; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_TRUE+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$TRUE"; then - ac_cv_prog_TRUE="$TRUE" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_TRUE="${ac_tool_prefix}true" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -TRUE=$ac_cv_prog_TRUE -if test -n "$TRUE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 -$as_echo "$TRUE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_TRUE"; then - ac_ct_TRUE=$TRUE - # Extract the first word of "true", so it can be a program name with args. -set dummy true; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_TRUE+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_TRUE"; then - ac_cv_prog_ac_ct_TRUE="$ac_ct_TRUE" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_TRUE="true" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_TRUE=$ac_cv_prog_ac_ct_TRUE -if test -n "$ac_ct_TRUE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TRUE" >&5 -$as_echo "$ac_ct_TRUE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_TRUE" = x; then - TRUE="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - TRUE=$ac_ct_TRUE - fi -else - TRUE="$ac_cv_prog_TRUE" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}echo", so it can be a program name with args. -set dummy ${ac_tool_prefix}echo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ECHO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ECHO"; then - ac_cv_prog_ECHO="$ECHO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ECHO="${ac_tool_prefix}echo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ECHO=$ac_cv_prog_ECHO -if test -n "$ECHO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 -$as_echo "$ECHO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_ECHO"; then - ac_ct_ECHO=$ECHO - # Extract the first word of "echo", so it can be a program name with args. -set dummy echo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_ECHO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_ECHO"; then - ac_cv_prog_ac_ct_ECHO="$ac_ct_ECHO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_ECHO="echo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_ECHO=$ac_cv_prog_ac_ct_ECHO -if test -n "$ac_ct_ECHO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ECHO" >&5 -$as_echo "$ac_ct_ECHO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_ECHO" = x; then - ECHO="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - ECHO=$ac_ct_ECHO - fi -else - ECHO="$ac_cv_prog_ECHO" -fi - - -RM="$RM -f" - case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 @@ -9950,16 +8703,6 @@ done -func_stripname_cnf () -{ - case $2 in - .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; - *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; - esac -} # func_stripname_cnf - - - # Set options @@ -14239,3313 +12982,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC - if test -n "$CXX" && ( test no != "$CXX" && - ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || - (test g++ != "$CXX"))); then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } -if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -else - _lt_caught_CXX_error=yes -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -compiler_needs_object_CXX=no -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_direct_absolute_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -inherit_rpath_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -reload_flag_CXX=$reload_flag -reload_cmds_CXX=$reload_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext - -# No sense in running all these tests if we already determined that -# the CXX compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_caught_CXX_error"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="int some_variable = 0;" - - # Code to be used in simple link tests - lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - - # save warnings/boilerplate of simple test code - ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* - - ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* - - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_CFLAGS=$CFLAGS - lt_save_LD=$LD - lt_save_GCC=$GCC - GCC=$GXX - lt_save_with_gnu_ld=$with_gnu_ld - lt_save_path_LD=$lt_cv_path_LD - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx - else - $as_unset lt_cv_prog_gnu_ld - fi - if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX - else - $as_unset lt_cv_path_LD - fi - test -z "${LDCXX+set}" || LD=$LDCXX - CC=${CXX-"c++"} - CFLAGS=$CXXFLAGS - compiler=$CC - compiler_CXX=$CC - func_cc_basename $compiler -cc_basename=$func_cc_basename_result - - - if test -n "$compiler"; then - # We don't want -fno-exception when compiling C++ code, so set the - # no_builtin_flag separately - if test yes = "$GXX"; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' - else - lt_prog_compiler_no_builtin_flag_CXX= - fi - - if test yes = "$GXX"; then - # Set up default GNU C++ configuration - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test yes = "$with_gnu_ld"; then - archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' - export_dynamic_flag_spec_CXX='$wl--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='$wl' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | - $GREP 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - GXX=no - with_gnu_ld=no - wlarc= - fi - - # PORTME: fill in a description of your system's C++ link characteristics - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - ld_shlibs_CXX=yes - case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix[4-9]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_direct_absolute_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - file_list_spec_CXX='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - hardcode_direct_CXX=no - hardcode_direct_absolute_CXX=no - ;; - esac - - if test yes = "$GXX"; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag=$shared_flag' $wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - export_dynamic_flag_spec_CXX='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to - # export. - always_export_symbols_CXX=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - # The "-G" linker flag allows undefined symbols. - no_undefined_flag_CXX='-bernotok' - # Determine the default libpath from the value encoded in an empty - # executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath__CXX"; then - lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath__CXX"; then - lt_cv_aix_libpath__CXX=/usr/lib:/lib - fi - -fi - - aix_libpath=$lt_cv_aix_libpath__CXX -fi - - hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" - - archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath__CXX"; then - lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath__CXX"; then - lt_cv_aix_libpath__CXX=/usr/lib:/lib - fi - -fi - - aix_libpath=$lt_cv_aix_libpath__CXX -fi - - hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' $wl-bernotok' - allow_undefined_flag_CXX=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - fi - archive_cmds_need_lc_CXX=yes - archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared - # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. - archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - cygwin* | mingw* | pw32* | cegcc*) - case $GXX,$cc_basename in - ,cl* | no,cl*) - # Native MSVC - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_CXX=' ' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=yes - file_list_spec_CXX='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' - enable_shared_with_static_runtimes_CXX=yes - # Don't use ranlib - old_postinstall_cmds_CXX='chmod 644 $oldlib' - postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - func_to_tool_file "$lt_outputfile"~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # g++ - # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - export_dynamic_flag_spec_CXX='$wl--export-all-symbols' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - esac - ;; - darwin* | rhapsody*) - - - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - if test yes = "$lt_cv_ld_force_load"; then - whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - - else - whole_archive_flag_spec_CXX='' - fi - link_all_deplibs_CXX=yes - allow_undefined_flag_CXX=$_lt_dar_allow_undefined - case $cc_basename in - ifort*|nagfor*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test yes = "$_lt_dar_can_shared"; then - output_verbose_link_cmd=func_echo_all - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" - if test yes != "$lt_cv_apple_cc_single_mod"; then - archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" - archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" - fi - - else - ld_shlibs_CXX=no - fi - - ;; - - os2*) - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_minus_L_CXX=yes - allow_undefined_flag_CXX=unsupported - shrext_cmds=.dll - archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes_CXX=yes - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - freebsd2.*) - # C++ shared libraries reported to be fairly broken before - # switch to ELF - ld_shlibs_CXX=no - ;; - - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - - haiku*) - archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - link_all_deplibs_CXX=yes - ;; - - hpux9*) - hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='$wl-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes = "$GXX"; then - archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - - hpux10*|hpux11*) - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' - hardcode_libdir_separator_CXX=: - - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - export_dynamic_flag_spec_CXX='$wl-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_direct_absolute_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes = "$GXX"; then - if test no = "$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' - export_dynamic_flag_spec_CXX='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test yes = "$GXX"; then - if test no = "$with_gnu_ld"; then - archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' - hardcode_libdir_separator_CXX=: - inherit_rpath_CXX=yes - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - - hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' - export_dynamic_flag_spec_CXX='$wl--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc* | ecpc* ) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' - export_dynamic_flag_spec_CXX='$wl--export-dynamic' - whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - case `$CC -V` in - *pgCC\ [1-5].* | *pgcpp\ [1-5].*) - prelink_cmds_CXX='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ - compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' - old_archive_cmds_CXX='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ - $RANLIB $oldlib' - archive_cmds_CXX='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 6 and above use weak symbols - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - - hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' - export_dynamic_flag_spec_CXX='$wl--export-dynamic' - whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' - ;; - xl* | mpixl* | bgxl*) - # IBM XL 8.0 on PPC, with GNU ld - hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' - export_dynamic_flag_spec_CXX='$wl--export-dynamic' - archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object_CXX=yes - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - - *nto* | *qnx*) - ld_shlibs_CXX=yes - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - hardcode_direct_absolute_CXX=yes - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='$wl-E' - whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - fi - output_verbose_link_cmd=func_echo_all - else - ld_shlibs_CXX=no - fi - ;; - - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - case $host in - osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; - *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; - esac - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - case $host in - osf3*) - allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' - archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' - ;; - *) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ - $RM $lib.exp' - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - ;; - esac - - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes,no = "$GXX,$with_gnu_ld"; then - allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' - case $host in - osf3*) - archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - ;; - *) - archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - ;; - esac - - hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test yes,no = "$GXX,$with_gnu_ld"; then - no_undefined_flag_CXX=' $wl-z ${wl}defs' - if $CC --version | $GREP -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - else - # g++ 2.7 appears to require '-G' NOT '-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - fi - - hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='$wl-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_CXX='$wl-z,text' - allow_undefined_flag_CXX='$wl-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ - '"$old_archive_cmds_CXX" - reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ - '"$reload_cmds_CXX" - ;; - *) - archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } - test no = "$ld_shlibs_CXX" && can_build_shared=no - - GCC_CXX=$GXX - LD_CXX=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - # Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= - -cat > conftest.$ac_ext <<_LT_EOF -class Foo -{ -public: - Foo (void) { a = 0; } -private: - int a; -}; -_LT_EOF - - -_lt_libdeps_save_CFLAGS=$CFLAGS -case "$CC $CFLAGS " in #( -*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; -*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; -*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; -esac - -if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - for p in `eval "$output_verbose_link_cmd"`; do - case $prev$p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test x-L = "$p" || - test x-R = "$p"; then - prev=$p - continue - fi - - # Expand the sysroot to ease extracting the directories later. - if test -z "$prev"; then - case $p in - -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; - -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; - -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; - esac - fi - case $p in - =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; - esac - if test no = "$pre_test_object_deps_done"; then - case $prev in - -L | -R) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX=$prev$p - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX=$prev$p - else - postdeps_CXX="${postdeps_CXX} $prev$p" - fi - fi - prev= - ;; - - *.lto.$objext) ;; # Ignore GCC LTO objects - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test no = "$pre_test_object_deps_done"; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX=$p - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX=$p - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi - -$RM -f confest.$objext -CFLAGS=$_lt_libdeps_save_CFLAGS - -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; -esac - - -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac - compiler_lib_search_dirs_CXX= -if test -n "${compiler_lib_search_path_CXX}"; then - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= - - - # C++ specific cases for pic, static, wl, etc. - if test yes = "$GXX"; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - lt_prog_compiler_pic_CXX='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - lt_prog_compiler_pic_CXX='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static_CXX='$wl-static' - ;; - esac - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - lt_prog_compiler_static_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic_CXX='-fPIC -shared' - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix[4-9]*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='$wl-a ${wl}archive' - if test ia64 != "$host_cpu"; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='$wl-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - ecpc* ) - # old Intel C++ for x86_64, which still supported -KPIC. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - icpc* ) - # Intel C++, used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) - # IBM XL 8.0, 9.0 on PPC and BlueGene - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-qpic' - lt_prog_compiler_static_CXX='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic_CXX='-fPIC -shared' - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi - -case $host_os in - # For platforms that do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } -lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } -if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works_CXX=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } - -if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi - -fi - - - - - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_static_works_CXX=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works_CXX=yes - fi - else - lt_cv_prog_compiler_static_works_CXX=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } - -if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then - : -else - lt_prog_compiler_static_CXX= -fi - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } - - - - -hard_links=nottested -if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then - # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } - if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - case $host_os in - aix[4-9]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX=$ltdll_cmds - ;; - cygwin* | mingw* | cegcc*) - case $cc_basename in - cl*) - exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' - ;; - esac - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } -test no = "$ld_shlibs_CXX" && can_build_shared=no - -with_gnu_ld_CXX=$with_gnu_ld - - - - - - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - - if test yes,yes = "$GCC,$enable_shared"; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 - (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - then - lt_cv_archive_cmds_need_lc_CXX=no - else - lt_cv_archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } - archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } - -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=.so -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - - - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='$libname$release$shared_ext$major' - ;; - -aix[4-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test ia64 = "$host_cpu"; then - # AIX 5 supports IA64 - library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line '#! .'. This would cause the generated library to - # depend on '.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # Using Import Files as archive members, it is possible to support - # filename-based versioning of shared library archives on AIX. While - # this would work for both with and without runtime linking, it will - # prevent static linking of such archives. So we do filename-based - # shared library versioning with .so extension only, which is used - # when both runtime linking and shared linking is enabled. - # Unfortunately, runtime linking may impact performance, so we do - # not want this to be the default eventually. Also, we use the - # versioned .so libs for executables only if there is the -brtl - # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. - # To allow for filename-based versioning support, we need to create - # libNAME.so.V as an archive file, containing: - # *) an Import File, referring to the versioned filename of the - # archive as well as the shared archive member, telling the - # bitwidth (32 or 64) of that shared object, and providing the - # list of exported symbols of that shared object, eventually - # decorated with the 'weak' keyword - # *) the shared object with the F_LOADONLY flag set, to really avoid - # it being seen by the linker. - # At run time we better use the real file rather than another symlink, - # but for link time we create the symlink libNAME.so -> libNAME.so.V - - case $with_aix_soname,$aix_use_runtimelinking in - # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - aix,yes) # traditional libtool - dynamic_linker='AIX unversionable lib.so' - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - aix,no) # traditional AIX only - dynamic_linker='AIX lib.a(lib.so.V)' - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - ;; - svr4,*) # full svr4 only - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,yes) # both, prefer svr4 - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # unpreferred sharedlib libNAME.a needs extra handling - postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' - postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,no) # both, prefer aix - dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling - postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' - postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' - ;; - esac - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - library_names_spec='$libname.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec=$LIB - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' - soname_spec='$libname$release$major$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[23].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=no - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - if test 32 = "$HPUX_IA64_MODE"; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - sys_lib_dlsearch_path_spec=/usr/lib/hpux32 - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - sys_lib_dlsearch_path_spec=/usr/lib/hpux64 - fi - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[3-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test yes = "$lt_cv_prog_gnu_ld"; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" - sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -linux*android*) - version_type=none # Android doesn't support versioned libraries. - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext' - soname_spec='$libname$release$shared_ext' - finish_cmds= - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - dynamic_linker='Android linker' - # Don't embed -rpath directories since the linker doesn't support them. - hardcode_libdir_flag_spec_CXX='-L$libdir' - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : - lt_cv_shlibpath_overrides_runpath=yes -fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - -fi - - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - - # Ideally, we could use ldconfig to report *all* directores which are - # searched for libraries, however this is still not possible. Aside from not - # being certain /sbin/ldconfig is available, command - # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, - # even though it is searched at run-time. Try to do the best guess by - # appending ld.so.conf contents (and includes) to the search path. - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd* | bitrig*) - version_type=sunos - sys_lib_dlsearch_path_spec=/usr/lib - need_lib_prefix=no - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - need_version=no - else - need_version=yes - fi - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -os2*) - libname_spec='$name' - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - # OS/2 can only load a DLL with a base name of 8 characters or less. - soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; - v=$($ECHO $release$versuffix | tr -d .-); - n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); - $ECHO $n$v`$shared_ext' - library_names_spec='${libname}_dll.$libext' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=BEGINLIBPATH - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test yes = "$with_gnu_ld"; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec; then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' - soname_spec='$libname$shared_ext.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=sco - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test yes = "$with_gnu_ld"; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } -test no = "$dynamic_linker" && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test yes = "$GCC"; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then - sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec -fi - -if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then - sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec -fi - -# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... -configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec - -# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code -func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" - -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || - test -n "$runpath_var_CXX" || - test yes = "$hardcode_automatic_CXX"; then - - # We can hardcode non-existent directories. - if test no != "$hardcode_direct_CXX" && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && - test no != "$hardcode_minus_L_CXX"; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 -$as_echo "$hardcode_action_CXX" >&6; } - -if test relink = "$hardcode_action_CXX" || - test yes = "$inherit_rpath_CXX"; then - # Fast installation is not supported - enable_fast_install=no -elif test yes = "$shlibpath_overrides_runpath" || - test no = "$enable_shared"; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - - - - - - - fi # test -n "$compiler" - - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS - LDCXX=$LD - LD=$lt_save_LD - GCC=$lt_save_GCC - with_gnu_ld=$lt_save_with_gnu_ld - lt_cv_path_LDCXX=$lt_cv_path_LD - lt_cv_path_LD=$lt_save_path_LD - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -fi # test yes != "$_lt_caught_CXX_error" - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - @@ -17857,671 +13293,7 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi -for ac_header in stddef.h wchar.h wctype.h errno.h signal.h fcntl.h dirent.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi - -done - -for ac_header in time.h sys/time.h utime.h spawn.h execinfo.h ucontext.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in sys/resource.h sys/wait.h sys/syscall.h sys/ioctl.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in sys/sendfile.h sys/epoll.h sys/event.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in sys/sysctl.h sys/socket.h sys/sockio.h ifaddrs.h linux/netfilter_ipv4.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in net/if.h net/if_dl.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " - #include - #include -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in sys/stropts.h sys/macstat.h linux/ethtool.h linux/sockios.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in quadmath.h crt_externs.h sys/prctl.h uci.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_func in uselocale -do : - ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale" -if test "x$ac_cv_func_uselocale" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_USELOCALE 1 -_ACEOF - -fi -done - -for ac_func in mbrlen mbrtowc wcrtomb -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in mbsnrtowcs mbsrtowcs wcsnrtombs wcsrtombs -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in wctype iswctype wctrans towctrans -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in isblank iswblank -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in lseek64 stat64 fstat64 lstat64 ftruncate64 readdir64 -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in timegm timelocal -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in utime utimes -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in sysconf prctl fdopendir setrlimit getrlimit -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in backtrace backtrace_symbols -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in fork vfork posix_spawn gettid nanosleep select -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in makecontext swapcontext getcontext setcontext -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in _vsnprintf _vsnwprintf -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -OLDLIBS="$LIBS" -LIBS="$LIBM $LIBS" -for ac_func in powl fmodl sinl cosl tanl atanl atan2l logl log10l expl sqrtl ceill floorl roundl -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in pow fmod sin cos tan atan atan2 log log10 exp sqrt ceil floor round -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in powf fmodf sinf cosf tanf atanf atan2f logf log10f expf sqrtf ceilf floorf roundf -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -LIBS="$OLDLIBS" - -for ac_func in connect gethostbyname -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -if test "$ac_cv_func_gethostbyname" = "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 -$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnsl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyname (); -int -main () -{ -return gethostbyname (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_nsl_gethostbyname=yes -else - ac_cv_lib_nsl_gethostbyname=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 -$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } -if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : - - SOCKET_LIBS="$SOCKET_LIBS -lnsl" - $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h - - -fi - -fi -if test "$ac_cv_func_connect" = "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 -$as_echo_n "checking for connect in -lsocket... " >&6; } -if ${ac_cv_lib_socket_connect+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsocket $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char connect (); -int -main () -{ -return connect (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_socket_connect=yes -else - ac_cv_lib_socket_connect=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 -$as_echo "$ac_cv_lib_socket_connect" >&6; } -if test "x$ac_cv_lib_socket_connect" = xyes; then : - - SOCKET_LIBS="$SOCKET_LIBS -lsocket" - $as_echo "#define HAVE_CONNECT 1" >>confdefs.h - - -fi - -fi -if test "${platform_win32}" = "yes" -then - SOCKET_LIBS="$SOCKET_LIBS -lws2_32" -fi - - -OLDLIBS="$LIBS" -LIBS="$SOCKET_LIBS $LIBS" -for ac_func in if_nametoindex if_indextoname getifaddrs -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -LIBS="$OLDLIBS" - -for ac_func in sendfile sendfile64 sendfilev sendfilev64 -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -if test "$ac_cv_func_sendfile" = "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 -$as_echo_n "checking for sendfile in -lsendfile... " >&6; } -if ${ac_cv_lib_sendfile_sendfile+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsendfile $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sendfile (); -int -main () -{ -return sendfile (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_sendfile_sendfile=yes -else - ac_cv_lib_sendfile_sendfile=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 -$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } -if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : - - SENDFILE_LIBS="-lsendfile" - $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h - - -fi - -fi -if test "$ac_cv_func_sendfile64" = "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile64 in -lsendfile" >&5 -$as_echo_n "checking for sendfile64 in -lsendfile... " >&6; } -if ${ac_cv_lib_sendfile_sendfile64+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsendfile $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sendfile64 (); -int -main () -{ -return sendfile64 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_sendfile_sendfile64=yes -else - ac_cv_lib_sendfile_sendfile64=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile64" >&5 -$as_echo "$ac_cv_lib_sendfile_sendfile64" >&6; } -if test "x$ac_cv_lib_sendfile_sendfile64" = xyes; then : - - SENDFILE_LIBS="-lsendfile" - $as_echo "#define HAVE_SENDFILE64 1" >>confdefs.h - - -fi - -fi -if test "$ac_cv_func_sendfilev" = "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5 -$as_echo_n "checking for sendfilev in -lsendfile... " >&6; } -if ${ac_cv_lib_sendfile_sendfilev+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsendfile $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sendfilev (); -int -main () -{ -return sendfilev (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_sendfile_sendfilev=yes -else - ac_cv_lib_sendfile_sendfilev=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5 -$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; } -if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then : - - SENDFILE_LIBS="-lsendfile" - $as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h - - -fi - -fi -if test "$ac_cv_func_sendfilev64" = "no" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev64 in -lsendfile" >&5 -$as_echo_n "checking for sendfilev64 in -lsendfile... " >&6; } -if ${ac_cv_lib_sendfile_sendfilev64+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsendfile $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sendfilev64 (); -int -main () -{ -return sendfilev64 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_sendfile_sendfilev64=yes -else - ac_cv_lib_sendfile_sendfilev64=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev64" >&5 -$as_echo "$ac_cv_lib_sendfile_sendfilev64" >&6; } -if test "x$ac_cv_lib_sendfile_sendfilev64" = xyes; then : - - SENDFILE_LIBS="-lsendfile" - $as_echo "#define HAVE_SENDFILEV64 1" >>confdefs.h - - -fi - -fi - - -for ac_func in epoll_create epoll_create1 -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -if test "$ac_cv_func_epoll_create" = "yes" -then - -$as_echo "#define HAVE_EPOLL 1" >>confdefs.h - -fi - -for ac_func in kqueue kqueue1 kevent -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lunicows" >&5 @@ -18560,816 +13332,6 @@ fi -# Check whether --enable-ssl was given. -if test "${enable_ssl+set}" = set; then : - enableval=$enable_ssl; enable_ssl_is=$enableval -else - enable_ssl_is=yes -fi - -if test "$enable_ssl_is" = "yes" -then - for ac_func in SSL_library_init -do : - ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init" -if test "x$ac_cv_func_SSL_library_init" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SSL_LIBRARY_INIT 1 -_ACEOF - -fi -done - - if test "$ac_cv_func_SSL_library_init" = "yes" - then - -$as_echo "#define HAVE_SSL 1" >>confdefs.h - - else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 -$as_echo_n "checking for SSL_library_init in -lssl... " >&6; } -if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lssl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char SSL_library_init (); -int -main () -{ -return SSL_library_init (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_ssl_SSL_library_init=yes -else - ac_cv_lib_ssl_SSL_library_init=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 -$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } -if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : - - SSL_LIBS="-lssl" - -$as_echo "#define HAVE_SSL 1" >>confdefs.h - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_get_error in -lcrypto" >&5 -$as_echo_n "checking for ERR_get_error in -lcrypto... " >&6; } -if ${ac_cv_lib_crypto_ERR_get_error+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcrypto $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ERR_get_error (); -int -main () -{ -return ERR_get_error (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_crypto_ERR_get_error=yes -else - ac_cv_lib_crypto_ERR_get_error=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_get_error" >&5 -$as_echo "$ac_cv_lib_crypto_ERR_get_error" >&6; } -if test "x$ac_cv_lib_crypto_ERR_get_error" = xyes; then : - - SSL_LIBS="${SSL_LIBS} -lcrypto" - -fi - - - $as_echo "#define HAVE_SSL_LIBRARY_INIT 1" >>confdefs.h - - -fi - - fi -fi - - - - - - if [ ! -z "$MPICC" ]; then - - # Try to find a working MPI compiler from the supplied names - for ac_prog in $MPICC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MPICC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MPICC in - [\\/]* | ?:[\\/]*) - ac_cv_path_MPICC="$MPICC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MPICC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MPICC=$ac_cv_path_MPICC -if test -n "$MPICC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 -$as_echo "$MPICC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$MPICC" && break -done -test -n "$MPICC" || MPICC="not-found" - - - # Figure out what the compiler responds to to get it to show us the compile - # and link lines. After this part of the macro, we'll have a valid - # lx_mpi_command_line - echo -n "Checking whether $MPICC responds to '-showme:compile'... " - lx_mpi_compile_line=`$MPICC -showme:compile 2>/dev/null` - if [ "$?" -eq 0 ]; then - echo yes - lx_mpi_link_line=`$MPICC -showme:link 2>/dev/null` - else - echo no - echo -n "Checking whether $MPICC responds to '-showme'... " - lx_mpi_command_line=`$MPICC -showme 2>/dev/null` - if [ "$?" -ne 0 ]; then - echo no - echo -n "Checking whether $MPICC responds to '-compile-info'... " - lx_mpi_compile_line=`$MPICC -compile-info 2>/dev/null` - if [ "$?" -eq 0 ]; then - echo yes - lx_mpi_link_line=`$MPICC -link-info 2>/dev/null` - else - echo no - echo -n "Checking whether $MPICC responds to '-show'... " - lx_mpi_command_line=`$MPICC -show 2>/dev/null` - if [ "$?" -eq 0 ]; then - echo yes - else - echo no - fi - fi - else - echo yes - fi - fi - - if [ ! -z "$lx_mpi_compile_line" -a ! -z "$lx_mpi_link_line" ]; then - lx_mpi_command_line="$lx_mpi_compile_line $lx_mpi_link_line" - fi - - if [ ! -z "$lx_mpi_command_line" ]; then - # Now extract the different parts of the MPI command line. Do these separately in case we need to - # parse them all out in future versions of this macro. - lx_mpi_defines=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-D\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_includes=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-I\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_link_paths=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-L\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_libs=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-l\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_link_args=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-Wl,\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - - # Create variables and clean up newlines and multiple spaces - MPI_CFLAGS="$lx_mpi_defines $lx_mpi_includes" - MPI_CLDFLAGS="$lx_mpi_link_paths $lx_mpi_libs $lx_mpi_link_args" - MPI_CFLAGS=` echo "$MPI_CFLAGS" | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/ +/ /g'` - MPI_CLDFLAGS=`echo "$MPI_CLDFLAGS" | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/ +/ /g'` - - OLD_CPPFLAGS=$CPPFLAGS - OLD_LIBS=$LIBS - CPPFLAGS=$MPI_CFLAGS - LIBS=$MPI_CLDFLAGS - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -int rank, size; - MPI_Comm_rank(MPI_COMM_WORLD, &rank); - MPI_Comm_size(MPI_COMM_WORLD, &size); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - # Add a define for testing at compile time. - -$as_echo "#define HAVE_MPI 1" >>confdefs.h - - have_C_mpi='yes' -else - # zero out mpi flags so we don't link against the faulty library. - MPI_CFLAGS="" - MPI_CLDFLAGS="" - have_C_mpi='no' -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - - # AC_SUBST everything. - - - - - LIBS=$OLD_LIBS - CPPFLAGS=$OLD_CPPFLAGS - else - echo Unable to find suitable MPI Compiler. Try setting MPICC. - have_C_mpi='no' - fi - - else - - # Try to find a working MPI compiler from the supplied names - for ac_prog in mpicc mpiicc mpixlc mpipgcc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MPICC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MPICC in - [\\/]* | ?:[\\/]*) - ac_cv_path_MPICC="$MPICC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MPICC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MPICC=$ac_cv_path_MPICC -if test -n "$MPICC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 -$as_echo "$MPICC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$MPICC" && break -done -test -n "$MPICC" || MPICC="not-found" - - - # Figure out what the compiler responds to to get it to show us the compile - # and link lines. After this part of the macro, we'll have a valid - # lx_mpi_command_line - echo -n "Checking whether $MPICC responds to '-showme:compile'... " - lx_mpi_compile_line=`$MPICC -showme:compile 2>/dev/null` - if [ "$?" -eq 0 ]; then - echo yes - lx_mpi_link_line=`$MPICC -showme:link 2>/dev/null` - else - echo no - echo -n "Checking whether $MPICC responds to '-showme'... " - lx_mpi_command_line=`$MPICC -showme 2>/dev/null` - if [ "$?" -ne 0 ]; then - echo no - echo -n "Checking whether $MPICC responds to '-compile-info'... " - lx_mpi_compile_line=`$MPICC -compile-info 2>/dev/null` - if [ "$?" -eq 0 ]; then - echo yes - lx_mpi_link_line=`$MPICC -link-info 2>/dev/null` - else - echo no - echo -n "Checking whether $MPICC responds to '-show'... " - lx_mpi_command_line=`$MPICC -show 2>/dev/null` - if [ "$?" -eq 0 ]; then - echo yes - else - echo no - fi - fi - else - echo yes - fi - fi - - if [ ! -z "$lx_mpi_compile_line" -a ! -z "$lx_mpi_link_line" ]; then - lx_mpi_command_line="$lx_mpi_compile_line $lx_mpi_link_line" - fi - - if [ ! -z "$lx_mpi_command_line" ]; then - # Now extract the different parts of the MPI command line. Do these separately in case we need to - # parse them all out in future versions of this macro. - lx_mpi_defines=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-D\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_includes=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-I\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_link_paths=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-L\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_libs=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-l\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - lx_mpi_link_args=` echo "$lx_mpi_command_line" | grep -o -- '\(^\| \)-Wl,\([^\"[:space:]]\+\|\"[^\"[:space:]]\+\"\)'` - - # Create variables and clean up newlines and multiple spaces - MPI_CFLAGS="$lx_mpi_defines $lx_mpi_includes" - MPI_CLDFLAGS="$lx_mpi_link_paths $lx_mpi_libs $lx_mpi_link_args" - MPI_CFLAGS=` echo "$MPI_CFLAGS" | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/ +/ /g'` - MPI_CLDFLAGS=`echo "$MPI_CLDFLAGS" | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/ +/ /g'` - - OLD_CPPFLAGS=$CPPFLAGS - OLD_LIBS=$LIBS - CPPFLAGS=$MPI_CFLAGS - LIBS=$MPI_CLDFLAGS - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -int rank, size; - MPI_Comm_rank(MPI_COMM_WORLD, &rank); - MPI_Comm_size(MPI_COMM_WORLD, &size); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - # Add a define for testing at compile time. - -$as_echo "#define HAVE_MPI 1" >>confdefs.h - - have_C_mpi='yes' -else - # zero out mpi flags so we don't link against the faulty library. - MPI_CFLAGS="" - MPI_CLDFLAGS="" - have_C_mpi='no' -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - - # AC_SUBST everything. - - - - - LIBS=$OLD_LIBS - CPPFLAGS=$OLD_CPPFLAGS - else - echo Unable to find suitable MPI Compiler. Try setting MPICC. - have_C_mpi='no' - fi - - fi - - - if test "${have_C_mpi}" = "yes" ; then - HAVE_C_MPI_TRUE= - HAVE_C_MPI_FALSE='#' -else - HAVE_C_MPI_TRUE='#' - HAVE_C_MPI_FALSE= -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uci_alloc_context in -luci" >&5 -$as_echo_n "checking for uci_alloc_context in -luci... " >&6; } -if ${ac_cv_lib_uci_uci_alloc_context+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-luci $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char uci_alloc_context (); -int -main () -{ -return uci_alloc_context (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_uci_uci_alloc_context=yes -else - ac_cv_lib_uci_uci_alloc_context=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uci_uci_alloc_context" >&5 -$as_echo "$ac_cv_lib_uci_uci_alloc_context" >&6; } -if test "x$ac_cv_lib_uci_uci_alloc_context" = xyes; then : - UCI_LIBS="-luci" -fi - - - if test "${ac_cv_lib_uci_uci_alloc_context}" = "yes" -a "${ac_cv_header_uci_h}" = "yes"; then - HAVE_LIBUCI_TRUE= - HAVE_LIBUCI_FALSE='#' -else - HAVE_LIBUCI_TRUE='#' - HAVE_LIBUCI_FALSE= -fi - - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } -if eval \${$as_ac_Header+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include <$ac_hdr> - -int -main () -{ -if ((DIR *) 0) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$as_ac_Header=yes" -else - eval "$as_ac_Header=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$as_ac_Header - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 -_ACEOF - -ac_header_dirent=$ac_hdr; break -fi - -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dir; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_opendir=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : - break -fi -done -if ${ac_cv_search_opendir+:} false; then : - -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' x; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_opendir=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : - break -fi -done -if ${ac_cv_search_opendir+:} false; then : - -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -fi - - - - ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" " -#include -#ifdef HAVE_DIRENT_H -# include -#else -# define dirent direct -# ifdef HAVE_SYS_NDIR_H -# include -# endif -# ifdef HAVE_SYS_DIR_H -# include -# endif -# ifdef HAVE_NDIR_H -# include -# endif -#endif - -" -if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_DIRENT_D_TYPE 1 -_ACEOF - - -fi - - -ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 -_ACEOF - - -fi - -ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 -_ACEOF - - -fi - -ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 -_ACEOF - - -fi - -ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 -_ACEOF - - -fi - -ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 -_ACEOF - - -fi - - - -ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_ifindex" "ac_cv_member_struct_ifreq_ifr_ifindex" "#include - #include - #ifdef HAVE_NET_IF_H - #include - #endif -" -if test "x$ac_cv_member_struct_ifreq_ifr_ifindex" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_IFREQ_IFR_IFINDEX 1 -_ACEOF - - -fi -ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_mtu" "ac_cv_member_struct_ifreq_ifr_mtu" "#include - #include - #ifdef HAVE_NET_IF_H - #include - #endif -" -if test "x$ac_cv_member_struct_ifreq_ifr_mtu" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_IFREQ_IFR_MTU 1 -_ACEOF - - -fi - - -ac_fn_c_check_type "$LINENO" "struct lifconf" "ac_cv_type_struct_lifconf" "#include - #include - #ifdef HAVE_NET_IF_H - #include - #endif -" -if test "x$ac_cv_type_struct_lifconf" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_LIFCONF 1 -_ACEOF - - -fi -ac_fn_c_check_type "$LINENO" "struct lifreq" "ac_cv_type_struct_lifreq" "#include - #include - #ifdef HAVE_NET_IF_H - #include - #endif -" -if test "x$ac_cv_type_struct_lifreq" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_LIFREQ 1 -_ACEOF - - -fi -ac_fn_c_check_type "$LINENO" "struct if_laddrreq" "ac_cv_type_struct_if_laddrreq" "#include - #include - #ifdef HAVE_NET_IF_H - #include - #endif -" -if test "x$ac_cv_type_struct_if_laddrreq" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_IF_LADDRREQ 1 -_ACEOF - - -fi - - -ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#include - #include - #include -" -if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 -_ACEOF - - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 $as_echo_n "checking for va_copy... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -20215,399 +14177,6 @@ _ACEOF -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mbstate_t" >&5 -$as_echo_n "checking size of mbstate_t... " >&6; } -if ${ac_cv_sizeof_mbstate_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mbstate_t))" "ac_cv_sizeof_mbstate_t" "#include -"; then : - -else - if test "$ac_cv_type_mbstate_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (mbstate_t) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_mbstate_t=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mbstate_t" >&5 -$as_echo "$ac_cv_sizeof_mbstate_t" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_MBSTATE_T $ac_cv_sizeof_mbstate_t -_ACEOF - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking numeric value of MB_LEN_MAX" >&5 -$as_echo_n "checking numeric value of MB_LEN_MAX... " >&6; } -if ${ax_cv_numvalof_MB_LEN_MAX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(MB_LEN_MAX)" "ax_cv_numvalof_MB_LEN_MAX" "#include -"; then : - -else - ax_cv_numvalof_MB_LEN_MAX=32 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_numvalof_MB_LEN_MAX" >&5 -$as_echo "$ax_cv_numvalof_MB_LEN_MAX" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define NUMVALOF_MB_LEN_MAX $ax_cv_numvalof_MB_LEN_MAX -_ACEOF - - - - -if test "${platform_win32}" == "yes" -then -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct sockaddr_in" >&5 -$as_echo_n "checking size of struct sockaddr_in... " >&6; } -if ${ac_cv_sizeof_struct_sockaddr_in+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct sockaddr_in))" "ac_cv_sizeof_struct_sockaddr_in" " - #include - #include -"; then : - -else - if test "$ac_cv_type_struct_sockaddr_in" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (struct sockaddr_in) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_struct_sockaddr_in=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_sockaddr_in" >&5 -$as_echo "$ac_cv_sizeof_struct_sockaddr_in" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_STRUCT_SOCKADDR_IN $ac_cv_sizeof_struct_sockaddr_in -_ACEOF - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct sockaddr_in6" >&5 -$as_echo_n "checking size of struct sockaddr_in6... " >&6; } -if ${ac_cv_sizeof_struct_sockaddr_in6+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct sockaddr_in6))" "ac_cv_sizeof_struct_sockaddr_in6" " - #include - #include -"; then : - -else - if test "$ac_cv_type_struct_sockaddr_in6" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (struct sockaddr_in6) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_struct_sockaddr_in6=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_sockaddr_in6" >&5 -$as_echo "$ac_cv_sizeof_struct_sockaddr_in6" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_STRUCT_SOCKADDR_IN6 $ac_cv_sizeof_struct_sockaddr_in6 -_ACEOF - - -else -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct sockaddr_in" >&5 -$as_echo_n "checking size of struct sockaddr_in... " >&6; } -if ${ac_cv_sizeof_struct_sockaddr_in+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct sockaddr_in))" "ac_cv_sizeof_struct_sockaddr_in" " - #include - #include -"; then : - -else - if test "$ac_cv_type_struct_sockaddr_in" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (struct sockaddr_in) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_struct_sockaddr_in=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_sockaddr_in" >&5 -$as_echo "$ac_cv_sizeof_struct_sockaddr_in" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_STRUCT_SOCKADDR_IN $ac_cv_sizeof_struct_sockaddr_in -_ACEOF - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct sockaddr_in6" >&5 -$as_echo_n "checking size of struct sockaddr_in6... " >&6; } -if ${ac_cv_sizeof_struct_sockaddr_in6+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct sockaddr_in6))" "ac_cv_sizeof_struct_sockaddr_in6" " - #include - #include -"; then : - -else - if test "$ac_cv_type_struct_sockaddr_in6" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (struct sockaddr_in6) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_struct_sockaddr_in6=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_sockaddr_in6" >&5 -$as_echo "$ac_cv_sizeof_struct_sockaddr_in6" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_STRUCT_SOCKADDR_IN6 $ac_cv_sizeof_struct_sockaddr_in6 -_ACEOF - - -fi - -if test ${ac_cv_sizeof___int128_t} -gt 0 -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with %" >&5 -$as_echo_n "checking __int128_t with %... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - volatile __int128_t x, base; - x = (__int128_t)&base; - base = (__int128_t)&x; - x = x % base; - return (int)x; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_sizeof___int128_t=0 - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -if test ${ac_cv_sizeof___float128} -gt 0 -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking __float128 with linking" >&5 -$as_echo_n "checking __float128 with linking... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - - __float128 x, y, z; - z = x * y + x; - printf ("%p", (char*)(int)z); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_sizeof___float128=0 - - -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi - -if test ${ac_cv_sizeof___float128} -gt 0 -then - for ac_func in quadmath_snprintf -do : - ac_fn_c_check_func "$LINENO" "quadmath_snprintf" "ac_cv_func_quadmath_snprintf" -if test "x$ac_cv_func_quadmath_snprintf" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_QUADMATH_SNPRINTF 1 -_ACEOF - -fi -done - - if test "$ac_cv_func_quadmath_snprintf" = "no" - then - OLDLIBS="$LIBS" - LIBS="$LIBM $LIBS" - for ac_func in quadmath_snprintf -do : - ac_fn_c_check_func "$LINENO" "quadmath_snprintf" "ac_cv_func_quadmath_snprintf" -if test "x$ac_cv_func_quadmath_snprintf" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_QUADMATH_SNPRINTF 1 -_ACEOF - -fi -done - - LIBS="$OLDLIBS" - - if test "$ac_cv_func_quadmath_snprintf" = "no" - then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quadmath_snprintf in -lquadmath" >&5 -$as_echo_n "checking for quadmath_snprintf in -lquadmath... " >&6; } -if ${ac_cv_lib_quadmath_quadmath_snprintf+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lquadmath $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char quadmath_snprintf (); -int -main () -{ -return quadmath_snprintf (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_quadmath_quadmath_snprintf=yes -else - ac_cv_lib_quadmath_quadmath_snprintf=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_quadmath_snprintf" >&5 -$as_echo "$ac_cv_lib_quadmath_quadmath_snprintf" >&6; } -if test "x$ac_cv_lib_quadmath_quadmath_snprintf" = xyes; then : - - QUADMATH_LIBS="-lquadmath" - LIBM="$LIBM -lquadmath" - $as_echo "#define HAVE_QUADMATH_SNPRINTF 1" >>confdefs.h - - -fi - - else - QUADMATH_LIBS="$LIBM" - fi - fi - - OLDLIBS="$LIBS" - LIBS="$LIBM $LIBS" - for ac_func in powq fmodq sinq cosq tanq atanq atan2q logq log10q expq sqrtq ceilq floorq roundq -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - for ac_func in strtoflt128 -do : - ac_fn_c_check_func "$LINENO" "strtoflt128" "ac_cv_func_strtoflt128" -if test "x$ac_cv_func_strtoflt128" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRTOFLT128 1 -_ACEOF - -fi -done - - LIBS="$OLDLIBS" -fi - - cat >>confdefs.h <<_ACEOF #define H2_SIZEOF_CHAR ${ac_cv_sizeof_char} @@ -20700,28 +14269,6 @@ cat >>confdefs.h <<_ACEOF _ACEOF - -cat >>confdefs.h <<_ACEOF -#define H2_SIZEOF_MBSTATE_T ${ac_cv_sizeof_mbstate_t} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define H2_MBLEN_MAX ${ax_cv_numvalof_MB_LEN_MAX} -_ACEOF - - - -cat >>confdefs.h <<_ACEOF -#define H2_SIZEOF_STRUCT_SOCKADDR_IN ${ac_cv_sizeof_struct_sockaddr_in} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define H2_SIZEOF_STRUCT_SOCKADDR_IN6 ${ac_cv_sizeof_struct_sockaddr_in6} -_ACEOF - - 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`" @@ -20999,95 +14546,27 @@ $as_echo "#define H2_ENDIAN_UNKNOWN /**/" >>confdefs.h -# Check whether --enable-mchar was given. -if test "${enable_mchar+set}" = set; then : - enableval=$enable_mchar; enable_mchar_is=$enableval -else - enable_mchar_is=yes -fi - -if test "${enable_mchar_is}" = "yes" -then - -$as_echo "#define H2_ENABLE_MCHAR /**/" >>confdefs.h - -fi - if test "${enable_mchar_is}" = "yes" ; then - ENABLE_MCHAR_TRUE= - ENABLE_MCHAR_FALSE='#' -else - ENABLE_MCHAR_TRUE='#' - ENABLE_MCHAR_FALSE= -fi - - -# Check whether --enable-wchar was given. -if test "${enable_wchar+set}" = set; then : - enableval=$enable_wchar; enable_wchar_is=$enableval -else - enable_wchar_is=yes -fi - -if test "${enable_wchar_is}" = "yes" -then - -$as_echo "#define H2_ENABLE_WCHAR /**/" >>confdefs.h - -fi - if test "${enable_wchar_is}" = "yes" ; then - ENABLE_WCHAR_TRUE= - ENABLE_WCHAR_FALSE='#' -else - ENABLE_WCHAR_TRUE='#' - ENABLE_WCHAR_FALSE= -fi - - -# Check whether --enable-wwchar was given. -if test "${enable_wwchar+set}" = set; then : - enableval=$enable_wwchar; enable_wwchar_is=$enableval -else - enable_wwchar_is=yes -fi - -if test "${enable_wwchar_is}" = "yes" -then - -$as_echo "#define H2_ENABLE_WWCHAR /**/" >>confdefs.h - -fi - if test "${enable_wwchar_is}" = "yes" ; then - ENABLE_WWCHAR_TRUE= - ENABLE_WWCHAR_FALSE='#' -else - ENABLE_WWCHAR_TRUE='#' - ENABLE_WWCHAR_FALSE= -fi - - - - # Check whether --with-char-type was given. if test "${with_char_type+set}" = set; then : withval=$with_char_type; char_type=$withval fi -if test "${char_type}" = "mchar" -a "${enable_mchar_is}" = "yes" +if test "${char_type}" = "mchar" then $as_echo "#define H2_CHAR_IS_MCHAR /**/" >>confdefs.h CHAR_TYPE="H2_CHAR_IS_MCHAR" -elif test "$char_type" = "wchar" -a "${enable_wchar_is}" = "yes" +elif test "$char_type" = "wchar" then $as_echo "#define H2_CHAR_IS_WCHAR /**/" >>confdefs.h CHAR_TYPE="H2_CHAR_IS_WCHAR" -elif test "$char_type" = "wwchar" -a "${enable_wwchar_is}" = "yes" +elif test "$char_type" = "wwchar" then $as_echo "#define H2_CHAR_IS_WWCHAR /**/" >>confdefs.h @@ -21099,566 +14578,6 @@ else fi - - -# Check whether --enable-bundled-unicode was given. -if test "${enable_bundled_unicode+set}" = set; then : - enableval=$enable_bundled_unicode; enable_bundled_unicode_is=$enableval -else - enable_bundled_unicode_is=yes -fi - -if test "${ac_cv_header_wctype_h}" = "no" -o "${ac_cv_func_wctrans}" = "no" -o "${ac_cv_func_wctype}" = "no" -then - enable_bundled_unicode_is=yes -fi -if test "${enable_bundled_unicode_is}" = "yes" -then - -$as_echo "#define H2_ENABLE_BUNDLED_UNICODE /**/" >>confdefs.h - -fi - if test "${enable_bundled_unicode_is}" = "yes"; then - ENABLE_BUNDLED_UNICODE_TRUE= - ENABLE_BUNDLED_UNICODE_FALSE='#' -else - ENABLE_BUNDLED_UNICODE_TRUE='#' - ENABLE_BUNDLED_UNICODE_FALSE= -fi - - -# Check whether --enable-xcmgrs was given. -if test "${enable_xcmgrs+set}" = set; then : - enableval=$enable_xcmgrs; enable_xcmgrs_is=$enableval -else - enable_xcmgrs_is=yes -fi - -if test "${enable_xcmgrs_is}" = "yes" -then - -$as_echo "#define H2_ENABLE_XCMGRS /**/" >>confdefs.h - -fi - if test "${enable_xcmgrs_is}" = "yes" ; then - ENABLE_XCMGRS_TRUE= - ENABLE_XCMGRS_FALSE='#' -else - ENABLE_XCMGRS_TRUE='#' - ENABLE_XCMGRS_FALSE= -fi - - -# Check whether --enable-syscall was given. -if test "${enable_syscall+set}" = set; then : - enableval=$enable_syscall; enable_syscall_is=$enableval -else - enable_syscall_is=no -fi - -if test "${enable_syscall_is}" = "yes" -then - -$as_echo "#define H2_USE_SYSCALL /**/" >>confdefs.h - -fi - -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; enable_debug_is=$enableval -else - enable_debug_is=no -fi - -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" - 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" - BUILD_MODE="release" - -fi - -# Check whether --enable-cxx was given. -if test "${enable_cxx+set}" = set; then : - enableval=$enable_cxx; enable_cxx_is=$enableval -else - enable_cxx_is=yes - -fi - - -test "${HAVE_CXX}" = "yes" || enable_cxx_is="no" -test "${ax_cv_cxx_have_std_namespace}" = "yes" || enable_cxx_is="no" - - if test "${enable_cxx_is}" = "yes" ; then - ENABLE_CXX_TRUE= - ENABLE_CXX_FALSE='#' -else - ENABLE_CXX_TRUE='#' - ENABLE_CXX_FALSE= -fi - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ax_pthread_ok=no - -# We used to check for pthread.h first, but this fails if pthread.h -# requires special compiler flags (e.g. on True64 or Sequent). -# It gets checked for in the link test anyway. - -# First of all, check if the user has set any of the PTHREAD_LIBS, -# etcetera environment variables, and if threads linking works using -# them: -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - save_LIBS="$LIBS" - LIBS="$PTHREAD_LIBS $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 -$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_join (); -int -main () -{ -return pthread_join (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ax_pthread_ok=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 -$as_echo "$ax_pthread_ok" >&6; } - if test x"$ax_pthread_ok" = xno; then - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" - fi - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" -fi - -# We must check for the threads library under a number of different -# names; the ordering is very important because some systems -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the -# libraries is broken (non-POSIX). - -# Create a list of thread flags to try. Items starting with a "-" are -# C compiler flags, and other items are library names, except for "none" -# which indicates that we try without any flags at all, and "pthread-config" -# which is a program returning the flags for the Pth emulation library. - -ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" - -# The ordering *is* (sometimes) important. Some notes on the -# individual items follow: - -# pthreads: AIX (must check this before -lpthread) -# none: in case threads are in libc; should be tried before -Kthread and -# other compiler flags to prevent continual compiler warnings -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) -# -pthreads: Solaris/gcc -# -mthreads: Mingw32/gcc, Lynx/gcc -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it -# doesn't hurt to check since this sometimes defines pthreads too; -# also defines -D_REENTRANT) -# ... -mt is also the pthreads flag for HP/aCC -# pthread: Linux, etcetera -# --thread-safe: KAI C++ -# pthread-config: use pthread-config program (for GNU Pth library) - -case "${host_cpu}-${host_os}" in - *solaris*) - - # On Solaris (at least, for some versions), libc contains stubbed - # (non-functional) versions of the pthreads routines, so link-based - # tests will erroneously succeed. (We need to link with -pthreads/-mt/ - # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather - # a function called by this macro, so we could check for that, but - # who knows whether they'll stub that too in a future libc.) So, - # we'll just look for -pthreads and -lpthread first: - - ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" - ;; - - *-darwin*) - ax_pthread_flags="-pthread $ax_pthread_flags" - ;; -esac - -if test x"$ax_pthread_ok" = xno; then -for flag in $ax_pthread_flags; do - - case $flag in - none) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 -$as_echo_n "checking whether pthreads work without any flags... " >&6; } - ;; - - -*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 -$as_echo_n "checking whether pthreads work with $flag... " >&6; } - PTHREAD_CFLAGS="$flag" - ;; - - pthread-config) - # Extract the first word of "pthread-config", so it can be a program name with args. -set dummy pthread-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ax_pthread_config+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ax_pthread_config"; then - ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ax_pthread_config="yes" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" -fi -fi -ax_pthread_config=$ac_cv_prog_ax_pthread_config -if test -n "$ax_pthread_config"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 -$as_echo "$ax_pthread_config" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - if test x"$ax_pthread_config" = xno; then continue; fi - PTHREAD_CFLAGS="`pthread-config --cflags`" - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" - ;; - - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 -$as_echo_n "checking for the pthreads library -l$flag... " >&6; } - PTHREAD_LIBS="-l$flag" - ;; - esac - - save_LIBS="$LIBS" - save_CFLAGS="$CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - - # Check for various functions. We must include pthread.h, - # since some functions may be macros. (On the Sequent, we - # need a special flag -Kthread to make this header compile.) - # We check for pthread_join because it is in -lpthread on IRIX - # while pthread_create is in libc. We check for pthread_attr_init - # due to DEC craziness with -lpthreads. We check for - # pthread_cleanup_push because it is one of the few pthread - # functions on Solaris that doesn't have a non-functional libc stub. - # We try pthread_create on general principles. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - static void routine(void *a) { a = 0; } - static void *start_routine(void *a) { return a; } -int -main () -{ -pthread_t th; pthread_attr_t attr; - pthread_create(&th, 0, start_routine, 0); - pthread_join(th, 0); - pthread_attr_init(&attr); - pthread_cleanup_push(routine, 0); - pthread_cleanup_pop(0) /* ; */ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ax_pthread_ok=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 -$as_echo "$ax_pthread_ok" >&6; } - if test "x$ax_pthread_ok" = xyes; then - break; - fi - - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" -done -fi - -# Various other checks: -if test "x$ax_pthread_ok" = xyes; then - save_LIBS="$LIBS" - LIBS="$PTHREAD_LIBS $LIBS" - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 -$as_echo_n "checking for joinable pthread attribute... " >&6; } - attr_name=unknown - for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -int attr = $attr; return attr /* ; */ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - attr_name=$attr; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - done - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 -$as_echo "$attr_name" >&6; } - if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then - -cat >>confdefs.h <<_ACEOF -#define PTHREAD_CREATE_JOINABLE $attr_name -_ACEOF - - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 -$as_echo_n "checking if more special flags are required for pthreads... " >&6; } - flag=no - case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; - *-osf* | *-hpux*) flag="-D_REENTRANT";; - *solaris*) - if test "$GCC" = "yes"; then - flag="-D_REENTRANT" - else - flag="-mt -D_REENTRANT" - fi - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 -$as_echo "${flag}" >&6; } - if test "x$flag" != xno; then - PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 -$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } -if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include -int -main () -{ -int i = PTHREAD_PRIO_INHERIT; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ax_cv_PTHREAD_PRIO_INHERIT=yes -else - ax_cv_PTHREAD_PRIO_INHERIT=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 -$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } - if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : - -$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h - -fi - - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - - # More AIX lossage: must compile with xlc_r or cc_r - if test x"$GCC" != xyes; then - for ac_prog in xlc_r cc_r -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_PTHREAD_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PTHREAD_CC"; then - ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_PTHREAD_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -PTHREAD_CC=$ac_cv_prog_PTHREAD_CC -if test -n "$PTHREAD_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 -$as_echo "$PTHREAD_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$PTHREAD_CC" && break -done -test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" - - else - PTHREAD_CC=$CC - fi -else - PTHREAD_CC="$CC" -fi - - - - - -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: -if test x"$ax_pthread_ok" = xyes; then - -$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h - - : -else - ax_pthread_ok=no - -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Check whether --enable-reentrant was given. -if test "${enable_reentrant+set}" = set; then : - enableval=$enable_reentrant; enable_reentrant_is=$enableval -else - enable_reentrant_is=no -fi - -if test "$enable_reentrant_is" = "yes" -then - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" -fi - -# Check whether --enable-awk-intmax was given. -if test "${enable_awk_intmax+set}" = set; then : - enableval=$enable_awk_intmax; enable_awk_intmax_is=$enableval -else - enable_awk_intmax_is=no - -fi - -if test "${enable_awk_intmax_is}" = "yes" -then - -$as_echo "#define H2_USE_AWK_INTMAX /**/" >>confdefs.h - -fi - -# Check whether --enable-awk-fltmax was given. -if test "${enable_awk_fltmax+set}" = set; then : - enableval=$enable_awk_fltmax; enable_awk_fltmax_is=$enableval -else - enable_awk_fltmax_is=no - -fi - -if test "${enable_awk_fltmax_is}" = "yes" -then - -$as_echo "#define H2_USE_AWK_FLTMAX /**/" >>confdefs.h - -fi - -# Check whether --enable-sed-tracer was given. -if test "${enable_sed_tracer+set}" = set; then : - enableval=$enable_sed_tracer; enable_sed_tracer_is=$enableval -else - enable_sed_tracer_is=yes - -fi - -if test "${enable_sed_tracer_is}" = "yes" -then - -$as_echo "#define H2_ENABLE_SED_TRACER /**/" >>confdefs.h - -fi - - # Check whether --with-ada-objdir was given. if test "${with_ada_objdir+set}" = set; then : withval=$with_ada_objdir; ada_objdir=$withval @@ -21674,34 +14593,6 @@ else fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5 -$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _POSIX_PII_SOCKET -#include -#include -int -main () -{ -socklen_t x = 5; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test "${enable_shared}" = "no" -a "${enable_static}" = "yes" then @@ -21746,7 +14637,7 @@ H2_PROJECT_URL="${PACKAGE_URL}" -ac_config_files="$ac_config_files Makefile lib/Makefile lib/cmn/Makefile lib/lib.gpr lib/libh2.gpr bin/Makefile bin/scheme.gpr" +ac_config_files="$ac_config_files Makefile lib/Makefile lib/lib.gpr lib/libh2.gpr bin/Makefile bin/scheme.gpr" cat >confcache <<\_ACEOF @@ -21886,47 +14777,11 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then as_fn_error $? "conditional \"WIN32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${HAVE_C_MPI_TRUE}" && test -z "${HAVE_C_MPI_FALSE}"; then - as_fn_error $? "conditional \"HAVE_C_MPI\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_LIBUCI_TRUE}" && test -z "${HAVE_LIBUCI_FALSE}"; then - as_fn_error $? "conditional \"HAVE_LIBUCI\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_MCHAR_TRUE}" && test -z "${ENABLE_MCHAR_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_MCHAR\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_WCHAR_TRUE}" && test -z "${ENABLE_WCHAR_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_WCHAR\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_WWCHAR_TRUE}" && test -z "${ENABLE_WWCHAR_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_WWCHAR\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_BUNDLED_UNICODE_TRUE}" && test -z "${ENABLE_BUNDLED_UNICODE_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_BUNDLED_UNICODE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_XCMGRS_TRUE}" && test -z "${ENABLE_XCMGRS_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_XCMGRS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_CXX\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${ENABLE_STATIC_MODULE_TRUE}" && test -z "${ENABLE_STATIC_MODULE_FALSE}"; then as_fn_error $? "conditional \"ENABLE_STATIC_MODULE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -22389,7 +15244,7 @@ Configuration commands: $config_commands Report bugs to . -h2 home page: ." +h2 home page: ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -22659,60 +15514,6 @@ enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_sub enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' -compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' -predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' -postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' -predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' -postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' -compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' -LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' -reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' -reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' -old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' -compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' -GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' -archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' -export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' -whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' -compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' -old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' -archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' -archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' -module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' -module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' -with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' -allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' -no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' -inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' -link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' -always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' -export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' -exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' -include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' -prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' -postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' -file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' -hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' -compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' -predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' -postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' -predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' -postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' -compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' @@ -22794,38 +15595,7 @@ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ -striplib \ -compiler_lib_search_dirs \ -predep_objects \ -postdep_objects \ -predeps \ -postdeps \ -compiler_lib_search_path \ -LD_CXX \ -reload_flag_CXX \ -compiler_CXX \ -lt_prog_compiler_no_builtin_flag_CXX \ -lt_prog_compiler_pic_CXX \ -lt_prog_compiler_wl_CXX \ -lt_prog_compiler_static_CXX \ -lt_cv_prog_compiler_c_o_CXX \ -export_dynamic_flag_spec_CXX \ -whole_archive_flag_spec_CXX \ -compiler_needs_object_CXX \ -with_gnu_ld_CXX \ -allow_undefined_flag_CXX \ -no_undefined_flag_CXX \ -hardcode_libdir_flag_spec_CXX \ -hardcode_libdir_separator_CXX \ -exclude_expsyms_CXX \ -include_expsyms_CXX \ -file_list_spec_CXX \ -compiler_lib_search_dirs_CXX \ -predep_objects_CXX \ -postdep_objects_CXX \ -predeps_CXX \ -postdeps_CXX \ -compiler_lib_search_path_CXX; do +striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes @@ -22856,18 +15626,7 @@ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ -configure_time_lt_sys_library_path \ -reload_cmds_CXX \ -old_archive_cmds_CXX \ -old_archive_from_new_cmds_CXX \ -old_archive_from_expsyms_cmds_CXX \ -archive_cmds_CXX \ -archive_expsym_cmds_CXX \ -module_cmds_CXX \ -module_expsym_cmds_CXX \ -export_symbols_cmds_CXX \ -prelink_cmds_CXX \ -postlink_cmds_CXX; do +configure_time_lt_sys_library_path; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes @@ -22895,8 +15654,6 @@ fi - - _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 @@ -22905,12 +15662,11 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 for ac_config_target in $ac_config_targets do case $ac_config_target in - "include/h2/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/h2/config.h" ;; + "h2-cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS h2-cfg.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; - "lib/cmn/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cmn/Makefile" ;; "lib/lib.gpr") CONFIG_FILES="$CONFIG_FILES lib/lib.gpr" ;; "lib/libh2.gpr") CONFIG_FILES="$CONFIG_FILES lib/libh2.gpr" ;; "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; @@ -23651,7 +16407,7 @@ See \`config.log' for more details" "$LINENO" 5; } # The names of the tagged configurations supported by this script. -available_tags='CXX ' +available_tags='' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} @@ -24056,20 +16812,6 @@ file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action -# The directories searched by this compiler when creating a shared library. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs - -# Dependencies to place before and after the objects being linked to -# create a shared library. -predep_objects=$lt_predep_objects -postdep_objects=$lt_postdep_objects -predeps=$lt_predeps -postdeps=$lt_postdeps - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path - # ### END LIBTOOL CONFIG _LT_EOF @@ -24162,159 +16904,6 @@ ltmain=$ac_aux_dir/ltmain.sh (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" - - cat <<_LT_EOF >> "$ofile" - -# ### BEGIN LIBTOOL TAG CONFIG: CXX - -# The linker used to build libraries. -LD=$lt_LD_CXX - -# How to create reloadable object files. -reload_flag=$lt_reload_flag_CXX -reload_cmds=$lt_reload_cmds_CXX - -# Commands used to build an old-style archive. -old_archive_cmds=$lt_old_archive_cmds_CXX - -# A language specific compiler. -CC=$lt_compiler_CXX - -# Is the compiler the GNU compiler? -with_gcc=$GCC_CXX - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX - -# Whether or not to disallow shared libs when runtime libs are static. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - -# Whether the compiler copes with passing no objects directly. -compiler_needs_object=$lt_compiler_needs_object_CXX - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX - -# Commands used to build a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX - -# Commands used to build a loadable module if different from building -# a shared archive. -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX - -# Whether we are building with GNU ld or not. -with_gnu_ld=$lt_with_gnu_ld_CXX - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX - -# Flag that enforces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - -# Whether we need a single "-rpath" flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary and the resulting library dependency is -# "absolute",i.e impossible to change by setting \$shlibpath_var if the -# library is relocated. -hardcode_direct_absolute=$hardcode_direct_absolute_CXX - -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -# into the resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -# into the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to "yes" if building a shared library automatically hardcodes DIR -# into the library and all subsequent libraries and executables linked -# against it. -hardcode_automatic=$hardcode_automatic_CXX - -# Set to yes if linker adds runtime paths of dependent libraries -# to runtime path list. -inherit_rpath=$inherit_rpath_CXX - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds_CXX - -# Commands necessary for finishing linking programs. -postlink_cmds=$lt_postlink_cmds_CXX - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec_CXX - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX - -# The directories searched by this compiler when creating a shared library. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX - -# Dependencies to place before and after the objects being linked to -# create a shared library. -predep_objects=$lt_predep_objects_CXX -postdep_objects=$lt_postdep_objects_CXX -predeps=$lt_predeps_CXX -postdeps=$lt_postdeps_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX - -# ### END LIBTOOL TAG CONFIG: CXX -_LT_EOF - ;; esac @@ -24363,13 +16952,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 "-------------------------------------------------------------------------" diff --git a/configure.ac b/configure.ac index e831ef8..e2e6505 100644 --- a/configure.ac +++ b/configure.ac @@ -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 - #include ]) -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 - #include - #ifdef HAVE_NET_IF_H - #include - #endif]) - -AC_CHECK_TYPES([struct lifconf, struct lifreq, struct if_laddrreq], [], [], - [#include - #include - #ifdef HAVE_NET_IF_H - #include - #endif]) - -AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id], [], [], - [#include - #include - #include ]) - AC_MSG_CHECKING([for va_copy]) AC_TRY_LINK( [#include ], @@ -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 ]) -AX_CHECK_NUMVALOF(MB_LEN_MAX,[32],[#include ]) - -if test "${platform_win32}" == "yes" -then -AC_CHECK_SIZEOF(struct sockaddr_in,,[ - #include - #include ]) -AC_CHECK_SIZEOF(struct sockaddr_in6,, [ - #include - #include ]) -else -AC_CHECK_SIZEOF(struct sockaddr_in,,[ - #include - #include ]) -AC_CHECK_SIZEOF(struct sockaddr_in6,, [ - #include - #include ]) -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 ], - [ - __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 -#include ], [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 "-------------------------------------------------------------------------" ] diff --git a/h2-cfg.h.in b/h2-cfg.h.in new file mode 100644 index 0000000..32c70e3 --- /dev/null +++ b/h2-cfg.h.in @@ -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 header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the 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 diff --git a/include/h2/cmn/str-priv.h b/include/h2/cmn/str-priv.h deleted file mode 100644 index 9ea6b80..0000000 --- a/include/h2/cmn/str-priv.h +++ /dev/null @@ -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 diff --git a/include/h2/cmn/str.h b/include/h2/cmn/str.h deleted file mode 100644 index 4280b56..0000000 --- a/include/h2/cmn/str.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _H2_STR_H_ -#define _H2_STR_H_ - -#include

-#include

- -#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 diff --git a/include/h2/cmn/utf16.h b/include/h2/cmn/utf16.h deleted file mode 100644 index 09164e6..0000000 --- a/include/h2/cmn/utf16.h +++ /dev/null @@ -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 . - */ - -#ifndef _H2_CMN_UTF16_H_ -#define _H2_CMN_UTF16_H_ - -#include

-#include

- -/** \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 diff --git a/include/h2/cmn/utf8.h b/include/h2/cmn/utf8.h deleted file mode 100644 index 3cfa316..0000000 --- a/include/h2/cmn/utf8.h +++ /dev/null @@ -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 . - */ - -#ifndef _H2_CMN_UTF8_H_ -#define _H2_CMN_UTF8_H_ - -#include

-#include

- -/** \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 diff --git a/include/h2/config.h.in b/include/h2/config.h.in deleted file mode 100644 index 628e485..0000000 --- a/include/h2/config.h.in +++ /dev/null @@ -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 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 header file, and it defines `DIR'. - */ -#undef HAVE_DIRENT_H - -/* Define to 1 if you have the 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 header file. */ -#undef HAVE_ERRNO_H - -/* Define to 1 if you have the 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 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 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 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 header file. */ -#undef HAVE_LINUX_ETHTOOL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LINUX_NETFILTER_IPV4_H - -/* Define to 1 if you have the 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 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 header file, and it defines `DIR'. */ -#undef HAVE_NDIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NET_IF_DL_H - -/* Define to 1 if you have the 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 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 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 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 header file. */ -#undef HAVE_STDDEF_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the 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 header file, and it defines `DIR'. - */ -#undef HAVE_SYS_DIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_EPOLL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_EVENT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_MACSTAT_H - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_SYS_NDIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_PRCTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_RESOURCE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SENDFILE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SOCKET_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SOCKIO_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STROPTS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SYSCALL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SYSCTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the 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 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 header file. */ -#undef HAVE_UCI_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UCONTEXT_H - -/* Define to 1 if you have the 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 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 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 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 diff --git a/include/h2/macros.h b/include/h2/macros.h deleted file mode 100644 index 3d7ce95..0000000 --- a/include/h2/macros.h +++ /dev/null @@ -1,90 +0,0 @@ - -#ifndef _H2_MACROS_H_ -#define _H2_MACROS_H_ - -#include

- -#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 diff --git a/include/h2/types.h b/include/h2/types.h deleted file mode 100644 index 073e3b8..0000000 --- a/include/h2/types.h +++ /dev/null @@ -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

-#elif defined(_WIN32) -# include

-#elif defined(__OS2__) -# include

-#elif defined(__DOS__) -# include

-#elif defined(vms) || defined(__vms) -# include

-#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 diff --git a/include/h2scm.h b/include/h2scm.h deleted file mode 100644 index c4ecd21..0000000 --- a/include/h2scm.h +++ /dev/null @@ -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 diff --git a/lib/Makefile.am b/lib/Makefile.am index 0ed484d..fe4a7ab 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,7 +1,5 @@ AUTOMAKE_OPTIONS = nostdinc subdir-objects -SUBDIRS = cmn - EXTRA_DIST = \ h2.ads \ h2-pool.ads \ diff --git a/lib/Makefile.in b/lib/Makefile.in index 973d909..d58f5df 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -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 diff --git a/lib/cmn/Makefile.am b/lib/cmn/Makefile.am deleted file mode 100644 index 0386288..0000000 --- a/lib/cmn/Makefile.am +++ /dev/null @@ -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 diff --git a/lib/cmn/Makefile.in b/lib/cmn/Makefile.in deleted file mode 100644 index 60bfe4c..0000000 --- a/lib/cmn/Makefile.in +++ /dev/null @@ -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: diff --git a/lib/cmn/str-cmp.h b/lib/cmn/str-cmp.h deleted file mode 100644 index dae8fea..0000000 --- a/lib/cmn/str-cmp.h +++ /dev/null @@ -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; -} diff --git a/lib/cmn/str-cpy.h b/lib/cmn/str-cpy.h deleted file mode 100644 index dd9ebba..0000000 --- a/lib/cmn/str-cpy.h +++ /dev/null @@ -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; -} diff --git a/lib/cmn/str-fmc.h b/lib/cmn/str-fmc.h deleted file mode 100644 index 821ef0a..0000000 --- a/lib/cmn/str-fmc.h +++ /dev/null @@ -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 diff --git a/lib/cmn/str-len.h b/lib/cmn/str-len.h deleted file mode 100644 index eb3ea11..0000000 --- a/lib/cmn/str-len.h +++ /dev/null @@ -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; -} - diff --git a/lib/cmn/str.c b/lib/cmn/str.c deleted file mode 100644 index cb26b88..0000000 --- a/lib/cmn/str.c +++ /dev/null @@ -1,40 +0,0 @@ -#include

- -#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 diff --git a/lib/cmn/utf16.c b/lib/cmn/utf16.c deleted file mode 100644 index b622213..0000000 --- a/lib/cmn/utf16.c +++ /dev/null @@ -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 . - */ - -#include

- -#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; -} - diff --git a/lib/cmn/utf8.c b/lib/cmn/utf8.c deleted file mode 100644 index 9483e7c..0000000 --- a/lib/cmn/utf8.c +++ /dev/null @@ -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 . - */ - -#include

- -/* - * 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; -} -